Offline · exact source
Exact Lean source

PCTFlatGaussianCrossLaw

formalization/Cloning/PCTFlatGaussianCrossLaw.lean

Source hash: 217f7f4acaedcc431831f5a2e8a95290646728ccbd2298a7a1d0a723f4b127eb

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.PCTGaussianCovariance
2import Mathlib.MeasureTheory.Measure.CharacteristicFunction.Basic
3import Mathlib.Analysis.InnerProductSpace.Dual
4 
5/-! The actual circular Gaussian tangent law depends only on the reference
6vector, not on the orthonormal frame used to integrate it. -/
7noncomputable section
8open MeasureTheory
9open scoped ComplexOrder InnerProductSpace Topology BigOperators
10namespace Cloning.PCTFlatGaussianCross
11open Cloning.PCT Cloning.PCTGaussianCovariance Cloning.MultimodeCoherentGaussianMixture
12set_option backward.isDefEq.respectTransparency false
13set_option maxHeartbeats 1000000
14variable {C : Type*} [Fintype C] [DecidableEq C] {s : ℕ}
15 
16local instance flatLawRegisterMeasurable : MeasurableSpace (Register C) := borel _
17local instance flatLawRegisterBorel : BorelSpace (Register C) := ⟨rfl⟩
18 
19local instance flatLawRegisterComplexFinite : FiniteDimensional ℂ (Register C) :=
20  (registerBasis C).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
21local instance flatLawRegisterRealFinite : FiniteDimensional ℝ (Register C) :=
22  Module.Finite.trans ℂ (Register C)
23 
24lemma register_real_inner (x y : Register C) : ⟪x,y⟫_ℝ=(⟪x,y⟫_ℂ).re := by
25  rw [lp.inner_eq_tsum,lp.inner_eq_tsum]
26  simp only [tsum_fintype,Complex.re_sum]
27  apply Finset.sum_congr rfl
28  intro i _
29  exact real_inner_eq_re_inner (𝕜 := ℂ) (x i) (y i)
30 
31lemma continuous_frameTangent (u : Fin (s+1) → Register C) : Continuous (frameTangent u) := by
32  unfold frameTangent
33  fun_prop
34 
35private def dualTest (L : StrongDual ℝ (Register C)) : Register C :=
36  (-Complex.I/2) • (InnerProductSpace.toDual ℝ (Register C)).symm L
37 
38private lemma dualTest_phase (L : StrongDual ℝ (Register C)) (x : Register C) :
39    ⟪dualTest L,x⟫_ℂ-⟪x,dualTest L⟫_ℂ=(L x : ℂ)*Complex.I := by
40  let y := (InnerProductSpace.toDual ℝ (Register C)).symm L
41  have hL : (⟪y,x⟫_ℂ).re=L x := by
42    rw [← register_real_inner]
43    exact InnerProductSpace.toDual_symm_apply
44  change ⟪(-Complex.I/2) • y,x⟫_ℂ-⟪x,(-Complex.I/2) • y⟫_ℂ=_
45  have hxy : ⟪x,y⟫_ℂ=star ⟪y,x⟫_ℂ := (inner_conj_symm x y).symm
46  rw [inner_smul_left,inner_smul_right,hxy]
47  have hscalar (c : ℂ) : star (-Complex.I/2)*c-(-Complex.I/2)*star c=
48      (c.re : ℂ)*Complex.I := by
49    apply Complex.ext <;> simp [Complex.star_def,Complex.mul_re,Complex.mul_im] <;> ring
50  simp only [starRingEnd_apply]
51  rw [hscalar,hL]
52 
53/-- Equality of actual pushforward measures, proved by all continuous real
54linear characteristic functionals and the projected-norm formula. -/
55theorem frameTangent_map_eq
56    (u v : OrthonormalBasis (Fin (s+1)) ℂ (Register C)) (h0 : u 0=v 0)
57    {δ : ℝ} (hδ : 0<δ) :
58    (gaussianProductMeasure (fun _ : Fin s => δ)).map (frameTangent u)=
59      (gaussianProductMeasure (fun _ : Fin s => δ)).map (frameTangent v) := by
60  letI := gaussianProductMeasure_probability (fun _ : Fin s => hδ)
61  have hu : AEMeasurable (frameTangent u) (gaussianProductMeasure (fun _ : Fin s => δ)) :=
62    (continuous_frameTangent u).aemeasurable
63  have hv : AEMeasurable (frameTangent v) (gaussianProductMeasure (fun _ : Fin s => δ)) :=
64    (continuous_frameTangent v).aemeasurable
65  letI := Measure.isProbabilityMeasure_map hu
66  letI := Measure.isProbabilityMeasure_map hv
67  apply Measure.ext_of_charFunDual
68  funext L
69  rw [charFunDual_apply,charFunDual_apply,
70    integral_map hu (by fun_prop),integral_map hv (by fun_prop)]
71  simp_rw [← dualTest_phase]
72  rw [frameTangent_characteristic u hδ,frameTangent_characteristic v hδ,h0]
73 
74/-- The two independent physical tangents have the same actual product
75pushforward in every frame through the same reference. -/
76theorem frameTangent_prod_map_eq
77    (u v : OrthonormalBasis (Fin (s+1)) ℂ (Register C)) (h0 : u 0=v 0)
78    {δ : ℝ} (hδ : 0<δ) :
79    ((gaussianProductMeasure (fun _ : Fin s => δ)).prod
80      (gaussianProductMeasure (fun _ : Fin s => δ))).map
81        (Prod.map (frameTangent u) (frameTangent u))=
82    ((gaussianProductMeasure (fun _ : Fin s => δ)).prod
83      (gaussianProductMeasure (fun _ : Fin s => δ))).map
84        (Prod.map (frameTangent v) (frameTangent v)) := by
85  letI := gaussianProductMeasure_probability (fun _ : Fin s => hδ)
86  rw [← Measure.map_prod_map _ _ (continuous_frameTangent u).measurable
87    (continuous_frameTangent u).measurable,
88    ← Measure.map_prod_map _ _ (continuous_frameTangent v).measurable
89      (continuous_frameTangent v).measurable,frameTangent_map_eq u v h0 hδ]
90 
91theorem integral_frameTangent_prod_eq
92    (u v : OrthonormalBasis (Fin (s+1)) ℂ (Register C)) (h0 : u 0=v 0)
93    {δ : ℝ} (hδ : 0<δ) (f : Register C × Register C → ℝ) (hf : Continuous f) :
94    (∫ z, f (frameTangent u z.1,frameTangent u z.2)
95      ∂(gaussianProductMeasure (fun _ : Fin s => δ)).prod
96        (gaussianProductMeasure (fun _ : Fin s => δ)))=
97    ∫ z, f (frameTangent v z.1,frameTangent v z.2)
98      ∂(gaussianProductMeasure (fun _ : Fin s => δ)).prod
99        (gaussianProductMeasure (fun _ : Fin s => δ)) := by
100  have hu := (continuous_frameTangent u).prodMap (continuous_frameTangent u)
101  have hv := (continuous_frameTangent v).prodMap (continuous_frameTangent v)
102  change (∫ z, f (Prod.map (frameTangent u) (frameTangent u) z) ∂_)=_
103  rw [← integral_map hu.aemeasurable hf.aestronglyMeasurable,
104    frameTangent_prod_map_eq u v h0 hδ,
105    integral_map hv.aemeasurable hf.aestronglyMeasurable]
106  rfl
107 
108theorem integrable_frameTangent_prod_iff
109    (u v : OrthonormalBasis (Fin (s+1)) ℂ (Register C)) (h0 : u 0=v 0)
110    {δ : ℝ} (hδ : 0<δ) (f : Register C × Register C → ℝ) (hf : Continuous f) :
111    Integrable (fun z => f (frameTangent u z.1,frameTangent u z.2))
112      ((gaussianProductMeasure (fun _ : Fin s => δ)).prod
113        (gaussianProductMeasure (fun _ : Fin s => δ))) ↔
114    Integrable (fun z => f (frameTangent v z.1,frameTangent v z.2))
115      ((gaussianProductMeasure (fun _ : Fin s => δ)).prod
116        (gaussianProductMeasure (fun _ : Fin s => δ))) := by
117  have hu := (continuous_frameTangent u).prodMap (continuous_frameTangent u)
118  have hv := (continuous_frameTangent v).prodMap (continuous_frameTangent v)
119  change Integrable (f ∘ Prod.map (frameTangent u) (frameTangent u)) _ ↔
120    Integrable (f ∘ Prod.map (frameTangent v) (frameTangent v)) _
121  rw [← integrable_map_measure hf.aestronglyMeasurable hu.aemeasurable,
122    frameTangent_prod_map_eq u v h0 hδ,
123    integrable_map_measure hf.aestronglyMeasurable hv.aemeasurable]
124 
125end Cloning.PCTFlatGaussianCross