Offline · exact source
Exact Lean source

PCTProjectorPurityEnvelopeLimits

formalization/Cloning/PCTProjectorPurityEnvelopeLimits.lean

Source hash: bfcb77ac5673bde1e00f2d988c52992130e9472089eee0cc13bb0b3fedfb879f

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

Declarations in this module
1import Cloning.PCTProjectorPurityEnvelopeTheorem
2import Cloning.PCTProjectorPurityEnvelopeRate
3import Cloning.PCTPrescribedRankTheorem
4 
5/-! The literal liminf/limsup formulation, also for arbitrary requested output
6sample sizes rather than only an explicit additional-copy count. -/
7noncomputable section
8open scoped Topology
9open Filter
10namespace Cloning.PCTProjectorPurity
11open Cloning.PhysicalFlatGrassmann
12 
13/-- The full four-term inequality in the projector small-error proposition. -/
14theorem physical_error_liminf_limsup (d k : ℕ) (P : Projector (d+1) k)
15    (t : ℕ→ℕ) (δ : ℝ) (hδ : 0<δ) (hδr : δ<1/(2*((d+1:ℕ):ℝ)))
16    (hgain : Tendsto (fun n=>((n+t n:ℕ):ℝ)/(n:ℝ)) atTop (𝓝 (1+δ))) :
17    lowerEnvelope ((d+1)*k) δ ≤
18      liminf (fun n=>1-PhysicalFlatPCT.fidelity d k P n (t n)^2) atTop ∧
19    liminf (fun n=>1-PhysicalFlatPCT.fidelity d k P n (t n)^2) atTop ≤
20      limsup (fun n=>1-PhysicalFlatPCT.fidelity d k P n (t n)^2) atTop ∧
21    limsup (fun n=>1-PhysicalFlatPCT.fidelity d k P n (t n)^2) atTop ≤
22      upperEnvelope ((d+1)*k) (d*(d+2)) δ := by
23  let E := fun n=>1-PhysicalFlatPCT.fidelity d k P n (t n)^2
24  have hb (n : ℕ) : 0≤E n ∧ E n≤1 := by
25    have h0 := PhysicalFlatPCT.fidelity_nonneg d k P n (t n)
26    have h1 := PhysicalFlatPCT.fidelity_le_one d k P n (t n)
27    dsimp [E]
28    constructor <;> nlinarith [sq_nonneg (PhysicalFlatPCT.fidelity d k P n (t n))]
29  have h := physical_error_envelopes d k t δ hδ hδr hgain
30  refine ⟨?_,?_,?_⟩
31  · apply le_of_forall_pos_le_add
32    intro ε hε
33    have hh : lowerEnvelope ((d+1)*k) δ-ε≤liminf E atTop :=
34      le_liminf_of_le (isCoboundedUnder_ge_of_le atTop (fun n=>(hb n).2))
35        ((h ε hε).mono (fun n hn=>(hn P).1))
36    linarith
37  · exact liminf_le_limsup
38      (isBoundedUnder_of_eventually_le (Eventually.of_forall (fun n=>(hb n).2)))
39      (isBoundedUnder_of_eventually_ge (Eventually.of_forall (fun n=>(hb n).1)))
40  · apply le_of_forall_pos_le_add
41    intro ε hε
42    exact limsup_le_of_le (isCoboundedUnder_le_of_le atTop (fun n=>(hb n).1))
43      ((h ε hε).mono (fun n hn=>(hn P).2))
44 
45/-- Arbitrary m(n)/n→1+δ, for the prescribed all-input channel. -/
46theorem prescribed_error_liminf_limsup (d k : ℕ) (P : Projector (d+1) k)
47    (m : ℕ→ℕ) (δ : ℝ) (hδ : 0<δ) (hδr : δ<1/(2*((d+1:ℕ):ℝ)))
48    (hgain : Tendsto (fun n=>(m n:ℝ)/(n:ℝ)) atTop (𝓝 (1+δ))) :
49    lowerEnvelope ((d+1)*k) δ ≤
50      liminf (fun n=>1-PCTPrescribed.rankFidelity d k P n (m n)^2) atTop ∧
51    liminf (fun n=>1-PCTPrescribed.rankFidelity d k P n (m n)^2) atTop ≤
52      limsup (fun n=>1-PCTPrescribed.rankFidelity d k P n (m n)^2) atTop ∧
53    limsup (fun n=>1-PCTPrescribed.rankFidelity d k P n (m n)^2) atTop ≤
54      upperEnvelope ((d+1)*k) (d*(d+2)) δ := by
55  have hg : 1<1+δ := by linarith
56  have he := (PCTPrescribed.eventually_rankFidelity d k P m hg hgain).fun_comp
57    (fun x:ℝ=>1-x^2)
58  simp only [Function.comp_def] at he
59  rw [← liminf_congr he,← limsup_congr he]
60  exact physical_error_liminf_limsup d k P (fun n=>m n-n) δ hδ hδr
61    (PCTPrescribed.addedCopies_ratio m hg hgain)
62 
63end Cloning.PCTProjectorPurity