Offline · exact source
Exact Lean source

PCTPurityFidelityBound

formalization/Cloning/PCTPurityFidelityBound.lean

Source hash: 8202a2132bf6b423e33553bacf6b4a80a3ce194c386c0c4aa8a4d7e14592e121

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.PCTPurityFidelityBoundAlgebra
2import Cloning.PCTProjectorPurityParticle
3 
4/-! A uniform Frobenius bound for the actual normalized reduced particle.
5The constant gives the integrable two-energy envelope at the appendix's
6variance threshold. -/
7noncomputable section
8open scoped BigOperators Matrix InnerProductSpace ComplexOrder Matrix.Norms.Frobenius
9namespace Cloning.PCTPurity
10open Cloning.PCT Cloning.PCTReducedGaussian Cloning.PCTGaussianCovariance
11open Cloning.PCTLocalChart Cloning.PCTProjectorPurity Cloning.YoungGeneral
12set_option backward.isDefEq.respectTransparency false
13set_option maxHeartbeats 500000
14variable {r s : ℕ}
15 
16lemma flatBase_eq_smul_one (r : ℕ) :
17    flatBase r=(r:ℝ)⁻¹ • (1 : Matrix (Fin r) (Fin r) ℂ) := by
18  ext i j
19  simp [flatBase,Matrix.one_apply,Matrix.diagonal_apply]
20 
21lemma flat_tangent_eq (Z : Matrix (Fin r) (Fin r) ℂ) :
22    partialTraceDifferential (flatSpectrum r) Z=(Real.sqrt r)⁻¹ • (Z+Zᴴ) := by
23  ext i j
24  simp only [partialTraceDifferential_apply,flatSpectrum,one_div,Real.sqrt_inv,
25    Matrix.smul_apply,Matrix.add_apply,Matrix.conjTranspose_apply,Complex.real_smul,
26    Complex.ofReal_inv]
27  ring
28 
29/-- The exact physical particle, for all sample sizes (including the harmless
30zero convention), has Frobenius deviation at most twice its tangent scale. -/
31theorem particle_frobenius_deviation_le (hr : 2≤r)
32    (u : OrthonormalBasis (Fin (s+1)) ℂ (Register (Fin r×Fin r)))
33    (hu : u 0=coefficientVector (schmidtCoefficients (flatSpectrum r)))
34    (z : Fin s→ℂ) (L : ℕ) :
35    ‖particle u z L-flatBase r‖≤2*Real.sqrt (GeneralCoherent.energy z/L) := by
36  let Z := frameTangentMatrix u z
37  have hn : ‖Z‖=Real.sqrt (GeneralCoherent.energy z) := by
38    rw [frobenius_norm_eq_coefficientVector]
39    have he := frameTangentMatrix_energy u u.orthonormal z
40    rw [←he,Real.sqrt_sq (norm_nonneg _)]
41  have ht : 0≤sampleScale L := by unfold sampleScale; positivity
42  have hf := flat_rational_frobenius_le hr Z (sampleScale L) ht
43  rw [particle_exact u hu,flatBase_eq_smul_one]
44  have hz : ‖coefficientVector Z‖=‖Z‖ := (frobenius_norm_eq_coefficientVector Z).symm
45  change ‖(1+sampleScale L^2*‖coefficientVector Z‖^2)⁻¹ •
46      ((r:ℝ)⁻¹ • (1 : Matrix (Fin r) (Fin r) ℂ)+sampleScale L •
47        partialTraceDifferential (flatSpectrum r) Z+sampleScale L^2 • (Z*Zᴴ))-
48      (r:ℝ)⁻¹ • (1 : Matrix (Fin r) (Fin r) ℂ)‖≤_
49  rw [hz,flat_tangent_eq]
50  calc
51    _ ≤ 2*sampleScale L*‖Z‖ := hf
52    _ = _ := by
53      rw [hn,Real.sqrt_div (GeneralCoherent.energy_nonneg z),sampleScale]
54      ring
55 
56end Cloning.PCTPurity