Offline · exact source
Exact Lean source

TensorGibbsStateTransfer

formalization/Cloning/TensorGibbsStateTransfer.lean

Source hash: fb93f07555848201c4e53c6f9f2d2081b10d855997dd7687f1bd18e08abc4f13

Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.

The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.

Declarations in this module
1import Cloning.TensorGibbsThermalCutoff
2import Cloning.TensorLANEmbeddingTotal
3 
4/-! Concrete two-sided centered Gibbs/thermal comparison through the actual
5sector/Fock channels, with explicit finite-cutoff error. -/
6noncomputable section
7open scoped BigOperators InnerProductSpace ComplexOrder Topology
8namespace Cloning.TensorLie
9open Cloning.PCT Cloning.InfiniteTraceClass Cloning.TensorLAN
10set_option maxHeartbeats 1200000
11set_option backward.isDefEq.respectTransparency false
12variable {n d : ℕ}
13local instance : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
14  (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
15 
16variable (Ω : TensorRegister n (Fin d)) (mu : Fin d → ℕ)
17    (hweight : ∀ a, collectiveGenerator n a a Ω = (mu a : ℂ) • Ω)
18    (hraise : ∀ a b, a < b → collectiveGenerator n a b Ω = 0)
19 
20def gibbsThermalCoefficientError (p t : Fin d → ℝ) (R : ℕ) : ℝ :=
21  ∑ i : CutoffIndex d R, |sectorOccupationWeight Ω mu hweight hraise p (cutoffOccupation d R i).val -
22    bosonicOccupationWeight t (cutoffOccupation d R i).val|
23 
24def gibbsThermalCutoffError (p t : Fin d → ℝ) (R : ℕ) : ℝ :=
25  ‖sectorGibbsDensity Ω mu hweight hraise p - sectorGibbsCutoff Ω mu hweight hraise p R‖ +
26  gibbsThermalCoefficientError Ω mu hweight hraise p t R +
27  ‖rootThermalState t - rootThermalCutoff t R‖
28 
29theorem sectorOccupationWeight_nonneg (hΩ : ‖Ω‖ = 1) (p : Fin d → ℝ)
30    (hp : ∀ a, 0 < p a) (k : PositiveRoot d → ℕ) :
31    0 ≤ sectorOccupationWeight Ω mu hweight hraise p k :=
32  mul_nonneg (div_nonneg (Finset.prod_nonneg (fun a _ => pow_nonneg (hp a).le _))
33    (sectorPartitionFunction_pos Ω mu hweight hraise hΩ p hp).le)
34    (wordBoltzmann_pos p hp _).le
35 
36theorem sectorToFockTotal_gibbs_error (hΩ : ‖Ω‖ = 1)
37    (p t : Fin d → ℝ) (hp : ∀ a, 0 < p a) (R : ℕ) (hr : CutoffReady Ω mu R) :
38    ‖(sectorToFockTotal Ω mu R).toLinearMap (sectorGibbsDensity Ω mu hweight hraise p) -
39      rootThermalState t‖ ≤ gibbsThermalCutoffError Ω mu hweight hraise p t R := by
40  let M : Matrix (CutoffIndex d R) (CutoffIndex d R) ℂ :=
41    Matrix.diagonal (fun i => (sectorOccupationWeight Ω mu hweight hraise p (cutoffOccupation d R i).val : ℂ))
42  have hfirst : ‖(sectorToFockTotal Ω mu R).toLinearMap (sectorGibbsDensity Ω mu hweight hraise p) -
43      frameMatrix (cutoffNumberFrame d R) M‖ ≤
44      ‖sectorGibbsDensity Ω mu hweight hraise p - sectorGibbsCutoff Ω mu hweight hraise p R‖ := by
45    rw [sectorToFockTotal_eq Ω mu R hr, ← sectorToFock_matrix Ω mu R hr.1 hr.2 M]
46    exact (sectorToFock Ω mu R hr.1 hr.2).toPositiveTracePreservingMap.norm_map_sub_le _ _
47      (sectorGibbsDensity_nonneg Ω mu hweight hraise hΩ p hp)
48      (frameMatrix_diagonal_nonneg _ _ (fun i => sectorOccupationWeight_nonneg Ω mu hweight hraise hΩ p hp _))
49  have hsecond : ‖frameMatrix (cutoffNumberFrame d R) M - rootThermalCutoff t R‖ ≤
50      gibbsThermalCoefficientError Ω mu hweight hraise p t R :=
51    frameMatrix_diagonal_sub_norm_le _ (cutoffNumberFrame_orthonormal d R).norm_eq_one _ _
52  calc
53    _ ≤ ‖(sectorToFockTotal Ω mu R).toLinearMap (sectorGibbsDensity Ω mu hweight hraise p) -
54        frameMatrix (cutoffNumberFrame d R) M‖ +
55        ‖frameMatrix (cutoffNumberFrame d R) M - rootThermalState t‖ :=
56      norm_sub_le_norm_sub_add_norm_sub ..
57    _ ≤ _ := by
58      have ht := norm_sub_le_norm_sub_add_norm_sub (frameMatrix (cutoffNumberFrame d R) M)
59        (rootThermalCutoff t R) (rootThermalState t)
60      rw [norm_sub_rev (rootThermalCutoff t R)] at ht
61      unfold gibbsThermalCutoffError
62      linarith
63 
64theorem fockToSectorTotal_gibbs_error (hΩ : ‖Ω‖ = 1)
65    (p t : Fin d → ℝ) (hp : ∀ a, 0 < p a) (ht : ∀ a, 0 < t a) (htord : StrictAnti t)
66    (R : ℕ) (hr : CutoffReady Ω mu R) :
67    ‖(fockToSectorTotal Ω mu R hΩ).toLinearMap (rootThermalState t) -
68      sectorGibbsDensity Ω mu hweight hraise p‖ ≤ gibbsThermalCutoffError Ω mu hweight hraise p t R := by
69  let M : Matrix (CutoffIndex d R) (CutoffIndex d R) ℂ :=
70    Matrix.diagonal (fun i => (bosonicOccupationWeight t (cutoffOccupation d R i).val : ℂ))
71  have hfirst : ‖(fockToSectorTotal Ω mu R hΩ).toLinearMap (rootThermalState t) -
72      frameMatrix (cutoffSectorFrame Ω mu R) M‖ ≤ ‖rootThermalState t - rootThermalCutoff t R‖ := by
73    rw [fockToSectorTotal_eq Ω mu R hΩ hr, ← fockToSector_matrix Ω mu R hΩ hr.1 hr.2 M]
74    exact (fockToSector Ω mu R hΩ hr.1 hr.2).toPositiveTracePreservingMap.norm_map_sub_le _ _
75      (rootThermalState_nonneg t ht htord)
76      (frameMatrix_diagonal_nonneg _ _ (fun i => bosonicOccupationWeight_nonneg t ht htord _))
77  have hsecond : ‖frameMatrix (cutoffSectorFrame Ω mu R) M - sectorGibbsCutoff Ω mu hweight hraise p R‖ ≤
78      gibbsThermalCoefficientError Ω mu hweight hraise p t R := by
79    rw [norm_sub_rev]
80    exact frameMatrix_diagonal_sub_norm_le _ (cutoffSectorFrame_orthonormal Ω mu R hr.2).norm_eq_one _ _
81  calc
82    _ ≤ ‖(fockToSectorTotal Ω mu R hΩ).toLinearMap (rootThermalState t) -
83        frameMatrix (cutoffSectorFrame Ω mu R) M‖ +
84        ‖frameMatrix (cutoffSectorFrame Ω mu R) M - sectorGibbsDensity Ω mu hweight hraise p‖ :=
85      norm_sub_le_norm_sub_add_norm_sub ..
86    _ ≤ _ := by
87      have htri := norm_sub_le_norm_sub_add_norm_sub (frameMatrix (cutoffSectorFrame Ω mu R) M)
88        (sectorGibbsCutoff Ω mu hweight hraise p R) (sectorGibbsDensity Ω mu hweight hraise p)
89      rw [norm_sub_rev (sectorGibbsCutoff Ω mu hweight hraise p R)] at htri
90      unfold gibbsThermalCutoffError
91      linarith
92 
93end Cloning.TensorLie