Exact Lean source
WernerAsymptotics
formalization/Cloning/WernerAsymptotics.lean
Source hash: 7fdd46726b3d0a3118c1ac643c331d70f00994fa94467f52bd6d37546ba4175e
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.
In the dependency map: Purify–clone–trace
Paper ↔ Lean correspondence in this module
Declarations in this module
definition
Cloning.WernerAsymptotics.coefficienttheorem Cloning.WernerAsymptotics.coefficient_eq_wernerWeighttheorem Cloning.WernerAsymptotics.affine_ratio_tendstotheorem Cloning.WernerAsymptotics.difference_tendsto_atToptheorem Cloning.WernerAsymptotics.eventually_add_letheorem Cloning.WernerAsymptotics.output_tendsto_atToptheorem Cloning.WernerAsymptotics.coefficient_zero_zerotheorem Cloning.WernerAsymptotics.coefficient_succ_modestheorem Cloning.WernerAsymptotics.coefficient_succ_totaltheorem Cloning.WernerAsymptotics.coefficient_vacuum_tendstotheorem Cloning.WernerAsymptotics.coefficient_tendstodefinition Cloning.WernerAsymptotics.thermalLawtheorem Cloning.WernerAsymptotics.thermalLaw_eqtheorem Cloning.WernerAsymptotics.thermalLaw_nonnegtheorem Cloning.WernerAsymptotics.thermalLaw_hasSumtheorem Cloning.WernerAsymptotics.occupationLaw_tendstotheorem Cloning.WernerAsymptotics.occupationLaw_l1_tendstotheorem Cloning.WernerAsymptotics.werner_thermal_limit1import Cloning.Occupation
2import Cloning.CountableScheffe
3import Cloning.WernerNormalization
4import Mathlib.Analysis.SpecificLimits.Basic
5import Mathlib.Topology.Algebra.Order.Field
6import Mathlib.Tactic.FieldSimp
7import Mathlib.Tactic.Ring
8
9/-!
10# Werner occupation asymptotics
11
12The binomial occupation coefficients are shown to converge from the actual
13cloning-ratio hypothesis. The asymptotic probability law is not an assumption.
14-/
15
16noncomputable section
17open scoped BigOperators Topology
18open Filter
19
20namespace Cloning.WernerAsymptotics
21
22/-- The coefficient for `s` excitation modes (ambient dimension `s+1`). -/
23def coefficient (n m s t : ℕ) : ℝ :=
24 ((m - t).choose n : ℝ) / ((m + s).choose (n + s) : ℝ)
25
26theorem coefficient_eq_wernerWeight (n m s t : ℕ) :
27 coefficient n m s t = Occupation.wernerWeight n m (s + 1) t := by
28 simp [coefficient, Occupation.wernerWeight, Nat.add_sub_assoc]
29
30/-- Normalizing affine functions by `n` reduces every fixed-shift ratio to
31the given cloning ratio. -/
32theorem affine_ratio_tendsto (m : ℕ → ℕ) {γ : ℝ}
33 (h : Tendsto (fun n ↦ (m n : ℝ) / n) atTop (𝓝 γ))
34 (a b c d e f : ℝ) (hden : d * γ + e ≠ 0) :
35 Tendsto (fun n ↦ (a * (m n : ℝ) + b * n + c) /
36 (d * (m n : ℝ) + e * n + f)) atTop (𝓝 ((a * γ + b) / (d * γ + e))) := by
37 have hn : Tendsto (fun n : ℕ ↦ (n : ℝ)⁻¹) atTop (𝓝 0) :=
38 tendsto_inv_atTop_nhds_zero_nat
39 have hnum : Tendsto (fun n ↦ a * ((m n : ℝ) / n) + b + c * (n : ℝ)⁻¹)
40 atTop (𝓝 (a * γ + b)) := by
41 simpa using ((h.const_mul a).add_const b).add (hn.const_mul c)
42 have hden' : Tendsto (fun n ↦ d * ((m n : ℝ) / n) + e + f * (n : ℝ)⁻¹)
43 atTop (𝓝 (d * γ + e)) := by
44 simpa using ((h.const_mul d).add_const e).add (hn.const_mul f)
45 apply (hnum.div hden' hden).congr'
46 filter_upwards [eventually_ge_atTop 1] with n hn
47 have hn0 : (n : ℝ) ≠ 0 := by exact_mod_cast (by omega : n ≠ 0)
48 dsimp
49 field_simp
50
51theorem difference_tendsto_atTop (m : ℕ → ℕ) {γ : ℝ} (hγ : 1 < γ)
52 (h : Tendsto (fun n ↦ (m n : ℝ) / n) atTop (𝓝 γ)) :
53 Tendsto (fun n ↦ (m n : ℝ) - n) atTop atTop := by
54 have hprod := (h.sub_const 1).pos_mul_atTop (sub_pos.mpr hγ)
55 (tendsto_natCast_atTop_atTop (R := ℝ))
56 apply hprod.congr'
57 filter_upwards [eventually_ge_atTop 1] with n hn
58 have hn0 : (n : ℝ) ≠ 0 := by exact_mod_cast (by omega : n ≠ 0)
59 field_simp
60
61/-- Every fixed occupation is eventually inside the true finite support. -/
62theorem eventually_add_le (m : ℕ → ℕ) {γ : ℝ} (hγ : 1 < γ)
63 (h : Tendsto (fun n ↦ (m n : ℝ) / n) atTop (𝓝 γ)) (t : ℕ) :
64 ∀ᶠ n in atTop, n + t ≤ m n := by
65 filter_upwards [(difference_tendsto_atTop m hγ h).eventually_ge_atTop (t : ℝ)] with n hn
66 have ht : (n : ℝ) + t ≤ m n := by linarith
67 exact_mod_cast ht
68
69theorem output_tendsto_atTop (m : ℕ → ℕ) {γ : ℝ} (hγ : 1 < γ)
70 (h : Tendsto (fun n ↦ (m n : ℝ) / n) atTop (𝓝 γ)) :
71 Tendsto m atTop atTop := by
72 apply tendsto_atTop_mono' _ _ tendsto_id
73 filter_upwards [eventually_add_le m hγ h 0] with n hn
74 simpa using hn
75
76theorem coefficient_zero_zero (n m : ℕ) (hnm : n ≤ m) :
77 coefficient n m 0 0 = 1 := by
78 have hc : (m.choose n : ℝ) ≠ 0 := ne_of_gt (Nat.cast_pos.mpr (Nat.choose_pos hnm))
79 simp [coefficient, hc]
80
81theorem coefficient_succ_modes (n m s t : ℕ) (hnm : n ≤ m) :
82 coefficient n m (s + 1) t = coefficient n m s t *
83 ((n : ℝ) + s + 1) / ((m : ℝ) + s + 1) := by
84 have hc : ((m + s).choose (n + s) : ℝ) ≠ 0 :=
85 ne_of_gt (Nat.cast_pos.mpr (Nat.choose_pos (by omega)))
86 have hc' : ((m + (s + 1)).choose (n + (s + 1)) : ℝ) ≠ 0 :=
87 ne_of_gt (Nat.cast_pos.mpr (Nat.choose_pos (by omega)))
88 have hm : (m : ℝ) + s + 1 ≠ 0 := by positivity
89 have hchoose : ((m : ℝ) + s + 1) * ((m + s).choose (n + s) : ℝ) =
90 ((m + (s + 1)).choose (n + (s + 1)) : ℝ) * ((n : ℝ) + s + 1) := by
91 exact_mod_cast Nat.add_one_mul_choose_eq (m + s) (n + s)
92 unfold coefficient
93 field_simp
94 nlinarith [hchoose]
95
96theorem coefficient_succ_total (n m s t : ℕ) (ht : n + t + 1 ≤ m) :
97 coefficient n m s (t + 1) = coefficient n m s t *
98 ((m : ℝ) - t - n) / ((m : ℝ) - t) := by
99 have hnm : n ≤ m := by omega
100 have hc : ((m + s).choose (n + s) : ℝ) ≠ 0 :=
101 ne_of_gt (Nat.cast_pos.mpr (Nat.choose_pos (by omega)))
102 have hm : (m : ℝ) - t ≠ 0 := by
103 have hmt : (t : ℝ) < m := by exact_mod_cast (by omega : t < m)
104 linarith
105 have hchoose := Nat.choose_mul_succ_eq (m - (t + 1)) n
106 have hsucc : m - (t + 1) + 1 = m - t := by omega
107 rw [hsucc] at hchoose
108 have hchoose' : ((m - (t + 1)).choose n : ℝ) * ((m : ℝ) - t) =
109 ((m - t).choose n : ℝ) * ((m : ℝ) - t - n) := by
110 have hcast : ((m - t : ℕ) : ℝ) = (m : ℝ) - t := Nat.cast_sub (by omega)
111 have hcast' : ((m - t - n : ℕ) : ℝ) = (m : ℝ) - t - n := by
112 rw [Nat.cast_sub (by omega), hcast]
113 simpa only [Nat.cast_mul, hcast, hcast'] using congrArg (Nat.cast (R := ℝ)) hchoose
114 unfold coefficient
115 field_simp
116 nlinarith [hchoose']
117
118/-- The vacuum coefficient converges to the thermal vacuum probability. -/
119theorem coefficient_vacuum_tendsto (m : ℕ → ℕ) {γ : ℝ} (hγ : 1 < γ)
120 (h : Tendsto (fun n ↦ (m n : ℝ) / n) atTop (𝓝 γ)) (s : ℕ) :
121 Tendsto (fun n ↦ coefficient n (m n) s 0) atTop (𝓝 ((1 / γ) ^ s)) := by
122 have hγ0 : γ ≠ 0 := by linarith
123 induction s with
124 | zero =>
125 apply (tendsto_const_nhds (x := (1 : ℝ))).congr'
126 filter_upwards [eventually_add_le m hγ h 0] with n hn
127 simpa using (coefficient_zero_zero n (m n) (by omega)).symm
128 | succ s ih =>
129 have hratio : Tendsto (fun n : ℕ ↦ ((n : ℝ) + s + 1) / ((m n : ℝ) + s + 1))
130 atTop (𝓝 (1 / γ)) := by
131 simpa only [zero_mul, zero_add, one_mul, mul_zero, add_zero, add_assoc] using
132 affine_ratio_tendsto m h 0 1 ((s : ℝ) + 1) 1 0 ((s : ℝ) + 1) (by simpa using hγ0)
133 have hmul := ih.mul hratio
134 rw [← pow_succ] at hmul
135 apply hmul.congr'
136 filter_upwards [eventually_add_le m hγ h 0] with n hn
137 rw [coefficient_succ_modes n (m n) s 0 (by omega)]
138 simp only [mul_div_assoc]
139
140/-- The actual Werner binomial ratio tends to a product-geometric coefficient. -/
141theorem coefficient_tendsto (m : ℕ → ℕ) {γ : ℝ} (hγ : 1 < γ)
142 (h : Tendsto (fun n ↦ (m n : ℝ) / n) atTop (𝓝 γ)) (s t : ℕ) :
143 Tendsto (fun n ↦ coefficient n (m n) s t) atTop
144 (𝓝 ((1 / γ) ^ s * ((γ - 1) / γ) ^ t)) := by
145 have hγ0 : γ ≠ 0 := by linarith
146 induction t with
147 | zero => simpa using coefficient_vacuum_tendsto m hγ h s
148 | succ t ih =>
149 have hratio : Tendsto (fun n ↦ ((m n : ℝ) - t - n) / ((m n : ℝ) - t))
150 atTop (𝓝 ((γ - 1) / γ)) := by
151 convert affine_ratio_tendsto m h 1 (-1) (-(t : ℝ)) 1 0 (-(t : ℝ))
152 (by simpa using hγ0) using 1 <;> simp only [one_mul, zero_mul, add_zero]
153 · ext n; ring
154 · simp only [sub_eq_add_neg]
155 have hmul := ih.mul hratio
156 have heq : (1 / γ) ^ s * ((γ - 1) / γ) ^ t * ((γ - 1) / γ) =
157 (1 / γ) ^ s * ((γ - 1) / γ) ^ (t + 1) := by rw [pow_succ, mul_assoc]
158 rw [heq] at hmul
159 apply hmul.congr'
160 filter_upwards [eventually_add_le m hγ h (t + 1)] with n hn
161 rw [coefficient_succ_total n (m n) s t (by omega)]
162 simp only [mul_div_assoc]
163
164/-- The limiting normalized product of geometric occupation laws. -/
165def thermalLaw (γ : ℝ) (s : ℕ) (k : Fin s → ℕ) : ℝ :=
166 ∏ i, Thermal.geometric ((γ - 1) / γ) (k i)
167
168theorem thermalLaw_eq (γ : ℝ) (hγ : γ ≠ 0) (s : ℕ) (k : Fin s → ℕ) :
169 thermalLaw γ s k = (1 / γ) ^ s * ((γ - 1) / γ) ^ (∑ i, k i) := by
170 have hsub : 1 - (γ - 1) / γ = 1 / γ := by field_simp; ring
171 simp only [thermalLaw, Thermal.geometric, hsub, Finset.prod_mul_distrib,
172 Finset.prod_const, Finset.card_univ, Fintype.card_fin,
173 Finset.prod_pow_eq_pow_sum]
174
175theorem thermalLaw_nonneg {γ : ℝ} (hγ : 1 < γ) (s : ℕ) (k : Fin s → ℕ) :
176 0 ≤ thermalLaw γ s k := by
177 have hγpos : 0 < γ := by linarith
178 apply Finset.prod_nonneg
179 intro i hi
180 apply Thermal.geometric_nonneg (div_nonneg (by linarith) hγpos.le)
181 exact (div_le_one hγpos).mpr (by linarith)
182
183theorem thermalLaw_hasSum {γ : ℝ} (hγ : 1 < γ) (s : ℕ) :
184 HasSum (thermalLaw γ s) 1 := by
185 have hγpos : 0 < γ := by linarith
186 apply Thermal.multimode_geometric_hasSum
187 · intro i; exact div_nonneg (by linarith) hγpos.le
188 · intro i; exact (div_lt_one hγpos).mpr (by linarith)
189
190/-- The padded finite-dimensional Werner occupation law has the claimed
191pointwise thermal limit, derived solely from the cloning-ratio limit. -/
192theorem occupationLaw_tendsto (m : ℕ → ℕ) {γ : ℝ} (hγ : 1 < γ)
193 (h : Tendsto (fun n ↦ (m n : ℝ) / n) atTop (𝓝 γ))
194 (s : ℕ) (k : Fin s → ℕ) :
195 Tendsto (fun n ↦ WernerNormalization.occupationLaw n (m n) s k)
196 atTop (𝓝 (thermalLaw γ s k)) := by
197 rw [thermalLaw_eq γ (by linarith)]
198 apply (coefficient_tendsto m hγ h s (∑ i, k i)).congr'
199 filter_upwards [eventually_add_le m hγ h (∑ i, k i)] with n hn
200 rw [WernerNormalization.occupationLaw, if_pos (by omega)]
201 exact coefficient_eq_wernerWeight n (m n) s (∑ i, k i)
202
203/-- The Werner occupation law converges in `ℓ¹` to the normalized multimode
204thermal law. Both pointwise convergence and normalization are proved here;
205no limit or probability-normalization hypothesis is supplied by the caller.
206The cloning inequality `n ≤ m n` is needed only eventually and is derived. -/
207theorem occupationLaw_l1_tendsto (m : ℕ → ℕ) {γ : ℝ} (hγ : 1 < γ)
208 (h : Tendsto (fun n ↦ (m n : ℝ) / n) atTop (𝓝 γ))
209 (s : ℕ) (hs : 1 ≤ s) :
210 Tendsto (fun n ↦ CountableScheffe.l1Distance
211 (WernerNormalization.occupationLaw n (m n) s) (thermalLaw γ s))
212 atTop (𝓝 0) := by
213 let p : ℕ → (Fin s → ℕ) → ℝ := fun n k ↦
214 if n ≤ m n then WernerNormalization.occupationLaw n (m n) s k
215 else thermalLaw γ s k
216 have hevent : ∀ᶠ n in atTop, n ≤ m n := by
217 simpa only [Nat.add_zero] using eventually_add_le m hγ h 0
218 have hp : ∀ n k, 0 ≤ p n k := by
219 intro n k
220 dsimp [p]
221 split_ifs
222 · exact WernerNormalization.occupationLaw_nonneg n (m n) s k
223 · exact thermalLaw_nonneg hγ s k
224 have hpsum : ∀ n, HasSum (p n) 1 := by
225 intro n
226 by_cases hn : n ≤ m n
227 · simpa only [p, if_pos hn] using
228 WernerNormalization.occupationLaw_hasSum n (m n) s hn hs
229 · simpa only [p, if_neg hn] using thermalLaw_hasSum hγ s
230 have hpoint : ∀ k, Tendsto (fun n ↦ p n k) atTop (𝓝 (thermalLaw γ s k)) := by
231 intro k
232 apply (occupationLaw_tendsto m hγ h s k).congr'
233 filter_upwards [hevent] with n hn
234 simp only [p, if_pos hn]
235 apply (CountableScheffe.discrete_scheffe p (thermalLaw γ s) hp
236 (thermalLaw_nonneg hγ s) hpsum (thermalLaw_hasSum hγ s) hpoint).congr'
237 filter_upwards [hevent] with n hn
238 simp only [p, if_pos hn]
239
240/-- Ambient-dimension formulation of the Werner--thermal occupation limit. -/
241theorem werner_thermal_limit (D : ℕ) (hD : 2 ≤ D) (m : ℕ → ℕ)
242 {γ : ℝ} (hγ : 1 < γ)
243 (h : Tendsto (fun n ↦ (m n : ℝ) / n) atTop (𝓝 γ)) :
244 Tendsto (fun n ↦ ∑' k : Fin (D - 1) → ℕ,
245 |WernerNormalization.occupationLaw n (m n) (D - 1) k -
246 ∏ i, Thermal.geometric ((γ - 1) / γ) (k i)|) atTop (𝓝 0) :=
247 occupationLaw_l1_tendsto m hγ h (D - 1) (by omega)
248
249end Cloning.WernerAsymptotics