AFTD Auto-Formalizing Theoretical Domains

prime_convolution_choi

def

With d : ℕ, r : ZMod d and σ : Matrix (Fin d) (Fin d) ℂ (no hypotheses), returns the complex matrix indexed by Fin d × Fin d whose entry at row (a, b) and column (a', b') equals (1/d) times the sum over j, l in Fin d of σ j l restricted to the pairs with b = r·a + j, b' = r·a' + l and a + j = a' + l, all three equations read in ZMod d (elements of Fin d cast to ZMod d through their natural-number values). This is the normalised Choi matrix J = (1/d) Σ_{a,a'} |a⟩⟨a'| ⊗ N(|a⟩⟨a'|) of the channel N(ρ) = Tr_2[U_r (ρ ⊗ σ) U_r†] with U_r|i,j⟩ = |r·i + j, i + j⟩ over ZMod d: the first index is the reference system, the second the channel output.

Statement

noncomputable def prime_convolution_choi (d : ℕ) (r : ZMod d) (σ : Matrix (Fin d) (Fin d) ℂ) :
    Matrix (Fin d × Fin d) (Fin d × Fin d) ℂ
Defined in
OP-2466 (proposed here; it builds on the qutrit convolution channels of arXiv:2609.16200, whose Theorem 8 gives the exact PPT and entanglement-breaking threshold 2/5 on a balanced two-level qutrit slice, and on arXiv:2611.09594, which shows PPT and entanglement breaking differ for another convolution environment). The Choi matrix of the convolution channel, written out from the unitary U_r: the standard Choi matrix, normalised by 1/d.
Verified
26 Nov 2026
Axioms
none listed
Used by 6

Read back from the Lean

Given a natural number d, an element r : ZMod d, and a d × d complex matrix σ (indexed by Fin d × Fin d), prime_convolution_choi d r σ is defined as the (d × d) × (d × d) complex matrix (indexed by (Fin d × Fin d) × (Fin d × Fin d)) whose entry at row x = (x₁, x₂) and column y = (y₁, y₂) is: (1 / (d : ℂ)) * ∑_{j : Fin d} ∑_{l : Fin d} (if x₂ = r * x₁ + j ∧ y₂ = r * y₁ + l ∧ x₁ + j = y₁ + l in ZMod d then σ j l else 0), where x₁, x₂, y₁, j, and l are coerced from Fin d to ℕ and then to ZMod d.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- The normalised Choi matrix of the convolution channel `ρ ↦ Tr₂[U_r (ρ ⊗ σ) U_r†]`, `U_r|i,j⟩ = |r i + j, i + j⟩` over `ZMod d`. -/
noncomputable def prime_convolution_choi (d : ℕ) (r : ZMod d) (σ : Matrix (Fin d) (Fin d) ℂ) :
    Matrix (Fin d × Fin d) (Fin d × Fin d) ℂ :=
  Matrix.of fun x y => (1 / (d : ℂ)) * ∑ j : Fin d, ∑ l : Fin d,
    if ((x.2 : ℕ) : ZMod d) = r * ((x.1 : ℕ) : ZMod d) + ((j : ℕ) : ZMod d) ∧
        ((y.2 : ℕ) : ZMod d) = r * ((y.1 : ℕ) : ZMod d) + ((l : ℕ) : ZMod d) ∧
        ((x.1 : ℕ) : ZMod d) + ((j : ℕ) : ZMod d) = ((y.1 : ℕ) : ZMod d) + ((l : ℕ) : ZMod d)
    then σ j l else 0
See it in the graphDiscuss this resultChallenge it