matrix_is_separable_partial_transpose_iff
Partial transpose on the second tensor factor preserves separability.
Statement
theorem matrix_is_separable_partial_transpose_iff (dA dB : ℕ) (ρ : Matrix (Fin dA × Fin dB) (Fin dA × Fin dB) ℂ) : matrix_is_separable dA dB ρ ↔ matrix_is_separable dA dB (Matrix.of fun p q => ρ (p.1,q.2) (q.1,p.2))
- Source
- OP-2299; qutrit convolution, experiments 40125-40126 and 40163-40166.
- Verified
- 26 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
The proof establishes that a bipartite matrix is separable if and only if its partial transpose on the second subsystem is separable. First, an auxiliary lemma shows that partial transposition preserves separability: if a separable matrix decomposes with local vectors x_i and y_i, its partial transpose decomposes with x_i and the complex conjugate vectors ȳ_i, because transposing a local factor corresponds to complex conjugating its state vectors. The full equivalence then follows because partial transposition is an involution; applying the forward result to the partial transpose of ρ recovers the original matrix ρ.
An auxiliary lemma establishes that the partial transpose of any separable matrix is separable, with factor vectors x on the first subsystem and complex-conjugated vectors ȳ on the second subsystem.
We set up a helper lemma `forward` asserting that partial transposition preserves separability for any matrix R. Decomposing the hypothesis that R is separable gives an index bound N and local vectors x and y. To witness separability of the partial transpose of R, we keep N and x unchanged and choose the pointwise complex conjugate ȳ, defined by `fun i j => star (y i j)`, for the second factor.
have forward (R : Matrix (Fin dA × Fin dB) (Fin dA × Fin dB) ℂ) (h : matrix_is_separable dA dB R) : matrix_is_separable dA dB (Matrix.of fun p q => R (p.1,q.2) (q.1,p.2)) := by rcases h with ⟨N, x, y, h⟩ refine ⟨N, x, fun i j => star (y i j), ?_⟩
The entries of the partial transpose of R match the separable expansion formed by x and ȳ.
For any matrix indices p = (p₁, p₂) and q = (q₁, q₂), evaluating the partially transposed matrix yields R((p₁, q₂), (q₁, p₂)) by `Matrix.of_apply`. Substituting the separable decomposition of R at these permuted indices gives summands of the form x_i(p₁) x̄_i(q₁) y_i(q₂) ȳ_i(p₂). In the candidate expansion using ȳ, the second tensor factor is ȳ_i(p₂) star(ȳ_i(q₂)), which simplifies to ȳ_i(p₂) y_i(q₂) because complex conjugation is an involution (`star_star`). By `Finset.sum_congr`, it suffices to verify equality term by term, which holds by commutativity of multiplication in ℂ (`ring`).
uses
Matrix.of_apply,star_star,Finset.sum_congrintro p q simp only [Matrix.of_apply] rw [h (p.1,q.2) (q.1,p.2)] simp only [star_star] apply Finset.sum_congr rfl intro i _ ring
Separability of ρ implies separability of its partial transpose.
Splitting the if-and-only-if goal into both directions (`constructor`), the forward implication is solved immediately by applying the helper lemma `forward` directly to ρ.
constructor · exact forward ρ
If the partial transpose of ρ is separable, then applying partial transposition a second time produces a separable matrix.
Assuming the partial transpose of ρ is separable, we apply the `forward` lemma to that partially transposed matrix, establishing that its double partial transpose is separable.
· intro h have hh := forward (Matrix.of fun p q => ρ (p.1,q.2) (q.1,p.2)) h
Partial transposition is an involution: applying it twice to ρ returns ρ.
By matrix extensionality (`ext p q`), we compare the entries at (p, q). Evaluating the double partial transpose using `Matrix.of_apply` tracks the index swaps: ((p₁, q₂)₁, (q₁, p₂)₂) = (p₁, p₂) and ((q₁, p₂)₁, (p₁, q₂)₂) = (q₁, q₂). Rebuilding the pairs with `Prod.mk.eta` simplifies the entry to ρ(p, q).
uses
Matrix.of_apply,Prod.mk.etahave heq : (Matrix.of fun p q => (Matrix.of fun r s => ρ (r.1,s.2) (s.1,r.2)) (p.1,q.2) (q.1,p.2)) = ρ := by ext p q simp only [Matrix.of_apply, Prod.mk.eta]
The matrix ρ is separable, completing the reverse implication.
Rewriting with the involution identity (ρ^{T_B})^{T_B} = ρ in the result from Step 4 shows directly that ρ is separable.
rw [heq] at hh exact hh
Matrix.of_apply- Evaluating a matrix constructed by `Matrix.of f` at indices `i` and `j` yields `f i j`.
star_star- The star operation (complex conjugation) is an involution: `star (star r) = r`.
Finset.sum_congr- Two finite sums over the same set are equal if their summands agree at every element.
Prod.mk.eta- Reconstructing an ordered pair from its first and second components yields the original pair: `(p.1, p.2) = p`.
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_partial_transpose_iff (dA dB : ℕ) (ρ : Matrix (Fin dA × Fin dB) (Fin dA × Fin dB) ℂ) : matrix_is_separable dA dB ρ ↔ matrix_is_separable dA dB (Matrix.of fun p q => ρ (p.1,q.2) (q.1,p.2)) := by have forward (R : Matrix (Fin dA × Fin dB) (Fin dA × Fin dB) ℂ) (h : matrix_is_separable dA dB R) : matrix_is_separable dA dB (Matrix.of fun p q => R (p.1,q.2) (q.1,p.2)) := by rcases h with ⟨N, x, y, h⟩ refine ⟨N, x, fun i j => star (y i j), ?_⟩ intro p q simp only [Matrix.of_apply] rw [h (p.1,q.2) (q.1,p.2)] simp only [star_star] apply Finset.sum_congr rfl intro i _ ring constructor · exact forward ρ · intro h have hh := forward (Matrix.of fun p q => ρ (p.1,q.2) (q.1,p.2)) h have heq : (Matrix.of fun p q => (Matrix.of fun r s => ρ (r.1,s.2) (s.1,r.2)) (p.1,q.2) (q.1,p.2)) = ρ := by ext p q simp only [Matrix.of_apply, Prod.mk.eta] rw [heq] at hh exact hh