Offline · exact source
Exact Lean source

PCTProjectorPurityPhysical

formalization/Cloning/PCTProjectorPurityPhysical.lean

Source hash: b5ac7e939a6b919121f6db5a18fe93f924da0853bd28054da0376c8dcde94f7d

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.PCTProjectorPurityLimit
2import Cloning.PCTPurityFidelityPhysical
3 
4/-! The actual physical internal PCT output obeys the small-error purity
5bound. The Gaussian mixture approximation is transferred through the proved
6trace-norm continuity of root fidelity. -/
7noncomputable section
8open scoped BigOperators Topology Matrix ComplexOrder InnerProductSpace
9open Filter MeasureTheory
10namespace Cloning.PCTProjectorPurity
11open Cloning.PCT Cloning.PCTReducedGaussian Cloning.PCTPhysicalState
12open Cloning.PCTLocalChart Cloning.PCTGaussianCovariance Cloning.YoungGeneral
13open Cloning.MultimodeCoherentGaussianMixture Cloning.Hybrid Cloning.PCTRankAdapted
14set_option backward.isDefEq.respectTransparency true
15set_option maxHeartbeats 250000
16 
17/-- Exact scaled purity of the literal positive tensor mixture. -/
18theorem frameMixture_scaled_purity_tendsto (d s : ℕ) (hd : 1≤d)
19    (u : OrthonormalBasis (Fin (s+1)) ℂ (Register (Fin (d+1)×Fin (d+1))))
20    (hu : u 0=coefficientVector (schmidtCoefficients (flatSpectrum (d+1))))
21    {δ : ℝ} (hδ : 0<δ) (hδr : δ<1/(2*((d+1:ℕ):ℝ))) :
22    Tendsto (fun L : ℕ => ((d+1:ℕ):ℝ)^L*(Matrix.trace
23      (Cloning.PCTPurity.frameMixtureMatrix u (gaussianProductMeasure (fun _ : Fin s => δ)) L*
24       Cloning.PCTPurity.frameMixtureMatrix u (gaussianProductMeasure (fun _ : Fin s => δ)) L)).re)
25      atTop (𝓝 ((1-4*δ^2)^(-(s:ℝ)/2))) := by
26  letI := gaussianProductMeasure_probability (fun _ : Fin s => hδ)
27  simpa only [Cloning.PCTPurity.frameMixtureMatrix_scaled_purity,particle] using
28    particle_purity_iterated_integral_tendsto (by omega) u hu hδ hδr
29 
30/-- The appendix's internal squared-error bound for the literal full-environment
31PCT output. The only assumptions are rank, variance and output-size scaling. -/
32theorem internal_flat_squared_error_eventually_le (d s : ℕ) (hd : 1≤d) (hs : 1≤s)
33    (hcard : Fintype.card (Fin (d+1)×Fin (d+1))=s+1)
34    (t : ℕ→ℕ) (δ : ℝ) (hδ : 0<δ) (hδr : δ<1/(2*((d+1:ℕ):ℝ)))
35    (hratio : Tendsto (fun n => ((n+t n:ℕ):ℝ)/n) atTop (𝓝 (1+δ))) :
36    ∀ε : ℝ,0<ε → ∀ᶠ n in atTop,
37      1-((outputState hcard (flatInternalState d) n (t n)).rootFidelity
38        (tensorState (flatInternalState d) (n+t n)))^2≤
39      ((1-4*δ^2)^(-(s:ℝ)/2)-1)+ε := by
40  obtain ⟨u,hu,hphysical⟩ := Cloning.PCTGlobal.channel_gaussian_product_mixture hs hcard
41    (flatInternalState d) t (by linarith : 1<1+δ) hratio
42  have hu' : u 0=coefficientVector (schmidtCoefficients (flatSpectrum (d+1))) :=
43    hu.trans (canonicalPurification_diagonal (flatSpectrum (d+1))
44      (fun _ => by unfold flatSpectrum; positivity))
45  let μ := gaussianProductMeasure (fun _ : Fin s => δ)
46  letI := gaussianProductMeasure_probability (fun _ : Fin s => hδ)
47  let n : ℕ→ℕ := fun N => N+t N
48  have hn : Tendsto n atTop atTop :=
49    tendsto_atTop_mono (fun N => Nat.le_add_right N (t N)) tendsto_id
50  let A N := outputState hcard (flatInternalState d) N (t N)
51  let B N := tensorState (flatInternalState d) (n N)
52  let M N := Cloning.PCTPurity.frameMixture u μ (n N)
53  let e N := ‖(A N).1-(M N).1‖
54  let J L := ∫z,∫w,(((d+1:ℕ):ℝ)*(Matrix.trace (particle u z L*particle u w L)).re)^L ∂μ ∂μ
55  have he : Tendsto e atTop (𝓝 0) := by
56    simpa only [show 1+δ-1=δ by ring] using hphysical
57  have hJ : Tendsto (fun N => J (n N)) atTop (𝓝 ((1-4*δ^2)^(-(s:ℝ)/2))) :=
58    (particle_purity_iterated_integral_tendsto (by omega) u hu' hδ hδr).comp hn
59  have hb (N : ℕ) : 1-((A N).rootFidelity (B N))^2≤J (n N)-1+2*Real.sqrt (e N) := by
60    have hB : ‖(B N).1‖=1 := norm_tensorState _ _
61    have hA : ‖(A N).1‖=1 := norm_outputState _ _ _ _
62    have hM : ‖(M N).1‖=1 := Cloning.PCTCountMeasurement.norm_integral_frameState u (n N) μ
63    have hcont := PositiveTraceClass.rootFidelity_continuity (A N) (B N) (M N) (B N)
64    simp only [hB,sub_self,norm_zero,Real.sqrt_zero,Real.sqrt_one,mul_one,zero_mul,add_zero] at hcont
65    have ha := (A N).rootFidelity_le_sqrt (B N)
66    have hm := (M N).rootFidelity_le_sqrt (B N)
67    simp only [hA,hM,hB,Real.sqrt_one,one_mul] at ha hm
68    have hsub : (M N).rootFidelity (B N)-(A N).rootFidelity (B N)≤Real.sqrt (e N) := by
69      have hh := (abs_le.mp hcont).1
70      change -Real.sqrt (e N)≤(A N).rootFidelity (B N)-(M N).rootFidelity (B N) at hh
71      linarith
72    have hsum : (A N).rootFidelity (B N)+(M N).rootFidelity (B N)≤2 := by linarith
73    have hsq := mul_le_mul hsub hsum
74      (add_nonneg ((A N).rootFidelity_nonneg (B N)) ((M N).rootFidelity_nonneg (B N)))
75      (Real.sqrt_nonneg (e N))
76    have hfinite := Cloning.PCTPurity.frameMixture_fidelity_purity_bound u μ (n N)
77    change 1-((M N).rootFidelity (B N))^2≤J (n N)-1 at hfinite
78    nlinarith
79  have hlim := (hJ.sub_const 1).add (he.sqrt.const_mul 2)
80  simp only [Real.sqrt_zero,mul_zero,add_zero] at hlim
81  intro ε hε
82  filter_upwards [hlim.eventually (eventually_lt_nhds (lt_add_of_pos_right _ hε))] with N hN
83  exact (hb N).trans hN.le
84 
85end Cloning.PCTProjectorPurity