Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The OCB process has rank eight and obstruction five

Open
QAlgorithms.Papers.Independent.Intake100.P46.ocb_notPurifiable

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 all four laboratory wires be qubits, with trivial P,FP,FP,F, and order Pauli words as AIAOBIBOA_I A_O B_I B_OAI​AO​BI​BO​. Write I,X,Y,ZI,X,Y,ZI,X,Y,Z for the identity and usual Pauli matrices. Define

WOCB=14[I⊗4+IZZI+ZIXZ2].W_{\mathrm{OCB}}=\frac14\left[I^{\otimes4}+\frac{IZZI+ZIXZ}{\sqrt2}\right].WOCB​=41​[I⊗4+2​IZZI+ZIXZ​].

This is a valid process, and

rank⁡WOCB=8,∃ spectral and kernel-basis choices with dmax⁡(WOCB)=5,WOCB is not purifiable.\operatorname{rank}W_{\mathrm{OCB}}=8,\qquad\exists\text{ spectral and kernel-basis choices with }d_{\max}(W_{\mathrm{OCB}})=5,\qquad W_{\mathrm{OCB}}\text{ is not purifiable}.rankWOCB​=8,∃ spectral and kernel-basis choices with dmax​(WOCB​)=5,WOCB​ is not purifiable.

The number five is the exact algebraic assertion reported by the source's numerical calculation. The existential choice does not claim the number is independent of all eigensolver bases. No maximal causal-inequality violation is asserted here.

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.(35): the exact reported rank and obstruction, and nonpurifiability.
The spectral and kernel choices witnessing the reported numerical obstruction are existential;
this does not assert every eigensolver basis gives the number five. -/
theorem ocb_notPurifiable :
    IsValidProcess ocbProcess ∧ Matrix.rank ocbProcess = 8 ∧
    (∃ (e : SupportSpectrum (d := qubitLaboratories) ocbProcess)
      (b : KernelBasisData e) (s : CompressionSpectrum b), testBound s = 5) ∧
    ¬ IsPurifiable (d := qubitLaboratories) ocbProcess := 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.(35)
Read-back

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

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

X=(0110),Z=(100−1),W=14(I⊗4+12(I⊗Z⊗Z⊗I+Z⊗I⊗X⊗Z)).X=\begin{pmatrix}0&1\\1&0\end{pmatrix},\qquad Z=\begin{pmatrix}1&0\\0&-1\end{pmatrix},\qquad W=\frac14\left(I^{\otimes4} +\frac1{\sqrt2}\left(I\otimes Z\otimes Z\otimes I +Z\otimes I\otimes X\otimes Z\right)\right).X=(01​10​),Z=(10​0−1​),W=41​(I⊗4+2​1​(I⊗Z⊗Z⊗I+Z⊗I⊗X⊗Z)).

The tensor entries here are the products of the four indicated matrix entries, with the two wire indices identified with the Boolean values false and true in that order. For arbitrary positive past and future dimensions p,fp,fp,f, let Xp,f\mathcal X_{p,f}Xp,f​ have six-coordinate dimensions (p,2,2,2,2,f)(p,2,2,2,2,f)(p,2,2,2,2,f). For a matrix TTT on this space, its link with laboratory matrices A,BA,BA,B and four positive ancillary dimensions is

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′,η′))​.​

Validity of TTT means that, for every such ancillary choice, this link is positive semidefinite with global output partial trace equal to the global input identity whenever A,BA,BA,B are positive semidefinite with their respective output partial traces equal to their input identities. The assertion is that WWW is valid, has rank 888, and admits the following spectral and kernel data with the bound specified below equal to 555. The spectral data consist of a positive integer r=rank⁡Wr=\operatorname{rank}Wr=rankW, positive real λi\lambda_iλi​ and vectors viv_ivi​ on X1,1\mathcal X_{1,1}X1,1​, 0≤i<r0\le i<r0≤i<r, satisfying ∑xvi(x)‾vj(x)=δij\sum_x\overline{v_i(x)}v_j(x)=\delta_{ij}∑x​vi​(x)​vj​(x)=δij​ and Wx,y=∑i<rλivi(x)vi(y)‾W_{x,y}=\sum_{i<r}\lambda_i v_i(x)\overline{v_i(y)}Wx,y​=∑i<r​λi​vi​(x)vi​(y)​. To define the remaining data and bound, for a coordinate set JJJ put

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 DjD_jDj​ are the six coordinate dimensions and digit strings denote coordinate sets. On X=X1,r\mathcal X=\mathcal X_{1,r}X=X1,r​ define

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)​,

with Et,zE_{t,z}Et,z​ having its sole nonzero entry 111 at row ttt, column zzz. The kernel data consist of 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}. Form

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 with Hsκ=μκsκHs_\kappa=\mu_\kappa s_\kappaHsκ​=μκ​sκ​. For every κ\kappaκ with μκ≠0\mu_\kappa\ne0μκ​=0, reshape sκs_\kappasκ​ into (Mκ)ij=sκ(i,j)(M_\kappa)_{ij}=s_\kappa(i,j)(Mκ​)ij​=sκ​(i,j) and set 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κ​)†. With n+,n−,n0n_+,n_-,n_0n+​,n−​,n0​ denoting the counts, with multiplicity, of positive, negative and zero eigenvalues of a Hermitian matrix, these choices satisfy

inf⁡κ:μκ≠0ε∈{0,1}(min⁡{n+(Cκ,ε),n−(Cκ,ε)}+n0(Cκ,ε))=5in N∪{∞},\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)=5 \quad\text{in }\mathbb N\cup\{\infty\},κ:μκ​=0ε∈{0,1}​inf​(min{n+​(Cκ,ε​),n−​(Cκ,ε​)}+n0​(Cκ,ε​))=5in N∪{∞},

where an empty infimum is ∞\infty∞. Finally, there are no positive p,fp,fp,f and valid SSS on Xp,f\mathcal X_{p,f}Xp,f​ which recover WWW through

W(0,i,o,j,q,0),(0,i′,o′,j′,q′,0)=∑t<fS(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<f}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<f∑​S(0,i,o,j,q,t),(0,i′,o′,j′,q′,t)​

and also have this property: for every four positive ancillary dimensions and every laboratory pair U,VU,VU,V satisfying 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, the link LS(J(U),J(V))L_S(J(U),J(V))LS​(J(U),J(V)) equals J(G)J(G)J(G) for some global GGG satisfying G†G=GG†=IG^\dagger G=GG^\dagger=IG†G=GG†=I, where J(M)(i,o),(j,o′)=Mo,iMo′,j‾J(M)_{(i,o),(j,o')}=M_{o,i}\overline{M_{o',j}}J(M)(i,o),(j,o′)​=Mo,i​Mo′,j​​.

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