Offline · exact source
Exact Lean source

PCTProjectorPurityEnvelopeTheorem

formalization/Cloning/PCTProjectorPurityEnvelopeTheorem.lean

Source hash: b47159bb195b810e5be27a2527fb6ba3faf121050447eeb6d50144a0a403d394

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.

In the dependency map: Small errors

Paper ↔ Lean correspondence in this module
Declarations in this module
1import Cloning.PCTProjectorPurityEnvelopePhysical
2import Cloning.PCTProjectorPurityEnvelopeExpansion
3import Cloning.PCTProjectorPurityPhysical
4import Cloning.PCTWernerLower
5 
6/-! The actual fixed projector PCT channel has the rank-boundary small-gain
7coefficient, uniformly over all literal Grassmann projectors. -/
8noncomputable section
9open scoped Topology Matrix ComplexOrder
10open Filter
11namespace Cloning.PCTProjectorPurity
12open Cloning.PCT Cloning.PCTRankAdapted Cloning.PCTPhysicalState
13open Cloning.PhysicalFlatGrassmann Cloning.InfiniteTraceClass Cloning.Hybrid
14set_option maxHeartbeats 1200000
15set_option backward.isDefEq.respectTransparency false
16 
17/-- This adapter includes the one-dimensional internal system, where the
18actual internal fidelity is exactly one at every finite sample size. -/
19theorem internal_flat_squared_error_all_ranks (d : ℕ) (t : ℕ→ℕ)
20    (δ : ℝ) (hδ : 0<δ) (hδr : δ<1/(2*((d+1:ℕ):ℝ)))
21    (hgain : Tendsto (fun n=>((n+t n:ℕ):ℝ)/(n:ℝ)) atTop (𝓝 (1+δ))) :
22    ∀ε>0,∀ᶠ (n : ℕ) in atTop,
23      1-((PCTPhysicalState.outputState (flat_internal_register_card d) (flatInternalState d)
24        n (t n)).rootFidelity (tensorState (flatInternalState d) (n+t n)))^2≤
25        internalError (d*(d+2)) δ+ε := by
26  by_cases hd : d=0
27  · subst d
28    intro ε hε
29    apply Eventually.of_forall
30    intro n
31    have hl := outputState_fidelity_lower (flat_internal_register_card 0) (flatInternalState 0) n (t n)
32    have hu := internal_fidelity_le_one (flat_internal_register_card 0) (flatInternalState 0) n (t n)
33    have hf : (PCTPhysicalState.outputState (flat_internal_register_card 0) (flatInternalState 0)
34        n (t n)).rootFidelity (tensorState (flatInternalState 0) (n+t n))=1 := by
35      apply le_antisymm hu
36      simpa [wernerScale] using hl
37    simp only [hf,one_pow,sub_self,Nat.zero_mul,internalError,Nat.cast_zero,zero_div,neg_zero,
38      Real.rpow_zero,sub_self,zero_add]
39    exact hε.le
40  · simpa only [internalError,neg_div] using
41      internal_flat_squared_error_eventually_le d (d*(d+2)) (by omega) (by
42          have hdpos : 1≤d := by omega
43          exact le_trans (by omega : 1≤d) (Nat.le_mul_of_pos_right d (by omega)))
44        (flat_internal_register_card d) t δ hδ hδr hgain
45 
46/-- Unconditional asymptotic envelopes for the actual state-independent
47rank-adapted channel; no internal purity or Gaussian approximation premise. -/
48theorem physical_error_envelopes (d k : ℕ) (t : ℕ→ℕ)
49    (δ : ℝ) (hδ : 0<δ) (hδr : δ<1/(2*((d+1:ℕ):ℝ)))
50    (hgain : Tendsto (fun n=>((n+t n:ℕ):ℝ)/(n:ℝ)) atTop (𝓝 (1+δ))) :
51    ∀ε>0,∀ᶠ (n : ℕ) in atTop,∀P : Projector (d+1) k,
52      lowerEnvelope ((d+1)*k) δ-ε≤1-(Cloning.PhysicalFlatPCT.fidelity d k P n (t n))^2 ∧
53      1-(Cloning.PhysicalFlatPCT.fidelity d k P n (t n))^2≤
54        upperEnvelope ((d+1)*k) (d*(d+2)) δ+ε :=
55  physical_error_envelopes_of_internal_bound d k t δ hδ hgain
56    (internal_flat_squared_error_all_ranks d t δ hδ hδr hgain)
57 
58/-- The coefficient of small additional-copy gain is exactly r*(ambient-r),
59after the large-sample limit, uniformly over the unknown projector. -/
60theorem physical_small_gain_coefficient (d k : ℕ) (t : ℝ→ℕ→ℕ)
61    (hgain : ∀δ,0<δ→δ<1/(2*((d+1:ℕ):ℝ))→
62      Tendsto (fun n=>((n+t δ n:ℕ):ℝ)/(n:ℝ)) atTop (𝓝 (1+δ))) :
63    ∀η>0,∀ᶠ δ in 𝓝[>] (0:ℝ),∀ᶠ (n : ℕ) in atTop,∀P : Projector (d+1) k,
64      |(1-(Cloning.PhysicalFlatPCT.fidelity d k P n (t δ n))^2)/δ-
65        (((d+1)*k:ℕ):ℝ)|≤η := by
66  apply error_envelopes_first_order ((d+1)*k) (d*(d+2))
67    (1/(2*((d+1:ℕ):ℝ))) (by positivity)
68    (fun δ n P=>1-(Cloning.PhysicalFlatPCT.fidelity d k P n (t δ n))^2)
69  intro δ hd hsmall
70  exact physical_error_envelopes d k (t δ) δ hd hsmall (hgain δ hd hsmall)
71 
72end Cloning.PCTProjectorPurity