Offline · exact source
Exact Lean source

PCTGaussianCovarianceOrbital

formalization/Cloning/PCTGaussianCovarianceOrbital.lean

Source hash: 384bcd1cd5ae41fbd45979ad387695fc92e8eaf0641912704fb5efe1c5a51b4c

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.PCTGaussianCovarianceClassical
2import Cloning.PCTGaussianOutput
3 
4/-! Exact circular Gaussian orbital marginals of the reduced purification
5differential, with the thermal convention used by the actual Weyl operators. -/
6noncomputable section
7open MeasureTheory
8open scoped ComplexOrder InnerProductSpace Topology BigOperators
9namespace Cloning.PCTGaussianCovariance
10open Cloning.PCT Cloning.PCTReducedGaussian Cloning.MultimodeCoherentGaussianMixture
11set_option backward.isDefEq.respectTransparency false
12set_option maxHeartbeats 1000000
13variable {A : Type*} [Fintype A] [DecidableEq A] {s : ℕ}
14 
15/-- The orbital displacement coordinate of the reduced-state differential. -/
16def orbitalCoordinate (p : A → ℝ) (Z : Matrix A A ℂ) (i j : A) : ℂ :=
17  ((Real.sqrt (p i) : ℂ) * Z j i + (Real.sqrt (p j) : ℂ) * star (Z i j)) /
18    (Real.sqrt (p i - p j) : ℂ)
19 
20lemma orbitalCoordinate_differential (p : A → ℝ) (Z : Matrix A A ℂ) (i j : A) :
21    orbitalCoordinate p Z i j = partialTraceDifferential p Z j i /
22      (Real.sqrt (p i - p j) : ℂ) := by
23  rw [partialTraceDifferential_apply]
24  unfold orbitalCoordinate
25  ring
26 
27def orbitalTest (p : A → ℝ) (i j : A) (ξ : ℂ) : Register (A × A) :=
28  (star ξ * (Real.sqrt (p j) : ℂ) / (Real.sqrt (p i - p j) : ℂ)) •
29    registerBasis (A × A) (i,j) +
30  (-ξ * (Real.sqrt (p i) : ℂ) / (Real.sqrt (p i - p j) : ℂ)) •
31    registerBasis (A × A) (j,i)
32 
33lemma orbitalTest_phase (p : A → ℝ) (i j : A) (ξ : ℂ) (Z : Matrix A A ℂ) :
34    ⟪orbitalTest p i j ξ, coefficientVector Z⟫_ℂ -
35      ⟪coefficientVector Z, orbitalTest p i j ξ⟫_ℂ =
36      ξ * star (orbitalCoordinate p Z i j) - star ξ * orbitalCoordinate p Z i j := by
37  have hi (a b : A) : ⟪coefficientVector Z, lp.single 2 (a,b) 1⟫_ℂ =
38      star (Z a b) := by
39    rw [← inner_conj_symm]
40    simp only [registerBasis_apply, register_inner_single, coefficientVector_apply]
41    rfl
42  simp only [orbitalTest, inner_add_left, inner_add_right, inner_smul_left,
43    inner_smul_right, hi, registerBasis_apply, register_inner_single, coefficientVector_apply,
44    orbitalCoordinate, map_div₀, map_mul, map_neg, star_star,
45    star_add, star_mul, star_div₀, star_neg, Complex.star_def, Complex.conj_ofReal, Complex.conj_conj]
46  ring
47 
48lemma orbitalTest_orthogonal_reference (p : A → ℝ) (i j : A) (hij : i ≠ j) (ξ : ℂ) :
49    ⟪coefficientVector (schmidtCoefficients p), orbitalTest p i j ξ⟫_ℂ = 0 := by
50  have hi (a b : A) (hab : a ≠ b) :
51      ⟪coefficientVector (schmidtCoefficients p), registerBasis (A × A) (a,b)⟫_ℂ = 0 := by
52    rw [← inner_conj_symm]
53    simp [registerBasis_apply, register_inner_single, coefficientVector_apply,
54      schmidtCoefficients, Matrix.diagonal_apply, hab]
55  simp only [orbitalTest, inner_add_right, inner_smul_right, hi i j hij, hi j i hij.symm,
56    mul_zero, add_zero]
57 
58lemma orbitalTest_norm_sq (p : A → ℝ) (i j : A) (hij : i ≠ j)
59    (hpi : 0 ≤ p i) (hpj : 0 ≤ p j) (hgap : 0 < p i - p j) (ξ : ℂ) :
60    ‖orbitalTest p i j ξ‖ ^ 2 = (p i + p j) / (p i - p j) * ‖ξ‖ ^ 2 := by
61  have horth : ⟪registerBasis (A × A) (i,j), registerBasis (A × A) (j,i)⟫_ℂ = 0 := by
62    exact (registerBasis (A × A)).orthonormal.inner_eq_zero (by simp [hij])
63  rw [orbitalTest, norm_add_sq (𝕜 := ℂ)]
64  simp only [inner_smul_left, inner_smul_right, horth, mul_zero, map_zero,
65    mul_zero, add_zero, norm_smul, norm_div, norm_mul, norm_star, norm_neg,
66    (registerBasis (A × A)).orthonormal.norm_eq_one, mul_one, Complex.norm_real,
67    Real.norm_eq_abs, div_pow, mul_pow, sq_abs, Real.sq_sqrt hpi,
68    Real.sq_sqrt hpj, Real.sq_sqrt hgap.le]
69  ring
70 
71/-- The full one-pair circular Gaussian characteristic with variance
72`v (pᵢ+pⱼ)/(pᵢ-pⱼ)`. It is derived from the actual frame tangent law. -/
73theorem orbitalCoordinate_characteristic
74    (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register (A × A)))
75    (p : A → ℝ) (hu : u 0 = coefficientVector (schmidtCoefficients p))
76    (i j : A) (hij : i ≠ j) (hpi : 0 ≤ p i) (hpj : 0 ≤ p j)
77    (hgap : 0 < p i - p j) {v : ℝ} (hv : 0 < v) (ξ : ℂ) :
78    (∫ z, Complex.exp (ξ * star (orbitalCoordinate p (frameTangentMatrix u z) i j) -
79      star ξ * orbitalCoordinate p (frameTangentMatrix u z) i j)
80      ∂gaussianProductMeasure (fun _ : Fin s => v)) =
81      Complex.exp (-((v * ((p i + p j) / (p i - p j)) * ‖ξ‖ ^ 2 : ℝ) : ℂ)) := by
82  simp_rw [← orbitalTest_phase, coefficientVector_frameTangentMatrix]
83  rw [frameTangent_characteristic u hv, hu, orbitalTest_orthogonal_reference p i j hij,
84    norm_zero, zero_pow (by omega : 2 ≠ 0), sub_zero,
85    orbitalTest_norm_sq p i j hij hpi hpj hgap]
86  congr 1
87  push_cast
88  ring
89 
90/-- The orbital variance is precisely the displacement variance producing
91the `Thermal.pct` output parameter. -/
92theorem orbitalVariance_eq_pctDisplacementVariance (g pi pj : ℝ)
93    (hpi : 0 < pi) (hgap : pj < pi) :
94    (g - 1) * (pi + pj) / (pi - pj) =
95      Cloning.PCTGaussianOutput.pctDisplacementVariance g (pj / pi) := by
96  unfold Cloning.PCTGaussianOutput.pctDisplacementVariance
97  have hden : pi - pj ≠ 0 := (sub_pos.mpr hgap).ne'
98  field_simp [hpi.ne', hden]
99  <;> ring
100 
101end Cloning.PCTGaussianCovariance