Offline · exact source
Exact Lean source

TensorGibbsStateLimit

formalization/Cloning/TensorGibbsStateLimit.lean

Source hash: 4d4c96f41a393f3e68fb7f515fe0c34a2be8d0c45e348204f006f08a0783c090

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.TensorGibbsStateTransfer
2 
3/-! Moving-spectrum centered sector LAN follows from the derived partition
4normalization and actual finite-frame channel action. -/
5noncomputable section
6open scoped BigOperators Topology
7open Filter
8namespace Cloning.TensorLie
9open Cloning.PCT Cloning.InfiniteTraceClass Cloning.TensorLAN
10set_option maxHeartbeats 1200000
11set_option backward.isDefEq.respectTransparency false
12variable {d : ℕ}
13local instance (n d : ℕ) : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
14  (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
15variable (mu : ℕ → Fin d → ℕ) (hmu : ∀ N, Antitone (mu N))
16    (δ : ℕ → ℝ) (hδ : Tendsto δ atTop atTop)
17    (hgap : ∀ᶠ N in atTop, ∀ a : PositiveRoot d,
18      δ N ≤ (mu N a.val.1 : ℝ) - mu N a.val.2)
19    (pN : ℕ → Fin d → ℝ) (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) (hord : StrictAnti p)
20    (hlim : ∀ a, Tendsto (fun N => pN N a) atTop (𝓝 (p a)))
21 
22include δ hδ hgap hp hord hlim
23 
24theorem sectorOccupationWeight_tendsto (k : PositiveRoot d → ℕ) :
25    Tendsto (fun N => sectorOccupationWeight (partitionHighestTensor (mu N) (hmu N)) (mu N)
26      (partitionHighestTensor_cartan (mu N) (hmu N))
27      (partitionHighestTensor_raising_zero (mu N) (hmu N)) (pN N) k)
28      atTop (𝓝 (bosonicOccupationWeight p k)) := by
29  have hz := sectorPartitionFunction_div_highest_tendsto mu hmu δ hδ hgap pN p hp hord hlim
30  have hc : (∏ r : PositiveRoot d, (1-rootBoltzmann p r)⁻¹) ≠ 0 :=
31    Finset.prod_ne_zero_iff.mpr (fun r _ => inv_ne_zero (sub_pos.mpr (rootBoltzmann_lt_one p hp hord r)).ne')
32  have hi := hz.inv₀ hc
33  simp only [inv_div, Finset.prod_inv_distrib, inv_inv] at hi
34  have hw : Tendsto (fun N => wordBoltzmann (pN N) (canonicalWord k)) atTop
35      (𝓝 (wordBoltzmann p (canonicalWord k))) := by
36    simp only [wordBoltzmann_canonicalWord]
37    exact tendsto_finset_prod _ (fun r _ => (rootBoltzmann_tendsto pN p hp hlim r).pow (k r))
38  exact hi.mul hw
39 
40theorem gibbsThermalCoefficientError_tendsto_zero (R : ℕ) :
41    Tendsto (fun N => gibbsThermalCoefficientError (partitionHighestTensor (mu N) (hmu N)) (mu N)
42      (partitionHighestTensor_cartan (mu N) (hmu N))
43      (partitionHighestTensor_raising_zero (mu N) (hmu N)) (pN N) p R) atTop (𝓝 0) := by
44  have ht := tendsto_finset_sum (Finset.univ : Finset (CutoffIndex d R)) (fun i _ =>
45    ((sectorOccupationWeight_tendsto mu hmu δ hδ hgap pN p hp hord hlim
46      (cutoffOccupation d R i).val).sub (tendsto_const_nhds
47        (x := bosonicOccupationWeight p (cutoffOccupation d R i).val))).abs)
48  simpa only [sub_self, abs_zero, Finset.sum_const_zero] using ht
49 
50theorem sectorGibbsCutoff_error_tendsto_thermalTail (R : ℕ) :
51    Tendsto (fun N => ‖sectorGibbsDensity (partitionHighestTensor (mu N) (hmu N)) (mu N)
52        (partitionHighestTensor_cartan (mu N) (hmu N))
53        (partitionHighestTensor_raising_zero (mu N) (hmu N)) (pN N) -
54      sectorGibbsCutoff (partitionHighestTensor (mu N) (hmu N)) (mu N)
55        (partitionHighestTensor_cartan (mu N) (hmu N))
56        (partitionHighestTensor_raising_zero (mu N) (hmu N)) (pN N) R‖) atTop
57      (𝓝 ‖rootThermalState p - rootThermalCutoff p R‖) := by
58  have hpN : ∀ᶠ N in atTop, ∀ a, 0 < pN N a :=
59    Filter.eventually_all.mpr (fun a => (hlim a).eventually (eventually_gt_nhds (hp a)))
60  have ht := (tendsto_const_nhds (x := (1 : ℝ))).sub (tendsto_finset_sum (Finset.univ : Finset (CutoffIndex d R))
61    (fun i _ => sectorOccupationWeight_tendsto mu hmu δ hδ hgap pN p hp hord hlim
62      (cutoffOccupation d R i).val))
63  have he : (1 : ℝ) - ∑ i : CutoffIndex d R, bosonicOccupationWeight p (cutoffOccupation d R i).val =
64      ‖rootThermalState p - rootThermalCutoff p R‖ := by
65    rw [rootThermalCutoff_error p hp hord]
66    congr 1
67    exact (cutoffOccupation d R).sum_comp (fun k => bosonicOccupationWeight p k.val)
68  rw [he] at ht
69  apply ht.congr'
70  filter_upwards [hpN, partition_eventually_CutoffReady mu hmu δ hδ hgap R] with N hN hr
71  exact (sectorGibbsCutoff_error _ _ _ _ (partitionHighestTensor_norm _ _) _ hN R hr.2).symm
72 
73theorem gibbsThermalCutoffError_tendsto (R : ℕ) :
74    Tendsto (fun N => gibbsThermalCutoffError (partitionHighestTensor (mu N) (hmu N)) (mu N)
75      (partitionHighestTensor_cartan (mu N) (hmu N))
76      (partitionHighestTensor_raising_zero (mu N) (hmu N)) (pN N) p R) atTop
77      (𝓝 (2 * ‖rootThermalState p - rootThermalCutoff p R‖)) := by
78  have ht := ((sectorGibbsCutoff_error_tendsto_thermalTail mu hmu δ hδ hgap pN p hp hord hlim R).add
79    (gibbsThermalCoefficientError_tendsto_zero mu hmu δ hδ hgap pN p hp hord hlim R)).add
80      (tendsto_const_nhds (x := ‖rootThermalState p - rootThermalCutoff p R‖))
81  simpa only [gibbsThermalCutoffError, add_zero, two_mul] using ht
82 
83/-- Given any accuracy, a fixed genuine cutoff works eventually in both
84channel directions; it can be required to exceed any prescribed cutoff. -/
85theorem exists_cutoff_eventually_twoWay_gibbs (ε : ℝ) (hε : 0 < ε) (Rmin : ℕ) :
86    ∃ R ≥ Rmin, ∀ᶠ N in atTop,
87      ‖(sectorToFockTotal (partitionHighestTensor (mu N) (hmu N)) (mu N) R).toLinearMap
88        (sectorGibbsDensity (partitionHighestTensor (mu N) (hmu N)) (mu N)
89          (partitionHighestTensor_cartan (mu N) (hmu N))
90          (partitionHighestTensor_raising_zero (mu N) (hmu N)) (pN N)) - rootThermalState p‖ < ε ∧
91      ‖(fockToSectorTotal (partitionHighestTensor (mu N) (hmu N)) (mu N) R
92          (partitionHighestTensor_norm _ _)).toLinearMap (rootThermalState p) -
93        sectorGibbsDensity (partitionHighestTensor (mu N) (hmu N)) (mu N)
94          (partitionHighestTensor_cartan (mu N) (hmu N))
95          (partitionHighestTensor_raising_zero (mu N) (hmu N)) (pN N)‖ < ε := by
96  have ht := (rootThermalCutoff_error_tendsto_zero p hp hord).eventually
97    (eventually_lt_nhds (show (0 : ℝ) < ε/2 by positivity))
98  obtain ⟨R, hR, hsmall⟩ := ((eventually_ge_atTop Rmin).and ht).exists
99  refine ⟨R,hR,?_⟩
100  have hb := (gibbsThermalCutoffError_tendsto mu hmu δ hδ hgap pN p hp hord hlim R).eventually
101    (eventually_lt_nhds (show 2 * ‖rootThermalState p - rootThermalCutoff p R‖ < ε by linarith))
102  have hpN : ∀ᶠ N in atTop, ∀ a, 0 < pN N a :=
103    Filter.eventually_all.mpr (fun a => (hlim a).eventually (eventually_gt_nhds (hp a)))
104  filter_upwards [hb, hpN, partition_eventually_CutoffReady mu hmu δ hδ hgap R] with N hN hn hr
105  exact ⟨(sectorToFockTotal_gibbs_error _ _ _ _ (partitionHighestTensor_norm _ _) _ _ hn R hr).trans_lt hN,
106    (fockToSectorTotal_gibbs_error _ _ _ _ (partitionHighestTensor_norm _ _) _ _ hn hp hord R hr).trans_lt hN⟩
107 
108end Cloning.TensorLie