Offline · exact source
Exact Lean source

WeylGaussianSandwich

formalization/Cloning/WeylGaussianSandwich.lean

Source hash: a58e0928927e20ec0c063ad8bf69ba55af4218c55a0682cdfc3047a86e49f5c1

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.WeylGaussianTwistedConvolution
2 
3/-! Exact Gaussian sandwich convolution for the standard Weyl cocycle.
4These scalar identities apply to every strongly continuous Weyl representation. -/
5noncomputable section
6open scoped BigOperators Topology ComplexOrder
7open MeasureTheory
8namespace Cloning.ComplexCoherent
9set_option backward.isDefEq.respectTransparency false
10set_option maxHeartbeats 800000
11 
12/-- The scalar convolution underlying `P W(z) P = exp(-|z|²/2) P`. -/
13theorem integral_gaussian_sandwich_single (z c : ℂ) :
14    (∫ a : ℂ, (Real.exp (-‖a‖^2/2) : ℂ) *
15      (Real.exp (-‖c-z-a‖^2/2) : ℂ) *
16      displacementPhase a z * displacementPhase (a+z) (c-z-a)) =
17      (Real.pi : ℂ) * (Real.exp (-‖z‖^2/2) : ℂ) * (Real.exp (-‖c‖^2/2) : ℂ) := by
18  let C : ℂ := -((‖c-z‖^2 : ℝ) : ℂ)/2+
19    (z*starRingEnd ℂ (c-z)-starRingEnd ℂ z*(c-z))/2
20  have he (a : ℂ) : (Real.exp (-‖a‖^2/2) : ℂ) *
21      (Real.exp (-‖c-z-a‖^2/2) : ℂ) *
22      displacementPhase a z * displacementPhase (a+z) (c-z-a) =
23      Complex.exp C * Complex.exp (-((‖a‖^2 : ℝ) : ℂ)+starRingEnd ℂ c*a+(-z)*starRingEnd ℂ a) := by
24    simp only [Complex.ofReal_exp, displacementPhase, ← Complex.exp_add]
25    congr 1
26    simp only [C, norm_sq_cast', map_sub, map_add, Complex.ofReal_div,
27      Complex.ofReal_neg, Complex.ofReal_ofNat]
28    ring
29  simp_rw [he]
30  rw [integral_const_mul, integral_complex_gaussian_linear]
31  rw [mul_left_comm, ← Complex.exp_add]
32  simp only [Complex.ofReal_exp, mul_assoc, ← Complex.exp_add]
33  congr 1
34  congr 1
35  simp only [C, norm_sq_cast', map_sub, Complex.ofReal_div, Complex.ofReal_neg,
36    Complex.ofReal_ofNat]
37  ring
38 
39end Cloning.ComplexCoherent
40 
41namespace Cloning.MultimodeCoherent
42set_option backward.isDefEq.respectTransparency false
43set_option maxHeartbeats 800000
44variable {d : ℕ}
45 
46/-- Product Gaussian sandwich identity in an arbitrary finite number of modes. -/
47theorem integral_gaussian_sandwich_product (z c : Fin d → ℂ) :
48    (∫ a, (gaussianWeight (fun _ : Fin d ↦ (1/2:ℝ)) a : ℂ) *
49      (gaussianWeight (fun _ : Fin d ↦ (1/2:ℝ)) (c-z-a) : ℂ) *
50      displacementPhase a z * displacementPhase (a+z) (c-z-a)) =
51      (Real.pi : ℂ)^d * (gaussianWeight (fun _ : Fin d ↦ (1/2:ℝ)) z : ℂ) *
52        (gaussianWeight (fun _ : Fin d ↦ (1/2:ℝ)) c : ℂ) := by
53  have hhalf (t : ℝ) : -(1/2:ℝ)*t = -t/2 := by ring
54  have he (a : Fin d → ℂ) : (gaussianWeight (fun _ : Fin d ↦ (1/2:ℝ)) a : ℂ) *
55      (gaussianWeight (fun _ : Fin d ↦ (1/2:ℝ)) (c-z-a) : ℂ) *
56      displacementPhase a z * displacementPhase (a+z) (c-z-a) =
57      ∏ i, ((Real.exp (-‖a i‖^2/2) : ℂ) * (Real.exp (-‖c i-z i-a i‖^2/2) : ℂ) *
58        Cloning.ComplexCoherent.displacementPhase (a i) (z i) *
59        Cloning.ComplexCoherent.displacementPhase (a i+z i) (c i-z i-a i)) := by
60    simp only [gaussianWeight, displacementPhase, Complex.ofReal_prod, Pi.sub_apply,
61      Pi.add_apply, Finset.prod_mul_distrib, hhalf]
62  simp_rw [he]
63  rw [integral_fintype_prod_volume_eq_prod (fun i (a : ℂ) ↦
64    (Real.exp (-‖a‖^2/2) : ℂ) * (Real.exp (-‖c i-z i-a‖^2/2) : ℂ) *
65      Cloning.ComplexCoherent.displacementPhase a (z i) *
66      Cloning.ComplexCoherent.displacementPhase (a+z i) (c i-z i-a))]
67  simp only [Cloning.ComplexCoherent.integral_gaussian_sandwich_single,
68    Finset.prod_mul_distrib, Finset.prod_const, Finset.card_univ, Fintype.card_fin,
69    gaussianWeight, Complex.ofReal_prod, hhalf]
70 
71end Cloning.MultimodeCoherent