Exact Lean source
PCTJointGaussianWhitenedLaw
formalization/Cloning/PCTJointGaussianWhitenedLaw.lean
Source hash: b39baa9647cd9e7bc27d1185d05f9fa365445043a812369749417658298fd51b
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.PCTJointGaussianLaw
2import Cloning.PCTJointGaussianReal
3import Cloning.PCTJointGaussianWhitening
4
5/-! The explicit real whitening chart sends the actual classical tangent
6law to the Gaussian of covariance `2v I`. Together with the orbital law this
7identifies the entire joint distribution, without an independence premise. -/
8noncomputable section
9open MeasureTheory
10open scoped InnerProductSpace Topology BigOperators
11namespace Cloning.PCTJointGaussianWhitening
12open Cloning.PCT Cloning.PCTReducedGaussian Cloning.PCTGaussianCovariance
13open Cloning.PCTGaussianOutput Cloning.PCTJointGaussianLaw
14open Cloning.PCTJointGaussianReal Cloning.MultimodeCoherentGaussianMixture
15set_option backward.isDefEq.respectTransparency false
16set_option maxHeartbeats 1000000
17variable {A : Type*} [Fintype A] [LinearOrder A] {k s d : ℕ}
18
19theorem classicalTangentLaw_map_whiten
20 (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register (A × A)))
21 (p : A → ℝ) (hp : ∀ a, 0 < p a)
22 (hu : u 0 = coefficientVector (schmidtCoefficients p))
23 (b : OrthonormalBasis (Fin (k + 1)) ℝ (EuclideanSpace ℝ A))
24 (hb : b 0 = sqrtSpectrum p) {v : ℝ} (hv : 0 < v) :
25 (classicalTangentLaw u p v).map (whiten p b) =
26 realProductMeasure (fun _ : Fin k => 1 / (4 * v)) := by
27 letI := classicalTangentLaw_probability u p hv
28 letI := Measure.isProbabilityMeasure_map (μ := classicalTangentLaw u p v)
29 (continuous_whiten p b).aemeasurable
30 apply eq_realProductMeasure_of_characteristic hv
31 intro t
32 have hc : Continuous (fun x : Fin k → ℝ =>
33 Complex.exp (Complex.I * ((∑ i, t i * x i : ℝ) : ℂ))) := by fun_prop
34 rw [integral_map (continuous_whiten p b).aemeasurable hc.aestronglyMeasurable]
35 unfold classicalTangentLaw
36 have hi := integral_map (μ := gaussianProductMeasure (fun _ : Fin s => v))
37 (continuous_tangentClassical u p).aemeasurable
38 (hc.comp (continuous_whiten p b)).aestronglyMeasurable
39 dsimp only [Function.comp_def] at hi
40 rw [hi]
41 exact whitenedClassical_characteristic u p hp hu b hb hv t
42
43def whitenedJointTangent (u : Fin (s + 1) → Register (A × A)) (p : A → ℝ)
44 (b : Fin (k + 1) → EuclideanSpace ℝ A) (e : Fin d ≃ OrbitalPair A)
45 (z : Fin s → ℂ) : (Fin k → ℝ) × (Fin d → ℂ) :=
46 (whiten p b (tangentClassical u p z), tangentDisplacement u p e z)
47
48theorem continuous_whitenedJointTangent (u : Fin (s + 1) → Register (A × A))
49 (p : A → ℝ) (b : Fin (k + 1) → EuclideanSpace ℝ A)
50 (e : Fin d ≃ OrbitalPair A) : Continuous (whitenedJointTangent u p b e) :=
51 ((continuous_whiten p b).comp (continuous_tangentClassical u p)).prodMk
52 (continuous_tangentDisplacement u p e)
53
54/-- Exact joint Gaussian law of the physical differential in the constructed
55whitening coordinates. The first factor has covariance `2v I`; orbital
56variances are the physically derived spectrum ratios. -/
57theorem whitenedJointTangent_map_eq_prod
58 (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register (A × A)))
59 (p : A → ℝ) (hp : ∀ a, 0 < p a)
60 (hu : u 0 = coefficientVector (schmidtCoefficients p))
61 (hgap : ∀ i j, i < j → 0 < p i - p j)
62 (b : OrthonormalBasis (Fin (k + 1)) ℝ (EuclideanSpace ℝ A))
63 (hb : b 0 = sqrtSpectrum p) (e : Fin d ≃ OrbitalPair A)
64 {v : ℝ} (hv : 0 < v) :
65 (gaussianProductMeasure (fun _ : Fin s => v)).map (whitenedJointTangent u p b e) =
66 (realProductMeasure (fun _ : Fin k => 1 / (4 * v))).prod
67 (gaussianProductMeasure (orbitalVariance p e v)) := by
68 letI := classicalTangentLaw_probability u p hv
69 letI := gaussianProductMeasure_probability (orbitalVariance_pos p hp hgap e hv)
70 rw [← classicalTangentLaw_map_whiten u p hp hu b hb hv]
71 have hm := Measure.map_prod_map (classicalTangentLaw u p v)
72 (gaussianProductMeasure (orbitalVariance p e v))
73 (continuous_whiten p b).measurable measurable_id
74 rw [Measure.map_id] at hm
75 rw [hm, ← jointTangent_map_eq_prod u p hp hu hgap e hv,
76 Measure.map_map ((continuous_whiten p b).measurable.prodMap measurable_id)
77 (continuous_jointTangent u p e).measurable]
78 rfl
79
80end Cloning.PCTJointGaussianWhitening