Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Complete finite bipartite process normalization constraints

Open
QAlgorithms.Papers.Independent.Intake100.P46.validProcess_iff_constraints

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

prove2quantum

All systems have positive finite dimensions and fixed computational bases. Choi operators are unnormalized and input first. A valid process maps every pair of local CPTP maps, with arbitrary ancillary input and output wires, to a CPTP map. Purity tests every compatible pair of local unitaries with those same ancillary extensions.

Let WWW be any complex matrix on PAIAOBIBOFP A_I A_O B_I B_O FPAI​AO​BI​BO​F. For a collection of wires XXX, write XW=(IX/dX)⊗tr⁡XW{}_XW=(I_X/d_X)\otimes\operatorname{tr}_XWX​W=(IX​/dX​)⊗trX​W, reinserted in the original wire order. Define

LV(W)=W−FW+AOFW+BOFW−AOBOFW−AIAOFW+AIAOBOFW−BIBOFW+AOBIBOFW−AIAOBIBOFW+PAIAOBIBOFW.\begin{aligned}L_V(W)={}&W-{}_FW+{}_{A_OF}W+{}_{B_OF}W-{}_{A_OB_OF}W-{}_{A_IA_OF}W+{}_{A_IA_OB_OF}W\\&-{}_{B_IB_OF}W+{}_{A_OB_IB_OF}W-{}_{A_IA_OB_IB_OF}W+{}_{PA_IA_OB_IB_OF}W.\end{aligned}LV​(W)=​W−F​W+AO​F​W+BO​F​W−AO​BO​F​W−AI​AO​F​W+AI​AO​BO​F​W−BI​BO​F​W+AO​BI​BO​F​W−AI​AO​BI​BO​F​W+PAI​AO​BI​BO​F​W.​

Then the independently defined operational process predicate satisfies

W is valid⟺W⪰0,tr⁡W=dPdAOdBO,W=LV(W).W\text{ is valid}\quad\Longleftrightarrow\quad W\succeq0,\quad\operatorname{tr}W=d_Pd_{A_O}d_{B_O},\quad W=L_V(W).W is valid⟺W⪰0,trW=dP​dAO​​dBO​​,W=LV​(W).

This supplies both directions of the general bipartite process normalization interface. Validity is defined by ancillary CPTP tests, rather than by the three constraints on the right.

In addition, LVL_VLV​ is self-adjoint for the Hilbert–Schmidt pairing ⟨X,Y⟩=∑i,jXij‾Yij\langle X,Y\rangle=\sum_{i,j}\overline{X_{ij}}Y_{ij}⟨X,Y⟩=∑i,j​Xij​​Yij​, satisfies LV2=LVL_V^2=L_VLV2​=LV​, and has image exactly the intersection of Eqs.(59)–(62): BIBOFX=AOBIBOFX{}_{B_IB_OF}X={}_{A_OB_IB_OF}XBI​BO​F​X=AO​BI​BO​F​X, AIAOFX=AIAOBOFX{}_{A_IA_OF}X={}_{A_IA_OB_OF}XAI​AO​F​X=AI​AO​BO​F​X, FX=AOFX+BOFX−AOBOFX{}_FX={}_{A_OF}X+{}_{B_OF}X-{}_{A_OB_OF}XF​X=AO​F​X+BO​F​X−AO​BO​F​X, and AIAOBIBOFX=PAIAOBIBOFX{}_{A_IA_OB_IB_OF}X={}_{PA_IA_OB_IB_OF}XAI​AO​BI​BO​F​X=PAI​AO​BI​BO​F​X.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P46
Formal statement
noncomputable section

open scoped Matrix ComplexConjugate ComplexOrder

attribute [local instance] Classical.decEq Classical.propDecidable

namespace QAlgorithms.Papers.Independent.Intake100.P46

/-- PDF pp.11–12, Appendix C, Eqs.(59)–(67): operational validity is equivalent to
positivity, the stated unnormalized trace, and the explicit finite linear projector.
The projector is Hilbert–Schmidt self-adjoint and idempotent, and its image is exactly
the intersection of the four linear constraint spaces (59)–(62). -/
theorem validProcess_iff_constraints {d : ProcessWireDimensions} (W : ProcessMatrix d) :
    (IsValidProcess W ↔ W.PosSemidef ∧
      Matrix.trace W = ((d 0 : ℕ) * (d 2 : ℕ) * (d 4 : ℕ) : ℂ) ∧
      W = validSubspaceProjector W) ∧
    (∀ X Y : ProcessMatrix d,
      (∑ i, ∑ j, conj (X i j) * validSubspaceProjector Y i j) =
      ∑ i, ∑ j, conj (validSubspaceProjector X i j) * Y i j) ∧
    (∀ X : ProcessMatrix d,
      validSubspaceProjector (validSubspaceProjector X) = validSubspaceProjector X) ∧
    (∀ X : ProcessMatrix d,
      (∃ Y : ProcessMatrix d, validSubspaceProjector Y = X) ↔
        replaceWires {3,4,5} X = replaceWires {2,3,4,5} X ∧
        replaceWires {1,2,5} X = replaceWires {1,2,4,5} X ∧
        replaceWires {5} X = replaceWires {2,5} X + replaceWires {4,5} X -
          replaceWires {2,4,5} X ∧
        replaceWires {1,2,3,4,5} X = replaceWires {0,1,2,3,4,5} X) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P46

end
Source
A purification postulate for quantum mechanics with indefinite causal order, arXiv:1611.08535v4, PDF p. 12, Appendix C, Eqs.(64)–(67)
Read-back

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

For every six positive integers d0,…,d5d_0,\ldots,d_5d0​,…,d5​ and every complex matrix WWW indexed by H=∏j=05{0,…,dj−1}H=\prod_{j=0}^{5}\{0,\ldots,d_j-1\}H=∏j=05​{0,…,dj​−1}, define, for each subset T⊆{0,…,5}T\subseteq\{0,\ldots,5\}T⊆{0,…,5},

(RTX)xy={1∏j∈Tdj∑z∈Hzj=xj for j∉TXz, (zT,yTc),xj=yj for every j∈T,0,otherwise,(R_T X)_{xy}= \begin{cases} \displaystyle \frac{1}{\prod_{j\in T}d_j} \sum_{\substack{z\in H\\z_j=x_j\text{ for }j\notin T}} X_{z,\,(z_T,y_{T^c})}, &x_j=y_j\text{ for every }j\in T,\\ 0,&\text{otherwise}, \end{cases}(RT​X)xy​=⎩⎨⎧​∏j∈T​dj​1​z∈Hzj​=xj​ for j∈/T​∑​Xz,(zT​,yTc​)​,0,​xj​=yj​ for every j∈T,otherwise,​

where (zT,yTc)(z_T,y_{T^c})(zT​,yTc​) uses zzz on TTT and yyy on its complement, and put

PX=X−R{5}X+R{2,5}X+R{4,5}X−R{2,4,5}X−R{1,2,5}X+R{1,2,4,5}X−R{3,4,5}X+R{2,3,4,5}X−R{1,2,3,4,5}X+R{0,1,2,3,4,5}X.\begin{aligned} PX={}&X-R_{\{5\}}X+R_{\{2,5\}}X+R_{\{4,5\}}X-R_{\{2,4,5\}}X -R_{\{1,2,5\}}X+R_{\{1,2,4,5\}}X\\ &-R_{\{3,4,5\}}X+R_{\{2,3,4,5\}}X -R_{\{1,2,3,4,5\}}X+R_{\{0,1,2,3,4,5\}}X. \end{aligned}PX=​X−R{5}​X+R{2,5}​X+R{4,5}​X−R{2,4,5}​X−R{1,2,5}​X+R{1,2,4,5}​X−R{3,4,5}​X+R{2,3,4,5}​X−R{1,2,3,4,5}​X+R{0,1,2,3,4,5}​X.​

A channel matrix on input/output index sets I,OI,OI,O means a positive semidefinite complex matrix JJJ indexed by I×OI\times OI×O with ∑oJ(i,o),(j,o)=1i=j\sum_oJ_{(i,o),(j,o)}=\mathbf1_{i=j}∑o​J(i,o),(j,o)​=1i=j​ for every i,ji,ji,j. Say WWW is valid if, for every four positive auxiliary dimensions ain,aout,bin,bouta_{\rm in},a_{\rm out},b_{\rm in},b_{\rm out}ain​,aout​,bin​,bout​ and every pair of channel matrices A,BA,BA,B with respective input/output sets (d1×ain,d2×aout)(d_1\times a_{\rm in},d_2\times a_{\rm out})(d1​×ain​,d2​×aout​) and (d3×bin,d4×bout)(d_3\times b_{\rm in},d_4\times b_{\rm out})(d3​×bin​,d4​×bout​), the matrix LW(A,B)L_W(A,B)LW​(A,B), with input set d0×ain×bind_0\times a_{\rm in}\times b_{\rm in}d0​×ain​×bin​ and output set d5×aout×boutd_5\times a_{\rm out}\times b_{\rm out}d5​×aout​×bout​, is a channel matrix, where

LW(A,B)((p,α,β),(f,α′,β′)),((q,γ,η),(g,γ′,η′))=∑x1,x2,x3,x4y1,y2,y3,y4W(p,x1,x2,x3,x4,f),(q,y1,y2,y3,y4,g)A((x1,α),(x2,α′)),((y1,γ),(y2,γ′))B((x3,β),(x4,β′)),((y3,η),(y4,η′)),\begin{aligned} &L_W(A,B)_{((p,\alpha,\beta),(f,\alpha',\beta')), ((q,\gamma,\eta),(g,\gamma',\eta'))}\\ &\quad= \sum_{\substack{x_1,x_2,x_3,x_4\\y_1,y_2,y_3,y_4}} W_{(p,x_1,x_2,x_3,x_4,f),(q,y_1,y_2,y_3,y_4,g)} A_{((x_1,\alpha),(x_2,\alpha')),((y_1,\gamma),(y_2,\gamma'))} B_{((x_3,\beta),(x_4,\beta')),((y_3,\eta),(y_4,\eta'))}, \end{aligned}​LW​(A,B)((p,α,β),(f,α′,β′)),((q,γ,η),(g,γ′,η′))​=x1​,x2​,x3​,x4​y1​,y2​,y3​,y4​​∑​W(p,x1​,x2​,x3​,x4​,f),(q,y1​,y2​,y3​,y4​,g)​A((x1​,α),(x2​,α′)),((y1​,γ),(y2​,γ′))​B((x3​,β),(x4​,β′)),((y3​,η),(y4​,η′))​,​

and each internal coordinate ranges over its corresponding djd_jdj​ values. The declaration asserts all four of the following statements together: WWW is valid if and only if it is positive semidefinite, tr⁡W=d0d2d4\operatorname{tr}W=d_0d_2d_4trW=d0​d2​d4​ as an equality in C\mathbb CC, and W=PWW=PWW=PW; for every two complex matrices X,YX,YX,Y indexed by HHH,

∑i,j∈HXij‾(PY)ij=∑i,j∈H(PX)ij‾Yij;\sum_{i,j\in H}\overline{X_{ij}}(PY)_{ij} =\sum_{i,j\in H}\overline{(PX)_{ij}}Y_{ij};i,j∈H∑​Xij​​(PY)ij​=i,j∈H∑​(PX)ij​​Yij​;

for every such matrix XXX, P(PX)=PXP(PX)=PXP(PX)=PX; and, for every such matrix XXX, there exists a matrix YYY indexed by HHH with PY=XPY=XPY=X if and only if all four equalities

R{3,4,5}X=R{2,3,4,5}X,R{1,2,5}X=R{1,2,4,5}X,R{5}X=R{2,5}X+R{4,5}X−R{2,4,5}X,R{1,2,3,4,5}X=R{0,1,2,3,4,5}X\begin{aligned} R_{\{3,4,5\}}X&=R_{\{2,3,4,5\}}X,\\ R_{\{1,2,5\}}X&=R_{\{1,2,4,5\}}X,\\ R_{\{5\}}X&=R_{\{2,5\}}X+R_{\{4,5\}}X-R_{\{2,4,5\}}X,\\ R_{\{1,2,3,4,5\}}X&=R_{\{0,1,2,3,4,5\}}X \end{aligned}R{3,4,5}​XR{1,2,5}​XR{5}​XR{1,2,3,4,5}​X​=R{2,3,4,5}​X,=R{1,2,4,5}​X,=R{2,5}​X+R{4,5}​X−R{2,4,5}​X,=R{0,1,2,3,4,5}​X​

hold. The matrices quantified in the latter three statements are arbitrary; they need not themselves be channel matrices or valid processes. All wire and auxiliary dimensions are strictly positive, including dimension 111, so none of the displayed replacement factors divides by zero.

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