Offline · exact source
Exact Lean source

TensorGibbsThermalCutoff

formalization/Cloning/TensorGibbsThermalCutoff.lean

Source hash: 5fff97461fc145306764300452d5ef694572f66e5dd8021af19cae253a8c4f22

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.TensorGibbsCutoffState
2 
3/-! The actual Fock product thermal state and its weighted-height cutoffs. -/
4noncomputable section
5open scoped BigOperators InnerProductSpace ComplexOrder Topology
6open Filter
7namespace Cloning.TensorLie
8open Cloning.TensorLAN Cloning.InfiniteTraceClass
9set_option maxHeartbeats 1000000
10set_option backward.isDefEq.respectTransparency false
11variable {d : ℕ}
12 
13def bosonicOccupationWeight (p : Fin d → ℝ) (k : PositiveRoot d → ℕ) : ℝ :=
14  (∏ r : PositiveRoot d, (1 - rootBoltzmann p r)) * wordBoltzmann p (canonicalWord k)
15 
16theorem bosonicOccupationWeight_hasSum (p : Fin d → ℝ) (hp : ∀ a, 0 < p a)
17    (hord : StrictAnti p) : HasSum (bosonicOccupationWeight p) 1 := by
18  have hc : (∏ r : PositiveRoot d, (1 - rootBoltzmann p r)) ≠ 0 :=
19    (Finset.prod_pos (fun r _ => sub_pos.mpr (rootBoltzmann_lt_one p hp hord r))).ne'
20  have hs := (rootPowerProduct_hasSum p hp hord).mul_left (∏ r : PositiveRoot d, (1 - rootBoltzmann p r))
21  simpa only [← wordBoltzmann_canonicalWord, bosonicOccupationWeight,
22    Finset.prod_inv_distrib, mul_inv_cancel₀ hc] using hs
23 
24theorem bosonicOccupationWeight_nonneg (p : Fin d → ℝ) (hp : ∀ a, 0 < p a)
25    (hord : StrictAnti p) (k : PositiveRoot d → ℕ) : 0 ≤ bosonicOccupationWeight p k :=
26  mul_nonneg (Finset.prod_nonneg (fun r _ => (sub_pos.mpr (rootBoltzmann_lt_one p hp hord r)).le))
27    (wordBoltzmann_pos p hp _).le
28 
29def occupationCutoffFinset (d R : ℕ) : Finset (PositiveRoot d → ℕ) :=
30  (Finset.univ : Finset (HeightOccupation d R)).map ⟨Subtype.val, Subtype.val_injective⟩
31 
32@[simp] theorem mem_occupationCutoffFinset (R : ℕ) (k : PositiveRoot d → ℕ) :
33    k ∈ occupationCutoffFinset d R ↔ occupationHeight k ≤ R := by
34  classical
35  simp only [occupationCutoffFinset, Finset.mem_map, Finset.mem_univ, true_and,
36    Function.Embedding.coeFn_mk]
37  exact ⟨fun ⟨i,hi⟩ => hi ▸ i.property, fun hk => ⟨⟨k,hk⟩,rfl⟩⟩
38 
39theorem occupationCutoffFinset_tendsto (d : ℕ) :
40    Tendsto (occupationCutoffFinset d) atTop atTop := by
41  classical
42  apply tendsto_atTop.mpr
43  intro s
44  filter_upwards [eventually_ge_atTop (s.sup occupationHeight)] with R hR
45  intro k hk
46  exact (mem_occupationCutoffFinset R k).mpr ((Finset.le_sup hk).trans hR)
47 
48theorem heightOccupation_sum_tendsto (f : (PositiveRoot d → ℕ) → ℝ) (hf : Summable f) :
49    Tendsto (fun R => ∑ k : HeightOccupation d R, f k.val) atTop (𝓝 (∑' k, f k)) := by
50  have ht := hf.hasSum.comp (occupationCutoffFinset_tendsto d)
51  simpa only [Function.comp_def, occupationCutoffFinset, Finset.sum_map, Function.Embedding.coeFn_mk] using ht
52 
53def rootNumberFrame (d : ℕ) (k : PositiveRoot d → ℕ) : RootFock d :=
54  MultimodeCoherentGaussianMixture.numberBasis _ (fockOccupation d k)
55 
56theorem rootNumberFrame_orthonormal (d : ℕ) : Orthonormal ℂ (rootNumberFrame d) :=
57  (MultimodeCoherentGaussianMixture.numberBasis _).orthonormal.comp _ (fockOccupation_injective d)
58 
59def rootThermalState (p : Fin d → ℝ) : TraceClass (RootFock d) :=
60  vectorMixture (rootNumberFrame d) (bosonicOccupationWeight p)
61 
62theorem rootThermalState_nonneg (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) (hord : StrictAnti p) :
63    0 ≤ (rootThermalState p).1 :=
64  vectorMixture_nonneg _ (rootNumberFrame_orthonormal d).norm_eq_one _
65    (bosonicOccupationWeight_hasSum p hp hord).summable (bosonicOccupationWeight_nonneg p hp hord)
66 
67theorem rootThermalState_trace (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) (hord : StrictAnti p) :
68    traceCLM (rootThermalState p) = 1 := by
69  rw [rootThermalState, traceCLM_vectorMixture _ (rootNumberFrame_orthonormal d).norm_eq_one _
70    (bosonicOccupationWeight_hasSum p hp hord).summable, (bosonicOccupationWeight_hasSum p hp hord).tsum_eq]
71  rfl
72 
73theorem rootThermalState_eigen (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) (hord : StrictAnti p)
74    (k : PositiveRoot d → ℕ) :
75    (rootThermalState p).1 (rootNumberFrame d k) =
76      (bosonicOccupationWeight p k : ℂ) • rootNumberFrame d k := by
77  classical
78  let L : TraceClass (RootFock d) →L[ℂ] RootFock d :=
79    (ContinuousLinearMap.apply ℂ (RootFock d) (rootNumberFrame d k)).comp inclusionCLM
80  change L (vectorMixture _ _) = _
81  rw [vectorMixture, L.map_tsum (summable_weighted_projectors _
82    (rootNumberFrame_orthonormal d).norm_eq_one _ (bosonicOccupationWeight_hasSum p hp hord).summable)]
83  have he (j : PositiveRoot d → ℕ) : L (vectorProjector (rootNumberFrame d j)) =
84      if j = k then rootNumberFrame d k else 0 := by
85    change InnerProductSpace.rankOne ℂ (rootNumberFrame d j) (rootNumberFrame d j) (rootNumberFrame d k) = _
86    rw [InnerProductSpace.rankOne_apply, orthonormal_iff_ite.mp (rootNumberFrame_orthonormal d) j k]
87    split_ifs with hj
88    · simp [hj]
89    · simp
90  simp only [map_smul, he]
91  simp
92 
93def rootThermalCutoff (p : Fin d → ℝ) (R : ℕ) : TraceClass (RootFock d) :=
94  frameMatrix (cutoffNumberFrame d R)
95    (Matrix.diagonal (fun i => (bosonicOccupationWeight p (cutoffOccupation d R i).val : ℂ)))
96 
97theorem rootThermalCutoff_error (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) (hord : StrictAnti p) (R : ℕ) :
98    ‖rootThermalState p - rootThermalCutoff p R‖ =
99      1 - ∑ k : HeightOccupation d R, bosonicOccupationWeight p k.val := by
100  rw [rootThermalCutoff, spectralFrame_residual_norm _ (rootThermalState_nonneg p hp hord) _
101    (cutoffNumberFrame_orthonormal d R) _ (fun i => rootThermalState_eigen p hp hord _),
102    rootThermalState_trace p hp hord, Complex.one_re]
103  congr 1
104  exact (cutoffOccupation d R).sum_comp (fun k => bosonicOccupationWeight p k.val)
105 
106theorem rootThermalCutoff_error_tendsto_zero (p : Fin d → ℝ) (hp : ∀ a, 0 < p a)
107    (hord : StrictAnti p) : Tendsto (fun R => ‖rootThermalState p - rootThermalCutoff p R‖) atTop (𝓝 0) := by
108  simp_rw [rootThermalCutoff_error p hp hord]
109  have ht := heightOccupation_sum_tendsto _ (bosonicOccupationWeight_hasSum p hp hord).summable
110  rw [(bosonicOccupationWeight_hasSum p hp hord).tsum_eq] at ht
111  simpa only [sub_self] using (tendsto_const_nhds (x := (1 : ℝ))).sub ht
112 
113end Cloning.TensorLie