Offline · exact source
Exact Lean source

WeylGaussianTwistedConvolution

formalization/Cloning/WeylGaussianTwistedConvolution.lean

Source hash: 359734de55ff35698d31adf985e397d19d8006b998912929778b8fcf2ba80925

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.WeylGaussianThermal
2import Cloning.WeylQuantumPositive
3import Mathlib.MeasureTheory.Integral.Pi
4import Mathlib.MeasureTheory.Group.Prod
5 
6/-! Exact twisted convolution of anisotropic Gaussian phase-space weights for
7the concrete Weyl cocycle. This is the scalar analytic step in the direct
8least-noise bound from quantum positivity. -/
9noncomputable section
10open scoped ComplexOrder BigOperators Topology
11open Filter MeasureTheory
12namespace Cloning.ComplexCoherent
13set_option backward.isDefEq.respectTransparency false
14set_option maxHeartbeats 1600000
15 
16/-- One-mode twisted Gaussian convolution, with exactly the physical Weyl
17cocycle ratio at gain `r`. -/
18theorem integral_gaussian_twisted_single {t : ℝ} (ht : 0 < t) (r : ℝ) (z : ℂ) :
19    (∫ a : ℂ, (Real.exp (-t * ‖a‖ ^ 2) : ℂ) *
20      (Real.exp (-t * ‖a + z‖ ^ 2) : ℂ) *
21      (displacementPhase (-a) (a + z) / displacementPhase (-(r • a)) (r • (a + z)))) =
22      ((Real.pi / (2 * t) : ℝ) : ℂ) *
23        (Real.exp (-(t / 2 + (r ^ 2 - 1) ^ 2 / (8 * t)) * ‖z‖ ^ 2) : ℂ) := by
24  let u : ℂ := (((r : ℂ) ^ 2 - 1) / 2 - (t : ℂ)) * starRingEnd ℂ z
25  let v : ℂ := (-((r : ℂ) ^ 2 - 1) / 2 - (t : ℂ)) * z
26  have he (a : ℂ) : (Real.exp (-t * ‖a‖ ^ 2) : ℂ) *
27      (Real.exp (-t * ‖a + z‖ ^ 2) : ℂ) *
28      (displacementPhase (-a) (a + z) / displacementPhase (-(r • a)) (r • (a + z))) =
29      Complex.exp (-(t : ℂ) * ((‖z‖ ^ 2 : ℝ) : ℂ)) *
30        Complex.exp (-((2 * t : ℝ) : ℂ) * ((‖a‖ ^ 2 : ℝ) : ℂ) +
31          u * a + v * starRingEnd ℂ a) := by
32    simp only [Complex.ofReal_exp, Complex.ofReal_mul, Complex.ofReal_neg,
33      displacementPhase, ← Complex.exp_sub, ← Complex.exp_add]
34    congr 1
35    simp only [norm_sq_cast', map_add, map_neg, Complex.real_smul, map_mul,
36      Complex.conj_ofReal, Complex.ofReal_mul, Complex.ofReal_ofNat, u, v]
37    ring
38  simp_rw [he]
39  rw [integral_const_mul, integral_complex_gaussian_linear_scaled (by positivity : 0 < 2 * t)]
40  rw [mul_left_comm]
41  congr 1
42  rw [← Complex.exp_add, Complex.ofReal_exp]
43  congr 1
44  have htC : (t : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr ht.ne'
45  simp only [u, v, norm_sq_cast', Complex.ofReal_mul, Complex.ofReal_add,
46    Complex.ofReal_neg, Complex.ofReal_div, Complex.ofReal_pow, Complex.ofReal_sub,
47    Complex.ofReal_one, Complex.ofReal_ofNat]
48  simp only [norm_sq_cast]
49  field_simp
50  ring
51 
52end Cloning.ComplexCoherent
53 
54namespace Cloning.MultimodeCoherent
55set_option backward.isDefEq.respectTransparency false
56set_option maxHeartbeats 1600000
57variable {d : ℕ}
58 
59/-- The unnormalized anisotropic Gaussian test weight. -/
60def gaussianWeight (t : Fin d → ℝ) (a : Fin d → ℂ) : ℝ :=
61  ∏ i, Real.exp (-t i * ‖a i‖ ^ 2)
62 
63lemma gaussianWeight_nonneg (t : Fin d → ℝ) (a : Fin d → ℂ) : 0 ≤ gaussianWeight t a :=
64  Finset.prod_nonneg (fun _ _ => (Real.exp_pos _).le)
65 
66lemma continuous_gaussianWeight (t : Fin d → ℝ) : Continuous (gaussianWeight t) := by
67  unfold gaussianWeight
68  fun_prop
69 
70lemma integral_gaussian_single {t : ℝ} (ht : 0 < t) :
71    (∫ a : ℂ, Real.exp (-t * ‖a‖ ^ 2)) = Real.pi / t := by
72  simpa using Cloning.ComplexGaussianMoments.radial_integral t ht 0
73 
74lemma integrable_gaussian_single {t : ℝ} (ht : 0 < t) :
75    Integrable (fun a : ℂ => Real.exp (-t * ‖a‖ ^ 2)) := by
76  apply Integrable.of_integral_ne_zero
77  rw [integral_gaussian_single ht]
78  exact (div_pos Real.pi_pos ht).ne'
79 
80lemma integrable_gaussianWeight {t : Fin d → ℝ} (ht : ∀ i, 0 < t i) :
81    Integrable (gaussianWeight t) :=
82  Integrable.fintype_prod (fun i => integrable_gaussian_single (ht i))
83 
84lemma integral_gaussianWeight {t : Fin d → ℝ} (ht : ∀ i, 0 < t i) :
85    (∫ a, gaussianWeight t a) = ∏ i, Real.pi / t i := by
86  unfold gaussianWeight
87  rw [integral_fintype_prod_volume_eq_prod (fun i (a : ℂ) => Real.exp (-t i * ‖a‖ ^ 2))]
88  simp only [integral_gaussian_single (ht _)]
89 
90/-- Product form of the exact twisted Gaussian convolution; no isotropy
91assumption is made on the widths. -/
92theorem integral_gaussian_twisted_product {t : Fin d → ℝ} (ht : ∀ i, 0 < t i)
93    (r : ℝ) (z : Fin d → ℂ) :
94    (∫ a, (gaussianWeight t a : ℂ) * (gaussianWeight t (a + z) : ℂ) *
95      (displacementPhase (-a) (a + z) / displacementPhase (-(r • a)) (r • (a + z)))) =
96      ((∏ i, Real.pi / (2 * t i) : ℝ) : ℂ) *
97        (gaussianWeight (fun i => t i / 2 + (r ^ 2 - 1) ^ 2 / (8 * t i)) z : ℂ) := by
98  have he (a : Fin d → ℂ) :
99      (gaussianWeight t a : ℂ) * (gaussianWeight t (a + z) : ℂ) *
100        (displacementPhase (-a) (a + z) / displacementPhase (-(r • a)) (r • (a + z))) =
101      ∏ i, ((Real.exp (-t i * ‖a i‖ ^ 2) : ℂ) *
102        (Real.exp (-t i * ‖a i + z i‖ ^ 2) : ℂ) *
103        (Cloning.ComplexCoherent.displacementPhase (-a i) (a i + z i) /
104          Cloning.ComplexCoherent.displacementPhase (-(r • a i)) (r • (a i + z i)))) := by
105    simp only [gaussianWeight, displacementPhase, Complex.ofReal_prod, Pi.add_apply,
106      Pi.neg_apply, Pi.smul_apply, Finset.prod_mul_distrib, Finset.prod_div_distrib]
107  simp_rw [he]
108  rw [integral_fintype_prod_volume_eq_prod (fun i (a : ℂ) =>
109    (Real.exp (-t i * ‖a‖ ^ 2) : ℂ) * (Real.exp (-t i * ‖a + z i‖ ^ 2) : ℂ) *
110      (Cloning.ComplexCoherent.displacementPhase (-a) (a + z i) /
111        Cloning.ComplexCoherent.displacementPhase (-(r • a)) (r • (a + z i))))]
112  simp only [Cloning.ComplexCoherent.integral_gaussian_twisted_single (ht _),
113    Finset.prod_mul_distrib, ← Complex.ofReal_prod, gaussianWeight]
114 
115lemma quantumPositiveKernel_norm (f : (Fin d → ℂ) → ℂ) (r : ℝ)
116    (a b : Fin d → ℂ) : ‖quantumPositiveKernel f r a b‖ = ‖f (b - a)‖ := by
117  simp only [quantumPositiveKernel, norm_mul, norm_div, displacementPhase_norm, div_self one_ne_zero,
118    one_mul]
119 
120lemma continuous_quantumPositiveKernel {f : (Fin d → ℂ) → ℂ} (hf : Continuous f) (r : ℝ) :
121    Continuous (fun p : (Fin d → ℂ) × (Fin d → ℂ) => quantumPositiveKernel f r p.1 p.2) := by
122  unfold quantumPositiveKernel
123  apply Continuous.mul
124  · apply Continuous.div
125    · unfold displacementPhase Cloning.ComplexCoherent.displacementPhase
126      fun_prop
127    · unfold displacementPhase Cloning.ComplexCoherent.displacementPhase
128      fun_prop
129    · intro p
130      exact displacementPhase_ne_zero _ _
131  · exact hf.comp (continuous_snd.sub continuous_fst)
132 
133/-- Absolute integrability of the kernel quadratic form follows solely from
134the Gaussian weights and the multiplier bound. -/
135lemma integrable_gaussian_kernel {t : Fin d → ℝ} (ht : ∀ i, 0 < t i)
136    {f : (Fin d → ℂ) → ℂ} (hf : Continuous f) (hfbound : ∀ a, ‖f a‖ ≤ 1) (r : ℝ) :
137    Integrable (fun p : (Fin d → ℂ) × (Fin d → ℂ) =>
138      (gaussianWeight t p.1 : ℂ) * (gaussianWeight t p.2 : ℂ) *
139        quantumPositiveKernel f r p.1 p.2) (volume.prod volume) := by
140  apply ((integrable_gaussianWeight ht).mul_prod (integrable_gaussianWeight ht)).mono'
141  · exact (((Complex.continuous_ofReal.comp (continuous_gaussianWeight t |>.comp continuous_fst)).mul
142      (Complex.continuous_ofReal.comp (continuous_gaussianWeight t |>.comp continuous_snd))).mul
143        (continuous_quantumPositiveKernel hf r)).aestronglyMeasurable
144  · exact Eventually.of_forall fun p => by
145      rw [norm_mul, norm_mul, Complex.norm_real, Complex.norm_real,
146        Real.norm_of_nonneg (gaussianWeight_nonneg _ _),
147        Real.norm_of_nonneg (gaussianWeight_nonneg _ _), quantumPositiveKernel_norm]
148      exact mul_le_of_le_one_right (mul_nonneg (gaussianWeight_nonneg _ _) (gaussianWeight_nonneg _ _))
149        (hfbound _)
150 
151/-- The exact double-integral identity feeding the quantum-positive Gaussian
152recursion. The shear and Fubini steps are justified in the full Bochner
153integral by a proved integrable dominating Gaussian. -/
154theorem integral_integral_gaussian_quantumKernel {t : Fin d → ℝ} (ht : ∀ i, 0 < t i)
155    {f : (Fin d → ℂ) → ℂ} (hf : Continuous f) (hfbound : ∀ a, ‖f a‖ ≤ 1) (r : ℝ) :
156    (∫ a, ∫ b, (gaussianWeight t a : ℂ) * (gaussianWeight t b : ℂ) *
157      quantumPositiveKernel f r a b) =
158      ((∏ i, Real.pi / (2 * t i) : ℝ) : ℂ) *
159        ∫ z, (gaussianWeight (fun i => t i / 2 + (r ^ 2 - 1) ^ 2 / (8 * t i)) z : ℂ) * f z := by
160  let K := fun a b => (gaussianWeight t a : ℂ) * (gaussianWeight t b : ℂ) *
161    quantumPositiveKernel f r a b
162  have hi := (measurePreserving_prod_add volume volume).integrable_comp_of_integrable
163    (integrable_gaussian_kernel ht hf hfbound r)
164  have hshift : (∫ a, ∫ b, K a b) = ∫ a, ∫ z, K a (a + z) := by
165    apply integral_congr_ae
166    exact Eventually.of_forall fun a => (integral_add_left_eq_self (K a) a).symm
167  change (∫ a, ∫ b, K a b) = _
168  have hi' : Integrable (Function.uncurry (fun a z => K a (a + z))) (volume.prod volume) := hi
169  rw [hshift, integral_integral_swap (f := fun a z => K a (a + z)) hi']
170  have he (a z : Fin d → ℂ) : K a (a + z) =
171      ((gaussianWeight t a : ℂ) * (gaussianWeight t (a + z) : ℂ) *
172        (displacementPhase (-a) (a + z) / displacementPhase (-(r • a)) (r • (a + z)))) * f z := by
173    simp only [K, quantumPositiveKernel, add_sub_cancel_left, mul_assoc]
174  simp_rw [he, integral_mul_const, integral_gaussian_twisted_product ht r]
175  rw [← integral_const_mul]
176  apply integral_congr_ae
177  exact Eventually.of_forall fun z => mul_assoc _ _ _
178 
179end Cloning.MultimodeCoherent