Exact Lean source
PCTJointGaussianLaw
formalization/Cloning/PCTJointGaussianLaw.lean
Source hash: 07649a837c0a7685144028fa3a6c50d54599a867d8f3bbea4fcd168d88b6e23a
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.PCTJointGaussianLaw.tangentClassicaltheorem Cloning.PCTJointGaussianLaw.continuous_tangentClassicaldefinition Cloning.PCTJointGaussianLaw.classicalTangentLawtheorem Cloning.PCTJointGaussianLaw.classicalTangentLaw_probabilitydefinition Cloning.PCTJointGaussianLaw.orbitalVariancetheorem Cloning.PCTJointGaussianLaw.orbitalVariance_posdefinition Cloning.PCTJointGaussianLaw.jointTangenttheorem Cloning.PCTJointGaussianLaw.continuous_jointTangenttheorem Cloning.PCTJointGaussianLaw.classical_dual_eqdefinition Cloning.PCTJointGaussianLaw.orbitalDualTesttheorem Cloning.PCTJointGaussianLaw.orbital_dual_phasetheorem Cloning.PCTJointGaussianLaw.weylCharacter_neg_eq_phasetheorem Cloning.PCTJointGaussianLaw.orbital_charFunDualtheorem Cloning.PCTJointGaussianLaw.joint_characteristic_reindexedtheorem Cloning.PCTJointGaussianLaw.classical_charFunDualtheorem Cloning.PCTJointGaussianLaw.joint_dual_phasetheorem Cloning.PCTJointGaussianLaw.jointTangent_map_eq_prodtheorem Cloning.PCTJointGaussianLaw.integral_jointTangent1import Cloning.PCTGaussianOutputTangent
2import Mathlib.MeasureTheory.Measure.CharacteristicFunction.Basic
3
4/-! The actual joint tangent pushforward is a product measure. Independence
5is derived from the joint characteristic of the physical tangent frame. -/
6noncomputable section
7open MeasureTheory
8open scoped ComplexOrder InnerProductSpace Topology BigOperators
9namespace Cloning.PCTJointGaussianLaw
10open Cloning.PCT Cloning.PCTReducedGaussian Cloning.PCTGaussianCovariance
11open Cloning.PCTGaussianOutput Cloning.MultimodeCoherent
12open Cloning.MultimodeCoherentGaussianMixture
13set_option backward.isDefEq.respectTransparency false
14set_option maxHeartbeats 1200000
15variable {A : Type*} [Fintype A] [LinearOrder A] {s d : ℕ}
16
17def tangentClassical (u : Fin (s + 1) → Register (A × A)) (p : A → ℝ)
18 (z : Fin s → ℂ) : A → ℝ := classicalCoordinate p (frameTangentMatrix u z)
19
20lemma continuous_tangentClassical (u : Fin (s + 1) → Register (A × A)) (p : A → ℝ) :
21 Continuous (tangentClassical u p) := by
22 unfold tangentClassical classicalCoordinate frameTangentMatrix frameTangent
23 simp only [lp.coeFn_sum, Finset.sum_apply, lp.coeFn_smul, Pi.smul_apply, smul_eq_mul]
24 fun_prop
25
26def classicalTangentLaw (u : Fin (s + 1) → Register (A × A)) (p : A → ℝ) (v : ℝ) :
27 Measure (A → ℝ) := (gaussianProductMeasure (fun _ : Fin s => v)).map (tangentClassical u p)
28
29theorem classicalTangentLaw_probability (u : Fin (s + 1) → Register (A × A))
30 (p : A → ℝ) {v : ℝ} (hv : 0 < v) : IsProbabilityMeasure (classicalTangentLaw u p v) := by
31 letI := gaussianProductMeasure_probability (fun _ : Fin s => hv)
32 unfold classicalTangentLaw
33 exact Measure.isProbabilityMeasure_map (continuous_tangentClassical u p).aemeasurable
34
35def orbitalVariance (p : A → ℝ) (e : Fin d ≃ OrbitalPair A) (v : ℝ) (k : Fin d) : ℝ :=
36 v * (p (e k).1.1 + p (e k).1.2) / (p (e k).1.1 - p (e k).1.2)
37
38lemma orbitalVariance_pos (p : A → ℝ) (hp : ∀ a, 0 < p a)
39 (hgap : ∀ i j, i < j → 0 < p i - p j) (e : Fin d ≃ OrbitalPair A)
40 {v : ℝ} (hv : 0 < v) (k : Fin d) : 0 < orbitalVariance p e v k :=
41 div_pos (mul_pos hv (add_pos (hp _) (hp _))) (hgap _ _ (e k).2)
42
43def jointTangent (u : Fin (s + 1) → Register (A × A)) (p : A → ℝ)
44 (e : Fin d ≃ OrbitalPair A) (z : Fin s → ℂ) : (A → ℝ) × (Fin d → ℂ) :=
45 (tangentClassical u p z, tangentDisplacement u p e z)
46
47lemma continuous_jointTangent (u : Fin (s + 1) → Register (A × A)) (p : A → ℝ)
48 (e : Fin d ≃ OrbitalPair A) : Continuous (jointTangent u p e) :=
49 (continuous_tangentClassical u p).prodMk (continuous_tangentDisplacement u p e)
50
51lemma classical_dual_eq (L : StrongDual ℝ (A → ℝ)) (x : A → ℝ) :
52 L x = ∑ a, L (Pi.single a 1) * x a := by
53 rw [← ContinuousLinearMap.sum_comp_single ℝ (fun _ : A => ℝ) L x]
54 apply Finset.sum_congr rfl
55 intro a _
56 have he : Pi.single a (x a) = (x a) • (Pi.single a (1 : ℝ) : A → ℝ) := by
57 simp only [← Pi.single_smul, smul_eq_mul, mul_one]
58 change L (Pi.single a (x a)) = _
59 rw [he, map_smul]
60 simp [mul_comm]
61
62def orbitalDualTest (L : StrongDual ℝ (Fin d → ℂ)) (k : Fin d) : ℂ :=
63 (-(L (Pi.single k Complex.I)) / 2 : ℝ) +
64 Complex.I * ((L (Pi.single k 1) / 2 : ℝ) : ℂ)
65
66lemma orbital_dual_phase (L : StrongDual ℝ (Fin d → ℂ)) (z : Fin d → ℂ) :
67 Complex.I * (L z : ℂ) = ∑ k,
68 (orbitalDualTest L k * star (z k) - star (orbitalDualTest L k) * z k) := by
69 have he (k : Fin d) : L (Pi.single k (z k)) =
70 (z k).re * L (Pi.single k 1) + (z k).im * L (Pi.single k Complex.I) := by
71 have hz : Pi.single k (z k) = (z k).re • (Pi.single k (1 : ℂ) : Fin d → ℂ) +
72 (z k).im • (Pi.single k Complex.I : Fin d → ℂ) := by
73 rw [← Pi.single_smul, ← Pi.single_smul, ← Pi.single_add]
74 congr 1
75 simpa only [Complex.real_smul, mul_one] using (Complex.re_add_im (z k)).symm
76 rw [hz, map_add, map_smul, map_smul]
77 rfl
78 rw [← ContinuousLinearMap.sum_comp_single ℝ (fun _ : Fin d => ℂ) L z]
79 simp only [ContinuousLinearMap.comp_apply, ContinuousLinearMap.single_apply, he,
80 Complex.ofReal_sum, Finset.mul_sum]
81 apply Finset.sum_congr rfl
82 intro k _
83 apply Complex.ext <;> simp [orbitalDualTest, Complex.mul_re, Complex.mul_im] <;> ring
84
85lemma weylCharacter_neg_eq_phase (z a : Fin d → ℂ) :
86 weylCharacter z (-a) = Complex.exp (∑ k, (a k * star (z k) - star (a k) * z k)) := by
87 rw [weylCharacter_eq_prod_exp, ← Complex.exp_sum]
88 congr 1
89 apply Finset.sum_congr rfl
90 intro k _
91 simp only [Pi.neg_apply, map_neg, starRingEnd_apply]
92 ring
93
94lemma orbital_charFunDual {b : Fin d → ℝ} (hb : ∀ k, 0 < b k)
95 (L : StrongDual ℝ (Fin d → ℂ)) :
96 charFunDual (gaussianProductMeasure b) L =
97 ∏ k, Complex.exp (-((b k * ‖orbitalDualTest L k‖ ^ 2 : ℝ) : ℂ)) := by
98 rw [charFunDual_apply]
99 have he (z : Fin d → ℂ) : Complex.exp ((L z : ℂ) * Complex.I) =
100 weylCharacter z (-orbitalDualTest L) := by
101 rw [mul_comm, orbital_dual_phase, weylCharacter_neg_eq_phase]
102 simp_rw [he]
103 rw [integral_weylCharacter_gaussianProductMeasure hb]
104 simp
105
106lemma joint_characteristic_reindexed
107 (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register (A × A)))
108 (p : A → ℝ) (hp : ∀ a, 0 ≤ p a)
109 (hu : u 0 = coefficientVector (schmidtCoefficients p))
110 (hgap : ∀ i j, i < j → 0 < p i - p j)
111 (e : Fin d ≃ OrbitalPair A) {v : ℝ} (hv : 0 < v)
112 (t : A → ℝ) (a : Fin d → ℂ) :
113 (∫ z, Complex.exp (Complex.I * ((∑ i, t i * tangentClassical u p z i : ℝ) : ℂ) +
114 ∑ k, (a k * star (tangentDisplacement u p e z k) -
115 star (a k) * tangentDisplacement u p e z k))
116 ∂gaussianProductMeasure (fun _ : Fin s => v)) =
117 Complex.exp (-((v * ((∑ i, p i * (t i) ^ 2) - (∑ i, p i * t i) ^ 2) : ℝ) : ℂ)) *
118 ∏ k, Complex.exp (-((orbitalVariance p e v k * ‖a k‖ ^ 2 : ℝ) : ℂ)) := by
119 have h := jointCoordinate_characteristic u p hp hu hgap hv t (fun ij => a (e.symm ij))
120 have he (z : Fin s → ℂ) :
121 (∑ ij : OrbitalPair A, (a (e.symm ij) * star (orbitalCoordinate p
122 (frameTangentMatrix u z) ij.1.1 ij.1.2) - star (a (e.symm ij)) *
123 orbitalCoordinate p (frameTangentMatrix u z) ij.1.1 ij.1.2)) =
124 ∑ k, (a k * star (tangentDisplacement u p e z k) -
125 star (a k) * tangentDisplacement u p e z k) := by
126 rw [← e.sum_comp]
127 simp only [Equiv.symm_apply_apply, tangentDisplacement]
128 simp_rw [he] at h
129 rw [show (∑ ij : OrbitalPair A, v * (p ij.1.1 + p ij.1.2) /
130 (p ij.1.1 - p ij.1.2) * ‖a (e.symm ij)‖ ^ 2) =
131 ∑ k, orbitalVariance p e v k * ‖a k‖ ^ 2 by
132 rw [← e.sum_comp]
133 simp only [Equiv.symm_apply_apply, orbitalVariance]] at h
134 rw [← Complex.exp_sum, ← Complex.exp_add]
135 convert h using 1 <;> simp [tangentClassical, Complex.ofReal_add, Complex.ofReal_sum, add_comm]
136
137lemma classical_charFunDual
138 (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register (A × A)))
139 (p : A → ℝ) (hp : ∀ a, 0 ≤ p a)
140 (hu : u 0 = coefficientVector (schmidtCoefficients p))
141 {v : ℝ} (hv : 0 < v) (L : StrongDual ℝ (A → ℝ)) :
142 charFunDual (classicalTangentLaw u p v) L =
143 Complex.exp (-((v * ((∑ i, p i * (L (Pi.single i 1)) ^ 2) -
144 (∑ i, p i * L (Pi.single i 1)) ^ 2) : ℝ) : ℂ)) := by
145 rw [charFunDual_apply, classicalTangentLaw,
146 integral_map (continuous_tangentClassical u p).aemeasurable (by fun_prop)]
147 convert classicalCoordinate_characteristic u p hp hu hv (fun i => L (Pi.single i 1)) using 1
148 apply integral_congr_ae
149 filter_upwards [] with z
150 rw [classical_dual_eq, mul_comm _ Complex.I]
151 rfl
152
153lemma joint_dual_phase (L : StrongDual ℝ ((A → ℝ) × (Fin d → ℂ)))
154 (x : A → ℝ) (z : Fin d → ℂ) :
155 (L (x,z) : ℂ) * Complex.I =
156 Complex.I * ((∑ i, (L.comp (.inl ℝ (A → ℝ) (Fin d → ℂ))) (Pi.single i 1) * x i : ℝ) : ℂ) +
157 ∑ k, (orbitalDualTest (L.comp (.inr ℝ (A → ℝ) (Fin d → ℂ))) k * star (z k) -
158 star (orbitalDualTest (L.comp (.inr ℝ (A → ℝ) (Fin d → ℂ))) k) * z k) := by
159 rw [← L.comp_inl_add_comp_inr (x,z), Complex.ofReal_add, add_mul]
160 rw [classical_dual_eq, mul_comm _ Complex.I, mul_comm _ Complex.I, orbital_dual_phase]
161
162/-- The joint pushforward of the physical tangent coordinates is exactly the
163product of its classical marginal and independent circular Gaussian orbital
164coordinates. No independence or law-identification premise occurs. -/
165theorem jointTangent_map_eq_prod
166 (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register (A × A)))
167 (p : A → ℝ) (hp : ∀ a, 0 < p a)
168 (hu : u 0 = coefficientVector (schmidtCoefficients p))
169 (hgap : ∀ i j, i < j → 0 < p i - p j)
170 (e : Fin d ≃ OrbitalPair A) {v : ℝ} (hv : 0 < v) :
171 (gaussianProductMeasure (fun _ : Fin s => v)).map (jointTangent u p e) =
172 (classicalTangentLaw u p v).prod (gaussianProductMeasure (orbitalVariance p e v)) := by
173 letI := gaussianProductMeasure_probability (fun _ : Fin s => hv)
174 letI := gaussianProductMeasure_probability (orbitalVariance_pos p hp hgap e hv)
175 letI := classicalTangentLaw_probability u p hv
176 apply charFunDual_eq_prod_iff.mp
177 intro L
178 rw [classical_charFunDual u p (fun a => (hp a).le) hu hv,
179 orbital_charFunDual (orbitalVariance_pos p hp hgap e hv), charFunDual_apply,
180 integral_map (continuous_jointTangent u p e).aemeasurable (by fun_prop)]
181 simp only [jointTangent, joint_dual_phase]
182 exact joint_characteristic_reindexed u p (fun a => (hp a).le) hu hgap e hv
183 (fun i => (L.comp (.inl ℝ (A → ℝ) (Fin d → ℂ))) (Pi.single i 1))
184 (orbitalDualTest (L.comp (.inr ℝ (A → ℝ) (Fin d → ℂ))))
185
186/-- Bochner integration against the tangent frame can be computed against
187its now identified product law. -/
188theorem integral_jointTangent {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
189 (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register (A × A)))
190 (p : A → ℝ) (hp : ∀ a, 0 < p a)
191 (hu : u 0 = coefficientVector (schmidtCoefficients p))
192 (hgap : ∀ i j, i < j → 0 < p i - p j)
193 (e : Fin d ≃ OrbitalPair A) {v : ℝ} (hv : 0 < v)
194 (f : (A → ℝ) × (Fin d → ℂ) → E)
195 (hf : Integrable f ((classicalTangentLaw u p v).prod
196 (gaussianProductMeasure (orbitalVariance p e v)))) :
197 (∫ z, f (jointTangent u p e z) ∂gaussianProductMeasure (fun _ : Fin s => v)) =
198 ∫ x, ∫ a, f (x,a) ∂gaussianProductMeasure (orbitalVariance p e v)
199 ∂classicalTangentLaw u p v := by
200 letI := gaussianProductMeasure_probability (orbitalVariance_pos p hp hgap e hv)
201 letI := classicalTangentLaw_probability u p hv
202 have hm := jointTangent_map_eq_prod u p hp hu hgap e hv
203 rw [← integral_prod f hf, ← hm]
204 exact (integral_map (continuous_jointTangent u p e).aemeasurable
205 (by rw [hm]; exact hf.aestronglyMeasurable)).symm
206
207end Cloning.PCTJointGaussianLaw