Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix A: Choi, composition and one-slot superinstrument characterization

Open
QAlgorithms.Papers.Independent.Extend50.P07.choi_backgroundCharacterization

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

prove2quantum

For positive finite dimensions, an unnormalized input-first Choi matrix J represents a completely positive map exactly when J is positive semidefinite, and a channel exactly when its output partial trace is the identity. Composition contracts the intermediate input/output indices. For two linear one-slot Choi supermaps S,T, being the branches of a General instrument is equivalent to positive Choi operators and the affine partial-trace conditions (76)-(78). The first condition removes dependence on the oracle output after tracing the future; the second full slot/future trace is D times the identity on the past. All operator identities are on arbitrary matrices, with no normalization of the Choi matrix by the input dimension.

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.27--28, Appendix A, Eqs.(70)--(79):
unnormalized Choi CP/TP characterization, composition, and the complete physical
one-slot instrument characterization. This is cited background, not a new result
of Yoshida--Soeda--Murao. The two finite normalizations retain all four wires. -/
theorem choi_backgroundCharacterization (d D P F : ℕ)
    (hd : 0 < d) (hD : 0 < D) (hP : 0 < P) (hF : 0 < F) :
    (∀ J : Choi (Fin d) (Fin D),
      (FiniteKrausCP (fromChoi J) ↔ J.PosSemidef) ∧
      (IsChannel (fromChoi J) ↔ ChannelChoi J)) ∧
    (∀ J : Choi (Fin d) (Fin D), ∀ K : Choi (Fin D) (Fin F),
      choi (fun X => fromChoi K (fromChoi J X)) =
        (fun a b => ∑ o : Fin D, ∑ q : Fin D,
          J (a.1, o) (b.1, q) * K (o, a.2) (q, b.2))) ∧
    (∀ S T : Choi (Word 1 d) (Word 1 D) →ₗ[ℂ] Choi (Fin P) (Fin F),
      (∃ A : General d D P F 1, A.success = S ∧ A.failure = T) ↔
      (choi S).PosSemidef ∧ (choi T).PosSemidef ∧
      (let C := choi S + choi T
       (∀ u v : Word 1 d, ∀ o q : Word 1 D, ∀ x y : Fin P,
         (∑ f : Fin F, C ((u, o), (x, f)) ((v, q), (y, f))) =
           ((if o = q then (1 : ℂ) else 0) / (D : ℂ)) *
             ∑ r : Word 1 D, ∑ f : Fin F,
               C ((u, r), (x, f)) ((v, r), (y, f))) ∧
       (∀ x y : Fin P,
         (∑ u : Word 1 d, ∑ o : Word 1 D, ∑ f : Fin F,
           C ((u, o), (x, f)) ((u, o), (y, f))) =
             (D : ℂ) * (if x = y then 1 else 0)))) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P07

end
Source
Universal construction of decoders from encoding black boxes, arXiv:2110.00258v5, PDF p. 28, Appendix A: Choi, composition and one-slot superinstrument characterization
Read-back

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

For every four natural numbers d,D,P,F>0d,D,P,F>0d,D,P,F>0, write [n]={0,…,n−1}[n]=\{0,\ldots,n-1\}[n]={0,…,n−1}, let [n]1[n]^1[n]1 denote the set of one-letter words over [n][n][n], and write X†X^\daggerX† for conjugate transpose. For a matrix JJJ indexed by [d]×[D][d]\times[D][d]×[D], define the matrix map

ΦJ(X)ab=∑i,j∈[d]XijJ(i,a),(j,b).\Phi_J(X)_{ab}=\sum_{i,j\in[d]}X_{ij}J_{(i,a),(j,b)}.ΦJ​(X)ab​=i,j∈[d]∑​Xij​J(i,a),(j,b)​.

For any matrix map LLL, define its Choi matrix by CL(i,a),(j,b)=L(Eij)ab\mathcal C_L{}_{(i,a),(j,b)}=L(E_{ij})_{ab}CL​(i,a),(j,b)​=L(Eij​)ab​, where EijE_{ij}Eij​ has a single entry 111 at (i,j)(i,j)(i,j). The declaration asserts all three of the following claims. First, for every such JJJ, the map ΦJ\Phi_JΦJ​ has a finite Kraus representation—there exist a natural number rrr, possibly zero, and matrices E1,…,ErE_1,\ldots,E_rE1​,…,Er​ such that ΦJ(X)=∑jEjXEj†\Phi_J(X)=\sum_jE_jXE_j^\daggerΦJ​(X)=∑j​Ej​XEj†​ for every XXX—if and only if JJJ is positive semidefinite; moreover, ΦJ\Phi_JΦJ​ has such a representation satisfying ∑jEj†Ej=Id\sum_jE_j^\dagger E_j=I_d∑j​Ej†​Ej​=Id​ if and only if JJJ is positive semidefinite and ∑o∈[D]J(i,o),(j,o)=δij\sum_{o\in[D]}J_{(i,o),(j,o)}=\delta_{ij}∑o∈[D]​J(i,o),(j,o)​=δij​ for all i,j∈[d]i,j\in[d]i,j∈[d]. Second, for every JJJ indexed by [d]×[D][d]\times[D][d]×[D] and every KKK indexed by [D]×[F][D]\times[F][D]×[F], without positivity or normalization assumptions,

CΦK∘ΦJ(i,a),(j,b)=∑o,q∈[D]J(i,o),(j,q)K(o,a),(q,b).\mathcal C_{\Phi_K\circ\Phi_J}{}_{(i,a),(j,b)} =\sum_{o,q\in[D]}J_{(i,o),(j,q)}K_{(o,a),(q,b)}.CΦK​∘ΦJ​​(i,a),(j,b)​=o,q∈[D]∑​J(i,o),(j,q)​K(o,a),(q,b)​.

Third, let S,TS,TS,T be any complex-linear maps from matrices indexed by [d]1×[D]1[d]^1\times[D]^1[d]1×[D]1 to matrices indexed by [P]×[F][P]\times[F][P]×[F]. There exists a structure with success map SSS and failure map TTT whose Choi matrices are positive semidefinite and which satisfies the following complete normalization requirement if and only if the explicit conditions below hold. That complete requirement quantifies over every pair of positive natural numbers r,sr,sr,s and every positive semidefinite matrix HHH indexed by ([r]×[d])×([s]×[D])([r]\times[d])\times([s]\times[D])([r]×[d])×([s]×[D]) whose partial trace over [s]×[D][s]\times[D][s]×[D] is I[r]×[d]I_{[r]\times[d]}I[r]×[d]​: the blockwise extensions S^(H)\widehat S(H)S(H) and T^(H)\widehat T(H)T(H) must each be positive semidefinite with partial trace over [F]×[s][F]\times[s][F]×[s] at most I[P]×[r]I_{[P]\times[r]}I[P]×[r]​, and their sum must have that partial trace equal to this identity. Here “at most” means that the difference is positive semidefinite, and the extension of L=SL=SL=S or TTT is defined by

L^(H)((x,α),(f,β)),((y,α′),(g,β′))=L ⁣([H((α,u0),(β,o0)),((α′,v0),(β′,q0))](u,o),(v,q))(x,f),(y,g),\widehat L(H)_{((x,\alpha),(f,\beta)),((y,\alpha'),(g,\beta'))} = L\!\left( \left[ H_{((\alpha,u_0),(\beta,o_0)),((\alpha',v_0),(\beta',q_0))} \right]_{(u,o),(v,q)} \right)_{(x,f),(y,g)},L(H)((x,α),(f,β)),((y,α′),(g,β′))​=L([H((α,u0​),(β,o0​)),((α′,v0​),(β′,q0​))​](u,o),(v,q)​)(x,f),(y,g)​,

where u0,o0,v0,q0u_0,o_0,v_0,q_0u0​,o0​,v0​,q0​ are the letters of the corresponding one-letter words. The equivalent explicit conditions are CS⪰0\mathcal C_S\succeq0CS​⪰0, CT⪰0\mathcal C_T\succeq0CT​⪰0, and, putting C=CS+CTC=\mathcal C_S+\mathcal C_TC=CS​+CT​,

∑f∈[F]C((u,o),(x,f)),((v,q),(y,f))=δo,qD∑r′∈[D]1∑f∈[F]C((u,r′),(x,f)),((v,r′),(y,f))\sum_{f\in[F]}C_{((u,o),(x,f)),((v,q),(y,f))} = \frac{\delta_{o,q}}{D} \sum_{r'\in[D]^1}\sum_{f\in[F]} C_{((u,r'),(x,f)),((v,r'),(y,f))}f∈[F]∑​C((u,o),(x,f)),((v,q),(y,f))​=Dδo,q​​r′∈[D]1∑​f∈[F]∑​C((u,r′),(x,f)),((v,r′),(y,f))​

for every u,v∈[d]1u,v\in[d]^1u,v∈[d]1, o,q∈[D]1o,q\in[D]^1o,q∈[D]1, and x,y∈[P]x,y\in[P]x,y∈[P], together with

∑u∈[d]1∑o∈[D]1∑f∈[F]C((u,o),(x,f)),((u,o),(y,f))=D δx,y\sum_{u\in[d]^1}\sum_{o\in[D]^1}\sum_{f\in[F]} C_{((u,o),(x,f)),((u,o),(y,f))} =D\,\delta_{x,y}u∈[d]1∑​o∈[D]1∑​f∈[F]∑​C((u,o),(x,f)),((u,o),(y,f))​=Dδx,y​

for every x,y∈[P]x,y\in[P]x,y∈[P].

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