Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The Wopt purification test is inconclusive

Open
QAlgorithms.Papers.Independent.Intake100.P46.opt_test_inconclusive

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.

With four qubit laboratory wires, trivial P,FP,FP,F, and Pauli order AIAOBIBOA_I A_O B_I B_OAI​AO​BI​BO​, define

Wopt=14[I⊗4+ZIXZ3+3−13(IXXI+IYYI+IZZI)].W_{\mathrm{opt}}=\frac14\left[I^{\otimes4}+\frac{ZIXZ}{\sqrt3}+\frac{\sqrt3-1}{3}(IXXI+IYYI+IZZI)\right].Wopt​=41​[I⊗4+3​ZIXZ​+33​−1​(IXXI+IYYI+IZZI)].

This is a valid process with

rank⁡Wopt=12,∃ spectral and kernel-basis choices with dmax⁡(Wopt)=17≥12.\operatorname{rank}W_{\mathrm{opt}}=12,\qquad \exists\text{ spectral and kernel-basis choices with }d_{\max}(W_{\mathrm{opt}})=17\ge12.rankWopt​=12,∃ spectral and kernel-basis choices with dmax​(Wopt​)=17≥12.

Thus the strict inequality required by the nonpurifiability test does not hold for the reported choice. This states neither purifiability nor nonpurifiability. The exact obstruction value is the algebraic assertion reported by the source, without a claim of basis independence.

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 p.7, §6, Eq.(37): the reported test is inconclusive, with rank twelve and a
choice giving bound seventeen. No conclusion about purification is asserted. -/
theorem opt_test_inconclusive :
    IsValidProcess optProcess ∧ Matrix.rank optProcess = 12 ∧
    ∃ (e : SupportSpectrum (d := qubitLaboratories) optProcess)
      (b : KernelBasisData e) (s : CompressionSpectrum b),
      testBound s = 17 ∧ ¬ testBound s < (Matrix.rank optProcess : WithTop ℕ) := 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. 7, §6, Eq.(37)
Read-back

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

On four laboratory wires of dimension 222, in input–output–input–output order, with one-dimensional past and future, define

X=(0110),Y=(0−ii0),Z=(100−1),X=\begin{pmatrix}0&1\\1&0\end{pmatrix},\qquad Y=\begin{pmatrix}0&-\mathrm i\\ \mathrm i&0\end{pmatrix},\qquad Z=\begin{pmatrix}1&0\\0&-1\end{pmatrix},X=(01​10​),Y=(0i​−i0​),Z=(10​0−1​),

and

W=14(I⊗4+13Z⊗I⊗X⊗Z+3−13(I⊗X⊗X⊗I+I⊗Y⊗Y⊗I+I⊗Z⊗Z⊗I)).W=\frac14\left( I^{\otimes4} +\frac1{\sqrt3}Z\otimes I\otimes X\otimes Z +\frac{\sqrt3-1}{3} \left(I\otimes X\otimes X\otimes I +I\otimes Y\otimes Y\otimes I +I\otimes Z\otimes Z\otimes I\right)\right).W=41​(I⊗4+3​1​Z⊗I⊗X⊗Z+33​−1​(I⊗X⊗X⊗I+I⊗Y⊗Y⊗I+I⊗Z⊗Z⊗I)).

Tensor entries are products of the four indicated entries, identifying wire indices 0,10,10,1 with false and true. The assertion is that WWW has rank 121212 and is valid in the following sense: for every four positive ancillary dimensions and every pair of laboratory matrices A,BA,BA,B which are positive semidefinite and have output partial traces equal to their input identities, the matrix

LW(A,B)((α,β),(γ,η)),((α′,β′),(γ′,η′))=∑i,o,j,q,i′,o′,j′,q′W(i,o,j,q),(i′,o′,j′,q′)⋅A((i,α),(o,γ)),((i′,α′),(o′,γ′))B((j,β),(q,η)),((j′,β′),(q′,η′))\begin{aligned} L_W(A,B)_{\substack{((\alpha,\beta),(\gamma,\eta)),\\((\alpha',\beta'),(\gamma',\eta'))}} ={}&\sum_{i,o,j,q,i',o',j',q'} W_{(i,o,j,q),(i',o',j',q')}\\ &\quad\cdot A_{((i,\alpha),(o,\gamma)),((i',\alpha'),(o',\gamma'))} B_{((j,\beta),(q,\eta)),((j',\beta'),(q',\eta'))} \end{aligned}LW​(A,B)((α,β),(γ,η)),((α′,β′),(γ′,η′))​​=​i,o,j,q,i′,o′,j′,q′∑​W(i,o,j,q),(i′,o′,j′,q′)​⋅A((i,α),(o,γ)),((i′,α′),(o′,γ′))​B((j,β),(q,η)),((j′,β′),(q′,η′))​​

is positive semidefinite and has partial trace over (γ,η)(\gamma,\eta)(γ,η) equal to the identity on (α,β)(\alpha,\beta)(α,β); the one-dimensional past and future coordinates have been suppressed in this formula. Moreover, there exist the following choices of spectral and kernel data. There is a positive integer r=rank⁡Wr=\operatorname{rank}Wr=rankW, positive real λi\lambda_iλi​ and vectors viv_ivi​ on the six-coordinate space X1,1\mathcal X_{1,1}X1,1​ of dimensions (1,2,2,2,2,1)(1,2,2,2,2,1)(1,2,2,2,2,1), satisfying

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

For a six-coordinate space with dimensions D0,…,D5D_0,\ldots,D_5D0​,…,D5​, define

RJ(T)x,y=1{xJ=yJ}∏j∈JDj∑zJT(zJ,xJc),(zJ,yJc),Q(T)=R5T−R25T−R45T+R245T+R125T−R1245T+R345T−R2345T+R12345T−R012345T,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})}, \qquad Q(T)=R_5T-R_{25}T-R_{45}T+R_{245}T+R_{125}T-R_{1245}T +R_{345}T-R_{2345}T+R_{12345}T-R_{012345}T,RJ​(T)x,y​=∏j∈J​Dj​1{xJ​=yJ​}​​zJ​∑​T(zJ​,xJc​),(zJ​,yJc​)​,Q(T)=R5​T−R25​T−R45​T+R245​T+R125​T−R1245​T+R345​T−R2345​T+R12345​T−R012345​T,

where digit strings denote sets of coordinate numbers. On X=X1,r\mathcal X=\mathcal X_{1,r}X=X1,r​, with dimensions (1,2,2,2,2,r)(1,2,2,2,2,r)(1,2,2,2,2,r), put

c0(x)=λx5 vx5(0,x1,x2,x3,x4,0),F(x,y),(z,t)=Q(Et,z)y,x,Ky,t=∑x,zc0(x)F(x,y),(z,t)c0(z)‾,c_0(x)=\sqrt{\lambda_{x_5}}\,v_{x_5}(0,x_1,x_2,x_3,x_4,0),\qquad F_{(x,y),(z,t)}=Q(E_{t,z})_{y,x},\qquad K_{y,t}=\sum_{x,z}c_0(x)F_{(x,y),(z,t)}\overline{c_0(z)},c0​(x)=λx5​​​vx5​​(0,x1​,x2​,x3​,x4​,0),F(x,y),(z,t)​=Q(Et,z​)y,x​,Ky,t​=x,z∑​c0​(x)F(x,y),(z,t)​c0​(z)​,

where Et,zE_{t,z}Et,z​ has entry 111 at row ttt, column zzz, and zero elsewhere. There are a nonnegative integer mmm and orthonormal vectors bi∈CXb_i\in\mathbb C^\mathcal Xbi​∈CX, 0≤i<m0\le i<m0≤i<m, whose complex linear span is exactly {v:Kv=0}\{v:Kv=0\}{v:Kv=0}. For

H(i,j),(k,ℓ)=∑x,y,z,tbi(x)bj(y)‾F(x,y),(z,t)bk(z)‾bℓ(t),H_{(i,j),(k,\ell)} = \sum_{x,y,z,t}b_i(x)\overline{b_j(y)} F_{(x,y),(z,t)}\overline{b_k(z)}b_\ell(t),H(i,j),(k,ℓ)​=x,y,z,t∑​bi​(x)bj​(y)​F(x,y),(z,t)​bk​(z)​bℓ​(t),

there are real numbers μκ\mu_\kappaμκ​ and vectors sκ∈Cm2s_\kappa\in\mathbb C^{m^2}sκ​∈Cm2, indexed by all pairs κ∈{0,…,m−1}2\kappa\in\{0,\ldots,m-1\}^2κ∈{0,…,m−1}2, forming an orthonormal spanning family and satisfying Hsκ=μκsκHs_\kappa=\mu_\kappa s_\kappaHsκ​=μκ​sκ​. For each μκ≠0\mu_\kappa\ne0μκ​=0, define (Mκ)ij=sκ(i,j)(M_\kappa)_{ij}=s_\kappa(i,j)(Mκ​)ij​=sκ​(i,j) and the Hermitian matrices Cκ,0=Mκ+Mκ†C_{\kappa,0}=M_\kappa+M_\kappa^\daggerCκ,0​=Mκ​+Mκ†​ and Cκ,1=iMκ+(iMκ)†C_{\kappa,1}=\mathrm iM_\kappa+(\mathrm iM_\kappa)^\daggerCκ,1​=iMκ​+(iMκ​)†. If n+,n−,n0n_+,n_-,n_0n+​,n−​,n0​ count positive, negative and zero eigenvalues with multiplicity, the bound

T=inf⁡κ:μκ≠0ε∈{0,1}(min⁡{n+(Cκ,ε),n−(Cκ,ε)}+n0(Cκ,ε))in N∪{∞}T= \inf_{\substack{\kappa:\,\mu_\kappa\ne0\\\varepsilon\in\{0,1\}}} \left(\min\{n_+(C_{\kappa,\varepsilon}),n_-(C_{\kappa,\varepsilon})\} +n_0(C_{\kappa,\varepsilon})\right) \quad\text{in }\mathbb N\cup\{\infty\}T=κ:μκ​=0ε∈{0,1}​inf​(min{n+​(Cκ,ε​),n−​(Cκ,ε​)}+n0​(Cκ,ε​))in N∪{∞}

satisfies both T=17T=17T=17 and ¬(T<rank⁡W)\neg(T<\operatorname{rank}W)¬(T<rankW). The infimum of an empty family is defined to be ∞\infty∞.

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