Exact Lean source
GeneralCoherentLimits
formalization/Cloning/GeneralCoherentLimits.lean
Source hash: 39cbf34a115e5dfa0483e39c70be9628d211305fa67d9e1108dce810a88bbdc1
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
definition
Cloning.GeneralCoherent.factorialProducttheorem Cloning.GeneralCoherent.factorialProduct_postheorem Cloning.GeneralCoherent.scaled_multiplicitytheorem Cloning.GeneralCoherent.productVector_coefficientstheorem Cloning.GeneralCoherent.coherentVector_coefficientstheorem Cloning.GeneralCoherent.continuous_energytheorem Cloning.GeneralCoherent.productVector_coefficient_moving_tendstotheorem Cloning.GeneralCoherent.productVector_moving_tendsto1import Cloning.GeneralCoherentCoordinates
2import Cloning.GeneralCoherentConvergence
3
4/-! Moving-parameter coherent limits of actual normalized finite-dimensional
5tensor products in every finite number of excitation modes. -/
6noncomputable section
7open scoped BigOperators InnerProductSpace Topology
8open Filter
9namespace Cloning.GeneralCoherent
10open GeneralSymmetricOccupation
11set_option maxHeartbeats 1000000
12set_option backward.isDefEq.respectTransparency false
13
14def factorialProduct {s : ℕ} (k : Fin s → ℕ) : ℝ := ∏ i, ((k i).factorial : ℝ)
15theorem factorialProduct_pos {s : ℕ} (k : Fin s → ℕ) : 0 < factorialProduct k := by
16 apply Finset.prod_pos
17 intro i hi
18 exact_mod_cast Nat.factorial_pos (k i)
19
20theorem scaled_multiplicity {L s : ℕ} (k : Fin s → ℕ) (hk : (∑ i, k i) ≤ L) :
21 (multiplicity (fromExcitation k hk) : ℝ) / (L : ℝ) ^ (∑ i, k i) =
22 ((L.choose (∑ i, k i) : ℝ) * (1 / L) ^ (∑ i, k i)) *
23 ((∑ i, k i).factorial : ℝ) / factorialProduct k := by
24 have hm : (multiplicity (fromExcitation k hk) : ℝ) * factorialProduct k =
25 (L.choose (∑ i, k i) : ℝ) * ((∑ i, k i).factorial : ℝ) := by
26 unfold factorialProduct
27 exact_mod_cast multiplicity_fromExcitation_mul k hk
28 have he := (eq_div_iff (factorialProduct_pos k).ne').mpr hm
29 rw [he]
30 ring
31
32theorem productVector_coefficients {s : ℕ} (z : Fin s → ℂ) (L : ℕ)
33 (k : Fin s → ℕ) (hk : (∑ i, k i) ≤ L) :
34 productVector z L k =
35 (Real.sqrt (((L.choose (∑ i, k i) : ℝ) * (1 / L) ^ (∑ i, k i)) *
36 ((∑ i, k i).factorial : ℝ) / factorialProduct k) : ℂ) *
37 (∏ i, z i ^ k i) / (Real.sqrt ((1 + energy z / L) ^ L) : ℂ) := by
38 rw [productVector_apply_of_le z L k hk, oneParticle_occupation_product,
39 excitation_fromExcitation, ← scaled_multiplicity k hk]
40 have he := energy_nonneg z
41 rw [Real.sqrt_div (Nat.cast_nonneg _), Thermal.sqrt_nat_pow (Nat.cast_nonneg L),
42 Thermal.sqrt_nat_pow (by positivity : 0 ≤ 1 + energy z / L)]
43 push_cast
44 ring
45
46theorem coherentVector_coefficients {s : ℕ} (z : Fin s → ℂ) (k : Fin s → ℕ) :
47 MultimodeCoherent.coherentVector z k =
48 (Real.exp (-energy z / 2) : ℂ) * (∏ i, z i ^ k i) /
49 (Real.sqrt (factorialProduct k) : ℂ) := by
50 rw [MultimodeCoherent.coherentVector_coefficients]
51 simp only [Finset.prod_div_distrib, Finset.prod_mul_distrib]
52 have he : (∏ i, Real.exp (-‖z i‖ ^ 2 / 2)) = Real.exp (-energy z / 2) := by
53 rw [← Real.exp_sum]
54 congr 1
55 unfold energy
56 rw [← Finset.sum_div, Finset.sum_neg_distrib]
57 have hs : (∏ i, Real.sqrt ((k i).factorial : ℝ)) = Real.sqrt (factorialProduct k) := by
58 exact (Real.sqrt_prod Finset.univ (fun i _ => Nat.cast_nonneg _)).symm
59 rw [← Complex.ofReal_prod, ← Complex.ofReal_prod, he, hs]
60
61/-- Energy is continuous even when excitation coordinates vanish. -/
62theorem continuous_energy (s : ℕ) : Continuous (@energy s) := by
63 unfold energy
64 fun_prop
65
66/-- The complex occupation coefficients converge while both sample size and
67local amplitude vary. -/
68theorem productVector_coefficient_moving_tendsto {s : ℕ}
69 (L : ℕ → ℕ) (hL : Tendsto L atTop atTop) (z : ℕ → Fin s → ℂ)
70 {w : Fin s → ℂ} (hz : Tendsto z atTop (𝓝 w)) (k : Fin s → ℕ) :
71 Tendsto (fun n => productVector (z n) (L n) k) atTop
72 (𝓝 (MultimodeCoherent.coherentVector w k)) := by
73 have hn := (PoissonApproximation.tendsto_binomial_numerator 1 (∑ i, k i)).comp hL
74 simp only [one_pow, Function.comp_def] at hn
75 have hm := (hn.mul_const ((∑ i, k i).factorial : ℝ)).div_const (factorialProduct k)
76 have heq : (1 / ((∑ i, k i).factorial : ℝ) * ((∑ i, k i).factorial : ℝ)) /
77 factorialProduct k = 1 / factorialProduct k := by
78 rw [one_div_mul_cancel (by exact_mod_cast (Nat.factorial_ne_zero (∑ i, k i))) ]
79 rw [heq] at hm
80 have hs := (Real.continuous_sqrt.tendsto _).comp hm
81 have hp : Tendsto (fun n => ∏ i, z n i ^ k i) atTop (𝓝 (∏ i, w i ^ k i)) := by
82 exact tendsto_finset_prod _ (fun i _ => ((continuous_apply i).tendsto w |>.comp hz).pow (k i))
83 have he := (continuous_energy s).tendsto w |>.comp hz
84 have hd := (Real.continuous_sqrt.tendsto _).comp
85 (ComplexCoherent.moving_exponential L hL (fun n => energy (z n)) he
86 (fun n => energy_nonneg (z n)))
87 have hdc : (Real.sqrt (Real.exp (energy w)) : ℂ) ≠ 0 := by
88 exact_mod_cast (Real.sqrt_pos.mpr (Real.exp_pos _)).ne'
89 have h := ((Complex.continuous_ofReal.tendsto _).comp hs |>.mul hp).div
90 ((Complex.continuous_ofReal.tendsto _).comp hd) hdc
91 have hlim : (Real.sqrt (1 / factorialProduct k) : ℂ) * (∏ i, w i ^ k i) /
92 (Real.sqrt (Real.exp (energy w)) : ℂ) = MultimodeCoherent.coherentVector w k := by
93 rw [coherentVector_coefficients, Real.sqrt_div (by norm_num), Real.sqrt_one,
94 ← Real.exp_half]
95 rw [show -energy w / 2 = -(energy w / 2) by ring, Real.exp_neg]
96 push_cast
97 ring
98 rw [hlim] at h
99 apply h.congr'
100 filter_upwards [hL.eventually (eventually_ge_atTop (∑ i, k i))] with n hn
101 exact (productVector_coefficients (z n) (L n) k hn).symm
102
103/-- Norm convergence of the genuine padded physical tensor vectors with a
104varying local parameter. -/
105theorem productVector_moving_tendsto {s : ℕ}
106 (L : ℕ → ℕ) (hL : Tendsto L atTop atTop) (z : ℕ → Fin s → ℂ)
107 {w : Fin s → ℂ} (hz : Tendsto z atTop (𝓝 w)) :
108 Tendsto (fun n => productVector (z n) (L n)) atTop
109 (𝓝 (MultimodeCoherent.coherentVector w)) :=
110 lp_tendsto_of_coefficients _ _ (fun n => productVector_norm (z n) (L n))
111 (MultimodeCoherent.coherentVector_norm w)
112 (productVector_coefficient_moving_tendsto L hL z hz)
113
114end Cloning.GeneralCoherent