Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Adaptive inverse with floor((k+1)/d) attempts

Open
QAlgorithms.Papers.Independent.Intake100.P12.adaptive_inversion

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

prove2quantum

For every integer d≥2d\ge2d≥2 and k≥0k\ge0k≥0, a fixed sequential kkk-slot instrument implements the inverse channel of every unknown U∈U(d)U\in U(d)U∈U(d) exactly on its heralded success branch, with coefficient

p=1−(1−d−2)⌊(k+1)/d⌋.p=1-(1-d^{-2})^{\lfloor(k+1)/d\rfloor}.p=1−(1−d−2)⌊(k+1)/d⌋.

Memory and auxiliary channels are independent of UUU, and the failure branch is retained. Each full failed attempt and recovery costs ddd uses, while the last attempt costs d−1d-1d−1; unused slots can be padded.

This is the construction credited by the source to Ref. [29], with no optimality assertion.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P12
Formal statement
noncomputable section

open QAlgorithms

open scoped Matrix ComplexConjugate ComplexOrder Kronecker

namespace QAlgorithms.Papers.Independent.Intake100.P12

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.Papers.Independent.Information100.P21 (Op)

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

/-- PDF pp.18–20, VII B: the adaptive construction credited to Ref. [29].
The displayed exponent is floor((k+1)/d). The preceding sentence incorrectly
calls 1-1/d^2 the success probability; Fig. 8 labels it as failure. -/
theorem adaptive_inversion {d k : ℕ} (hd : 2 ≤ d) :
    Attainable .adaptive d k (targetChoi .inverse)
      (adaptiveInverseProbability d k) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P12

end
Source
Probabilistic exact universal quantum circuits for transforming unitary operations, arXiv:1909.01366v2, PDF p. 19, VII B
Read-back

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

For every pair of natural numbers d,kd,kd,k with d≥2d\ge2d≥2, including k=0k=0k=0, set

p=1−(1−1d2)⌊(k+1)/d⌋.p=1-\left(1-\frac1{d^2}\right)^{\left\lfloor (k+1)/d\right\rfloor}.p=1−(1−d21​)⌊(k+1)/d⌋.

Then 0≤p≤10\le p\le10≤p≤1, and there exist positive semidefinite complex matrices S,FS,FS,F, indexed by tuples (i,x,u,o)(i,x,u,o)(i,x,u,o) with i,o∈{0,…,d−1}i,o\in\{0,\ldots,d-1\}i,o∈{0,…,d−1} and x,u∈{0,…,d−1}kx,u\in\{0,\ldots,d-1\}^kx,u∈{0,…,d−1}k, having the following properties. To state them, write C=S+FC=S+FC=S+F, define the matrix associated with a matrix VVV by

G(V)(o,i),(o′,i′)=Vo,iVo′,i′‾,G(V)_{(o,i),(o',i')}=V_{o,i}\overline{V_{o',i'}},G(V)(o,i),(o′,i′)​=Vo,i​Vo′,i′​​,

define the tensor of slot matrices by

J(J0,…,Jk−1)(u,x),(v,y)=∏j=0k−1(Jj)(uj,xj),(vj,yj),\mathcal J(J_0,\ldots,J_{k-1})_{(u,x),(v,y)} =\prod_{j=0}^{k-1}(J_j)_{(u_j,x_j),(v_j,y_j)},J(J0​,…,Jk−1​)(u,x),(v,y)​=j=0∏k−1​(Jj​)(uj​,xj​),(vj​,yj​)​,

and define contraction with a process matrix HHH and reconstruction of a map from a matrix JJJ by

EH(J)(o,i),(o′,i′)=∑x,y,u,vH(i,x,u,o),(i′,y,v,o′)J(u,x),(v,y),TJ(X)a,b=∑r,sXr,sJ(a,r),(b,s).\mathcal E_H(J)_{(o,i),(o',i')} =\sum_{x,y,u,v}H_{(i,x,u,o),(i',y,v,o')}J_{(u,x),(v,y)}, \qquad \mathcal T_J(X)_{a,b} =\sum_{r,s}X_{r,s}J_{(a,r),(b,s)}.EH​(J)(o,i),(o′,i′)​=x,y,u,v∑​H(i,x,u,o),(i′,y,v,o′)​J(u,x),(v,y)​,TJ​(X)a,b​=r,s∑​Xr,s​J(a,r),(b,s)​.

There exist a positive integer mmm, channels E0E_0E0​ from ddd-dimensional matrices to matrices indexed by {0,…,m−1}×{0,…,d−1}\{0,\ldots,m-1\}\times\{0,\ldots,d-1\}{0,…,m−1}×{0,…,d−1}, channels EjE_jEj​ on that latter space for every 0≤j<k0\le j<k0≤j<k, and a channel DDD back to ddd-dimensional matrices, such that, for every tuple of arbitrary complex slot matrices JjJ_jJj​ and every arbitrary complex d×dd\times dd×d matrix XXX,

TEC(J(J0,…,Jk−1))(X)=D(Yk),Y0=E0(X),Yj+1=Ej ⁣((id⁡m⊗TJj)(Yj)).\mathcal T_{\mathcal E_C(\mathcal J(J_0,\ldots,J_{k-1}))}(X)=D(Y_k), \qquad Y_0=E_0(X),\quad Y_{j+1}=E_j\!\left((\operatorname{id}_m\otimes\mathcal T_{J_j})(Y_j)\right).TEC​(J(J0​,…,Jk−1​))​(X)=D(Yk​),Y0​=E0​(X),Yj+1​=Ej​((idm​⊗TJj​​)(Yj​)).

Here a channel means a map X↦∑ℓ=0q−1AℓXAℓ†X\mapsto\sum_{\ell=0}^{q-1}A_\ell XA_\ell^\daggerX↦∑ℓ=0q−1​Aℓ​XAℓ†​ for some natural number qqq and matrices satisfying ∑ℓAℓ†Aℓ=I\sum_\ell A_\ell^\dagger A_\ell=I∑ℓ​Aℓ†​Aℓ​=I; the amplified map applies the indicated map to each block indexed by the memory coordinates. Finally, for every unitary d×dd\times dd×d matrix UUU,

ES ⁣(J(G(U),…,G(U)))=p G(U†).\mathcal E_S\!\left(\mathcal J(G(U),\ldots,G(U))\right)=p\,G(U^\dagger).ES​(J(G(U),…,G(U)))=pG(U†).

For k=0k=0k=0, the slot products are empty products equal to 111, the sequential evolution has no slot applications, and the asserted value of ppp is 000.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 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