matrix_is_separable_pos_semidef
Every separable bipartite matrix (matrix_is_separable dA dB ρ) is positive semidefinite.
Statement
theorem matrix_is_separable_pos_semidef (dA dB : ℕ) (ρ : Matrix (Fin dA × Fin dB) (Fin dA × Fin dB) ℂ) (h : matrix_is_separable dA dB ρ) : open scoped ComplexOrder in ρ.PosSemidef
- Source
- Helper for OP-2466: a separable operator is positive semidefinite (with matrix_is_separable_partial_transpose_iff, separable implies PPT).
- Verified
- 27 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- matrix_is_separableWith dA dB : ℕ explicit arguments, in this order, and ρ : Matrix (Fin dA × Fin dB) (Fin dA × Fin dB) ℂ, the proposition that ρ is…
- Used by 1
- prime_convolution_separable_imp_thresholdLet d be a prime with d ≥ 5, r ∈ ZMod d with r ≠ 0, r ≠ 1 and 2r ≠ 1 (r is not the inverse of 2), and p, t real numbers in [0, 1]. If…
The proof, explained
By definition, a separable bipartite density matrix $\rho$ is a sum of product states. The proof reformulates $\rho$ as a finite sum of rank-one outer products $v_i v_i^*$, where each $v_i$ is the composite state vector $v_i(p) = x_i(p_1) y_i(p_2)$. Since every rank-one outer product $v v^*$ is positive semidefinite and positive semidefiniteness is preserved under finite sums, $\rho$ is positive semidefinite.
There exist an integer $N$ and families of vectors $x_i \in \mathbb{C}^{d_A}$ and $y_i \in \mathbb{C}^{d_B}$ decomposing $\rho$ as a separable matrix.
Unpacking the definition of separability (`matrix_is_separable`) decomposes $\rho$ into an integer $N$ and vector families $x$ and $y$ such that each entry satisfies $\rho_{p, q} = \sum_{i=1}^N x_i(p_1) x_i(q_1)^* y_i(p_2) y_i(q_2)^*$.
open scoped ComplexOrder in obtain ⟨N, x, y, h⟩ := h
$\rho$ equals the sum of rank-one outer products $\sum_{i=1}^N v_i v_i^*$, where $v_i(p) = x_i(p_1) y_i(p_2)$.
We prove this equality entrywise for all index pairs $p, q$. By evaluating matrix sums entrywise (`Matrix.sum_apply`) and applying the definition of vector outer products (`Matrix.vecMulVec_apply`), entry $(p, q)$ of $\sum_{i=1}^N v_i v_i^*$ is $\sum_{i=1}^N v_i(p) v_i(q)^*$. Distributing the complex conjugate over the product (`star_mul'`) and pointwise over indices (`Pi.star_apply`) gives $(x_i(p_1) y_i(p_2)) (x_i(q_1)^* y_i(q_2)^*)$. Termwise comparison (`Finset.sum_congr`) shows this matches the definition of $\rho_{p, q}$ by commutativity and associativity of complex multiplication (`ring`).
uses
Matrix.sum_apply,Finset.sum_congr,Matrix.vecMulVec_apply,Pi.star_apply,star_mul'have hρ : ρ = ∑ i : Fin N, Matrix.vecMulVec (fun p : Fin dA × Fin dB => x i p.1 * y i p.2) (star fun p : Fin dA × Fin dB => x i p.1 * y i p.2) := by ext p q rw [h p q, Matrix.sum_apply] refine Finset.sum_congr rfl fun i _ => ?_ simp only [Matrix.vecMulVec_apply, Pi.star_apply, star_mul'] ring
$\rho$ is positive semidefinite.
Rewriting $\rho$ as the sum of outer products $\sum_{i=1}^N v_i v_i^*$, each summand $v_i v_i^*$ is positive semidefinite by `Matrix.posSemidef_vecMulVec_self_star`. Since a finite sum of positive semidefinite matrices is positive semidefinite (`Matrix.posSemidef_sum`), the conclusion follows.
uses
Matrix.posSemidef_sum,Matrix.posSemidef_vecMulVec_self_starrw [hρ] exact Matrix.posSemidef_sum _ fun i _ => Matrix.posSemidef_vecMulVec_self_star _
Matrix.sum_apply- The $(i, j)$ entry of a finite sum of matrices equals the sum of their $(i, j)$ entries.
Finset.sum_congr- Two finite sums are equal if their index sets are identical and their terms agree at every index.
Matrix.vecMulVec_apply- The $(i, j)$ entry of the outer product matrix `vecMulVec w v` is $w(i) \cdot v(j)$.
Pi.star_apply- The conjugate (star) of a function evaluated at an index equals the conjugate of its value at that index.
star_mul'- In a commutative ring with involution, the star operation distributes over multiplication: $(x y)^* = x^* y^*$.
Matrix.posSemidef_sum- A finite sum of positive semidefinite matrices is positive semidefinite.
Matrix.posSemidef_vecMulVec_self_star- The outer product $a a^*$ of any vector $a$ with its adjoint is positive semidefinite.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem matrix_is_separable_pos_semidef (dA dB : ℕ) (ρ : Matrix (Fin dA × Fin dB) (Fin dA × Fin dB) ℂ) (h : matrix_is_separable dA dB ρ) : open scoped ComplexOrder in ρ.PosSemidef := by open scoped ComplexOrder in obtain ⟨N, x, y, h⟩ := h have hρ : ρ = ∑ i : Fin N, Matrix.vecMulVec (fun p : Fin dA × Fin dB => x i p.1 * y i p.2) (star fun p : Fin dA × Fin dB => x i p.1 * y i p.2) := by ext p q rw [h p q, Matrix.sum_apply] refine Finset.sum_congr rfl fun i _ => ?_ simp only [Matrix.vecMulVec_apply, Pi.star_apply, star_mul'] ring rw [hρ] exact Matrix.posSemidef_sum _ fun i _ => Matrix.posSemidef_vecMulVec_self_star _