Offline · exact source
Exact Lean source

TensorGibbsCutoffState

formalization/Cloning/TensorGibbsCutoffState.lean

Source hash: fb453909492500b2bc99e7fc6232f52b869a7a0051aec761cfb2c59c871e6db4

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.TensorGibbsTruncation
2import Cloning.TensorGibbsPartitionLimit
3 
4/-! Exact Gibbs eigenvalues in the common physical cutoff frame, and the
5literal trace-norm residual after finite occupation truncation. -/
6noncomputable section
7open scoped BigOperators InnerProductSpace ComplexOrder
8namespace Cloning.TensorLie
9open Cloning.PCT Cloning.InfiniteTraceClass InnerProductSpace
10set_option maxHeartbeats 1000000
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 sectorGibbsDensity (p : Fin d → ℝ) : TraceClass (cyclicSector Ω) :=
21  (((sectorPartitionFunction Ω mu hweight hraise p)⁻¹ : ℝ) : ℂ) •
22    sectorGibbsWeight Ω mu hweight hraise p
23 
24@[simp] theorem sectorGibbsDensity_coe (hΩ : ‖Ω‖ = 1) (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) :
25    (sectorGibbsDensity Ω mu hweight hraise p).1 =
26      (sectorGibbsState Ω mu hweight hraise hΩ p hp).op := rfl
27 
28theorem sectorGibbsDensity_nonneg (hΩ : ‖Ω‖ = 1) (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) :
29    0 ≤ (sectorGibbsDensity Ω mu hweight hraise p).1 :=
30  (sectorGibbsState Ω mu hweight hraise hΩ p hp).positive
31 
32theorem sectorGibbsDensity_trace (hΩ : ‖Ω‖ = 1) (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) :
33    traceCLM (sectorGibbsDensity Ω mu hweight hraise p) = 1 :=
34  (sectorGibbsState Ω mu hweight hraise hΩ p hp).trace_one
35 
36def sectorOccupationWeight (p : Fin d → ℝ) (k : PositiveRoot d → ℕ) : ℝ :=
37  (∏ a, p a ^ mu a) / sectorPartitionFunction Ω mu hweight hraise p *
38    wordBoltzmann p (canonicalWord k)
39 
40theorem sectorGibbsOperator_cutoffFrame (p : Fin d → ℝ) (hp : ∀ a, 0 < p a)
41    (R : ℕ) (i : CutoffIndex d R) :
42    sectorGibbsOperator Ω mu hweight hraise p (cutoffSectorFrame Ω mu R i) =
43      (((∏ a, p a ^ mu a) * wordBoltzmann p (cutoffWord d R i) : ℝ) : ℂ) •
44        cutoffSectorFrame Ω mu R i := by
45  apply Subtype.ext
46  have h := tensorOperator_diagonal_weight (fun a => (p a : ℂ)) (cutoffFrame Ω mu R i)
47    (fun a => (mu a : ℤ) + loweringWeight (cutoffWord d R i) a) (fun a => by
48      simpa only [Int.cast_add, Int.cast_natCast] using cutoffFrame_cartan Ω mu R hweight i a)
49  have hc : (∏ a, (p a : ℂ) ^ ((mu a : ℤ) + loweringWeight (cutoffWord d R i) a)) =
50      (((∏ a, p a ^ mu a) * wordBoltzmann p (cutoffWord d R i) : ℝ) : ℂ) := by
51    rw [← shiftedWeight_boltzmann p (fun a => (hp a).ne') mu (cutoffWord d R i)]
52    simp only [Complex.ofReal_prod, Complex.ofReal_zpow]
53  rw [hc] at h
54  exact h
55 
56theorem sectorGibbsDensity_cutoffFrame (p : Fin d → ℝ) (hp : ∀ a, 0 < p a)
57    (R : ℕ) (i : CutoffIndex d R) :
58    (sectorGibbsDensity Ω mu hweight hraise p).1 (cutoffSectorFrame Ω mu R i) =
59      (sectorOccupationWeight Ω mu hweight hraise p (cutoffOccupation d R i).val : ℂ) •
60        cutoffSectorFrame Ω mu R i := by
61  change (((sectorPartitionFunction Ω mu hweight hraise p)⁻¹ : ℝ) : ℂ) •
62    sectorGibbsOperator Ω mu hweight hraise p (cutoffSectorFrame Ω mu R i) = _
63  rw [sectorGibbsOperator_cutoffFrame Ω mu hweight hraise p hp]
64  simp only [sectorOccupationWeight, cutoffWord, Complex.ofReal_mul, Complex.ofReal_div,
65    Complex.ofReal_inv, smul_smul, div_eq_mul_inv]
66  congr 1
67  ring
68 
69theorem cutoffSectorFrame_orthonormal (R : ℕ)
70    (hli : LinearIndependent ℂ (cutoffRawFrame Ω mu R)) :
71    Orthonormal ℂ (cutoffSectorFrame Ω mu R) := by
72  rw [orthonormal_iff_ite]
73  intro i j
74  change ⟪cutoffFrame Ω mu R i, cutoffFrame Ω mu R j⟫_ℂ = _
75  exact orthonormal_iff_ite.mp (gramSchmidtNormed_orthonormal (𝕜 := ℂ) hli) i j
76 
77def sectorGibbsCutoff (p : Fin d → ℝ) (R : ℕ) : TraceClass (cyclicSector Ω) :=
78  frameMatrix (cutoffSectorFrame Ω mu R)
79    (Matrix.diagonal (fun i => (sectorOccupationWeight Ω mu hweight hraise p
80      (cutoffOccupation d R i).val : ℂ)))
81 
82theorem sectorGibbsCutoff_residual_nonneg (hΩ : ‖Ω‖ = 1)
83    (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) (R : ℕ)
84    (hli : LinearIndependent ℂ (cutoffRawFrame Ω mu R)) :
85    0 ≤ (sectorGibbsDensity Ω mu hweight hraise p - sectorGibbsCutoff Ω mu hweight hraise p R).1 :=
86  spectralFrame_residual_nonneg _ (sectorGibbsDensity_nonneg Ω mu hweight hraise hΩ p hp)
87    _ (cutoffSectorFrame_orthonormal Ω mu R hli) _
88    (sectorGibbsDensity_cutoffFrame Ω mu hweight hraise p hp R)
89 
90theorem sectorGibbsCutoff_error (hΩ : ‖Ω‖ = 1)
91    (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) (R : ℕ)
92    (hli : LinearIndependent ℂ (cutoffRawFrame Ω mu R)) :
93    ‖sectorGibbsDensity Ω mu hweight hraise p - sectorGibbsCutoff Ω mu hweight hraise p R‖ =
94      1 - ∑ i : CutoffIndex d R,
95        sectorOccupationWeight Ω mu hweight hraise p (cutoffOccupation d R i).val := by
96  rw [sectorGibbsCutoff, spectralFrame_residual_norm _
97    (sectorGibbsDensity_nonneg Ω mu hweight hraise hΩ p hp) _
98    (cutoffSectorFrame_orthonormal Ω mu R hli) _
99    (sectorGibbsDensity_cutoffFrame Ω mu hweight hraise p hp R),
100    sectorGibbsDensity_trace Ω mu hweight hraise hΩ p hp, Complex.one_re]
101 
102end Cloning.TensorLie