Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 4: exact tripartite positivity/block-positivity equivalences

Open
QAlgorithms.Papers.Independent.Extend50.P12.tripartite_positivity_iff

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

prove2quantum

Let d≥1d\ge1d≥1 and let ρ\rhoρ be a PSD trace-one matrix on (Cd)⊗3(\mathbb C^d)^{\otimes3}(Cd)⊗3 invariant under conjugation by U⊗3U^{\otimes3}U⊗3 for every ddd-dimensional unitary UUU. Let SSS be a proper subset of {1,2,3}\{1,2,3\}{1,2,3}, possibly empty, and write TST_STS​ for ordinary partial transpose on those sites. Define

fS(A)=tr⁡1[ρTS(A⊗I⊗I)],gS(A,B)=tr⁡12[ρTS(A⊗B⊗I)].f_S(A)=\operatorname{tr}_1[\rho^{T_S}(A\otimes I\otimes I)],\qquad g_S(A,B)=\operatorname{tr}_{12}[\rho^{T_S}(A\otimes B\otimes I)].fS​(A)=tr1​[ρTS​(A⊗I⊗I)],gS​(A,B)=tr12​[ρTS​(A⊗B⊗I)].

Both correspondences hold:

fS is positive ⟺ ρTS is block-positive across 1∣23,f_S\text{ is positive}\ \Longleftrightarrow\ \rho^{T_S}\text{ is block-positive across }1|23,fS​ is positive ⟺ ρTS​ is block-positive across 1∣23, gS is positive ⟺ ρTS is block-positive across 1∣2∣3.g_S\text{ is positive}\ \Longleftrightarrow\ \rho^{T_S}\text{ is block-positive across }1|2|3.gS​ is positive ⟺ ρTS​ is block-positive across 1∣2∣3.

Positivity means PSD output on every PSD input, without input trace normalization. For the first equivalence, the output sites 232323 form one unrestricted block; for the second they are tested separately. The partial trace is unnormalized and complex trace nonnegativity includes a zero imaginary part.

These equivalences translate exactly between the two specified map-positivity questions and their distinct block partitions.

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 4, PDF p.6, Eqs.(29)-(33) on pp.5-6, and Table I caption p.13.
Both equivalences are retained. For g_S the partition is 1|2|3, as its proof
and the table specify. S is proper but can be empty. -/
theorem tripartite_positivity_iff
    (d : ℕ) (hd : 0 < d) (rho : Matrix (Fin 3 → Fin d) (Fin 3 → Fin d) ℂ) (hrho : WernerDensity rho)
    (S : Finset (Fin 3)) (hS : S ≠ Finset.univ) :
    (PositiveMap (productInputContraction (r := 1) (m := 2) (transposeRegisterSet S rho)) ↔
      InputOutputBlockPositive (r := 1) (m := 2) (transposeRegisterSet S rho)) ∧
    (PositiveMap (productInputContraction (r := 2) (m := 1) (transposeRegisterSet S rho)) ↔
      InputOutputBlockPositive (r := 2) (m := 1) (transposeRegisterSet S rho)) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P12

end
Source
Positive maps from the walled Brauer algebra, arXiv:2112.12738v3, PDF p. 6, Proposition 4, Eqs.(29)-(33); Table I caption
Read-back

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

Let d>0d>0d>0 be a natural number, and let ρ\rhoρ be a complex matrix indexed by words in {0,…,d−1}3\{0,\ldots,d-1\}^{3}{0,…,d−1}3. Assume that ρ⪰0\rho\succeq0ρ⪰0, tr⁡ρ=1\operatorname{tr}\rho=1trρ=1, and TUρTU∗=ρT_U\rho T_U^*=\rhoTU​ρTU∗​=ρ for every unitary complex d×dd\times dd×d matrix UUU, where (TU)x,y=∏i=02Uxi,yi(T_U)_{x,y}=\prod_{i=0}^{2}U_{x_i,y_i}(TU​)x,y​=∏i=02​Uxi​,yi​​ and ∗{}^*∗ is conjugate transpose. Let SSS be any set of the three register positions other than the full set, including possibly the empty set, and define P=τSρP=\tau_S\rhoP=τS​ρ by Px,y=ρx′,y′P_{x,y}=\rho_{x',y'}Px,y​=ρx′,y′​, where the row and column coordinates are exchanged at exactly the positions in SSS. For each of the two choices (r,m)=(1,2)(r,m)=(1,2)(r,m)=(1,2) and (r,m)=(2,1)(r,m)=(2,1)(r,m)=(2,1), define

Fr(X)y,z=∑u,v∈{0,…,d−1}rP(u,y),(v,z)∏i=0r−1(Xi)vi,ui,F_r(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},Fr​(X)y,z​=u,v∈{0,…,d−1}r∑​P(u,y),(v,z)​i=0∏r−1​(Xi​)vi​,ui​​,

where XiX_iXi​ are complex d×dd\times dd×d matrices and y,zy,zy,z are mmm-letter words. The assertion is the conjunction, for these two choices of (r,m)(r,m)(r,m), of the following equivalence: Fr(X)F_r(X)Fr​(X) is positive semidefinite for every tuple of positive semidefinite XiX_iXi​ if and only if, for every such tuple and every positive semidefinite matrix CCC on the mmm-letter words, tr⁡(PBX,C)\operatorname{tr}(P B_{X,C})tr(PBX,C​) has imaginary part zero and real part at least zero, 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​.

The matrices XiX_iXi​ and CCC need not have trace one.

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