Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Pure valid processes are unitary Choi projectors

Open
QAlgorithms.Papers.Independent.Intake100.P46.pureProcess_iff_unitaryProjector

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.

For every valid bipartite process WWW on PAIAOBIBOFP A_I A_O B_I B_O FPAI​AO​BI​BO​F,

W is pure⟺∃ U:P⊗AO⊗BO⟶AI⊗BI⊗F unitary,W=∣U⟩ ⁣⟩⟨ ⁣⟨U∣.W\text{ is pure}\quad\Longleftrightarrow\quad \exists\,U:P\otimes A_O\otimes B_O\longrightarrow A_I\otimes B_I\otimes F\text{ unitary},\quad W=|U\rangle\!\rangle\langle\!\langle U|.W is pure⟺∃U:P⊗AO​⊗BO​⟶AI​⊗BI​⊗F unitary,W=∣U⟩⟩⟨⟨U∣.

The displayed Choi projector is relabelled into the process wire order. The unitary satisfies both inverse equations. No equality between the total input and output dimensions is a hypothesis: existence of this unitary enforces it.

This characterizes reversible purity and includes the enlarged SWAP laboratories used in the source.

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.3–4, Theorem 2: purity iff a unitary CJ projector, for a valid process.
No global dimension equality is assumed: the existential unitary enforces it. -/
theorem pureProcess_iff_unitaryProjector {d : ProcessWireDimensions} (W : ProcessMatrix d)
    (hW : IsValidProcess W) :
    IsPureProcess W ↔ ∃ U : Matrix
      (Fin (d 1 : ℕ) × Fin (d 3 : ℕ) × Fin (d 5 : ℕ))
      (Fin (d 0 : ℕ) × Fin (d 2 : ℕ) × Fin (d 4 : ℕ)) ℂ,
      IsReversibleMatrix U ∧ W = processProjector U := 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. 3, Theorem 2
Read-back

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

Let d0,…,d5d_0,\ldots,d_5d0​,…,d5​ be arbitrary positive integers, write Dj={0,…,dj−1}D_j=\{0,\ldots,d_j-1\}Dj​={0,…,dj​−1}, and let WWW be a complex matrix indexed by ∏j=05Dj\prod_{j=0}^5D_j∏j=05​Dj​. To specify the hypothesis and conclusion, for any four positive ancillary dimensions ain,aout,bin,bouta_{\mathrm{in}},a_{\mathrm{out}},b_{\mathrm{in}},b_{\mathrm{out}}ain​,aout​,bin​,bout​, use ancillary indices α,α′,γ,γ′\alpha,\alpha',\gamma,\gamma'α,α′,γ,γ′ for the two inputs and β,β′,δ,δ′\beta,\beta',\delta,\delta'β,β′,δ,δ′ for the two outputs. For matrices AAA on (D1×{0,…,ain−1})×(D2×{0,…,aout−1})(D_1\times\{0,\ldots,a_{\mathrm{in}}-1\})\times(D_2\times\{0,\ldots,a_{\mathrm{out}}-1\})(D1​×{0,…,ain​−1})×(D2​×{0,…,aout​−1}) and BBB on the corresponding pair formed from D3,bin,D4,boutD_3,b_{\mathrm{in}},D_4,b_{\mathrm{out}}D3​,bin​,D4​,bout​, define a matrix LW(A,B)L_W(A,B)LW​(A,B) from external input labels (p,α,γ)(p,\alpha,\gamma)(p,α,γ) and output labels (f,β,δ)(f,\beta,\delta)(f,β,δ) by

[LW(A,B)]((p,α,γ),(f,β,δ)),((p′,α′,γ′),(f′,β′,δ′))=∑i,i′∈D1, o,o′∈D2j,j′∈D3, q,q′∈D4W(p,i,o,j,q,f),(p′,i′,o′,j′,q′,f′)A((i,α),(o,β)),((i′,α′),(o′,β′))B((j,γ),(q,δ)),((j′,γ′),(q′,δ′)).\begin{aligned} &[L_W(A,B)]_{((p,\alpha,\gamma),(f,\beta,\delta)), ((p',\alpha',\gamma'),(f',\beta',\delta'))}\\ &\quad=\sum_{\substack{i,i'\in D_1,\ o,o'\in D_2\\ j,j'\in D_3,\ q,q'\in D_4}} W_{(p,i,o,j,q,f),(p',i',o',j',q',f')} A_{((i,\alpha),(o,\beta)),((i',\alpha'),(o',\beta'))} B_{((j,\gamma),(q,\delta)),((j',\gamma'),(q',\delta'))}. \end{aligned}​[LW​(A,B)]((p,α,γ),(f,β,δ)),((p′,α′,γ′),(f′,β′,δ′))​=i,i′∈D1​, o,o′∈D2​j,j′∈D3​, q,q′∈D4​​∑​W(p,i,o,j,q,f),(p′,i′,o′,j′,q′,f′)​A((i,α),(o,β)),((i′,α′),(o′,β′))​B((j,γ),(q,δ)),((j′,γ′),(q′,δ′))​.​

For any finite input and output sets, say that a matrix JJJ indexed by input-output pairs satisfies the channel conditions when it is positive semidefinite and ∑oJ(i,o),(j,o)=δij\sum_oJ_{(i,o),(j,o)}=\delta_{ij}∑o​J(i,o),(j,o)​=δij​ for every pair of input indices. The hypothesis on WWW is that, for every choice of the four positive ancillary dimensions and every A,BA,BA,B satisfying their respective channel conditions, LW(A,B)L_W(A,B)LW​(A,B) satisfies the channel conditions for the external input and output sets. For a complex matrix VVV from an input set to an output set, write PV(i,o),(j,o′)=Vo,iVo′,j‾P_V{}_{(i,o),(j,o')}=V_{o,i}\overline{V_{o',j}}PV​(i,o),(j,o′)​=Vo,i​Vo′,j​​, and call VVV reversible when V†V=IV^\dagger V=IV†V=I and VV†=IVV^\dagger=IVV†=I. Under the stated hypothesis on WWW, the theorem asserts the following equivalence: for every choice of the four positive ancillary dimensions and every reversible local matrix VA:D1×{0,…,ain−1}→D2×{0,…,aout−1}V_A:D_1\times\{0,\ldots,a_{\mathrm{in}}-1\}\to D_2\times\{0,\ldots,a_{\mathrm{out}}-1\}VA​:D1​×{0,…,ain​−1}→D2​×{0,…,aout​−1} and reversible local matrix VB:D3×{0,…,bin−1}→D4×{0,…,bout−1}V_B:D_3\times\{0,\ldots,b_{\mathrm{in}}-1\}\to D_4\times\{0,\ldots,b_{\mathrm{out}}-1\}VB​:D3​×{0,…,bin​−1}→D4​×{0,…,bout​−1}, there exists a reversible matrix TTT from the external input set to the external output set such that LW(PVA,PVB)=PTL_W(P_{V_A},P_{V_B})=P_TLW​(PVA​​,PVB​​)=PT​, if and only if there exists a complex matrix UUU, with rows indexed by D1×D3×D5D_1\times D_3\times D_5D1​×D3​×D5​ and columns indexed by D0×D2×D4D_0\times D_2\times D_4D0​×D2​×D4​, satisfying

U†U=I,UU†=I,Wxy=U(x1,x3,x5),(x0,x2,x4)U(y1,y3,y5),(y0,y2,y4)‾for every x,y.U^\dagger U=I,\qquad UU^\dagger=I,\qquad W_{xy}=U_{(x_1,x_3,x_5),(x_0,x_2,x_4)} \overline{U_{(y_1,y_3,y_5),(y_0,y_2,y_4)}} \quad\text{for every }x,y.U†U=I,UU†=I,Wxy​=U(x1​,x3​,x5​),(x0​,x2​,x4​)​U(y1​,y3​,y5​),(y0​,y2​,y4​)​​for every x,y.

All wire and ancillary dimensions may equal 111, but none may be zero. For an ancillary choice where a local input and output have unequal cardinalities, no reversible matrix for that laboratory exists, so the corresponding universally quantified implication on the left is vacuous.

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