Offline · exact source
Exact Lean source

PCTHybridMixtureGaussian

formalization/Cloning/PCTHybridMixtureGaussian.lean

Source hash: 129d26b8f234bfae0d460141e2773eaf6beb259c706fd3d8b98dbed840def947

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.PCTHybridMixtureFactor
2import Cloning.PCTHybridMixtureClassical
3import Cloning.PCTJointGaussianWhitenedLaw
4import Cloning.PCTHybridFidelity
5 
6/-! Identification of the actual joint PCT tangent average with the literal
7broadened Gaussian–thermal positive L1 field. The real chart is constructed
8from the spectrum, and both laws and the operator-valued average are proved. -/
9noncomputable section
10open MeasureTheory
11open scoped ComplexOrder InnerProductSpace Topology BigOperators
12namespace Cloning.PCTHybridMixture
13open Cloning.PCT Cloning.PCTReducedGaussian Cloning.PCTGaussianCovariance
14open Cloning.PCTGaussianOutput Cloning.PCTJointGaussianLaw
15open Cloning.PCTJointGaussianWhitening Cloning.PCTJointGaussianReal
16open Cloning.InfiniteTraceClass Cloning.Hybrid Cloning.MultimodeCoherent
17open Cloning.MultimodeCoherentGaussianMixture Cloning.ThermalWitness
18open Cloning.GaussianAffinity
19set_option backward.isDefEq.respectTransparency false
20set_option maxHeartbeats 1200000
21variable {A : Type*} [Fintype A] [LinearOrder A] {k s d : ℕ}
22 
23/-- Exact joint L1 mixture in whitened physical coordinates. The seed has
24classical covariance `I`, the tangent has covariance `2(g-1) I`, and the
25output therefore has covariance `(2g-1) I`. -/
26theorem tangent_hybrid_average_eq_pct_preparation
27    (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register (A × A)))
28    (p : A → ℝ) (hp : ∀ a, 0 < p a)
29    (hu : u 0 = coefficientVector (schmidtCoefficients p))
30    (hgap : ∀ i j, i < j → 0 < p i - p j)
31    (b : OrthonormalBasis (Fin (k + 1)) ℝ (EuclideanSpace ℝ A))
32    (hb : b 0 = sqrtSpectrum p) (e : Fin d ≃ OrbitalPair A)
33    (g : ℝ) (hg : 1 < g) :
34    let q : Fin d → ℝ := fun i => p (e i).1.2 / p (e i).1.1
35    (∫ z, hybridTranslation (whitenedJointTangent u p b e z)
36      (prepareL1 (productDensity (fun _ : Fin k => 1/2))
37        (integrable_productDensity _ (fun _ => by norm_num))
38        (vectorMixture (numberBasis d) (productGeometric q)))
39        ∂gaussianProductMeasure (fun _ : Fin s => g-1)) =
40      prepareL1 (productDensity (fun _ : Fin k => (1/2) / (2*g-1)))
41        (integrable_productDensity _ (fun _ => div_pos (by norm_num) (by linarith)))
42        (vectorMixture (numberBasis d) (productGeometric (fun i => Thermal.pct g (q i)))) := by
43  dsimp only
44  simp only [whitenedJointTangent]
45  rw [tangent_hybrid_average_eq_classical_average u p hp hu hgap e g hg
46    (whiten p b) (continuous_whiten p b) _ _ (productDensity_nonneg _)
47    (integral_productDensity _ (fun _ => by norm_num))]
48  let X := vectorMixture (numberBasis d)
49    (productGeometric (fun i => Thermal.pct g (p (e i).1.2 / p (e i).1.1)))
50  let C := prepareL1 (productDensity (fun _ : Fin k => 1/2))
51    (integrable_productDensity _ (fun _ => by norm_num)) X
52  change (∫ h, classicalTranslation (whiten p b h) C ∂classicalTangentLaw u p (g-1)) = _
53  rw [← integral_map (continuous_whiten p b).aemeasurable
54    (continuous_classicalTranslation C).aestronglyMeasurable,
55    classicalTangentLaw_map_whiten u p hp hu b hb (sub_pos.mpr hg)]
56  dsimp only [C]
57  rw [gaussian_classical_translation_average _ _ (fun _ => by norm_num)
58    (fun _ => div_pos zero_lt_one (mul_pos (by norm_num) (sub_pos.mpr hg)))]
59  have ha : (fun _ : Fin k => (1/2 : ℝ) * (1 / (4 * (g-1))) /
60      (1/2 + 1 / (4 * (g-1)))) = (fun _ : Fin k => (1/2 : ℝ) / (2*g-1)) := by
61    funext i
62    have h1 : g-1 ≠ 0 := ne_of_gt (sub_pos.mpr hg)
63    have h2 : 2*g-1 ≠ 0 := by linarith
64    have h3 : 0 < (1/2 : ℝ) + 1 / (4 * (g-1)) :=
65      add_pos (by norm_num) (div_pos zero_lt_one (mul_pos (by norm_num) (sub_pos.mpr hg)))
66    apply (div_eq_div_iff h3.ne' h2).mpr
67    field_simp [h1]
68    <;> ring
69  simp only [ha, X]
70 
71/-- The actual tangent translation mixture is exactly the PCT comparison
72state used by the literal fidelity formula. No target-mixture hypothesis is
73assumed. Strict positivity and ordering are the current physical domain. -/
74theorem tangent_hybrid_average_eq_pctGaussianThermalPositive
75    (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register (A × A)))
76    (p : A → ℝ) (hp : ∀ a, 0 < p a)
77    (hu : u 0 = coefficientVector (schmidtCoefficients p))
78    (hgap : ∀ i j, i < j → 0 < p i - p j)
79    (b : OrthonormalBasis (Fin (k + 1)) ℝ (EuclideanSpace ℝ A))
80    (hb : b 0 = sqrtSpectrum p) (e : Fin d ≃ OrbitalPair A)
81    (g : ℝ) (hg : 1 < g) :
82    let q : Fin d → ℝ := fun i => p (e i).1.2 / p (e i).1.1
83    let hq0 : ∀ i, 0 ≤ q i := fun i => (div_pos (hp _) (hp _)).le
84    let hq1 : ∀ i, q i < 1 := fun i =>
85      (div_lt_one (hp _)).mpr (by linarith [hgap _ _ (e i).2])
86    (∫ z, hybridTranslation (whitenedJointTangent u p b e z)
87      (gaussianThermalPositive (fun _ : Fin k => 1/2) (fun _ => by norm_num) q hq0 hq1).1
88      ∂gaussianProductMeasure (fun _ : Fin s => g-1)) =
89      (pctGaussianThermalPositive (fun _ : Fin k => 1/2) (fun _ => by norm_num)
90        g hg q hq0 hq1).1 := by
91  dsimp only [gaussianThermalPositive, pctGaussianThermalPositive,
92    pctGaussianThermalField, PositiveField.toPositiveL1]
93  simp_rw [gaussianThermalField_toL1]
94  exact tangent_hybrid_average_eq_pct_preparation u p hp hu hgap b hb e g hg
95 
96end Cloning.PCTHybridMixture