Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Unique two-qubit BSA and a pure entangled residual

Open
QAlgorithms.Papers.Independent.Intake100.P76.two_qubit_bsa_unique_pure_residual

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

prove2quantum

Let ρ\rhoρ be a density matrix on C2⊗C2\mathbb C^2\otimes\mathbb C^2C2⊗C2. A best separable approximation is an unnormalized separable positive operator SSS such that ρ−S⪰0\rho-S\succeq0ρ−S⪰0 and Tr⁡S\operatorname{Tr}STrS is maximal among all such operators. There exists exactly one such operator SSS. Set λ=Tr⁡S\lambda=\operatorname{Tr}Sλ=TrS and R=ρ−SR=\rho-SR=ρ−S. Then 0≤λ≤10\leq\lambda\leq10≤λ≤1 and

R=0orR=(1−λ)∣ψe⟩⟨ψe∣,1−λ>0,R=0\quad\text{or}\quad R=(1-\lambda)|\psi_e\rangle\langle\psi_e|,\qquad 1-\lambda>0,R=0orR=(1−λ)∣ψe​⟩⟨ψe​∣,1−λ>0,

where ψe\psi_eψe​ is a unit vector that is not a product vector. The weighted operators SSS and RRR are unique. This is the operator interpretation of the optimal decomposition; normalized components with zero weight are not claimed unique.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P76
Formal statement
noncomputable section

open scoped Matrix ComplexOrder ComplexConjugate

open QAlgorithms QAlgorithms.Entanglement

namespace QAlgorithms.Papers.Independent.Intake100.P76

variable {A B I : Type*} [Fintype A] [Fintype B] [Fintype I]
  [DecidableEq A] [DecidableEq B] [DecidableEq I]

/-- PDF p.3, Eq. (11), with the p.2 uniqueness preview: the unrestricted
optimal weighted operators are unique for two qubits, and a nonzero remainder
is a nonnegative multiple of one normalized entangled projector. No uniqueness
of inactive normalized components at weights zero or one is asserted. -/
theorem two_qubit_bsa_unique_pure_residual
    (rho : Matrix (Fin 2 × Fin 2) (Fin 2 × Fin 2) ℂ) (hrho : IsDensityMatrix rho) :
    ∃ S, IsBSA rho S ∧ (∀ T, IsBSA rho T → T = S) ∧
      0 ≤ S.trace.re ∧ S.trace.re ≤ 1 ∧
      (rho - S = 0 ∨
        ∃ psi : EuclideanSpace ℂ (Fin 2 × Fin 2),
          IsState psi ∧ ¬ IsUnitProduct psi ∧
          0 < 1 - S.trace.re ∧
          rho - S = ((1 - S.trace.re : ℝ) : ℂ) • pureDensity psi) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P76

end
Source
Separability and entanglement of composite quantum systems, arXiv:quant-ph/9707043v1, PDF p. 3, Unnumbered two-qubit BSA uniqueness and pure entangled remainder, Eq. (11)
Read-back

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

For every positive semidefinite trace-one matrix ρ\rhoρ indexed by {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1}, there exists a matrix SSS that is a finite nonnegative real combination of products of positive semidefinite trace-one matrices, satisfies ρ−S≥0\rho-S\ge0ρ−S≥0, and maximizes Re⁡tr⁡S\operatorname{Re}\operatorname{tr}SRetrS among all matrices having those two properties; furthermore, every other such maximizer equals SSS. Its real trace satisfies 0≤Re⁡tr⁡S≤10\le\operatorname{Re}\operatorname{tr}S\le10≤RetrS≤1, and either ρ−S=0\rho-S=0ρ−S=0, or there is a vector ψ∈C{0,1}×{0,1}\psi\in\mathbb C^{\{0,1\}\times\{0,1\}}ψ∈C{0,1}×{0,1} such that

∥ψ∥=1,1−Re⁡tr⁡S>0,ρ−S=(1−Re⁡tr⁡S)ψψ†,\|\psi\|=1,\qquad 1-\operatorname{Re}\operatorname{tr}S>0,\qquad \rho-S=(1-\operatorname{Re}\operatorname{tr}S)\psi\psi^\dagger,∥ψ∥=1,1−RetrS>0,ρ−S=(1−RetrS)ψψ†,

and ψ\psiψ cannot be written as e⊗fe\otimes fe⊗f with ∥e∥=∥f∥=1\|e\|=\|f\|=1∥e∥=∥f∥=1, where (e⊗f)(a,b)=e(a)f(b)(e\otimes f)(a,b)=e(a)f(b)(e⊗f)(a,b)=e(a)f(b). The finite combinations defining the maximization allow empty sums and do not require their weights to sum to 111.

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

    Confirmed by the moderator at approval.

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