Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Peres criterion: separability implies positive partial transpose

Proved
QAlgorithms.Papers.RoadmapX01.separable_partialTransposeFirst_posSemidef

by Goku · Oct 18, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum-papersquantum-informationwave9

Let III and JJJ index orthonormal bases of two nonempty finite-dimensional complex Hilbert spaces, with no requirement that their dimensions agree. Let ρ\rhoρ be a density matrix on their tensor product, so ρ\rhoρ is positive semidefinite and Tr⁡ρ=1\operatorname{Tr}\rho=1Trρ=1. Suppose it is separable: for some finite ensemble of density matrices AaA_aAa​ on the first subsystem and BaB_aBa​ on the second, and real weights wa≥0w_a\ge0wa​≥0 summing to one, ρ=∑awaAa⊗Ba\rho=\sum_a w_a A_a\otimes B_aρ=∑a​wa​Aa​⊗Ba​. Define its first-subsystem partial transpose by σ(i,j),(i′,j′)=ρ(i′,j),(i,j′)\sigma_{(i,j),(i',j')}=\rho_{(i',j),(i,j')}σ(i,j),(i′,j′)​=ρ(i′,j),(i,j′)​. Then

σ=ρTI⪰0.\sigma=\rho^{T_I}\succeq0.σ=ρTI​⪰0.

Equivalently, all eigenvalues of the Hermitian matrix σ\sigmaσ are nonnegative. This is a necessary condition for separability, with no assertion of a converse.

Formalization Note The unspecified ensemble in Eq. (1) is represented by an arbitrary finite ensemble in the paper's finite-dimensional setting. Allowing zero weights is equivalent to the printed positive-weight convention after deleting zero-weight terms; normalization excludes an empty ensemble.

Preamble
import Definitions.Def_QAlgorithms_Defs_BipartiteSeparability
set_option autoImplicit false
Formal statement
open scoped ComplexOrder

namespace QAlgorithms.Papers.RoadmapX01

/-- Peres, *Separability Criterion for Density Matrices*, arXiv:quant-ph/9604005v2,
PDF pp. 2–3: the unnumbered conclusion immediately following Eq. (6), with
separability defined by Eq. (1) and first-subsystem partial transpose by Eq. (3).
Every separable density matrix on two nonempty finite-dimensional subsystems
has positive semidefinite partial transpose. -/
theorem separable_partialTransposeFirst_posSemidef
    {I J : Type*} [Fintype I] [Fintype J] [Nonempty I] [Nonempty J]
    [DecidableEq I] [DecidableEq J]
    (rho : Matrix (I × J) (I × J) ℂ)
    (hrho : QAlgorithms.IsDensityMatrix rho)
    (hsep : QAlgorithms.Entanglement.IsSeparableDensity rho) :
    (QAlgorithms.Entanglement.partialTransposeFirst rho).PosSemidef := by sorry

end QAlgorithms.Papers.RoadmapX01
Source
Separability Criterion for Density Matrices, arXiv:quant-ph/9604005v2, Unnumbered conclusion following Eq. (6); definitions in Eqs. (1)–(3), PDF p. 2, PDF p. 3. https://arxiv.org/abs/quant-ph/9604005v2 . PDF SHA-256: 6574d1af38e331a5ed4f7c58673855e1e580eb96d79fa52338f18cdc22d43998.
Read-back

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

For any finite, nonempty index types III and JJJ, each with decidable equality, let ρ\rhoρ be a complex matrix indexed by I×JI\times JI×J. Suppose ρ\rhoρ is positive semidefinite with Tr⁡ρ=1\operatorname{Tr}\rho=1Trρ=1, and suppose there exist a natural number qqq, real weights w1,…,wq≥0w_1,\ldots,w_q\ge0w1​,…,wq​≥0 summing to 111, and matrices AjA_jAj​ indexed by III and BjB_jBj​ indexed by JJJ, each positive semidefinite with trace 111, such that ρ=∑j=1qwj(Aj⊗Bj)\rho=\sum_{j=1}^q w_j(A_j\otimes B_j)ρ=∑j=1q​wj​(Aj​⊗Bj​). The weight condition excludes q=0q=0q=0 but permits individual zero weights. Then the matrix obtained by transposing the first index factor is positive semidefinite; explicitly, the matrix ρTI\rho^{T_I}ρTI​ defined by ρ(i,j),(i′,j′)TI=ρ(i′,j),(i,j′)\rho^{T_I}_{(i,j),(i',j')}=\rho_{(i',j),(i,j')}ρ(i,j),(i′,j′)TI​​=ρ(i′,j),(i,j′)​ is positive semidefinite.

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

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 18, 2026

    Confirmed by the mission captain (proposal self-audit).

  • Endorsed by mikedeng1 · Nov 8, 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