Exact Lean source
CoherentGaussianMixture
formalization/Cloning/CoherentGaussianMixture.lean
Source hash: b42e36da4fbec94fafe7ba3114e5a27d3104f4a11fd0a4e6ec4b6ab8cd1e4dd6
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.CoherentGaussianMixture.gaussianDensitytheorem Cloning.CoherentGaussianMixture.gaussianDensity_postheorem Cloning.CoherentGaussianMixture.continuous_gaussianDensitytheorem Cloning.CoherentGaussianMixture.gaussianDensity_integraltheorem Cloning.CoherentGaussianMixture.integrable_gaussianDensitytheorem Cloning.CoherentGaussianMixture.integrable_weighted_projectordefinition Cloning.CoherentGaussianMixture.gaussianMixturedefinition Cloning.CoherentGaussianMixture.numberBasistheorem Cloning.CoherentGaussianMixture.numberBasis_eq_singletheorem Cloning.CoherentGaussianMixture.inner_numberBasistheorem Cloning.CoherentGaussianMixture.projector_coefficienttheorem Cloning.CoherentGaussianMixture.weighted_coefficienttheorem Cloning.CoherentGaussianMixture.gaussianMixture_coefficienttheorem Cloning.CoherentGaussianMixture.thermal_coefficient_algebratheorem Cloning.CoherentGaussianMixture.gaussianMixture_diagonaltheorem Cloning.CoherentGaussianMixture.gaussianMixture_offDiagonaltheorem Cloning.CoherentGaussianMixture.gaussianMixture_eq_thermaldefinition Cloning.CoherentGaussianMixture.gaussianMeasuretheorem Cloning.CoherentGaussianMixture.gaussianMeasure_probabilitytheorem Cloning.CoherentGaussianMixture.integral_coherentProjector_gaussian_eq_thermaltheorem Cloning.CoherentGaussianMixture.integrable_coherentProjector_gaussiantheorem Cloning.CoherentGaussianMixture.integral_coherent_coefficients1import Cloning.CoherentContinuity
2import Cloning.ComplexGaussianMoments
3import Cloning.InfiniteDiagonalFidelity
4import Cloning.InfiniteChannelCovariance
5
6/-! The circular Gaussian mixture of actual coherent rank-one density
7operators, integrated in the genuine trace-class Banach space. -/
8
9namespace Cloning.CoherentGaussianMixture
10
11noncomputable section
12set_option backward.isDefEq.respectTransparency false
13open MeasureTheory Set Cloning Cloning.InfiniteTraceClass
14open ComplexCoherent ComplexGaussianMoments
15open scoped ComplexOrder InnerProductSpace Topology
16
17/-- Circular Gaussian density of mean squared amplitude `s`. -/
18def gaussianDensity (s : ℝ) (z : ℂ) : ℝ := Real.exp (-‖z‖ ^ 2 / s) / (Real.pi * s)
19
20lemma gaussianDensity_pos {s : ℝ} (hs : 0 < s) (z : ℂ) : 0 < gaussianDensity s z :=
21 div_pos (Real.exp_pos _) (mul_pos Real.pi_pos hs)
22
23lemma continuous_gaussianDensity (s : ℝ) : Continuous (gaussianDensity s) := by
24 unfold gaussianDensity
25 fun_prop
26
27lemma gaussianDensity_integral {s : ℝ} (hs : 0 < s) :
28 (∫ z : ℂ, gaussianDensity s z) = 1 := by
29 have h := radial_integral (1 / s) (div_pos zero_lt_one hs) 0
30 simp only [mul_zero, pow_zero, one_mul, Nat.factorial_zero, Nat.cast_one, zero_add,
31 pow_one, mul_one] at h
32 have he (z : ℂ) : -‖z‖ ^ 2 / s = -(1 / s) * ‖z‖ ^ 2 := by ring
33 simp_rw [gaussianDensity, he]
34 rw [integral_div, h]
35 field_simp
36
37lemma integrable_gaussianDensity {s : ℝ} (hs : 0 < s) : Integrable (gaussianDensity s) :=
38 integrable_of_integral_eq_one (gaussianDensity_integral hs)
39
40/-- The Bochner integrand is integrable in trace norm, since every coherent
41projector has trace norm one and the scalar density integrates to one. -/
42lemma integrable_weighted_projector {s : ℝ} (hs : 0 < s) :
43 Integrable (fun z : ℂ => gaussianDensity s z • coherentProjector z) := by
44 apply (integrable_gaussianDensity hs).mono'
45 ((continuous_gaussianDensity s).smul continuous_coherentProjector).aestronglyMeasurable
46 exact Filter.Eventually.of_forall (fun z => by
47 rw [norm_smul, coherentProjector_norm, mul_one, Real.norm_eq_abs,
48 abs_of_nonneg (gaussianDensity_pos hs z).le])
49
50def gaussianMixture (s : ℝ) : TraceClass Fock :=
51 ∫ z : ℂ, gaussianDensity s z • coherentProjector z
52
53/-- A fixed canonical occupation basis on the coherent-state Fock space. -/
54def numberBasis : HilbertBasis ℕ ℂ Fock :=
55 HilbertBasis.ofRepr (LinearIsometryEquiv.refl ℂ Fock)
56
57@[simp] lemma numberBasis_eq_single (n : ℕ) : numberBasis n = lp.single 2 n 1 :=
58 (numberBasis.repr_symm_single n).symm
59
60lemma inner_numberBasis (n : ℕ) (v : Fock) : ⟪numberBasis n, v⟫_ℂ = v n := by
61 rw [numberBasis_eq_single, lp.inner_single_left]
62 simp only [RCLike.inner_apply, map_one, mul_one]
63
64lemma projector_coefficient (z : ℂ) (n m : ℕ) :
65 ⟪numberBasis n, (coherentProjector z).1 (numberBasis m)⟫_ℂ =
66 coherentVector z n * star (coherentVector z m) := by
67 change ⟪numberBasis n, (InnerProductSpace.rankOne ℂ (coherentVector z) (coherentVector z))
68 (numberBasis m)⟫_ℂ = _
69 rw [InnerProductSpace.rankOne_apply, inner_smul_right, inner_numberBasis,
70 ← inner_conj_symm (coherentVector z) (numberBasis m), inner_numberBasis]
71 exact mul_comm _ _
72
73lemma weighted_coefficient (s : ℝ) (z : ℂ) (n m : ℕ) :
74 (gaussianDensity s z : ℂ) * coherentVector z n * star (coherentVector z m) =
75 (1 / (Real.pi * s * Real.sqrt (n.factorial : ℝ) * Real.sqrt (m.factorial : ℝ)) : ℂ) *
76 ((Real.exp (-(1 + 1 / s) * ‖z‖ ^ 2) : ℂ) * z ^ n * star z ^ m) := by
77 have he : Real.exp (-(1 + 1 / s) * ‖z‖ ^ 2) =
78 Real.exp (-‖z‖ ^ 2 / s) * Real.exp (-‖z‖ ^ 2 / 2) * Real.exp (-‖z‖ ^ 2 / 2) := by
79 rw [← Real.exp_add, ← Real.exp_add]
80 congr 1
81 ring
82 rw [he]
83 rw [coherentVector_apply, coherentVector_apply]
84 simp only [gaussianDensity, Complex.star_def, Complex.ofReal_mul, Complex.ofReal_div]
85 rw [map_div₀, map_mul, map_pow, Complex.conj_ofReal, Complex.conj_ofReal]
86 ring
87
88lemma gaussianMixture_coefficient {s : ℝ} (hs : 0 < s) (n m : ℕ) :
89 ⟪numberBasis n, (gaussianMixture s).1 (numberBasis m)⟫_ℂ =
90 (1 / (Real.pi * s * Real.sqrt (n.factorial : ℝ) * Real.sqrt (m.factorial : ℝ)) : ℂ) *
91 ∫ z : ℂ, (Real.exp (-(1 + 1 / s) * ‖z‖ ^ 2) : ℂ) * z ^ n * star z ^ m := by
92 rw [show ⟪numberBasis n, (gaussianMixture s).1 (numberBasis m)⟫_ℂ =
93 traceClassMatrixCoefficient (numberBasis n) (numberBasis m) (gaussianMixture s) by rfl]
94 rw [gaussianMixture, ← ContinuousLinearMap.integral_comp_comm _ (integrable_weighted_projector hs)]
95 have he (z : ℂ) : traceClassMatrixCoefficient (numberBasis n) (numberBasis m)
96 (gaussianDensity s z • coherentProjector z) =
97 (gaussianDensity s z : ℂ) * coherentVector z n * star (coherentVector z m) := by
98 rw [show gaussianDensity s z • coherentProjector z =
99 (gaussianDensity s z : ℂ) • coherentProjector z by simp only [Complex.coe_smul], map_smul]
100 rw [traceClassMatrixCoefficient_apply, projector_coefficient, smul_eq_mul, mul_assoc]
101 simp_rw [he, weighted_coefficient]
102 exact integral_const_mul _ _
103
104lemma thermal_coefficient_algebra {s : ℝ} (hs : 0 < s) (n : ℕ) :
105 1 / (Real.pi * s * Real.sqrt (n.factorial : ℝ) * Real.sqrt (n.factorial : ℝ)) *
106 (Real.pi * (n.factorial : ℝ) / (1 + 1 / s) ^ (n + 1)) =
107 Thermal.geometric (s / (1 + s)) n := by
108 have hs0 : s ≠ 0 := hs.ne'
109 have hp0 : Real.pi ≠ 0 := Real.pi_ne_zero
110 have hf0 : (n.factorial : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr (Nat.factorial_ne_zero n)
111 have hd0 : (1 + s : ℝ) ≠ 0 := by positivity
112 have he : 1 + 1 / s = (1 + s) / s := by field_simp; ring
113 have hc : 1 - s / (1 + s) = 1 / (1 + s) := by field_simp; ring
114 have hden : Real.pi * s * Real.sqrt (n.factorial : ℝ) * Real.sqrt (n.factorial : ℝ) =
115 Real.pi * s * (n.factorial : ℝ) := by
116 rw [mul_assoc (Real.pi * s), Real.mul_self_sqrt (Nat.cast_nonneg _)]
117 rw [hden, he, Thermal.geometric, hc, div_pow, div_pow, pow_succ, pow_succ]
118 field_simp
119
120lemma gaussianMixture_diagonal {s : ℝ} (hs : 0 < s) (n : ℕ) :
121 ⟪numberBasis n, (gaussianMixture s).1 (numberBasis n)⟫_ℂ =
122 (Thermal.geometric (s / (1 + s)) n : ℂ) := by
123 rw [gaussianMixture_coefficient hs, diagonal_integral _ (by positivity)]
124 exact_mod_cast thermal_coefficient_algebra hs n
125
126lemma gaussianMixture_offDiagonal {s : ℝ} (hs : 0 < s) (n m : ℕ) (hnm : n ≠ m) :
127 ⟪numberBasis n, (gaussianMixture s).1 (numberBasis m)⟫_ℂ = 0 := by
128 rw [gaussianMixture_coefficient hs, offDiagonal_integral _ n m hnm, mul_zero]
129
130/-- The circular Gaussian coherent-state mixture equals the thermal operator
131as an identity in the actual trace-class Banach space. -/
132theorem gaussianMixture_eq_thermal {s : ℝ} (hs : 0 < s) :
133 gaussianMixture s = vectorMixture numberBasis (Thermal.geometric (s / (1 + s))) := by
134 have hq0 : 0 ≤ s / (1 + s) := by positivity
135 have hq1 : s / (1 + s) < 1 := (div_lt_one (by positivity)).mpr (by linarith)
136 apply Subtype.ext
137 apply ContinuousLinearMap.ext_on
138 (Submodule.dense_iff_topologicalClosure_eq_top.mpr numberBasis.dense_span)
139 rintro _ ⟨m, rfl⟩
140 apply numberBasis.repr.injective
141 ext n
142 rw [numberBasis.repr_apply_apply, numberBasis.repr_apply_apply,
143 InfiniteOccupationStates.vectorMixture_apply_basis numberBasis _
144 (Thermal.geometric_hasSum hq0 hq1).summable m, inner_smul_right,
145 orthonormal_iff_ite.mp numberBasis.orthonormal]
146 by_cases hnm : n = m
147 · subst n
148 rw [if_pos rfl, mul_one]
149 exact gaussianMixture_diagonal hs m
150 · rw [if_neg hnm, mul_zero]
151 exact gaussianMixture_offDiagonal hs n m hnm
152
153/-- The circular Gaussian measure, with its literal Lebesgue density. -/
154def gaussianMeasure (s : ℝ) : Measure ℂ :=
155 volume.withDensity (fun z => ENNReal.ofReal (gaussianDensity s z))
156
157lemma gaussianMeasure_probability {s : ℝ} (hs : 0 < s) :
158 IsProbabilityMeasure (gaussianMeasure s) := by
159 constructor
160 rw [gaussianMeasure, withDensity_apply _ MeasurableSet.univ, Measure.restrict_univ]
161 rw [← ofReal_integral_eq_lintegral_ofReal (integrable_gaussianDensity hs)
162 (Filter.Eventually.of_forall (fun z => (gaussianDensity_pos hs z).le)), gaussianDensity_integral hs]
163 exact ENNReal.ofReal_one
164
165/-- The manuscript's positive coherent-state representation, as a Bochner
166integral against the actual circular Gaussian probability measure. -/
167theorem integral_coherentProjector_gaussian_eq_thermal {s : ℝ} (hs : 0 < s) :
168 (∫ z : ℂ, coherentProjector z ∂gaussianMeasure s) =
169 vectorMixture numberBasis (Thermal.geometric (s / (1 + s))) := by
170 rw [gaussianMeasure, integral_withDensity_eq_integral_toReal_smul
171 ((continuous_gaussianDensity s).measurable.ennreal_ofReal)
172 (Filter.Eventually.of_forall (fun _ => ENNReal.ofReal_lt_top))]
173 simp_rw [ENNReal.toReal_ofReal (gaussianDensity_pos hs _).le]
174 exact gaussianMixture_eq_thermal hs
175
176lemma integrable_coherentProjector_gaussian {s : ℝ} (hs : 0 < s) :
177 Integrable coherentProjector (gaussianMeasure s) := by
178 letI := gaussianMeasure_probability hs
179 exact integrable_coherentProjector _
180
181/-- The exact scalar matrix coefficients of the circular Gaussian mixture,
182exported for finite products of independent Gaussian coordinates. -/
183lemma integral_coherent_coefficients {s : ℝ} (hs : 0 < s) (n m : ℕ) :
184 (∫ z : ℂ, coherentVector z n * star (coherentVector z m) ∂gaussianMeasure s) =
185 if n = m then (Thermal.geometric (s / (1 + s)) n : ℂ) else 0 := by
186 have h := (traceClassMatrixCoefficient (numberBasis n) (numberBasis m)).integral_comp_comm
187 (integrable_coherentProjector_gaussian hs)
188 simp only [traceClassMatrixCoefficient_apply, projector_coefficient] at h
189 rw [integral_coherentProjector_gaussian_eq_thermal hs] at h
190 rw [h]
191 have hq0 : 0 ≤ s / (1 + s) := by positivity
192 have hq1 : s / (1 + s) < 1 := (div_lt_one (by positivity)).mpr (by linarith)
193 rw [InfiniteOccupationStates.vectorMixture_apply_basis numberBasis _
194 (Thermal.geometric_hasSum hq0 hq1).summable m, inner_smul_right,
195 orthonormal_iff_ite.mp numberBasis.orthonormal]
196 by_cases hnm : n = m
197 · subst n
198 simp
199 · simp [hnm]
200
201end
202end Cloning.CoherentGaussianMixture