Offline · exact source
Exact Lean source

PCTProjectorPurityTargets

formalization/Cloning/PCTProjectorPurityTargets.lean

Source hash: 518d99376b01c62dfb41f1cdf9b116ce29edb10a99a64f4393852145ffca1430

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.PCTProjectorPurityEnvelopeLimits
2 
3/-! Concrete sample-gain brackets for the actual projector PCT channel,
4uniformly in the unknown projector and with the order of limits explicit. -/
5noncomputable section
6open scoped Topology
7open Filter
8namespace Cloning.PCTProjectorPurity
9open Cloning.PhysicalFlatGrassmann
10 
11/-- At gains (1±η)ε/a, the actual squared fidelity is respectively above
12and below 1−ε for all sufficiently large samples. The sample cutoff may
13depend on ε, exactly as required by the iterated limit. -/
14theorem physical_target_brackets (d k : ℕ) (hk : 0<k) (t : ℝ→ℕ→ℕ)
15    (hgain : ∀δ,0<δ→δ<1/(2*((d+1:ℕ):ℝ))→
16      Tendsto (fun n=>((n+t δ n:ℕ):ℝ)/(n:ℝ)) atTop (𝓝 (1+δ)))
17    {η : ℝ} (hη : 0<η) (hη1 : η<1) :
18    ∀ᶠ ε in 𝓝[>] (0:ℝ),∀ᶠ (n : ℕ) in atTop,∀P : Projector (d+1) k,
19      1-ε<PhysicalFlatPCT.fidelity d k P n (t ((1-η)*ε/(((d+1)*k:ℕ):ℝ)) n)^2 ∧
20      PhysicalFlatPCT.fidelity d k P n (t ((1+η)*ε/(((d+1)*k:ℕ):ℝ)) n)^2<1-ε := by
21  let a := (d+1)*k
22  have haN : 0<a := Nat.mul_pos (by omega) hk
23  have ha : (0:ℝ)<a := by exact_mod_cast haN
24  have hid : Tendsto (fun ε:ℝ=>ε) (𝓝[>] (0:ℝ)) (𝓝 0) := nhdsWithin_le_nhds
25  have hl : Tendsto (fun ε=>(1-η)*ε/(a:ℝ)) (𝓝[>] (0:ℝ)) (𝓝 0) := by
26    simpa using (hid.const_mul (1-η)).div_const (a:ℝ)
27  have hu : Tendsto (fun ε=>(1+η)*ε/(a:ℝ)) (𝓝[>] (0:ℝ)) (𝓝 0) := by
28    simpa using (hid.const_mul (1+η)).div_const (a:ℝ)
29  have hb : (0:ℝ)<1/(2*((d+1:ℕ):ℝ)) := by positivity
30  filter_upwards [envelopes_target_bracket a (d*(d+2)) haN hη hη1,
31    hl.eventually_lt_const hb,hu.eventually_lt_const hb,self_mem_nhdsWithin]
32    with ε he hls hus hε
33  have hε0 : 0<ε := hε
34  have hlp : 0<(1-η)*ε/(a:ℝ) := div_pos (mul_pos (by linarith) hε0) ha
35  have hup : 0<(1+η)*ε/(a:ℝ) := div_pos (mul_pos (by linarith) hε0) ha
36  have hL := physical_error_envelopes d k (t ((1-η)*ε/a)) ((1-η)*ε/a)
37    hlp hls (hgain _ hlp hls)
38    ((ε-upperEnvelope a (d*(d+2)) ((1-η)*ε/a))/2) (by linarith [he.1])
39  have hU := physical_error_envelopes d k (t ((1+η)*ε/a)) ((1+η)*ε/a)
40    hup hus (hgain _ hup hus)
41    ((lowerEnvelope a ((1+η)*ε/a)-ε)/2) (by linarith [he.2])
42  filter_upwards [hL,hU] with n hLn hUn P
43  have hleft := (hLn P).2
44  have hright := (hUn P).1
45  change 1-ε<PhysicalFlatPCT.fidelity d k P n (t ((1-η)*ε/a) n)^2 ∧
46    PhysicalFlatPCT.fidelity d k P n (t ((1+η)*ε/a) n)^2<1-ε
47  change 1-PhysicalFlatPCT.fidelity d k P n (t ((1-η)*ε/a) n)^2≤
48    upperEnvelope a (d*(d+2)) ((1-η)*ε/a)+
49      (ε-upperEnvelope a (d*(d+2)) ((1-η)*ε/a))/2 at hleft
50  change lowerEnvelope a ((1+η)*ε/a)-(lowerEnvelope a ((1+η)*ε/a)-ε)/2≤
51    1-PhysicalFlatPCT.fidelity d k P n (t ((1+η)*ε/a) n)^2 at hright
52  constructor <;> linarith [he.1,he.2]
53 
54end Cloning.PCTProjectorPurity