Exact Lean source
UniformCoherent
formalization/Cloning/UniformCoherent.lean
Source hash: 5541c4073f77653968c8befc40b32f5afcce5f548763c89048b0ce2c503b6043
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
theorem
Cloning.ComplexCoherent.moving_exponentialtheorem Cloning.ComplexCoherent.radial_productVector_moving_tendstotheorem Cloning.ComplexCoherent.radial_coherentVector_moving_tendstotheorem Cloning.ComplexCoherent.productVector_coherentVector_norm_eq_radialtheorem Cloning.ComplexCoherent.radial_productVector_uniformtheorem Cloning.ComplexCoherent.productVector_coherentVector_uniform_on_closedBalltheorem Cloning.ComplexCoherent.productVector_tendstoUniformlyOntheorem Cloning.ComplexCoherent.productVector_tendstoUniformlyOn_compacttheorem Cloning.ComplexCoherent.product_projector_distance_letheorem Cloning.ComplexCoherent.product_projector_tendstoUniformlyOntheorem Cloning.ComplexCoherent.occupationChannel_coherent_product_distance_letheorem Cloning.ComplexCoherent.occupationChannel_coherent_product_uniform_on_closedBalltheorem Cloning.ComplexCoherent.occupationChannel_coherent_product_uniform_on_compact1import Cloning.CoherentContinuity
2import Mathlib.Analysis.Calculus.Deriv.Slope
3import Mathlib.Analysis.SpecialFunctions.Log.Deriv
4import Mathlib.Topology.Sequences
5
6/-! Compact-uniform coherent-product limits from moving-parameter probability limits.
7No equicontinuity premise is assumed. -/
8noncomputable section
9open scoped BigOperators Topology
10open Filter
11namespace Cloning.ComplexCoherent
12set_option maxHeartbeats 800000
13set_option backward.isDefEq.respectTransparency false
14
15theorem moving_exponential (L : ℕ → ℕ) (hL : Tendsto L atTop atTop)
16 (t : ℕ → ℝ) {a : ℝ} (ht : Tendsto t atTop (𝓝 a)) (ht0 : ∀ n, 0 ≤ t n) :
17 Tendsto (fun n => (1 + t n / L n) ^ L n) atTop (𝓝 (Real.exp a)) := by
18 let ratio : ℝ → ℝ := Function.update (fun x => Real.log (1 + x) / x) 0 1
19 have hd : HasDerivAt (fun x : ℝ => Real.log (1 + x)) 1 0 := by
20 convert ((hasDerivAt_id (0 : ℝ)).const_add 1).log (by norm_num) using 1
21 norm_num
22 have hc : ContinuousAt ratio 0 := by
23 simpa only [ratio, add_zero, Real.log_one, sub_zero] using hd.continuousAt_div
24 have hz : Tendsto (fun n => t n / L n) atTop (𝓝 0) := by
25 simpa only [Function.comp_def, div_eq_mul_inv, one_div, one_mul, mul_zero] using
26 ht.mul (tendsto_one_div_atTop_nhds_zero_nat.comp hL)
27 have hr : Tendsto (fun n => t n * ratio (t n / L n)) atTop (𝓝 a) := by
28 simpa only [Function.comp_def, ratio, Function.update_self, mul_one] using ht.mul (hc.tendsto.comp hz)
29 have heq : (fun n => t n * ratio (t n / L n)) =ᶠ[atTop]
30 (fun n => (L n : ℝ) * Real.log (1 + t n / L n)) := by
31 filter_upwards [hL.eventually (eventually_ge_atTop 1)] with n hn
32 have hn0 : (L n : ℝ) ≠ 0 := by exact_mod_cast (Nat.ne_of_gt hn)
33 by_cases htn : t n = 0
34 · simp [htn, ratio]
35 · dsimp only [ratio]
36 rw [Function.update_of_ne (div_ne_zero htn hn0)]
37 field_simp
38 have he := (Real.continuous_exp.tendsto a).comp (hr.congr' heq)
39 convert he using 1
40 funext n
41 simp only [Function.comp_def]
42 rw [Real.exp_nat_mul, Real.exp_log (by have := ht0 n; positivity : 0 < 1 + t n / L n)]
43
44private theorem moving_binomialWeight (L : ℕ → ℕ) (hL : Tendsto L atTop atTop)
45 (t : ℕ → ℝ) {a : ℝ} (ht : Tendsto t atTop (𝓝 a)) (ht0 : ∀ n, 0 ≤ t n)
46 (j : ℕ) : Tendsto (fun n => PoissonApproximation.binomialWeight (t n) (L n) j)
47 atTop (𝓝 (PoissonApproximation.poissonWeight a j)) := by
48 have hn := (PoissonApproximation.tendsto_binomial_numerator 1 j).comp hL
49 simp only [one_pow] at hn
50 have hnum := hn.mul (ht.pow j)
51 have hden := moving_exponential L hL t ht ht0
52 have h := hnum.div hden (Real.exp_ne_zero a)
53 convert h using 1
54 · funext n
55 simp only [PoissonApproximation.binomialWeight, Function.comp_def, Pi.div_apply]
56 ring_nf
57 · unfold PoissonApproximation.poissonWeight
58 rw [Real.exp_neg]
59 ring_nf
60
61/-- Binomial number-amplitude vectors converge also when the amplitude changes
62with the sample size, provided it converges to a finite limit. -/
63theorem radial_productVector_moving_tendsto (L : ℕ → ℕ) (hL : Tendsto L atTop atTop)
64 (t : ℕ → ℝ) {a : ℝ} (ht : Tendsto t atTop (𝓝 a)) (ht0 : ∀ n, 0 ≤ t n)
65 (ha : 0 ≤ a) :
66 Tendsto (fun n => CoherentCoefficients.productVector (t n) (ht0 n) (L n)) atTop
67 (𝓝 (CoherentCoefficients.coherentVector a ha)) := by
68 exact CoherentCoefficients.amplitudeVector_tendsto _ _
69 (fun n => PoissonApproximation.binomialWeight_nonneg (ht0 n) (L n))
70 (PoissonApproximation.poissonWeight_nonneg ha)
71 (fun n => PoissonApproximation.binomialWeight_hasSum (ht0 n) (L n))
72 (PoissonApproximation.poissonWeight_hasSum ha)
73 (moving_binomialWeight L hL t ht ht0)
74
75/-- Continuity of the normalized nonnegative Poisson square-root amplitudes. -/
76theorem radial_coherentVector_moving_tendsto
77 (t : ℕ → ℝ) {a : ℝ} (ht : Tendsto t atTop (𝓝 a)) (ht0 : ∀ n, 0 ≤ t n)
78 (ha : 0 ≤ a) :
79 Tendsto (fun n => CoherentCoefficients.coherentVector (t n) (ht0 n)) atTop
80 (𝓝 (CoherentCoefficients.coherentVector a ha)) := by
81 apply CoherentCoefficients.amplitudeVector_tendsto _ _
82 (fun n => PoissonApproximation.poissonWeight_nonneg (ht0 n))
83 (PoissonApproximation.poissonWeight_nonneg ha)
84 (fun n => PoissonApproximation.poissonWeight_hasSum (ht0 n))
85 (PoissonApproximation.poissonWeight_hasSum ha)
86 intro j
87 exact ((Real.continuous_exp.tendsto _).comp ht.neg |>.mul (ht.pow j)).div_const _
88
89/-- The phase isometry removes all phase dependence from the approximation
90error, even at zero amplitude. -/
91theorem productVector_coherentVector_norm_eq_radial (z : ℂ) (L : ℕ) :
92 ‖productVector z L - coherentVector z‖ =
93 ‖CoherentCoefficients.productVector (‖z‖ ^ 2) (sq_nonneg _) L -
94 CoherentCoefficients.coherentVector (‖z‖ ^ 2) (sq_nonneg _)‖ := by
95 rw [productVector, coherentVector, ← map_sub, LinearIsometry.norm_map]
96
97/-- Uniform radial approximation on every bounded interval. This is derived
98from the moving-parameter limit and sequential compactness, rather than an
99assumed uniform approximation theorem. -/
100theorem radial_productVector_uniform (R : ℝ) (ε : ℝ) (hε : 0 < ε) :
101 ∀ᶠ L in atTop, ∀ (t : ℝ) (ht : 0 ≤ t), t ≤ R →
102 ‖CoherentCoefficients.productVector t ht L -
103 CoherentCoefficients.coherentVector t ht‖ < ε := by
104 classical
105 by_contra h
106 rw [eventually_atTop] at h
107 push_neg at h
108 choose L hL t ht0 htR hbad using h
109 have hLtop : Tendsto L atTop atTop := tendsto_atTop_mono hL tendsto_id
110 obtain ⟨a, ha, φ, hφ, ht⟩ := isCompact_Icc.tendsto_subseq
111 (fun n => (show t n ∈ Set.Icc 0 R from ⟨ht0 n, htR n⟩))
112 have hp := radial_productVector_moving_tendsto (L ∘ φ)
113 (hLtop.comp hφ.tendsto_atTop) (t ∘ φ) ht (fun n => ht0 (φ n)) ha.1
114 have hc := radial_coherentVector_moving_tendsto (t ∘ φ) ht (fun n => ht0 (φ n)) ha.1
115 have hz : Tendsto (fun n => ‖CoherentCoefficients.productVector (t (φ n))
116 (ht0 (φ n)) (L (φ n)) -
117 CoherentCoefficients.coherentVector (t (φ n)) (ht0 (φ n))‖) atTop (𝓝 0) := by
118 simpa only [Function.comp_def, sub_self, norm_zero] using (hp.sub hc).norm
119 obtain ⟨n, hn⟩ := (hz.eventually (gt_mem_nhds hε)).exists
120 exact (not_lt_of_ge (hbad (φ n))) hn
121
122/-- Uniform convergence for every bounded complex amplitude window. -/
123theorem productVector_coherentVector_uniform_on_closedBall
124 (R : ℝ) (ε : ℝ) (hε : 0 < ε) :
125 ∀ᶠ L in atTop, ∀ z : ℂ, ‖z‖ ≤ R →
126 ‖productVector z L - coherentVector z‖ < ε := by
127 filter_upwards [radial_productVector_uniform (R ^ 2) ε hε] with L hL z hz
128 rw [productVector_coherentVector_norm_eq_radial]
129 exact hL (‖z‖ ^ 2) (sq_nonneg _) (sq_le_sq₀ (norm_nonneg z) (le_trans (norm_nonneg z) hz) |>.mpr hz)
130
131/-- The actual complex binomial vectors converge uniformly on every bounded
132set of coherent amplitudes in Hilbert norm. -/
133theorem productVector_tendstoUniformlyOn {K : Set ℂ} (hK : Bornology.IsBounded K) :
134 TendstoUniformlyOn (fun L z => productVector z L) coherentVector atTop K := by
135 obtain ⟨R, hR⟩ := hK.exists_norm_le
136 apply Metric.tendstoUniformlyOn_iff.mpr
137 intro ε hε
138 filter_upwards [productVector_coherentVector_uniform_on_closedBall R ε hε] with L hL z hz
139 simpa only [dist_eq_norm, norm_sub_rev] using hL z (hR z hz)
140
141/-- Compact-amplitude uniform convergence, in the standard uniform-convergence
142API and including the zero amplitude. -/
143theorem productVector_tendstoUniformlyOn_compact {K : Set ℂ} (hK : IsCompact K) :
144 TendstoUniformlyOn (fun L z => productVector z L) coherentVector atTop K :=
145 productVector_tendstoUniformlyOn hK.isBounded
146
147/-- The pure-state trace-norm error is bounded by twice the Hilbert error. -/
148theorem product_projector_distance_le (z : ℂ) (L : ℕ) :
149 ‖InfiniteTraceClass.vectorProjector (productVector z L) -
150 InfiniteTraceClass.vectorProjector (coherentVector z)‖ ≤
151 2 * ‖productVector z L - coherentVector z‖ := by
152 simpa only [productVector_norm, coherentVector_norm, show (1 : ℝ) + 1 = 2 by norm_num] using
153 InfiniteTraceClass.norm_vectorProjector_sub_le (productVector z L) (coherentVector z)
154
155/-- Uniform convergence holds for the actual trace-class pure states. -/
156theorem product_projector_tendstoUniformlyOn {K : Set ℂ} (hK : Bornology.IsBounded K) :
157 TendstoUniformlyOn (fun L z => InfiniteTraceClass.vectorProjector (productVector z L))
158 (fun z => InfiniteTraceClass.vectorProjector (coherentVector z)) atTop K := by
159 obtain ⟨R, hR⟩ := hK.exists_norm_le
160 apply Metric.tendstoUniformlyOn_iff.mpr
161 intro ε hε
162 filter_upwards [productVector_coherentVector_uniform_on_closedBall R (ε / 2) (by positivity)]
163 with L hL z hz
164 rw [dist_comm, dist_eq_norm]
165 exact lt_of_le_of_lt (product_projector_distance_le z L) (by linarith [hL z (hR z hz)])
166
167/-- Uniform error bound for the concrete CPTP occupation channel. The output
168spaces vary with the sample size, so the statement uses their genuine trace
169norms directly. -/
170theorem occupationChannel_coherent_product_distance_le (z : ℂ) (L : ℕ) :
171 ‖(SymmetricOccupation.occupationChannel L).toLinearMap
172 (InfiniteTraceClass.vectorProjector (coherentVector z)) -
173 InfiniteTraceClass.vectorProjector (productTensor z L)‖ ≤
174 2 * ‖productVector z L - coherentVector z‖ := by
175 have h := SymmetricOccupation.occupationChannel_pure_distance_le L
176 (coherentVector z) (productVector z L)
177 (SymmetricOccupation.restrict_norm_eq_of_support L (productVector z L)
178 (fun j hj => productVector_eq_zero_of_lt z L j hj))
179 simpa only [coherentVector_norm, productVector_norm, show (1 : ℝ) + 1 = 2 by norm_num,
180 SymmetricOccupation.compression_apply, restrict_productVector, productTensor, norm_sub_rev]
181 using h
182
183/-- The actual occupation channel approximates the normalized tensor product
184states uniformly on every fixed complex amplitude ball. -/
185theorem occupationChannel_coherent_product_uniform_on_closedBall
186 (R : ℝ) (ε : ℝ) (hε : 0 < ε) :
187 ∀ᶠ L in atTop, ∀ z : ℂ, ‖z‖ ≤ R →
188 ‖(SymmetricOccupation.occupationChannel L).toLinearMap
189 (InfiniteTraceClass.vectorProjector (coherentVector z)) -
190 InfiniteTraceClass.vectorProjector (productTensor z L)‖ < ε := by
191 filter_upwards [productVector_coherentVector_uniform_on_closedBall R (ε / 2) (by positivity)]
192 with L hL z hz
193 exact lt_of_le_of_lt (occupationChannel_coherent_product_distance_le z L)
194 (by linarith [hL z hz])
195
196/-- The corresponding compact-window quantum approximation statement. -/
197theorem occupationChannel_coherent_product_uniform_on_compact
198 {K : Set ℂ} (hK : IsCompact K) (ε : ℝ) (hε : 0 < ε) :
199 ∀ᶠ L in atTop, ∀ z ∈ K,
200 ‖(SymmetricOccupation.occupationChannel L).toLinearMap
201 (InfiniteTraceClass.vectorProjector (coherentVector z)) -
202 InfiniteTraceClass.vectorProjector (productTensor z L)‖ < ε := by
203 obtain ⟨R, hR⟩ := hK.isBounded.exists_norm_le
204 filter_upwards [occupationChannel_coherent_product_uniform_on_closedBall R ε hε] with L hL z hz
205 exact hL z (hR z hz)
206
207end Cloning.ComplexCoherent