Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Balanced purification characterization and reconstruction

Open
QAlgorithms.Papers.Independent.Intake100.P46.purifiable_iff_completion_balanced

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 valid with trivial global past and future, positive rank rrr, and positive spectral decomposition W=∑i=0r−1λi∣λi⟩⟨λi∣W=\sum_{i=0}^{r-1}\lambda_i|\lambda_i\rangle\langle\lambda_i|W=∑i=0r−1​λi​∣λi​⟩⟨λi​∣, with an orthonormal eigenfamily and multiplicities retained. Assume the proof-required correction dAIdBI=dAOdBOd_{A_I}d_{B_I}=d_{A_O}d_{B_O}dAI​​dBI​​=dAO​​dBO​​. Let w0=∑iλi ∣λi⟩∣i⟩w_0=\sum_i\sqrt{\lambda_i}\,|\lambda_i\rangle|i\ranglew0​=∑i​λi​​∣λi​⟩∣i⟩ on AIAOBIBOF′A_I A_O B_I B_O F'AI​AO​BI​BO​F′, where dim⁡F′=r\dim F'=rdimF′=r. Then

W is purifiable⟺∃(wi)i=0r−1:w0 has the prescribed value,∀i,j,(I−LV)(∣wi⟩⟨wj∣)=0,⟨wi∣wj⟩=dAOdBOδij.W\text{ is purifiable}\quad\Longleftrightarrow\quad\exists(w_i)_{i=0}^{r-1}:\quad w_0\text{ has the prescribed value},\quad\forall i,j,\quad (I-L_V)(|w_i\rangle\langle w_j|)=0,\quad\langle w_i|w_j\rangle=d_{A_O}d_{B_O}\delta_{ij}.W is purifiable⟺∃(wi​)i=0r−1​:w0​ has the prescribed value,∀i,j,(I−LV​)(∣wi​⟩⟨wj​∣)=0,⟨wi​∣wj​⟩=dAO​​dBO​​δij​.

Here LVL_VLV​ is Eq.(64), specialized to a trivial global past and future dimension rrr. For every such family, define Us:P′AOBO→AIBIF′U_s:P' A_O B_O\to A_I B_I F'Us​:P′AO​BO​→AI​BI​F′ by ⟨i∣P′∣Us⟩ ⁣⟩=wi\langle i|_{P'}|U_s\rangle\!\rangle=w_i⟨i∣P′​∣Us​⟩⟩=wi​, where dim⁡P′=dim⁡F′=r\dim P'=\dim F'=rdimP′=dimF′=r. This constructed matrix is unitary; its Choi projector SSS is a valid pure process and inserting ∣0⟩|0\rangle∣0⟩ in P′P'P′ and tracing F′F'F′ recovers WWW.

Purifiability on the left allows arbitrary independent positive dimensions for the new past and future. The theorem therefore includes the rank-sized reconstruction, not only a positive-matrix purification.

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.5–6, Theorem 4, corrected balanced domain. PRINTED: no condition relating
laboratory input and output dimensions. CHANGED: require dAI*dBI=dAO*dBO, as the
proof's dPprime=dFprime=rank(W) construction is square only then. The unrestricted
printed node is deferred. This states both directions and the actual reconstruction. -/
theorem purifiable_iff_completion_balanced {d : Fin 4 → ℕ+}
    (W : ProcessMatrix (laboratorySignature d 1 1)) (hW : IsValidProcess W)
    (e : SupportSpectrum W)
    (balanced : (d 0 : ℕ) * (d 2 : ℕ) = (d 1 : ℕ) * (d 3 : ℕ)) :
    (IsPurifiable W ↔ ∃ w, IsCompletion e w) ∧
    (∀ w, IsCompletion e w →
      IsReversibleMatrix (reconstructedUnitary e w) ∧
      IsValidProcess (processProjector (d := laboratorySignature d e.rank e.rank)
        (reconstructedUnitary e w)) ∧
      IsPureProcess (processProjector (d := laboratorySignature d e.rank e.rank)
        (reconstructedUnitary e w)) ∧
      recoverProcess (processProjector (d := laboratorySignature d e.rank e.rank)
        (reconstructedUnitary e w)) = W) := 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. 6, Theorem 4, corrected balanced domain
Read-back

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

Let a,b,c,ga,b,c,ga,b,c,g be arbitrary positive integers, the respective dimensions of the first laboratory’s input and output and the second laboratory’s input and output, and suppose ac=bgac=bgac=bg. For positive past and future dimensions p,fp,fp,f, write Xp,f\mathcal X_{p,f}Xp,f​ for the six-coordinate index set with dimensions (p,a,b,c,g,f)(p,a,b,c,g,f)(p,a,b,c,g,f), with coordinates numbered 0,…,50,\ldots,50,…,5. For a matrix TTT on this set, linking laboratory matrices A,BA,BA,B with four arbitrary positive ancillary dimensions means forming

LT(A,B)((u,α,β),(v,γ,η)),((u′,α′,β′),(v′,γ′,η′))=∑i,o,j,q,i′,o′,j′,q′T(u,i,o,j,q,v),(u′,i′,o′,j′,q′,v′)⋅A((i,α),(o,γ)),((i′,α′),(o′,γ′))B((j,β),(q,η)),((j′,β′),(q′,η′)).\begin{aligned} L_T(A,B)_{\substack{((u,\alpha,\beta),(v,\gamma,\eta)),\\((u',\alpha',\beta'),(v',\gamma',\eta'))}} ={}&\sum_{i,o,j,q,i',o',j',q'} T_{(u,i,o,j,q,v),(u',i',o',j',q',v')}\\ &\quad\cdot A_{((i,\alpha),(o,\gamma)),((i',\alpha'),(o',\gamma'))} B_{((j,\beta),(q,\eta)),((j',\beta'),(q',\eta'))}. \end{aligned}LT​(A,B)((u,α,β),(v,γ,η)),((u′,α′,β′),(v′,γ′,η′))​​=​i,o,j,q,i′,o′,j′,q′∑​T(u,i,o,j,q,v),(u′,i′,o′,j′,q′,v′)​⋅A((i,α),(o,γ)),((i′,α′),(o′,γ′))​B((j,β),(q,η)),((j′,β′),(q′,η′))​.​

Call TTT valid when, for every such choice of positive ancillary dimensions and every positive semidefinite A,BA,BA,B whose partial traces over their respective laboratory and ancillary outputs are the identity on their inputs, LT(A,B)L_T(A,B)LT​(A,B) is positive semidefinite and its partial trace over all global outputs is the identity on all global inputs. Write J(U)(i,o),(i′,o′)=Uo,iUo′,i′‾J(U)_{(i,o),(i',o')}=U_{o,i}\overline{U_{o',i'}}J(U)(i,o),(i′,o′)​=Uo,i​Uo′,i′​​, and call TTT pure when, for every choice of those ancillary dimensions and every pair of laboratory matrices U,VU,VU,V satisfying both reversibility equations U†U=UU†=IU^\dagger U=UU^\dagger=IU†U=UU†=I and V†V=VV†=IV^\dagger V=VV^\dagger=IV†V=VV†=I, there exists a global matrix HHH satisfying H†H=HH†=IH^\dagger H=HH^\dagger=IH†H=HH†=I and LT(J(U),J(V))=J(H)L_T(J(U),J(V))=J(H)LT​(J(U),J(V))=J(H). Let WWW be any valid complex matrix on X1,1\mathcal X_{1,1}X1,1​. Fix any positive integer rrr equal to rank⁡W\operatorname{rank}WrankW, positive real numbers λi\lambda_iλi​ and vectors vi∈CX1,1v_i\in\mathbb C^{\mathcal X_{1,1}}vi​∈CX1,1​, indexed by 0≤i<r0\le i<r0≤i<r, such that

∑xvi(x)‾vj(x)=δij,Wx,y=∑i=0r−1λivi(x)vi(y)‾.\sum_x\overline{v_i(x)}v_j(x)=\delta_{ij}, \qquad W_{x,y}=\sum_{i=0}^{r-1}\lambda_i v_i(x)\overline{v_i(y)}.x∑​vi​(x)​vj​(x)=δij​,Wx,y​=i=0∑r−1​λi​vi​(x)vi​(y)​.

For a subset J⊆{0,…,5}J\subseteq\{0,\ldots,5\}J⊆{0,…,5} and a matrix TTT on any of the six-coordinate spaces above, define

RJ(T)x,y=1{xJ=yJ}∏j∈JDj∑zJT(zJ,xJc),(zJ,yJc),R_J(T)_{x,y} = \frac{\mathbf1_{\{x_J=y_J\}}}{\prod_{j\in J}D_j} \sum_{z_J}T_{(z_J,x_{J^c}),(z_J,y_{J^c})},RJ​(T)x,y​=∏j∈J​Dj​1{xJ​=yJ​}​​zJ​∑​T(zJ​,xJc​),(zJ​,yJc​)​,

where DjD_jDj​ is the dimension of coordinate jjj, and the sum ranges over all values of the coordinates in JJJ. Define

Q(T)=R{5}T−R{2,5}T−R{4,5}T+R{2,4,5}T+R{1,2,5}T−R{1,2,4,5}T+R{3,4,5}T−R{2,3,4,5}T+R{1,2,3,4,5}T−R{0,1,2,3,4,5}T.Q(T)=R_{\{5\}}T-R_{\{2,5\}}T-R_{\{4,5\}}T+R_{\{2,4,5\}}T +R_{\{1,2,5\}}T-R_{\{1,2,4,5\}}T +R_{\{3,4,5\}}T-R_{\{2,3,4,5\}}T +R_{\{1,2,3,4,5\}}T-R_{\{0,1,2,3,4,5\}}T.Q(T)=R{5}​T−R{2,5}​T−R{4,5}​T+R{2,4,5}​T+R{1,2,5}​T−R{1,2,4,5}​T+R{3,4,5}​T−R{2,3,4,5}​T+R{1,2,3,4,5}​T−R{0,1,2,3,4,5}​T.

Set c0(x)=λx5 vx5(0,x1,x2,x3,x4,0)c_0(x)=\sqrt{\lambda_{x_5}}\,v_{x_5}(0,x_1,x_2,x_3,x_4,0)c0​(x)=λx5​​​vx5​​(0,x1​,x2​,x3​,x4​,0) on X1,r\mathcal X_{1,r}X1,r​. A family (wi)0≤i<r(w_i)_{0\le i<r}(wi​)0≤i<r​ of vectors on X1,r\mathcal X_{1,r}X1,r​ is a completion precisely when

w0=c0,Q(wiwj†)=0,∑xwi(x)‾wj(x)=bg δij(0≤i,j<r).w_0=c_0,\qquad Q(w_iw_j^\dagger)=0,\qquad \sum_x\overline{w_i(x)}w_j(x)=bg\,\delta_{ij} \quad(0\le i,j<r).w0​=c0​,Q(wi​wj†​)=0,x∑​wi​(x)​wj​(x)=bgδij​(0≤i,j<r).

The assertion is that there exist positive p,fp,fp,f and a valid, pure matrix SSS on Xp,f\mathcal X_{p,f}Xp,f​ satisfying

W(0,i,o,j,q,0),(0,i′,o′,j′,q′,0)=∑t=0f−1S(0,i,o,j,q,t),(0,i′,o′,j′,q′,t)W_{(0,i,o,j,q,0),(0,i',o',j',q',0)} = \sum_{t=0}^{f-1}S_{(0,i,o,j,q,t),(0,i',o',j',q',t)}W(0,i,o,j,q,0),(0,i′,o′,j′,q′,0)​=t=0∑f−1​S(0,i,o,j,q,t),(0,i′,o′,j′,q′,t)​

if and only if a completion exists; moreover, for every completion, the matrix

U(i,j,t),(k,o,q)=wk(0,i,o,j,q,t)U_{(i,j,t),(k,o,q)}=w_k(0,i,o,j,q,t)U(i,j,t),(k,o,q)​=wk​(0,i,o,j,q,t)

satisfies U†U=UU†=IU^\dagger U=UU^\dagger=IU†U=UU†=I, and the matrix

Sx,y=U(x1,x3,x5),(x0,x2,x4)U(y1,y3,y5),(y0,y2,y4)‾(x,y∈Xr,r)S_{x,y} = 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(x,y\in\mathcal X_{r,r})Sx,y​=U(x1​,x3​,x5​),(x0​,x2​,x4​)​U(y1​,y3​,y5​),(y0​,y2​,y4​)​​(x,y∈Xr,r​)

is valid, is pure, and recovers WWW by the displayed fixed-past, summed-future formula. All wire dimensions and rrr are positive, so a rank-zero WWW has no spectral data of the stipulated kind.

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