Exact Lean source
PCTProjectorPurityGaussianCross
formalization/Cloning/PCTProjectorPurityGaussianCross.lean
Source hash: 8a061c2a1ca82d9530d546bb8b42cd0e65cb1e94aecec8dff469ad2c86c8c612
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.PCTProjectorPurityGaussianSingle
2
3/-! The exact finite-dimensional Gaussian cross moment responsible for the
4projector-purity correction, derived from the actual circular product law. -/
5noncomputable section
6open scoped Topology BigOperators
7open MeasureTheory
8namespace Cloning.PCTProjectorPurity
9open Cloning.CoherentGaussianMixture Cloning.MultimodeCoherentGaussianMixture
10set_option backward.isDefEq.respectTransparency true
11set_option maxHeartbeats 150000
12
13lemma cross_re_le_energy (z w : ℂ) :
14 4*z.re*w.re≤2*(‖z‖^2+‖w‖^2) := by
15 rw [←Complex.normSq_eq_norm_sq,←Complex.normSq_eq_norm_sq,Complex.normSq_apply,
16 Complex.normSq_apply]
17 nlinarith [sq_nonneg (z.re-w.re),sq_nonneg z.im,sq_nonneg w.im]
18
19lemma cross_exp_le_energy (s : ℕ) (zw : (Fin s → ℂ) × (Fin s → ℂ)) :
20 Real.exp (4*∑i,(zw.1 i).re*(zw.2 i).re)≤
21 Real.exp (2*((∑i,‖zw.1 i‖^2)+(∑i,‖zw.2 i‖^2))) := by
22 apply Real.exp_le_exp.mpr
23 rw [Finset.mul_sum,mul_add,Finset.mul_sum,Finset.mul_sum,←Finset.sum_add_distrib]
24 apply Finset.sum_le_sum
25 intro i _
26 simpa only [mul_add,mul_assoc] using cross_re_le_energy (zw.1 i) (zw.2 i)
27
28/-- Joint integrability is established before using Fubini. -/
29theorem integrable_exp_re_cross (s : ℕ) {δ : ℝ} (hδ : 0<δ) (hδ2 : δ<1/2) :
30 Integrable (fun zw : (Fin s → ℂ) × (Fin s → ℂ) =>
31 Real.exp (4*∑i,(zw.1 i).re*(zw.2 i).re))
32 ((gaussianProductMeasure (fun _ : Fin s => δ)).prod
33 (gaussianProductMeasure (fun _ : Fin s => δ))) := by
34 apply (integrable_exp_energy_pair s hδ 2 (by linarith)).mono'
35 · exact (by fun_prop : Continuous (fun zw : (Fin s → ℂ) × (Fin s → ℂ) =>
36 Real.exp (4*∑i,(zw.1 i).re*(zw.2 i).re))).aestronglyMeasurable
37 · exact Filter.Eventually.of_forall (fun zw => by
38 rw [Real.norm_eq_abs,abs_of_pos (Real.exp_pos _)]
39 exact cross_exp_le_energy s zw)
40
41lemma integral_exp_re_cross_inner (s : ℕ) {δ : ℝ} (hδ : 0<δ) (z : Fin s → ℂ) :
42 (∫w : Fin s → ℂ,Real.exp (4*∑i,(z i).re*(w i).re)
43 ∂gaussianProductMeasure (fun _ => δ))=
44 ∏i,Real.exp (4*δ*(z i).re^2) := by
45 letI := gaussianMeasure_probability hδ
46 simp only [Finset.mul_sum,Real.exp_sum,gaussianProductMeasure]
47 rw [integral_fintype_prod_eq_prod (fun i : Fin s => fun x : ℂ => Real.exp (4*((z i).re*x.re)))]
48 apply Finset.prod_congr rfl
49 intro i _
50 rw [show (fun x : ℂ => Real.exp (4*((z i).re*x.re)))=
51 (fun x : ℂ => Real.exp ((4*(z i).re)*x.re)) by funext; congr 1; ring,
52 integral_exp_re hδ]
53 congr 1
54 ring
55
56/-- The circular Gaussian product cross moment, with every variance and
57normalization factor derived explicitly. -/
58theorem integral_exp_re_cross (s : ℕ) {δ : ℝ} (hδ : 0<δ) (hδ2 : δ<1/2) :
59 (∫zw : (Fin s → ℂ) × (Fin s → ℂ),
60 Real.exp (4*∑i,(zw.1 i).re*(zw.2 i).re)
61 ∂((gaussianProductMeasure (fun _ : Fin s => δ)).prod
62 (gaussianProductMeasure (fun _ : Fin s => δ))))=
63 (1-4*δ^2)^(-(s : ℝ)/2) := by
64 letI := gaussianMeasure_probability hδ
65 letI := gaussianProductMeasure_probability (fun _ : Fin s => hδ)
66 rw [integral_prod _ (integrable_exp_re_cross s hδ hδ2)]
67 simp_rw [integral_exp_re_cross_inner s hδ]
68 rw [gaussianProductMeasure,integral_fintype_prod_eq_prod (fun _ : Fin s => fun x : ℂ => Real.exp (4*δ*x.re^2))]
69 have ht : (4*δ)*δ<1 := by nlinarith
70 simp only [integral_exp_re_sq hδ (4*δ) ht,Finset.prod_const,Finset.card_univ,Fintype.card_fin]
71 have hb : 0<1-4*δ^2 := by nlinarith
72 rw [show 1-4*δ*δ=1-4*δ^2 by ring,inv_pow,Real.sqrt_eq_rpow,
73 ←Real.rpow_mul_natCast hb.le,←Real.rpow_neg hb.le]
74 congr 1
75 ring
76
77end Cloning.PCTProjectorPurity