qutrit_convolution_choi_eq_channel_choi
For every complex 3×3 matrix σ and all a, b, a', b' in Fin 3, the entry of qutrit_convolution_choi σ at row (a,b), column (a',b') equals (1/3) times the (b,b') entry of N_σ(|a⟩⟨a'|) = Tr_2[U (|a⟩⟨a'| ⊗ σ) U†], where U|x,y⟩ = |x+y, x+2y⟩ over F_3: explicitly (1/3) Σ_e Σ_r Σ_s U[(b,e),r] · (|a⟩⟨a'| ⊗ σ)[r,s] · U[(b',e),s], with r, s ranging over Fin 3 × Fin 3, U[(u,v),r] = 1 if (u,v) = (r.1 + r.2, r.1 + 2 r.2) and 0 otherwise, and (|a⟩⟨a'| ⊗ σ)[r,s] = (1 if r.1 = a and s.1 = a', else 0) · σ(r.2, s.2).
Statement
theorem qutrit_convolution_choi_eq_channel_choi (σ : Matrix (Fin 3) (Fin 3) ℂ) (a b a' b' : Fin 3) : qutrit_convolution_choi σ (a, b) (a', b') = (1 / 3 : ℂ) * ∑ e : Fin 3, ∑ r : Fin 3 × Fin 3, ∑ s : Fin 3 × Fin 3, (if (b, e) = (r.1 + r.2, r.1 + 2 * r.2) then (1 : ℂ) else 0) * ((if r.1 = a ∧ s.1 = a' then (1 : ℂ) else 0) * σ r.2 s.2) * (if (b', e) = (s.1 + s.2, s.1 + 2 * s.2) then (1 : ℂ) else 0)
- Source
- Sanity lemma for the definition qutrit_convolution_choi, serving OP-2299: its entries are those of the Choi matrix of the convolution channel.
- 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 first simplifies the channel's output Choi matrix formula by decomposing the pairs r and s and collapsing their first components to a and a' respectively via delta factors. Then it establishes equality with the convolution Choi matrix by expanding all finite sums over Fin 3 and verifying the identity by case exhaustion over all 81 combinations of a, b, a', b'.
collapse r
decompose r and collapse to r.1 = a
uses
Finset.sum_congr,Fintype.sum_prod_type,Finset.sum_eq_singlerefine Finset.sum_congr rfl fun e _ => ?_ rw [Fintype.sum_prod_type] rw [Finset.sum_eq_single a]
collapse s
decompose s and collapse to s.1 = a'
uses
Finset.sum_congr,Fintype.sum_prod_type,Finset.sum_eq_single· refine Finset.sum_congr rfl fun y _ => ?_ rw [Fintype.sum_prod_type] rw [Finset.sum_eq_single a'] · refine Finset.sum_congr rfl fun y' _ => ?_
simplify summand
case split on the condition
uses
Prod.mk.injEq,and_self,if_true,one_mul,if_pos,if_negsimp only [Prod.mk.injEq, and_self, if_true, one_mul] by_cases h : b = a + y ∧ e = a + 2 * y ∧ b' = a' + y' ∧ e = a' + 2 * y' · rw [if_pos h, if_pos ⟨h.1, h.2.1⟩, if_pos ⟨h.2.2.1, h.2.2.2⟩]; ring · rw [if_neg h] by_cases h1 : b = a + y ∧ e = a + 2 * y · have h2 : ¬ (b' = a' + y' ∧ e = a' + 2 * y') := fun h2 => h ⟨h1.1, h1.2, h2.1, h2.2⟩ rw [if_neg h2]; ring · rw [if_neg h1]; ring
zero for s.1 != a' automation
sum vanishes
uses
Finset.sum_eq_zero· intro x _ hx refine Finset.sum_eq_zero fun y' _ => ?_ simp [hx] · simp
zero for r.1 != a automation
sum vanishes
uses
Finset.sum_eq_zero· intro x _ hx refine Finset.sum_eq_zero fun y _ => Finset.sum_eq_zero fun s _ => ?_ simp [hx] · simp
apply collapse
rewrite using in1187_collapse
uses
in1187_collapserw [in1187_collapse]expand definitions
expand definition of choi and sum
uses
qutrit_convolution_choi,Matrix.of_apply,Fin.sum_univ_threesimp only [qutrit_convolution_choi, Matrix.of_apply, Fin.sum_univ_three]exhaust 81 cases automation
case split on a, b, a', b'
uses
Fin.ext_ifffin_cases a <;> fin_cases b <;> fin_cases a' <;> fin_cases b' <;> simp [Fin.ext_iff] <;> (have h1 : (-1 : Fin 3) = 2 := rfl have h2 : (-2 : Fin 3) = 1 := rfl try simp only [h1, h2] ring)
Finset.sum_congr- congruence of sums
Fintype.sum_prod_type- sum over product type
Finset.sum_eq_single- sum of single non-zero term
Prod.mk.injEq- injectivity of pair
and_self- p and p is p
if_true- if true
one_mul- one mul
if_pos- if pos
if_neg- if neg
Finset.sum_eq_zero- sum of zeros
in1187_collapse- collapse lemma
qutrit_convolution_choi- choi definition
Matrix.of_apply- matrix apply
Fin.sum_univ_three- sum over fin 3
Fin.ext_iff- fin extensionality
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 in1187_collapse (σ : Matrix (Fin 3) (Fin 3) ℂ) (a b a' b' : Fin 3) : (∑ e : Fin 3, ∑ r : Fin 3 × Fin 3, ∑ s : Fin 3 × Fin 3, (if (b, e) = (r.1 + r.2, r.1 + 2 * r.2) then (1 : ℂ) else 0) * ((if r.1 = a ∧ s.1 = a' then (1 : ℂ) else 0) * σ r.2 s.2) * (if (b', e) = (s.1 + s.2, s.1 + 2 * s.2) then (1 : ℂ) else 0)) = ∑ e : Fin 3, ∑ y : Fin 3, ∑ y' : Fin 3, if b = a + y ∧ e = a + 2 * y ∧ b' = a' + y' ∧ e = a' + 2 * y' then σ y y' else 0 := by refine Finset.sum_congr rfl fun e _ => ?_ rw [Fintype.sum_prod_type] rw [Finset.sum_eq_single a] · refine Finset.sum_congr rfl fun y _ => ?_ rw [Fintype.sum_prod_type] rw [Finset.sum_eq_single a'] · refine Finset.sum_congr rfl fun y' _ => ?_ simp only [Prod.mk.injEq, and_self, if_true, one_mul] by_cases h : b = a + y ∧ e = a + 2 * y ∧ b' = a' + y' ∧ e = a' + 2 * y' · rw [if_pos h, if_pos ⟨h.1, h.2.1⟩, if_pos ⟨h.2.2.1, h.2.2.2⟩]; ring · rw [if_neg h] by_cases h1 : b = a + y ∧ e = a + 2 * y · have h2 : ¬ (b' = a' + y' ∧ e = a' + 2 * y') := fun h2 => h ⟨h1.1, h1.2, h2.1, h2.2⟩ rw [if_neg h2]; ring · rw [if_neg h1]; ring · intro x _ hx refine Finset.sum_eq_zero fun y' _ => ?_ simp [hx] · simp · intro x _ hx refine Finset.sum_eq_zero fun y _ => Finset.sum_eq_zero fun s _ => ?_ simp [hx] · simptheorem qutrit_convolution_choi_eq_channel_choi (σ : Matrix (Fin 3) (Fin 3) ℂ) (a b a' b' : Fin 3) : qutrit_convolution_choi σ (a, b) (a', b') = (1 / 3 : ℂ) * ∑ e : Fin 3, ∑ r : Fin 3 × Fin 3, ∑ s : Fin 3 × Fin 3, (if (b, e) = (r.1 + r.2, r.1 + 2 * r.2) then (1 : ℂ) else 0) * ((if r.1 = a ∧ s.1 = a' then (1 : ℂ) else 0) * σ r.2 s.2) * (if (b', e) = (s.1 + s.2, s.1 + 2 * s.2) then (1 : ℂ) else 0) := by rw [in1187_collapse] simp only [qutrit_convolution_choi, Matrix.of_apply, Fin.sum_univ_three] fin_cases a <;> fin_cases b <;> fin_cases a' <;> fin_cases b' <;> simp [Fin.ext_iff] <;> (have h1 : (-1 : Fin 3) = 2 := rfl have h2 : (-2 : Fin 3) = 1 := rfl try simp only [h1, h2] ring)