Offline · exact source
Exact Lean source

GeneralCoherentConvergence

formalization/Cloning/GeneralCoherentConvergence.lean

Source hash: 3868bb120527c86eb7ae5f60ff2ac3617bb168d502701f75bf6c819ff1cd08b9

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.UniformCoherent
2import Cloning.MultimodeCoherent
3 
4/-! Strong Hilbert convergence from concrete number coefficients and exact
5normalization. This allows complex phases to vary and includes zero coefficients. -/
6noncomputable section
7open scoped BigOperators InnerProductSpace Topology
8open Filter
9namespace Cloning.GeneralCoherent
10set_option maxHeartbeats 1000000
11set_option backward.isDefEq.respectTransparency false
12 
13/-- Unit vectors in an occupation Hilbert space converge in norm when every
14complex coefficient converges to that of a unit vector. The proof uses finite
15number cutoffs and the actual Hilbert inner product. -/
16theorem lp_tendsto_of_coefficients {ι : Type*}
17    (x : ℕ → lp (fun _ : ι => ℂ) 2) (y : lp (fun _ : ι => ℂ) 2)
18    (hx : ∀ n, ‖x n‖ = 1) (hy : ‖y‖ = 1)
19    (hpoint : ∀ i, Tendsto (fun n => x n i) atTop (𝓝 (y i))) :
20    Tendsto x atTop (𝓝 y) := by
21  classical
22  have hi : Tendsto (fun n => ⟪x n, y⟫_ℂ) atTop (𝓝 ⟪y, y⟫_ℂ) := by
23    apply Metric.tendsto_nhds.mpr
24    intro ε hε
25    have hf := lp.hasSum_single (by norm_num : (2 : ENNReal) ≠ ⊤) y
26    obtain ⟨S, hS⟩ := (hf.eventually (Metric.ball_mem_nhds y (by positivity : 0 < ε / 4))).exists
27    let v := ∑ i ∈ S, lp.single 2 i (y i)
28    have htail : ‖y - v‖ < ε / 4 := by
29      simpa only [Metric.mem_ball, dist_eq_norm, norm_sub_rev, v] using hS
30    have hfin : Tendsto (fun n => ⟪x n, v⟫_ℂ) atTop (𝓝 ⟪y, v⟫_ℂ) := by
31      simp only [v, inner_sum, lp.inner_single_right]
32      exact tendsto_finset_sum S (fun i _ => (hpoint i).inner tendsto_const_nhds)
33    filter_upwards [hfin.eventually (Metric.ball_mem_nhds _ (by positivity : 0 < ε / 2))] with n hn
34    have hm : ‖⟪x n, v⟫_ℂ - ⟪y, v⟫_ℂ‖ < ε / 2 := by
35      simpa only [Metric.mem_ball, dist_eq_norm] using hn
36    have hxn : ‖⟪x n, y - v⟫_ℂ‖ ≤ ‖y - v‖ := by
37      simpa only [hx, one_mul] using norm_inner_le_norm (x n) (y - v)
38    have hyn : ‖⟪y, y - v⟫_ℂ‖ ≤ ‖y - v‖ := by
39      simpa only [hy, one_mul] using norm_inner_le_norm y (y - v)
40    have hid : ⟪x n, y⟫_ℂ - ⟪y, y⟫_ℂ =
41        (⟪x n, v⟫_ℂ - ⟪y, v⟫_ℂ) + (⟪x n, y - v⟫_ℂ - ⟪y, y - v⟫_ℂ) := by
42      simp only [inner_sub_right]
43      ring
44    rw [dist_eq_norm, hid]
45    have hb := norm_add_le (⟪x n, v⟫_ℂ - ⟪y, v⟫_ℂ)
46      (⟪x n, y - v⟫_ℂ - ⟪y, y - v⟫_ℂ)
47    have hc := norm_sub_le ⟪x n, y - v⟫_ℂ ⟪y, y - v⟫_ℂ
48    linarith
49  have hsq : Tendsto (fun n => ‖x n - y‖ ^ (2 : ℕ)) atTop (𝓝 0) := by
50    have hn (n : ℕ) : ‖x n - y‖ ^ (2 : ℕ) = 2 - 2 * (⟪x n, y⟫_ℂ).re := by
51      have h := norm_sub_sq (𝕜 := ℂ) (x n) y
52      simp only [hx, hy, one_pow] at h
53      change ‖x n - y‖ ^ 2 = 1 - 2 * (⟪x n, y⟫_ℂ).re + 1 at h
54      linarith
55    simp_rw [hn]
56    have hre : (⟪y, y⟫_ℂ).re = 1 := by
57      simp [inner_self_eq_norm_sq_to_K, hy]
58    have h := (tendsto_const_nhds : Tendsto (fun _ : ℕ => (2 : ℝ)) atTop (𝓝 2)).sub ((Complex.continuous_re.tendsto _).comp hi |>.const_mul 2)
59    simpa only [Function.comp_def, hre, mul_one, sub_self] using h
60  apply tendsto_iff_norm_sub_tendsto_zero.mpr
61  simpa only [Function.comp_def, Real.sqrt_sq (norm_nonneg _), Real.sqrt_zero] using
62    (Real.continuous_sqrt.tendsto 0).comp hsq
63 
64end Cloning.GeneralCoherent