Exact Lean source
PCTGaussianCovariance
formalization/Cloning/PCTGaussianCovariance.lean
Source hash: ba3bfbb7c117ce4b69cdc8d4ef3febadf6b73bf82ff65ec7a6d17300dd2345c0
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
theorem
Cloning.PCTGaussianCovariance.frameTangent_norm_sqtheorem Cloning.PCTGaussianCovariance.tangent_phase_eq_charactertheorem Cloning.PCTGaussianCovariance.frameTangent_characteristicdefinition Cloning.PCTGaussianCovariance.frameTangentMatrixtheorem Cloning.PCTGaussianCovariance.coefficientVector_frameTangentMatrixtheorem Cloning.PCTGaussianCovariance.coefficientVector_norm_sqtheorem Cloning.PCTGaussianCovariance.frameTangentMatrix_characteristic1import Cloning.PCTReducedGaussian
2import Cloning.WeylThermalFourierWitness
3
4/-! The characteristic function of the actual circular Gaussian tangent in a
5purification frame. The projected Hilbert norm fixes its full joint law,
6including the covariance lost by removing the reference direction. -/
7noncomputable section
8open MeasureTheory
9open scoped ComplexOrder InnerProductSpace Topology BigOperators
10namespace Cloning.PCTGaussianCovariance
11open Cloning.PCT Cloning.PCTReducedGaussian
12open Cloning.MultimodeCoherentGaussianMixture Cloning.MultimodeCoherent
13set_option backward.isDefEq.respectTransparency false
14set_option maxHeartbeats 1000000
15variable {C : Type*} [Fintype C] [DecidableEq C] {s : ℕ}
16
17/-- The orthonormal tangent coordinates have exactly their Euclidean energy. -/
18theorem frameTangent_norm_sq (u : Fin (s + 1) → Register C)
19 (hu : Orthonormal ℂ u) (z : Fin s → ℂ) :
20 ‖frameTangent u z‖ ^ 2 = GeneralCoherent.energy z := by
21 have huv : Orthonormal ℂ (fun i : Fin s => u i.succ) := hu.comp _ (Fin.succ_injective _)
22 have h := huv.inner_sum z z Finset.univ
23 simp only [Finset.mem_univ, forall_const, Finset.sum_const_zero, Finset.sum_attach] at h
24 rw [inner_self_eq_norm_sq_to_K] at h
25 have h' := congrArg Complex.re h
26 simp only [Complex.re_sum, Complex.ofReal_pow, Complex.ofReal_re] at h'
27 simpa [GeneralCoherent.energy, frameTangent, Complex.conj_mul',
28 Complex.normSq_eq_norm_sq, ← Complex.ofReal_pow] using h'
29
30lemma tangent_phase_eq_character (u : Fin (s + 1) → Register C)
31 (X : Register C) (z : Fin s → ℂ) :
32 Complex.exp (⟪X, frameTangent u z⟫_ℂ - ⟪frameTangent u z, X⟫_ℂ) =
33 weylCharacter z (fun i => ⟪u i.succ, X⟫_ℂ) := by
34 rw [weylCharacter_eq_prod_exp, ← Complex.exp_sum]
35 congr 1
36 simp only [frameTangent, inner_sum, sum_inner, inner_smul_right, inner_smul_left,
37 ← Finset.sum_sub_distrib, inner_conj_symm]
38
39/-- Exact Fourier transform of the actual Gaussian frame tangent. The
40reference component is subtracted by full-frame Parseval, not postulated as
41a covariance matrix. -/
42theorem frameTangent_characteristic (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register C))
43 {v : ℝ} (hv : 0 < v) (X : Register C) :
44 (∫ z, Complex.exp (⟪X, frameTangent u z⟫_ℂ - ⟪frameTangent u z, X⟫_ℂ)
45 ∂gaussianProductMeasure (fun _ : Fin s => v)) =
46 Complex.exp (-((v * (‖X‖ ^ 2 - ‖⟪u 0, X⟫_ℂ‖ ^ 2) : ℝ) : ℂ)) := by
47 simp_rw [tangent_phase_eq_character]
48 rw [integral_weylCharacter_gaussianProductMeasure (fun _ => hv), ← Complex.exp_sum]
49 have hp := u.sum_sq_norm_inner_right X
50 rw [Fin.sum_univ_succ] at hp
51 have he : ∑ i : Fin s, ‖⟪u i.succ, X⟫_ℂ‖ ^ 2 =
52 ‖X‖ ^ 2 - ‖⟪u 0, X⟫_ℂ‖ ^ 2 := by linarith
53 congr 1
54 norm_cast
55 rw [Finset.sum_neg_distrib, ← Finset.mul_sum, he]
56
57/-- The coefficient matrix of the actual random physical tangent vector. -/
58def frameTangentMatrix {A : Type*} [Fintype A] [DecidableEq A]
59 (u : Fin (s + 1) → Register (A × A)) (z : Fin s → ℂ) : Matrix A A ℂ :=
60 fun a b => frameTangent u z (a,b)
61
62@[simp] theorem coefficientVector_frameTangentMatrix {A : Type*} [Fintype A] [DecidableEq A]
63 (u : Fin (s + 1) → Register (A × A)) (z : Fin s → ℂ) :
64 coefficientVector (frameTangentMatrix u z) = frameTangent u z := by
65 ext ab
66 rfl
67
68lemma coefficientVector_norm_sq {A B : Type*} [Fintype A] [Fintype B]
69 [DecidableEq A] [DecidableEq B] (M : Matrix A B ℂ) :
70 ‖coefficientVector M‖ ^ 2 = ∑ a, ∑ b, ‖M a b‖ ^ 2 := by
71 simpa only [ENNReal.toReal_ofNat, Real.rpow_two, tsum_fintype, Fintype.sum_prod_type,
72 coefficientVector_apply] using
73 lp.norm_rpow_eq_tsum (by norm_num : 0 < (2 : ENNReal).toReal) (coefficientVector M)
74
75/-- Full covariance characteristic in matrix coordinates. For any matrix
76`M`, the variance subtracts exactly its Schmidt diagonal component. This
77single identity specifies every joint real-linear marginal of the tangent. -/
78theorem frameTangentMatrix_characteristic {A : Type*} [Fintype A] [DecidableEq A]
79 (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register (A × A)))
80 (p : A → ℝ) (hu : u 0 = coefficientVector (schmidtCoefficients p))
81 {v : ℝ} (hv : 0 < v) (M : Matrix A A ℂ) :
82 (∫ z, Complex.exp (⟪coefficientVector M, coefficientVector (frameTangentMatrix u z)⟫_ℂ -
83 ⟪coefficientVector (frameTangentMatrix u z), coefficientVector M⟫_ℂ)
84 ∂gaussianProductMeasure (fun _ : Fin s => v)) =
85 Complex.exp (-((v * ((∑ a, ∑ b, ‖M a b‖ ^ 2) -
86 ‖∑ a, (Real.sqrt (p a) : ℂ) * M a a‖ ^ 2) : ℝ) : ℂ)) := by
87 simp_rw [coefficientVector_frameTangentMatrix]
88 rw [frameTangent_characteristic u hv, hu, schmidt_inner_tangent, coefficientVector_norm_sq]
89
90end Cloning.PCTGaussianCovariance