Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 5: general multipartite block-positivity correspondence

Open
QAlgorithms.Papers.Independent.Extend50.P12.multipartite_positivity_iff

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

prove2quantum

Let d,r,m≥1d,r,m\ge1d,r,m≥1 be integers and set k=r+mk=r+mk=r+m. Let PPP be any complex matrix on (Cd)⊗k(\mathbb C^d)^{\otimes k}(Cd)⊗k; no positivity, Hermiticity or normalization assumption is imposed on PPP. Define

Λ(X1,…,Xr)=tr⁡1⋯r ⁣[P(X1⊗⋯⊗Xr⊗I⊗m)].\Lambda(X_1,\ldots,X_r)=\operatorname{tr}_{1\cdots r}\!\left[P(X_1\otimes\cdots\otimes X_r\otimes I^{\otimes m})\right].Λ(X1​,…,Xr​)=tr1⋯r​[P(X1​⊗⋯⊗Xr​⊗I⊗m)].

Then

Λ is positive ⟺ P is block-positive across 1∣⋯∣r∣[r+1,…,k].\Lambda\text{ is positive}\ \Longleftrightarrow\ P\text{ is block-positive across }1|\cdots|r|[r+1,\ldots,k].Λ is positive ⟺ P is block-positive across 1∣⋯∣r∣[r+1,…,k].

Here positivity means that every tuple of PSD matrices Xi∈Md(C)X_i\in M_d(\mathbb C)Xi​∈Md​(C) gives a PSD output, with unrestricted traces. Block positivity means that tr⁡[P(X1⊗⋯⊗Xr⊗C)]\operatorname{tr}[P(X_1\otimes\cdots\otimes X_r\otimes C)]tr[P(X1​⊗⋯⊗Xr​⊗C)] is real and nonnegative for all such XiX_iXi​ and all PSD CCC on the entire mmm-register output space. The partial trace is unnormalized.

This correspondence allows the output registers to be tested jointly, including by matrices entangled across output sites.

Formalization Note The final endpoint printed as mmm in the partition is corrected to kkk, as forced by the output test in Eq. (36).

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P12
Formal statement
noncomputable section

open scoped BigOperators Matrix ComplexOrder

namespace QAlgorithms.Papers.Independent.Extend50.P12

attribute [local instance] Classical.propDecidable

/-- Proposition 5, PDF p.6, Eqs.(34)-(36). Write k=r+m with r,m>=1. The printed
last block ends with "m"; the corrected endpoint is k, uniquely determined by
the m-output-register test C in Eq.(36). P is arbitrary: neither its positivity
nor its block positivity is assumed. Complex trace nonnegativity includes its
imaginary part being zero. -/
theorem multipartite_positivity_iff
    (d r m : ℕ) (hd : 0 < d) (hr : 0 < r) (hm : 0 < m)
    (P : Matrix (Fin (r + m) → Fin d) (Fin (r + m) → Fin d) ℂ) :
    PositiveMap (productInputContraction P) ↔ InputOutputBlockPositive P := by sorry

end QAlgorithms.Papers.Independent.Extend50.P12

end
Source
Positive maps from the walled Brauer algebra, arXiv:2112.12738v3, PDF p. 6, Proposition 5, Eqs.(34)-(36)
Read-back

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

Let d,r,md,r,md,r,m be positive natural numbers, and let PPP be any complex matrix indexed by words in {0,…,d−1}r+m\{0,\ldots,d-1\}^{r+m}{0,…,d−1}r+m. For a tuple X=(Xi)i=0r−1X=(X_i)_{i=0}^{r-1}X=(Xi​)i=0r−1​ of complex d×dd\times dd×d matrices, define the matrix on mmm-letter words

F(X)y,z=∑u,v∈{0,…,d−1}rP(u,y),(v,z)∏i=0r−1(Xi)vi,ui.F(X)_{y,z} =\sum_{u,v\in\{0,\ldots,d-1\}^{r}} P_{(u,y),(v,z)}\prod_{i=0}^{r-1}(X_i)_{v_i,u_i}.F(X)y,z​=u,v∈{0,…,d−1}r∑​P(u,y),(v,z)​i=0∏r−1​(Xi​)vi​,ui​​.

Then F(X)F(X)F(X) is positive semidefinite for every tuple whose matrices XiX_iXi​ are positive semidefinite if and only if, for every such tuple and every positive semidefinite matrix CCC indexed by mmm-letter words, the complex number tr⁡(PBX,C)\operatorname{tr}(P B_{X,C})tr(PBX,C​) has imaginary part zero and nonnegative real part, where

(BX,C)(u,y),(v,z)=(∏i=0r−1(Xi)ui,vi)Cy,z.(B_{X,C})_{(u,y),(v,z)} =\left(\prod_{i=0}^{r-1}(X_i)_{u_i,v_i}\right)C_{y,z}.(BX,C​)(u,y),(v,z)​=(i=0∏r−1​(Xi​)ui​,vi​​)Cy,z​.

There is no Hermitian, positivity, or trace assumption on PPP, and no trace normalization is required of the test matrices XiX_iXi​ or CCC.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 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