Offline · exact source
Exact Lean source

PCTProjectorPurityParticle

formalization/Cloning/PCTProjectorPurityParticle.lean

Source hash: 98ba1c264bed655ba704de63675d78f3be565850c3ff608cf17a308edccafdd3

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.PCTTangentChartFrame
2import Cloning.PCTPhysicalState
3import Cloning.YoungGeneralMoments
4import Mathlib.Analysis.Matrix.Normed
5 
6/-! Exact reduced particles in the flat PCT Gaussian mixture and their
7scaled matrix-entry limit. No simple-spectrum assumption is used. -/
8noncomputable section
9open scoped BigOperators Topology Matrix ComplexOrder InnerProductSpace
10open Filter MeasureTheory
11namespace Cloning.PCTProjectorPurity
12open Cloning.PCT Cloning.PCTReducedGaussian Cloning.PCTPhysicalState
13open Cloning.PCTLocalChart Cloning.PCTGaussianCovariance Cloning.YoungGeneral
14set_option backward.isDefEq.respectTransparency true
15set_option maxHeartbeats 400000
16variable {r s : ℕ}
17 
18def flatBase (r : ℕ) : Matrix (Fin r) (Fin r) ℂ :=
19  Matrix.diagonal (fun _ => ((r : ℝ)⁻¹ : ℂ))
20 
21def particle (u : OrthonormalBasis (Fin (s+1)) ℂ (Register (Fin r × Fin r)))
22    (z : Fin s → ℂ) (L : ℕ) : Matrix (Fin r) (Fin r) ℂ :=
23  reducedDensityMatrix (frameParticle u z L)
24 
25def tangent (u : OrthonormalBasis (Fin (s+1)) ℂ (Register (Fin r × Fin r)))
26    (z : Fin s → ℂ) : Matrix (Fin r) (Fin r) ℂ :=
27  partialTraceDifferential (flatSpectrum r) (frameTangentMatrix u z)
28 
29theorem particle_exact
30    (u : OrthonormalBasis (Fin (s+1)) ℂ (Register (Fin r × Fin r)))
31    (hu : u 0=coefficientVector (schmidtCoefficients (flatSpectrum r)))
32    (z : Fin s → ℂ) (L : ℕ) :
33    particle u z L=(1+sampleScale L^2*‖coefficientVector (frameTangentMatrix u z)‖^2)⁻¹ •
34      (flatBase r+sampleScale L • tangent u z+
35        sampleScale L^2 • (frameTangentMatrix u z*(frameTangentMatrix u z)ᴴ)) := by
36  rw [particle,←normalizedTangentVector_eq_frameParticle u (flatSpectrum r) hu z L,
37    normalizedTangent_reduced_exact (flatSpectrum r) (fun _ => by unfold flatSpectrum; positivity)
38      (frameTangentMatrix u z) _ (sq_nonneg _) (sampleScale L)]
39  simp only [flatBase,flatSpectrum,one_div,tangent,Complex.ofReal_inv]
40 
41private theorem scaled_rational_difference (t a e : ℝ) (p b v : ℂ)
42    (ht : a*t=1) (hd : 1+t^2*e≠0) :
43    (a : ℂ)*((1+(t : ℂ)^2*e)⁻¹*(p+(t : ℂ)*v+(t : ℂ)^2*b)-p)=
44      (v+(t : ℂ)*(b-(e : ℂ)*p))/(1+(t : ℂ)^2*e) := by
45  have htC : (a : ℂ)*t=1 := by exact_mod_cast ht
46  have hdC : (1 : ℂ)+(t : ℂ)^2*e≠0 := by exact_mod_cast hd
47  calc
48    _ = ((a : ℂ)*t)*(v+(t : ℂ)*(b-(e : ℂ)*p))/(1+(t : ℂ)^2*e) := by
49      field_simp
50      ring
51    _ = _ := by rw [htC,one_mul]
52 
53/-- The true physical matrix perturbation has the full Hermitian tangent as
54its root-sample limit, including every off-diagonal entry. -/
55theorem particle_scaled_entry_tendsto
56    (u : OrthonormalBasis (Fin (s+1)) ℂ (Register (Fin r × Fin r)))
57    (hu : u 0=coefficientVector (schmidtCoefficients (flatSpectrum r)))
58    (z : Fin s → ℂ) (i j : Fin r) :
59    Tendsto (fun L : ℕ => (Real.sqrt (L : ℝ) : ℂ)*(particle u z L i j-flatBase r i j))
60      atTop (𝓝 (tangent u z i j)) := by
61  let e := ‖coefficientVector (frameTangentMatrix u z)‖^2
62  let b := (frameTangentMatrix u z*(frameTangentMatrix u z)ᴴ) i j
63  have ht : Tendsto (fun L => (sampleScale L : ℂ)) atTop (𝓝 0) := by
64    simpa only [Complex.ofReal_zero] using
65      (Complex.continuous_ofReal.tendsto 0).comp sampleScale_tendsto
66  have hh := ((tendsto_const_nhds (x := tangent u z i j)).add
67      (ht.mul_const (b-(e : ℂ)*flatBase r i j))).div
68        ((tendsto_const_nhds (x := (1 : ℂ))).add ((ht.pow 2).mul_const (e : ℂ))) (by norm_num)
69  simp only [zero_mul,zero_pow (by omega : 2≠0),add_zero,div_one] at hh
70  apply hh.congr'
71  filter_upwards [eventually_gt_atTop 0] with L hL
72  rw [particle_exact u hu z L]
73  simp only [Matrix.smul_apply,Matrix.add_apply,Complex.real_smul,Complex.ofReal_inv,
74    Complex.ofReal_add,Complex.ofReal_mul,Complex.ofReal_pow,Complex.ofReal_one]
75  have he : 0≤e := sq_nonneg _
76  have hd : 1+sampleScale L^2*e≠0 := by positivity
77  have hs : Real.sqrt (L : ℝ)*sampleScale L=1 := by
78    rw [sampleScale,mul_inv_cancel₀ (by positivity : Real.sqrt (L : ℝ)≠0)]
79  simpa only [Pi.div_apply,e,b,Complex.ofReal_pow] using
80    (scaled_rational_difference (sampleScale L) (Real.sqrt (L : ℝ)) e
81      (flatBase r i j) b (tangent u z i j) hs hd).symm
82 
83end Cloning.PCTProjectorPurity