qutrit_convolution_choi_pos_semidef
If the complex 3×3 matrix σ is positive semidefinite then qutrit_convolution_choi σ is positive semidefinite.
Statement
theorem qutrit_convolution_choi_pos_semidef (σ : Matrix (Fin 3) (Fin 3) ℂ) (hσ : open scoped ComplexOrder in σ.PosSemidef) : open scoped ComplexOrder in (qutrit_convolution_choi σ).PosSemidef
- Source
- Sanity lemma for the definition qutrit_convolution_choi, serving OP-2299: the Choi matrix of a completely positive map is positive semidefinite.
- Verified
- 26 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- qutrit_convolution_choiTakes a complex 3×3 matrix σ : Matrix (Fin 3) (Fin 3) ℂ (no hypothesis on σ) and returns the complex matrix indexed by Fin 3 × Fin 3 (type…
The proof, explained
The proof shows that the Choi matrix of the qutrit convolution channel is positive semidefinite by expressing it as a Kraus-type sum ∑ₛ Mₛ ((1/3) • σ) Mₛ* over s ∈ 𝔽₃. The indicator matrices Mₛ slice the coordinates by the sum p₁ + p₂ = s and difference p₂ - p₁ = y, an identity verified by checking all 81 index combinations. Because σ is positive semidefinite and 1/3 ≥ 0, each conjugated term Mₛ ((1/3) • σ) Mₛ* is positive semidefinite, and the result follows because positive semidefiniteness is closed under finite sums.
To establish the Kraus decomposition of the Choi matrix, it suffices to verify the identity entrywise for all index pairs ((a, b), (a', b')), with modular arithmetic identities -1 ≡ 2 and -2 ≡ 1 in Fin 3 at hand.
The proof formulates a Kraus-type representation of the Choi matrix as ∑ₛ Mₛ ((1/3) • σ) Mₛ*, where Mₛ is an indicator matrix for the slice p₁ + p₂ = s and p₂ - p₁ = y. It establishes the modular arithmetic facts -1 = 2 and -2 = 1 in Fin 3 (the cyclic group ℤ/3ℤ), and applies matrix extensionality (ext) to reduce the matrix equality to checking that both sides produce the same complex scalar at an arbitrary index ((a, b), (a', b')).
open scoped ComplexOrder in have key : qutrit_convolution_choi σ = ∑ s : Fin 3, (Matrix.of fun (p : Fin 3 × Fin 3) (y : Fin 3) => if p.1 + p.2 = s ∧ p.2 - p.1 = y then (1 : ℂ) else 0) * ((1 / 3 : ℝ) • σ) * (Matrix.of fun (p : Fin 3 × Fin 3) (y : Fin 3) => if p.1 + p.2 = s ∧ p.2 - p.1 = y then (1 : ℂ) else 0).conjTranspose := by have h1 : (-1 : Fin 3) = 2 := rfl have h2 : (-2 : Fin 3) = 1 := rfl ext ⟨a, b⟩ ⟨a', b'⟩
The Kraus decomposition identity holds: qutrit_convolution_choi σ = ∑ₛ Mₛ * ((1/3) • σ) * Mₛ*. automation
The proof expands the definitions of the Choi matrix, matrix multiplication, conjugate transposition, scalar multiplication, and the 3-term sum over Fin 3 into concrete scalar expressions. It then performs an exhaustive case analysis across all 3⁴ = 81 index tuples (a, b, a', b') ∈ (Fin 3)⁴. For each tuple, decision procedures evaluate the boolean indicator conditions, simplify the index arithmetic using -1 = 2 and -2 = 1, and verify that the two sides match using ring arithmetic over ℂ.
uses
qutrit_convolution_choi,Matrix.sum_apply,Matrix.mul_apply,Matrix.conjTranspose_apply,Matrix.of_apply,Matrix.smul_apply,Fin.sum_univ_threesimp only [qutrit_convolution_choi, Matrix.sum_apply, Matrix.mul_apply, Matrix.conjTranspose_apply, Matrix.of_apply, Matrix.smul_apply, Fin.sum_univ_three] fin_cases a <;> fin_cases b <;> fin_cases a' <;> fin_cases b' <;> simp (decide := true) <;> (try simp only [h1, h2]) <;> ring
The Choi matrix qutrit_convolution_choi σ is positive semidefinite.
Rewriting with the established decomposition expresses the Choi matrix as a sum over s ∈ Fin 3 of terms Mₛ ((1/3) • σ) Mₛ*. Because σ is positive semidefinite and 0 ≤ 1/3, the scaled matrix (1/3) • σ is positive semidefinite. Conjugation by Mₛ preserves positive semidefiniteness via mul_mul_conjTranspose_same. Finally, Matrix.posSemidef_sum concludes that the sum of these positive semidefinite matrices is positive semidefinite.
uses
Matrix.posSemidef_sum,mul_mul_conjTranspose_samerw [key] exact Matrix.posSemidef_sum _ fun s _ => (hσ.smul (by norm_num : (0 : ℝ) ≤ 1 / 3)).mul_mul_conjTranspose_same _
qutrit_convolution_choi- The Choi matrix of the qutrit convolution channel, whose entry at ((p₁, p₂), (q₁, q₂)) is (1/3) σ_{p₂ - p₁, q₂ - q₁} if p₁ + p₂ = q₁ + q₂, and 0 otherwise.
Matrix.sum_apply- The entry of a sum of matrices at index (i, j) is the sum of the entries of the individual matrices at (i, j).
Matrix.mul_apply- The (i, k) entry of the matrix product M * N is the sum ∑ⱼ M_{i j} N_{j k}.
Matrix.conjTranspose_apply- The (j, i) entry of the conjugate transpose M* is the complex conjugate of M_{i j}.
Matrix.of_apply- The (i, j) entry of the matrix constructed from a function f via Matrix.of f is f(i, j).
Matrix.smul_apply- The (i, j) entry of the scalar multiple c • A is c times the (i, j) entry of A.
Fin.sum_univ_three- A sum of a function over all elements of Fin 3 equals f(0) + f(1) + f(2).
Matrix.posSemidef_sum- A finite sum of positive semidefinite matrices is positive semidefinite.
mul_mul_conjTranspose_same- For any matrix B and positive semidefinite matrix A, the conjugate congruence product B * A * B* is positive semidefinite.
- The verification of the Kraus decomposition identity in lines 15–16 relies on automated brute-force case analysis across all 81 index tuples (a, b, a', b') ∈ (Fin 3)⁴. On paper, this corresponds to the fact that the linear change of coordinates (p₁, p₂) ↦ (p₁ + p₂, p₂ - p₁) is an invertible transformation over the field 𝔽₃ (since 2 is invertible mod 3), which guarantees that the sum over s collapses to a single non-vanishing term precisely when p₁ + p₂ = q₁ + q₂.
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 qutrit_convolution_choi_pos_semidef (σ : Matrix (Fin 3) (Fin 3) ℂ) (hσ : open scoped ComplexOrder in σ.PosSemidef) : open scoped ComplexOrder in (qutrit_convolution_choi σ).PosSemidef := by open scoped ComplexOrder in have key : qutrit_convolution_choi σ = ∑ s : Fin 3, (Matrix.of fun (p : Fin 3 × Fin 3) (y : Fin 3) => if p.1 + p.2 = s ∧ p.2 - p.1 = y then (1 : ℂ) else 0) * ((1 / 3 : ℝ) • σ) * (Matrix.of fun (p : Fin 3 × Fin 3) (y : Fin 3) => if p.1 + p.2 = s ∧ p.2 - p.1 = y then (1 : ℂ) else 0).conjTranspose := by have h1 : (-1 : Fin 3) = 2 := rfl have h2 : (-2 : Fin 3) = 1 := rfl ext ⟨a, b⟩ ⟨a', b'⟩ simp only [qutrit_convolution_choi, Matrix.sum_apply, Matrix.mul_apply, Matrix.conjTranspose_apply, Matrix.of_apply, Matrix.smul_apply, Fin.sum_univ_three] fin_cases a <;> fin_cases b <;> fin_cases a' <;> fin_cases b' <;> simp (decide := true) <;> (try simp only [h1, h2]) <;> ring rw [key] exact Matrix.posSemidef_sum _ fun s _ => (hσ.smul (by norm_num : (0 : ℝ) ≤ 1 / 3)).mul_mul_conjTranspose_same _