Offline · exact source
Exact Lean source

TensorGibbsTrace

formalization/Cloning/TensorGibbsTrace.lean

Source hash: 90044490e690cc5d532c1ddc4ef52c495564d160761f4a74ee28b9be1f1239bf

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.TensorGibbsHeight
2import Mathlib.Analysis.InnerProductSpace.Trace
3 
4/-! The actual partition function decomposes into orthogonal height traces.
5Polynomial height multiplicities and literal operator bounds control each
6term. These are traces of the physical sector, not a supplied character law. -/
7noncomputable section
8open scoped BigOperators InnerProductSpace ComplexOrder
9namespace Cloning.TensorLie
10open Cloning.PCT Cloning.InfiniteTraceClass
11set_option maxHeartbeats 1200000
12set_option backward.isDefEq.respectTransparency false
13variable {n d : ℕ}
14 
15local instance : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
16  (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
17 
18abbrev SectorHeightIndex (Ω : TensorRegister n (Fin d)) :=
19  Σ H : ℕ, Fin (Module.finrank ℂ (sectorHeightSpace Ω H))
20 
21def sectorHeightFrame (Ω : TensorRegister n (Fin d)) (i : SectorHeightIndex Ω) : cyclicSector Ω :=
22  (stdOrthonormalBasis ℂ (sectorHeightSpace Ω i.1) i.2 : cyclicSector Ω)
23 
24theorem sectorHeightFrame_orthonormal
25    (Ω : TensorRegister n (Fin d)) (mu : Fin d → ℕ)
26    (hweight : ∀ a, collectiveGenerator n a a Ω = (mu a : ℂ) • Ω) :
27    Orthonormal ℂ (sectorHeightFrame Ω) := by
28  constructor
29  · intro i
30    exact (stdOrthonormalBasis ℂ (sectorHeightSpace Ω i.1)).norm_eq_one i.2
31  · rintro ⟨H,i⟩ ⟨J,j⟩ hij
32    by_cases h : H = J
33    · subst J
34      apply (stdOrthonormalBasis ℂ (sectorHeightSpace Ω H)).inner_eq_zero
35      intro he
36      apply hij
37      cases he
38      rfl
39    · exact cyclicHeightSpace_isOrtho Ω mu hweight (Ne.symm h)
40        (stdOrthonormalBasis ℂ (sectorHeightSpace Ω J) j).property
41        (sectorHeightFrame Ω ⟨H,i⟩ : TensorRegister n (Fin d))
42        (stdOrthonormalBasis ℂ (sectorHeightSpace Ω H) i).property
43 
44theorem sectorHeightFrame_span (Ω : TensorRegister n (Fin d)) :
45    Submodule.span ℂ (Set.range (sectorHeightFrame Ω)) = ⊤ := by
46  rw [Set.range_sigma_eq_iUnion_range, Submodule.span_iUnion]
47  have hH (H : ℕ) : Submodule.span ℂ
48      (Set.range (fun i => sectorHeightFrame Ω ⟨H,i⟩)) = sectorHeightSpace Ω H := by
49    have hh := congrArg (Submodule.map (sectorHeightSpace Ω H).subtype)
50      (stdOrthonormalBasis ℂ (sectorHeightSpace Ω H)).toBasis.span_eq
51    rw [Submodule.map_span, Submodule.map_top, Submodule.range_subtype] at hh
52    simpa only [← Set.range_comp, Function.comp_def, OrthonormalBasis.coe_toBasis,
53      sectorHeightFrame] using hh
54  simp_rw [hH]
55  exact iSup_sectorHeightSpace Ω
56 
57def sectorHeightHilbertBasis
58    (Ω : TensorRegister n (Fin d)) (mu : Fin d → ℕ)
59    (hweight : ∀ a, collectiveGenerator n a a Ω = (mu a : ℂ) • Ω) :
60    HilbertBasis (SectorHeightIndex Ω) ℂ (cyclicSector Ω) :=
61  HilbertBasis.mk (sectorHeightFrame_orthonormal Ω mu hweight)
62    (by rw [sectorHeightFrame_span]; simp)
63 
64@[simp] theorem sectorHeightHilbertBasis_apply
65    (Ω : TensorRegister n (Fin d)) (mu : Fin d → ℕ)
66    (hweight : ∀ a, collectiveGenerator n a a Ω = (mu a : ℂ) • Ω)
67    (i : SectorHeightIndex Ω) :
68    sectorHeightHilbertBasis Ω mu hweight i = sectorHeightFrame Ω i := by
69  simp [sectorHeightHilbertBasis]
70 
71variable (Ω : TensorRegister n (Fin d)) (mu : Fin d → ℕ)
72    (hweight : ∀ a, collectiveGenerator n a a Ω = (mu a : ℂ) • Ω)
73    (hraise : ∀ a b, a < b → collectiveGenerator n a b Ω = 0)
74 
75def sectorHeightTrace (p : Fin d → ℝ) (H : ℕ) : ℝ :=
76  ∑ i : Fin (Module.finrank ℂ (sectorHeightSpace Ω H)),
77    (⟪sectorHeightFrame Ω ⟨H,i⟩,
78      sectorGibbsOperator Ω mu hweight hraise p (sectorHeightFrame Ω ⟨H,i⟩)⟫_ℂ).re
79 
80theorem sectorHeightTrace_nonneg (p : Fin d → ℝ) (hp : ∀ a, 0 ≤ p a) (H : ℕ) :
81    0 ≤ sectorHeightTrace Ω mu hweight hraise p H := by
82  apply Finset.sum_nonneg
83  intro i _
84  exact real_inner_nonneg_of_nonneg (sectorGibbsOperator_nonneg Ω mu hweight hraise p hp) _
85 
86theorem sectorPartitionFunction_eq_tsum_height (p : Fin d → ℝ) (hp : ∀ a, 0 ≤ p a) :
87    sectorPartitionFunction Ω mu hweight hraise p =
88      ∑' H : ℕ, sectorHeightTrace Ω mu hweight hraise p H := by
89  letI : Finite (SectorHeightIndex Ω) := (sectorHeightFrame_orthonormal Ω mu hweight).linearIndependent.finite
90  letI : Fintype (SectorHeightIndex Ω) := Fintype.ofFinite _
91  rw [sectorPartitionFunction_eq_linearMapTrace Ω mu hweight hraise p hp]
92  rw [LinearMap.trace_eq_sum_inner _ (sectorHeightHilbertBasis Ω mu hweight).toOrthonormalBasis,
93    Complex.re_sum]
94  simp only [HilbertBasis.coe_toOrthonormalBasis, sectorHeightHilbertBasis_apply]
95  rw [← tsum_fintype (L := .unconditional _)]
96  simpa only [tsum_fintype, sectorHeightTrace] using
97    (hasSum_fintype (fun i : SectorHeightIndex Ω =>
98      (⟪sectorHeightFrame Ω i,
99        sectorGibbsOperator Ω mu hweight hraise p (sectorHeightFrame Ω i)⟫_ℂ).re)).summable.tsum_sigma'
100      (fun _ => (hasSum_fintype _).summable)
101 
102theorem sectorHeightTrace_summable (p : Fin d → ℝ) :
103    Summable (sectorHeightTrace Ω mu hweight hraise p) := by
104  letI : Finite (SectorHeightIndex Ω) := (sectorHeightFrame_orthonormal Ω mu hweight).linearIndependent.finite
105  letI : Fintype (SectorHeightIndex Ω) := Fintype.ofFinite _
106  have hh := (hasSum_fintype (fun i : SectorHeightIndex Ω =>
107    (⟪sectorHeightFrame Ω i,
108      sectorGibbsOperator Ω mu hweight hraise p (sectorHeightFrame Ω i)⟫_ℂ).re)).summable.sigma
109  simpa only [tsum_fintype, sectorHeightTrace] using hh
110 
111/-- Actual height trace, bounded by the derived dimension and Boltzmann
112operator bound. The estimate is uniform in the highest weight and tensor size. -/
113theorem sectorHeightTrace_le (p : Fin d → ℝ) (hp : ∀ a, 0 < p a)
114    (θ : ℝ) (hθ : 0 ≤ θ)
115    (hroot : ∀ r : PositiveRoot d, rootBoltzmann p r ≤ θ ^ r.height) (H : ℕ) :
116    sectorHeightTrace Ω mu hweight hraise p H ≤
117      ((H+1 : ℕ) : ℝ)^Fintype.card (PositiveRoot d) * ((∏ a, p a ^ mu a) * θ^H) := by
118  have hC : 0 ≤ (∏ a, p a ^ mu a) * θ^H :=
119    mul_nonneg (Finset.prod_nonneg (fun a _ => pow_nonneg (hp a).le _)) (pow_nonneg hθ _)
120  have hi (i : Fin (Module.finrank ℂ (sectorHeightSpace Ω H))) :
121      (⟪sectorHeightFrame Ω ⟨H,i⟩,
122        sectorGibbsOperator Ω mu hweight hraise p (sectorHeightFrame Ω ⟨H,i⟩)⟫_ℂ).re ≤
123          (∏ a, p a ^ mu a) * θ^H := by
124    have hn : ‖sectorHeightFrame Ω ⟨H,i⟩‖ = 1 :=
125      (stdOrthonormalBasis ℂ (sectorHeightSpace Ω H)).norm_eq_one i
126    have hb := tensorOperator_diagonal_norm_le_on_height Ω mu hweight p hp θ hθ hroot H
127      (stdOrthonormalBasis ℂ (sectorHeightSpace Ω H) i).property
128    change ‖sectorGibbsOperator Ω mu hweight hraise p (sectorHeightFrame Ω ⟨H,i⟩)‖ ≤
129      ((∏ a, p a ^ mu a) * θ^H) * ‖sectorHeightFrame Ω ⟨H,i⟩‖ at hb
130    rw [hn, mul_one] at hb
131    exact (Complex.re_le_norm _).trans ((norm_inner_le_norm _ _).trans (by simpa [hn] using hb))
132  calc
133    _ ≤ ∑ i : Fin (Module.finrank ℂ (sectorHeightSpace Ω H)),
134        ((∏ a, p a ^ mu a) * θ^H) := Finset.sum_le_sum (fun i _ => hi i)
135    _ = (Module.finrank ℂ (sectorHeightSpace Ω H) : ℝ) * ((∏ a, p a ^ mu a) * θ^H) := by simp
136    _ ≤ _ := mul_le_mul_of_nonneg_right (by exact_mod_cast sectorHeightSpace_finrank_le Ω H) hC
137 
138end Cloning.TensorLie