Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Conditional amplification of a supplied success-or-draw protocol

Proved
QAlgorithms.Papers.Independent.Extend50.P07.successOrDraw_repetition

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let 1≤d≤D1\le d\le D1≤d≤D be positive integer dimensions with fixed computational bases. Write EV(X)=VXV†\mathcal E_V(X)=VXV^\daggerEV​(X)=VXV† for an unknown isometry V:Cd→CDV:\mathbb C^d\to\mathbb C^DV:Cd→CD, where V†V=IdV^\dagger V=I_dV†V=Id​. A protocol, including its finite memory and all its operations, is fixed before VVV. Its kkk oracle slots receive the same channel EV\mathcal E_VEV​, and every map identity below holds on every input operator. The uniform coefficient p∈[0,1]p\in[0,1]p∈[0,1] is the scale in Eq. (5); the physical outcome probability on a density matrix ρ\rhoρ is pTr⁡(f(V)(ρ))p\operatorname{Tr}(f(V)(\rho))pTr(f(V)(ρ)).

Supply a physical kkk-slot success-or-draw protocol AAA with coefficient p∈[0,1]p\in[0,1]p∈[0,1]. Let W:Cd→CDW:\mathbb C^d\to\mathbb C^DW:Cd→CD be the fixed natural embedding. Its successful and draw branches obey

SV(EV(X))=pEW(X),FV(EV(X))=(1−p)EV(X).S_V(\mathcal E_V(X))=p\mathcal E_W(X),\qquad F_V(\mathcal E_V(X))=(1-p)\mathcal E_V(X).SV​(EV​(X))=pEW​(X),FV​(EV​(X))=(1−p)EV​(X).

The finite protocol tree that repeats AAA after a draw, stopping at success or after mmm rounds, has worst-case query count mkmkmk. Its successful and all-draw branches on a code input are respectively

[1−(1−p)m]EW(X),(1−p)mEV(X).[1-(1-p)^m]\mathcal E_W(X),\qquad (1-p)^m\mathcal E_V(X).[1−(1−p)m]EW​(X),(1−p)mEV​(X).

For 0<p<10<p<10<p<1 there is a constant C>0C>0C>0, depending on the supplied protocol and ppp but not on δ\deltaδ, such that for every 0<δ<10<\delta<10<δ<1 some mmm achieves failure at most δ\deltaδ with query count at most k+Clog⁡(1/δ)k+C\log(1/\delta)k+Clog(1/δ). The exact formulas include m=0m=0m=0 and p=1p=1p=1; one round suffices when p=1p=1p=1. This is conditional and does not assert exact feasibility of the numerically reported instance.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P07
Formal statement
noncomputable section

open scoped Matrix ComplexConjugate ComplexOrder

attribute [local instance] Classical.propDecidable

attribute [local instance] Classical.decEq

namespace QAlgorithms.Papers.Independent.Extend50.P07

open QAlgorithms.Papers.Independent.Information100.P75 (Mat)

open QAlgorithms.Papers.Independent.Information100.P58 (Word)

open QAlgorithms.Papers.Independent.Information100.P06 (Choi)

open QAlgorithms.Papers.Independent.Information100.P34 (choi fromChoi)

open QAlgorithms.Papers.Independent.Claimed50.P48 (FiniteKrausCP)

open QAlgorithms.Papers.Independent.Advance50.P05 (RectangularInstrument)

open QAlgorithms.Papers.Independent.Dependency50.P05 (ChannelChoi)

/-- arXiv:2110.00258v5 PDF pp.23--24,43: conditional amplification of a
supplied physical success-or-draw protocol. The output uses the fixed embedding
of Eq. (38). At p=1 the one-round formula applies without a logarithmic denominator.
Eq. (211)'s printed p is corrected to 1-p, as in Eqs. (69),(213),(218). -/
theorem successOrDraw_repetition (d D k : ℕ) (hd : 0 < d) (hD : d ≤ D)
    (A : General d D D D k) (p : ℝ) (hp0 : 0 ≤ p) (hp1 : p ≤ 1)
    (hS : ∀ V : Isometry d D, ∀ X,
      A.run V (conjSuperop V.val X) = (p : ℂ) • conjSuperop (embedding d D) X)
    (hF : ∀ V : Isometry d D, ∀ X,
      A.draw V (conjSuperop V.val X) = ((1 - p : ℝ) : ℂ) • conjSuperop V.val X) :
    (∀ m : ℕ, (repeatProtocol A m).queryCount = m * k ∧
      ∀ V : Isometry d D, ∀ X,
      (repeatProtocol A m).success V (conjSuperop V.val X) =
        ((1 - (1 - p)^m : ℝ) : ℂ) • conjSuperop (embedding d D) X ∧
      (repeatProtocol A m).failure V (conjSuperop V.val X) =
        (((1 - p)^m : ℝ) : ℂ) • conjSuperop V.val X) ∧
    (0 < p → p < 1 → ∃ C : ℝ, 0 < C ∧ ∀ delta : ℝ,
      0 < delta → delta < 1 → ∃ m : ℕ,
        (1 - p)^m ≤ delta ∧
        ((repeatProtocol A m).queryCount : ℝ) ≤ (k : ℝ) + C * Real.log (1 / delta)) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P07

end
Source
Universal construction of decoders from encoding black boxes, arXiv:2110.00258v5, PDF p. 24, §5: amplification by repeating a success-or-draw protocol
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

Let d,D,kd,D,kd,D,k be natural numbers with 0<d≤D0<d\le D0<d≤D, let p∈[0,1]p\in[0,1]p∈[0,1], and let A\mathcal AA be a general kkk-slot procedure with DDD-dimensional input and output. More precisely, A\mathcal AA consists of complex-linear success and failure maps S,F\mathsf S,\mathsf FS,F from matrices indexed by ddd-dimensional input words and DDD-dimensional output words to matrices indexed by DDD-dimensional input-output pairs. Each map has a positive semidefinite Choi matrix, whose entries for a map LLL are (JL)(u,a),(v,b)=(L(Euv))ab(J_L)_{(u,a),(v,b)}=(L(E_{uv}))_{ab}(JL​)(u,a),(v,b)​=(L(Euv​))ab​. In addition, for every choice of positive ancillary dimensions ri,sir_i,s_iri​,si​ in each slot and every family of positive semidefinite matrices JiJ_iJi​ indexed by (Fin⁡ri×Fin⁡d)×(Fin⁡si×Fin⁡D)(\operatorname{Fin}r_i\times\operatorname{Fin}d)\times(\operatorname{Fin}s_i\times\operatorname{Fin}D)(Finri​×Find)×(Finsi​×FinD) whose partial traces over their output registers are identities, the success and failure extensions are positive semidefinite and their sum also has output partial trace equal to the identity. For either L=SL=\mathsf SL=S or L=FL=\mathsf FL=F, this extension has entries

CL(a,α; b,β),(a′,α′; b′,β′)=[L ⁣((u,v)⟼∏i=0k−1(Ji)((αi,uiin),(βi,uiout)),((αi′,viin),(βi′,viout)))](a,b),(a′,b′).C_L{}_{(a,\alpha;\,b,\beta),(a',\alpha';\,b',\beta')} = \left[ L\!\left( (u,v)\longmapsto \prod_{i=0}^{k-1} (J_i)_{((\alpha_i,u_i^{\rm in}),(\beta_i,u_i^{\rm out})), ((\alpha'_i,v_i^{\rm in}),(\beta'_i,v_i^{\rm out}))} \right) \right]_{(a,b),(a',b')}.CL​(a,α;b,β),(a′,α′;b′,β′)​=[L((u,v)⟼i=0∏k−1​(Ji​)((αi​,uiin​),(βi​,uiout​)),((αi′​,viin​),(βi′​,viout​))​)](a,b),(a′,b′)​.

For an isometry V:Cd→CDV:\mathbb C^d\to\mathbb C^DV:Cd→CD, define SV=FS(JΛV⊗k)\mathcal S_V=\mathcal F_{\mathsf S(J_{\Lambda_V^{\otimes k}})}SV​=FS(JΛV⊗k​​)​ and FV=FF(JΛV⊗k)\mathcal F_V=\mathcal F_{\mathsf F(J_{\Lambda_V^{\otimes k}})}FV​=FF(JΛV⊗k​​)​, where ΛV(X)=VXV†\Lambda_V(X)=VXV^\daggerΛV​(X)=VXV†, tensor products of maps are extended linearly from matrix units, JΛ(i,o),(j,q)=(Λ(Eij))oqJ_\Lambda{}_{(i,o),(j,q)}=(\Lambda(E_{ij}))_{oq}JΛ​(i,o),(j,q)​=(Λ(Eij​))oq​, and (FJ(X))ab=∑i,jXijJ(i,a),(j,b)(\mathcal F_J(X))_{ab}=\sum_{i,j}X_{ij}J_{(i,a),(j,b)}(FJ​(X))ab​=∑i,j​Xij​J(i,a),(j,b)​. Suppose that for every such VVV and every complex d×dd\times dd×d matrix XXX,

SV(VXV†)=p EXE†,FV(VXV†)=(1−p)VXV†,\mathcal S_V(VXV^\dagger)=p\,EXE^\dagger, \qquad \mathcal F_V(VXV^\dagger)=(1-p)VXV^\dagger,SV​(VXV†)=pEXE†,FV​(VXV†)=(1−p)VXV†,

where EEE is the D×dD\times dD×d matrix Eoi=1E_{oi}=1Eoi​=1 when the integer indices o=io=io=i, and zero otherwise. Repeat this procedure at most mmm times, continuing only through its failure branch: the zero-attempt success map is zero and its failure map is the identity, while adding an attempt replaces these maps by SV+Srest,V∘FV\mathcal S_V+\mathcal S_{\mathrm{rest},V}\circ\mathcal F_VSV​+Srest,V​∘FV​ and Frest,V∘FV\mathcal F_{\mathrm{rest},V}\circ\mathcal F_VFrest,V​∘FV​, respectively. Then for every natural number mmm, this repetition has exactly mkmkmk queries and, for every V,XV,XV,X as above,

SV(m)(VXV†)=(1−(1−p)m)EXE†,FV(m)(VXV†)=(1−p)mVXV†.\mathcal S_V^{(m)}(VXV^\dagger) =\bigl(1-(1-p)^m\bigr)EXE^\dagger, \qquad \mathcal F_V^{(m)}(VXV^\dagger) =(1-p)^mVXV^\dagger.SV(m)​(VXV†)=(1−(1−p)m)EXE†,FV(m)​(VXV†)=(1−p)mVXV†.

Furthermore, if 0<p<10<p<10<p<1, there exists a real constant C>0C>0C>0 such that for every real 0<δ<10<\delta<10<δ<1, some natural number mmm satisfies

(1−p)m≤δ,mk≤k+Clog⁡(1/δ),(1-p)^m\le\delta, \qquad mk\le k+C\log(1/\delta),(1−p)m≤δ,mk≤k+Clog(1/δ),

where the logarithm is natural. The finite-repetition assertions include m=0m=0m=0, k=0k=0k=0, p=0p=0p=0, and p=1p=1p=1, with zeroth powers equal to one; the final logarithmic bound is conditional on 0<p<10<p<10<p<1.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me