Offline · exact source
Exact Lean source

WeylGaussianProjectionSandwich

formalization/Cloning/WeylGaussianProjectionSandwich.lean

Source hash: e11ec68a8289a4db90cec379c01abee3c125e56da4746b3dbeab16784b449095

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.WeylGaussianProjection
2 
3/-! The abstract Gaussian average is a projection and has the vacuum Weyl sandwich law. -/
4noncomputable section
5open scoped BigOperators Topology InnerProductSpace ComplexOrder
6open MeasureTheory Filter
7namespace Cloning.WeylGNS
8open Cloning.MultimodeCoherent
9set_option backward.isDefEq.respectTransparency false
10set_option maxHeartbeats 120000
11variable {d : ℕ} {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
12variable (W : RegularWeyl d H)
13 
14private theorem continuous_phase_pair :
15    Continuous (fun ab : (Fin d → ℂ)×(Fin d → ℂ) ↦ displacementPhase ab.1 ab.2) := by
16  unfold displacementPhase Cloning.ComplexCoherent.displacementPhase
17  fun_prop
18 
19def RegularWeyl.gaussianSandwichIntegrand (z : Fin d → ℂ) (v : H)
20    (a b : Fin d → ℂ) : H :=
21  ((weylGaussianWeight a : ℂ)*(weylGaussianWeight b : ℂ)*
22    displacementPhase a z*displacementPhase (a+z) b) • W.operator (a+z+b) v
23 
24set_option backward.isDefEq.respectTransparency true in
25theorem RegularWeyl.integrable_gaussianSandwichIntegrand (z : Fin d → ℂ) (v : H) :
26    Integrable (Function.uncurry (W.gaussianSandwichIntegrand z v)) (volume.prod volume) := by
27  have hc1 : Continuous (fun ab : (Fin d → ℂ) × (Fin d → ℂ) ↦
28      (weylGaussianWeight ab.1 : ℂ)) :=
29    (Complex.continuous_ofReal.comp (continuous_weylGaussianWeight (d := d))).comp continuous_fst
30  have hc2 : Continuous (fun ab : (Fin d → ℂ) × (Fin d → ℂ) ↦
31      (weylGaussianWeight ab.2 : ℂ)) :=
32    (Complex.continuous_ofReal.comp (continuous_weylGaussianWeight (d := d))).comp continuous_snd
33  have hc3 : Continuous (fun ab : (Fin d → ℂ) × (Fin d → ℂ) ↦ displacementPhase ab.1 z) :=
34    (continuous_displacementPhase z).comp continuous_fst
35  have harg : Continuous (fun ab : (Fin d → ℂ) × (Fin d → ℂ) ↦ (ab.1 + z, ab.2)) :=
36    (continuous_fst.add continuous_const).prodMk continuous_snd
37  have hc4 : Continuous (fun ab : (Fin d → ℂ) × (Fin d → ℂ) ↦
38      displacementPhase (ab.1 + z) ab.2) :=
39    by
40      have hh := (continuous_phase_pair (d := d)).comp harg
41      exact hh
42  have hc5 : Continuous (fun ab : (Fin d → ℂ) × (Fin d → ℂ) ↦
43      W.operator (ab.1 + z + ab.2) v) :=
44    (W.continuous_apply v).comp ((continuous_fst.add continuous_const).add continuous_snd)
45  have hc : Continuous (Function.uncurry (W.gaussianSandwichIntegrand z v)) :=
46    (((hc1.mul hc2).mul hc3).mul hc4).smul hc5
47  apply ((integrable_weylGaussianWeight.mul_prod integrable_weylGaussianWeight).mul_const ‖v‖).mono' hc.aestronglyMeasurable
48  filter_upwards [] with ab
49  simp only [Function.uncurry, RegularWeyl.gaussianSandwichIntegrand, norm_smul, norm_mul,
50    displacementPhase_norm, mul_one, W.operator_norm, Complex.norm_real,
51    Real.norm_of_nonneg (weylGaussianWeight_nonneg _)]
52  exact le_rfl
53 
54private theorem triple_operator (z a b : Fin d → ℂ) (v : H) :
55    W.operator a (W.operator z (W.operator b v))=
56      (displacementPhase a z*displacementPhase (a+z) b) • W.operator (a+z+b) v := by
57  change W.toIsometry a (W.toIsometry z (W.toIsometry b v))=_
58  rw [W.mul_apply a z, W.mul_apply (a+z) b, smul_smul]
59  rfl
60 
61/-- The actual strong Gaussian average obeys the vacuum sandwich relation. -/
62theorem RegularWeyl.gaussianProjection_sandwich_apply (z : Fin d → ℂ) (v : H) :
63    W.gaussianProjection (W.operator z (W.gaussianProjection v))=
64      (gaussianWeight (fun _ : Fin d ↦ (1/2:ℝ)) z : ℂ) • W.gaussianProjection v := by
65  let K := W.gaussianSandwichIntegrand z v
66  have hexpand : W.gaussianProjection (W.operator z (W.gaussianProjection v))=∫ a, ∫ b, K a b := by
67    rw [W.gaussianProjection_apply]
68    apply integral_congr_ae
69    filter_upwards [] with a
70    have he := ((W.operator a).comp (W.operator z)).integral_comp_comm (W.integrable_weighted_operator v)
71    change (∫ b, W.operator a (W.operator z ((weylGaussianWeight b : ℂ) • W.operator b v)))=
72      W.operator a (W.operator z (W.gaussianProjection v)) at he
73    rw [← he, ← integral_smul]
74    apply integral_congr_ae
75    filter_upwards [] with b
76    simp only [map_smul, triple_operator, smul_smul, K, RegularWeyl.gaussianSandwichIntegrand]
77    congr 1
78    ring
79  have hmp : MeasurePreserving (fun ac : (Fin d → ℂ)×(Fin d → ℂ) ↦ (ac.1,ac.2-z-ac.1))
80      (volume.prod volume) (volume.prod volume) :=
81    (measurePreserving_prod_sub volume volume).comp
82      ((MeasurePreserving.id volume).prod (measurePreserving_sub_right volume z))
83  have hi : Integrable (Function.uncurry (fun a c ↦ K a (c-z-a))) (volume.prod volume) :=
84    hmp.integrable_comp_of_integrable (W.integrable_gaussianSandwichIntegrand z v)
85  have hshift : (∫ a, ∫ b, K a b)=∫ a, ∫ c, K a (c-z-a) := by
86    apply integral_congr_ae
87    filter_upwards [] with a
88    have he : (fun c ↦ K a (c-z-a))=(fun c ↦ K a (c-(z+a))) := by
89      funext c
90      congr 1
91      abel
92    rw [he, integral_sub_right_eq_self]
93  rw [hexpand, hshift, integral_integral_swap hi]
94  have he (a c : Fin d → ℂ) : K a (c-z-a)=
95      ((weylGaussianWeight a : ℂ)*(weylGaussianWeight (c-z-a) : ℂ)*
96        displacementPhase a z*displacementPhase (a+z) (c-z-a)) • W.operator c v := by
97    dsimp only [K, RegularWeyl.gaussianSandwichIntegrand]
98    congr 2
99    abel
100  simp_rw [he, integral_smul_const, integral_weylGaussian_sandwich, mul_smul]
101  rw [integral_smul, W.gaussianProjection_apply]
102 
103theorem RegularWeyl.gaussianProjection_idempotent :
104    W.gaussianProjection.comp W.gaussianProjection=W.gaussianProjection := by
105  ext v
106  have hh := W.gaussianProjection_sandwich_apply 0 v
107  simpa only [W.operator_zero, ContinuousLinearMap.id_apply, gaussianWeight, Pi.zero_apply,
108    norm_zero, zero_pow (by norm_num : (2:ℕ)≠0), mul_zero, neg_zero, Real.exp_zero,
109    Finset.prod_const_one, Complex.ofReal_one, one_smul] using hh
110 
111end Cloning.WeylGNS