Offline · exact source
Exact Lean source

TensorCartanStateFidelity

formalization/Cloning/TensorCartanStateFidelity.lean

Source hash: 5ea6020bc32425b21dc74176aa02518cf966214407ebdd3b5e795fa933dd3c56

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.TensorCartanStateLimit
2import Cloning.TensorCartanStateThermalFidelity
3 
4/-! Genuine Cartan sector fidelity convergence with all representation,
5coefficient, dimension, and tail obligations discharged. -/
6noncomputable section
7open scoped BigOperators ComplexOrder InnerProductSpace Topology
8open Filter
9namespace Cloning.TensorLie
10open Cloning.PCT Cloning.TensorLAN Cloning.InfiniteTraceClass Cloning.Hybrid
11open Cloning.InfiniteFidelityCorner
12set_option maxHeartbeats 1800000
13set_option backward.isDefEq.respectTransparency false
14variable {d : ℕ}
15local instance (n d : ℕ) : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
16  (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
17 
18def partitionGibbsPositive (mu : Fin d → ℕ) (hmu : Antitone mu)
19    (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) :
20    PositiveTraceClass (cyclicSector (partitionHighestTensor mu hmu)) :=
21  ⟨sectorGibbsDensity (partitionHighestTensor mu hmu) mu
22    (partitionHighestTensor_cartan mu hmu) (partitionHighestTensor_raising_zero mu hmu) p,
23    sectorGibbsDensity_nonneg _ _ _ _ (partitionHighestTensor_norm mu hmu) p hp⟩
24 
25def cartanGibbsPositive (mu nu : Fin d → ℕ) (hmu : Antitone mu) (hnu : Antitone nu)
26    (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) :
27    PositiveTraceClass (cyclicSector (partitionHighestTensor _ (sumPartition_antitone mu nu hmu hnu))) :=
28  ⟨cartanGibbsOutput mu nu hmu hnu p, cartanGibbsOutput_nonneg mu nu hmu hnu p hp⟩
29 
30theorem partitionGibbsPositive_norm (mu : Fin d → ℕ) (hmu : Antitone mu)
31    (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) : ‖(partitionGibbsPositive mu hmu p hp).1‖ = 1 := by
32  rw [TraceClass.norm_eq_trace_re_of_nonneg _ (partitionGibbsPositive mu hmu p hp).2]
33  change (traceCLM (sectorGibbsDensity (partitionHighestTensor mu hmu) mu
34    (partitionHighestTensor_cartan mu hmu) (partitionHighestTensor_raising_zero mu hmu) p)).re = 1
35  rw [sectorGibbsDensity_trace _ _ _ _ (partitionHighestTensor_norm mu hmu) p hp]
36  rfl
37 
38theorem cartanGibbsPositive_norm (mu nu : Fin d → ℕ) (hmu : Antitone mu) (hnu : Antitone nu)
39    (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) : ‖(cartanGibbsPositive mu nu hmu hnu p hp).1‖ = 1 := by
40  rw [TraceClass.norm_eq_trace_re_of_nonneg _ (cartanGibbsPositive mu nu hmu hnu p hp).2]
41  change (traceCLM (cartanGibbsOutput mu nu hmu hnu p)).re = 1
42  rw [cartanGibbsOutput_trace mu nu hmu hnu p hp]
43  rfl
44 
45theorem partitionGibbsPositive_cutoff_coefficient_tendsto
46    (mu : ℕ → Fin d → ℕ) (hmu : ∀ N, Antitone (mu N))
47    (δ : ℕ → ℝ) (hδ : Tendsto δ atTop atTop)
48    (hgap : ∀ᶠ N in atTop, ∀ a : PositiveRoot d, δ N ≤ rootGap (mu N) a)
49    (pN : ℕ → Fin d → ℝ) (hpN : ∀ N a, 0 < pN N a)
50    (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) (hord : StrictAnti p)
51    (hlim : ∀ a, Tendsto (fun N => pN N a) atTop (𝓝 (p a)))
52    (R : ℕ) (i j : CutoffIndex d R) :
53    Tendsto (fun N => ⟪cutoffSectorFrame (partitionHighestTensor (mu N) (hmu N)) (mu N) R i,
54      (partitionGibbsPositive (mu N) (hmu N) (pN N) (hpN N)).1.1
55        (cutoffSectorFrame (partitionHighestTensor (mu N) (hmu N)) (mu N) R j)⟫_ℂ)
56      atTop (𝓝 ⟪cutoffNumberFrame d R i, (rootThermalState p).1 (cutoffNumberFrame d R j)⟫_ℂ) := by
57  rw [rootThermalState_cutoff_coefficient p hp hord]
58  have he : ∀ᶠ N in atTop,
59      ⟪cutoffSectorFrame (partitionHighestTensor (mu N) (hmu N)) (mu N) R i,
60        (partitionGibbsPositive (mu N) (hmu N) (pN N) (hpN N)).1.1
61          (cutoffSectorFrame (partitionHighestTensor (mu N) (hmu N)) (mu N) R j)⟫_ℂ =
62      if i = j then (sectorOccupationWeight (partitionHighestTensor (mu N) (hmu N)) (mu N)
63        (partitionHighestTensor_cartan (mu N) (hmu N))
64        (partitionHighestTensor_raising_zero (mu N) (hmu N)) (pN N)
65        (cutoffOccupation d R i).val : ℂ) else 0 := by
66    filter_upwards [partition_eventually_CutoffReady mu hmu δ hδ hgap R] with N hN
67    change ⟪_, (sectorGibbsDensity _ _ _ _ _).1 _⟫_ℂ = _
68    rw [sectorGibbsDensity_cutoffFrame (partitionHighestTensor (mu N) (hmu N)) (mu N)
69      (partitionHighestTensor_cartan (mu N) (hmu N))
70      (partitionHighestTensor_raising_zero (mu N) (hmu N)) (pN N) (hpN N) R j, inner_smul_right,
71      orthonormal_iff_ite.mp (cutoffSectorFrame_orthonormal _ _ R hN.2)]
72    split_ifs with hij
73    · subst j; rw [mul_one]
74    · rw [mul_zero]
75  apply Filter.Tendsto.congr' (he.mono (fun N hN => hN.symm))
76  split_ifs with hij
77  · exact Complex.continuous_ofReal.continuousAt.tendsto.comp
78      (sectorOccupationWeight_tendsto mu hmu δ hδ hgap pN p hp hord hlim (cutoffOccupation d R i).val)
79  · exact tendsto_const_nhds
80 
81/-- The actual physical Cartan channel has the claimed simple-spectrum sector
82fidelity limit. No asymptotic output, dimension, frame, or tail premise remains. -/
83theorem cartanGibbsPositive_rootFidelity_tendsto
84    (mu nu : ℕ → Fin d → ℕ) (hmu : ∀ N, Antitone (mu N)) (hnu : ∀ N, Antitone (nu N))
85    (δmu δnu : ℕ → ℝ) (hδmu : Tendsto δmu atTop atTop) (hδnu : Tendsto δnu atTop atTop)
86    (hmuGap : ∀ᶠ N in atTop, ∀ a : PositiveRoot d, δmu N ≤ rootGap (mu N) a)
87    (hnuGap : ∀ᶠ N in atTop, ∀ a : PositiveRoot d, δnu N ≤ rootGap (nu N) a)
88    (t : PositiveRoot d → ℝ) (ht0 : ∀ a, 0 < t a) (ht1 : ∀ a, t a ≤ 1)
89    (ht : ∀ a, Tendsto (fun N => rootFraction (mu N) (nu N) a) atTop (𝓝 (t a)))
90    (pN : ℕ → Fin d → ℝ) (hpN : ∀ N a, 0 < pN N a)
91    (p : Fin d → ℝ) (hp : ∀ a, 0 < p a) (hord : StrictAnti p)
92    (hlim : ∀ a, Tendsto (fun N => pN N a) atTop (𝓝 (p a))) :
93    Tendsto (fun N => (cartanGibbsPositive (mu N) (nu N) (hmu N) (hnu N) (pN N) (hpN N)).rootFidelity
94      (partitionGibbsPositive (fun a => mu N a + nu N a)
95        (sumPartition_antitone (mu N) (nu N) (hmu N) (hnu N)) (pN N) (hpN N))) atTop
96      (𝓝 (∏ a : PositiveRoot d, Cloning.Thermal.fidelity
97        (amplifiedRootParameter t (rootBoltzmann p) a) (rootBoltzmann p a))) := by
98  let rho N := fun a => mu N a + nu N a
99  have hrho N : Antitone (rho N) := sumPartition_antitone (mu N) (nu N) (hmu N) (hnu N)
100  have hsumGap : ∀ᶠ N in atTop, ∀ a : PositiveRoot d, δmu N ≤ rootGap (rho N) a := by
101    filter_upwards [hmuGap] with N hN a
102    have hn : (nu N a.val.2 : ℝ) ≤ nu N a.val.1 := by exact_mod_cast hnu N a.property.le
103    have ha := hN a
104    simp only [rootGap, rho, Nat.cast_add] at ha ⊢
105    linarith
106  have hq0 : ∀ a, 0 ≤ rootBoltzmann p a := fun a => (div_pos (hp _) (hp _)).le
107  have hq1 : ∀ a, rootBoltzmann p a < 1 := rootBoltzmann_lt_one p hp hord
108  let A N := cartanGibbsPositive (mu N) (nu N) (hmu N) (hnu N) (pN N) (hpN N)
109  let B N := partitionGibbsPositive (rho N) (hrho N) (pN N) (hpN N)
110  let C := cartanThermalPositive t (rootBoltzmann p) ht0 ht1 hq0 hq1
111  let D := rootThermalPositive p hp hord
112  have hf := tendsto_rootFidelity_of_corner_coefficients (fun R => CutoffIndex d R) A B C D
113    (fun N => cartanGibbsPositive_norm _ _ _ _ _ _)
114    (fun N => partitionGibbsPositive_norm _ _ _ _)
115    (cartanThermalPositive_norm _ _ _ _ _ _) (rootThermalPositive_norm _ _ _)
116    (fun N R => cutoffSectorFrame (partitionHighestTensor (rho N) (hrho N)) (rho N) R)
117    (cutoffNumberFrame d)
118    (fun R => (partition_eventually_CutoffReady rho hrho δmu hδmu hsumGap R).mono
119      (fun N hN => cutoffSectorFrame_orthonormal _ _ R hN.2))
120    (cutoffNumberFrame_orthonormal d)
121    (fun R i j => ?_) (fun R i j => ?_)
122    (cartanThermalOutput_cutoff_mass_tendsto _ _ ht0 ht1 hq0 hq1)
123    (rootThermalState_cutoff_mass_tendsto p hp hord)
124  · simpa only [A, B, C, D, cartanThermalPositive_rootFidelity] using hf
125  · change Tendsto _ atTop (𝓝 ⟪_, (cartanThermalOutput t (rootBoltzmann p)).1 _⟫_ℂ)
126    rw [cartanThermalOutput_cutoff_coefficient t (rootBoltzmann p) ht0 ht1 hq0 hq1]
127    exact cartanGibbsOutput_cutoff_coefficient_tendsto mu nu hmu hnu δmu δnu hδmu hδnu
128      hmuGap hnuGap t (fun a => (ht0 a).le) ht1 ht pN p hp hord hlim R i j
129  · exact partitionGibbsPositive_cutoff_coefficient_tendsto rho hrho δmu hδmu hsumGap
130      pN hpN p hp hord hlim R i j
131 
132end Cloning.TensorLie