Offline · exact source
Exact Lean source

PCTPrescribedRankGuarantee

formalization/Cloning/PCTPrescribedRankGuarantee.lean

Source hash: 29924733dde95419fdf5215f51248d4b170e7a78990c7c952220e5870b101a38

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: Purify–clone–trace

Declarations in this module
1import Cloning.PCTPrescribedRank
2import Cloning.PCTRankPurificationGeneralFinite
3 
4/-! The prescribed PCT channel has the manuscript's finite guarantee on the
5entire rank-bounded state family, not only on normalized projectors. Its rank
6bound is d+1 and its system dimension is d+1+k. All sample sizes, including
7restriction and zero additional copies, use the same prescribed channel. -/
8noncomputable section
9open scoped Topology Matrix
10open Filter
11namespace Cloning.PCTPrescribed
12open Cloning.PCT Cloning.PCTPhysicalState Cloning.PCTRankAdapted
13open Cloning.PCTRankPurification Cloning.TensorCloning
14set_option backward.isDefEq.respectTransparency false
15set_option maxHeartbeats 600000
16local instance guaranteeAmbientNonempty (d k : ℕ) : Nonempty (Fin (d+1+k)) :=
17  ⟨⟨0,by omega⟩⟩
18 
19/-- The mode count is exactly rank bound times system dimension, minus one. -/
20theorem flatPurificationDimension_eq_rank_times_dimension (d k : ℕ) :
21    flatPurificationDimension d k=(d+1)*(d+1+k)-1 := by
22  unfold flatPurificationDimension
23  have h : d*(d+2)+k*(d+1)+1=(d+1)*(d+1+k) := by ring
24  omega
25 
26/-- The concrete fixed coordinate-fallback channel has the arbitrary-state
27lower bound, with no purification or support witness supplied by the caller. -/
28theorem physical_rank_statePayoff_lower (d k n t : ℕ)
29    (ρ : Cloning.MatrixFidelity.State (Fin (d+1+k)))
30    (hrank : ρ.matrix.rank≤d+1) :
31    Real.sqrt (wernerScale n (n+t) (flatPurificationDimension d k)) ≤
32      statePayoff n (n+t) (PhysicalFlatPCT.channel d k n t) ρ := by
33  exact channel_rank_le_fidelity_lower k n t (flat_ambient_register_card d k)
34    (fun _=>⟨0,by omega⟩,fun _=>⟨0,by omega⟩) ρ hrank
35 
36/-- The prescribed channel's guarantee is valid at every n≤m, including n=m. -/
37theorem rankChannel_statePayoff_lower (d k n m : ℕ) (hnm : n≤m)
38    (ρ : Cloning.MatrixFidelity.State (Fin (d+1+k)))
39    (hrank : ρ.matrix.rank≤d+1) :
40    Real.sqrt (wernerScale n m (flatPurificationDimension d k)) ≤
41      statePayoff n m (rankChannel d k n m) ρ := by
42  rcases hnm.eq_or_lt with he|hlt
43  · subst m
44    rw [show statePayoff n n (rankChannel d k n n) ρ=1 from
45      extendChannel_payoff_of_le (PhysicalFlatPCT.channel d k) n n le_rfl ρ]
46    have hc : (Nat.choose (n+flatPurificationDimension d k) (flatPurificationDimension d k):ℝ)≠0 :=
47      by exact_mod_cast (Nat.choose_pos (by omega : flatPurificationDimension d k≤n+flatPurificationDimension d k)).ne'
48    simp [wernerScale,hc]
49  · have h := physical_rank_statePayoff_lower d k n (m-n) ρ hrank
50    rw [← extendChannel_payoff_of_gt (PhysicalFlatPCT.channel d k) n m hlt ρ] at h
51    simpa only [Nat.add_sub_of_le hnm,rankChannel] using h
52 
53theorem rankChannel_statePayoff_sq_lower (d k n m : ℕ) (hnm : n≤m)
54    (ρ : Cloning.MatrixFidelity.State (Fin (d+1+k)))
55    (hrank : ρ.matrix.rank≤d+1) :
56    wernerScale n m (flatPurificationDimension d k) ≤
57      statePayoff n m (rankChannel d k n m) ρ^2 := by
58  have h := rankChannel_statePayoff_lower d k n m hnm ρ hrank
59  have hs := Real.sq_sqrt (wernerScale_pos n m (flatPurificationDimension d k)).le
60  have hp := statePayoff_nonneg n m (rankChannel d k n m) ρ
61  nlinarith [Real.sqrt_nonneg (wernerScale n m (flatPurificationDimension d k))]
62 
63/-- One explicit finite sample threshold works simultaneously for all
64density matrices of rank at most d+1, irrespective of spectrum or support. -/
65theorem rankChannel_uniform_sample_guarantee (d k N M : ℕ)
66    (hN : 0<N) (hM : 0<M) (hD : 1<(d+1)*(d+1+k))
67    {ε : ℝ} (hε : 0<ε) (hε1 : ε<1)
68    (hR : SampleRatio.threshold (((d+1)*(d+1+k)-1:ℕ):ℝ) ε≤(N:ℝ)/M) :
69    ∀ρ : Cloning.MatrixFidelity.State (Fin (d+1+k)),ρ.matrix.rank≤d+1 →
70      1-ε≤statePayoff N (N+M) (rankChannel d k N (N+M)) ρ^2 := by
71  intro ρ hrank
72  have hs : 0<flatPurificationDimension d k := by
73    rw [flatPurificationDimension_eq_rank_times_dimension]
74    omega
75  have hR' : SampleRatio.threshold (flatPurificationDimension d k) ε≤(N:ℝ)/M := by
76    simpa only [flatPurificationDimension_eq_rank_times_dimension] using hR
77  exact (SampleRatio.wernerScale_ge_target N M _ hN hM hs hε hε1 hR').trans
78    (rankChannel_statePayoff_sq_lower d k N (N+M) (Nat.le_add_right N M) ρ hrank)
79 
80/-- The binomial root bound has the literal exponent -(rD-1)/2. -/
81theorem rank_guarantee_tendsto (d k : ℕ) (m : ℕ→ℕ) (γ : ℝ) (hγ : 1<γ)
82    (hgain : Tendsto (fun n=>(m n:ℝ)/n) atTop (𝓝 γ)) :
83    Tendsto (fun n=>Real.sqrt (wernerScale n (m n) (flatPurificationDimension d k)))
84      atTop (𝓝 (γ ^ (-(((d+1)*(d+1+k)-1:ℕ):ℝ)/2))) := by
85  have h := (wernerScale_tendsto m hγ hgain (flatPurificationDimension d k)).sqrt
86  have hg : 0<γ := by linarith
87  have he : Real.sqrt ((1/γ)^flatPurificationDimension d k)=
88      γ ^ (-(((d+1)*(d+1+k)-1:ℕ):ℝ)/2) := by
89    rw [Real.sqrt_eq_rpow,← Real.rpow_natCast,← Real.rpow_mul (one_div_pos.mpr hg).le,
90      one_div,Real.inv_rpow hg.le,← Real.rpow_neg hg.le,
91      flatPurificationDimension_eq_rank_times_dimension]
92    congr 1
93    ring
94  exact he ▸ h
95 
96/-- The lower guarantee is uniform even when an adversary changes the
97input spectrum, support and rank with the sample size. -/
98theorem rankChannel_uniform_asymptotic_lower (d k : ℕ)
99    (m : ℕ→ℕ) (γ : ℝ) (hγ : 1<γ)
100    (hgain : Tendsto (fun n=>(m n:ℝ)/n) atTop (𝓝 γ))
101    (ε : ℝ) (hε : 0<ε) :
102    ∀ᶠ n in atTop,∀ρ : Cloning.MatrixFidelity.State (Fin (d+1+k)),
103      ρ.matrix.rank≤d+1 →
104      γ ^ (-(((d+1)*(d+1+k)-1:ℕ):ℝ)/2)-ε <
105        statePayoff n (m n) (rankChannel d k n (m n)) ρ := by
106  have h := (rank_guarantee_tendsto d k m γ hγ hgain).eventually
107    (Ioi_mem_nhds (by linarith : γ ^ (-(((d+1)*(d+1+k)-1:ℕ):ℝ)/2)-ε<
108      γ ^ (-(((d+1)*(d+1+k)-1:ℕ):ℝ)/2)))
109  filter_upwards [h,eventually_output_gt_input m hγ hgain] with n hn hnm ρ hrank
110  exact hn.trans_le (rankChannel_statePayoff_lower d k n (m n) hnm.le ρ hrank)
111 
112/-- The liminf statement permits every adversarial sequence of rank-bounded
113states. In particular no fixed spectrum or spectral gap is required. -/
114theorem rankChannel_liminf_lower (d k : ℕ)
115    (m : ℕ→ℕ) (γ : ℝ) (hγ : 1<γ)
116    (hgain : Tendsto (fun n=>(m n:ℝ)/n) atTop (𝓝 γ))
117    (ρ : ℕ→Cloning.MatrixFidelity.State (Fin (d+1+k)))
118    (hrank : ∀n,(ρ n).matrix.rank≤d+1) :
119    γ ^ (-(((d+1)*(d+1+k)-1:ℕ):ℝ)/2)≤
120      liminf (fun n=>statePayoff n (m n) (rankChannel d k n (m n)) (ρ n)) atTop := by
121  apply le_of_forall_pos_le_add
122  intro ε hε
123  have h := rankChannel_uniform_asymptotic_lower d k m γ hγ hgain ε hε
124  have hh : γ ^ (-(((d+1)*(d+1+k)-1:ℕ):ℝ)/2)-ε≤
125      liminf (fun n=>statePayoff n (m n) (rankChannel d k n (m n)) (ρ n)) atTop :=
126    le_liminf_of_le
127      (isCoboundedUnder_ge_of_le atTop (fun n=>
128        statePayoff_le_one n (m n) (rankChannel d k n (m n)) (ρ n)))
129      (h.mono (fun n hn=>(hn (ρ n) (hrank n)).le))
130  linarith
131 
132end Cloning.PCTPrescribed