qutrit_convolution_choi_ppt_iff_wigner_nonneg
Let σ : Matrix (Fin 3) (Fin 3) ℂ be Hermitian (σ.IsHermitian) and let ω = exp(2πi/3). The partial transpose on the second factor of qutrit_convolution_choi σ, i.e. the matrix indexed by Fin 3 × Fin 3 whose (p, q) entry is qutrit_convolution_choi σ (p.1, q.2) (q.1, p.2), is positive semidefinite if and only if for all c, p in Fin 3 the real part of Σ_{t : Fin 3} ω^(p.val * t.val) * σ(c − t, c + t) is nonnegative (indices of σ computed in Fin 3, i.e. modulo 3). The nine numbers (1/3) Σ_t ω^{pt} σ(c−t, c+t) are the values of the discrete Wigner function of σ, so the Choi matrix is PPT exactly when the environment σ has a nonnegative discrete Wigner function.
Statement
theorem qutrit_convolution_choi_ppt_iff_wigner_nonneg (σ : Matrix (Fin 3) (Fin 3) ℂ) (hσ : σ.IsHermitian) : open scoped ComplexOrder in (Matrix.of fun (p q : Fin 3 × Fin 3) => qutrit_convolution_choi σ (p.1, q.2) (q.1, p.2)).PosSemidef ↔ ∀ c p : Fin 3, 0 ≤ (∑ t : Fin 3, Complex.exp (2 * Real.pi * Complex.I / 3) ^ (p.val * t.val) * σ (c - t) (c + t)).re
- Related work
- OP-2299; the screen's signal on it (experiments 39257-39263, reproduced in experiment 39657): the partial transpose of the Choi matrix of the qutrit convolution channel is diagonal in the Weyl-Bell basis with the discrete Wigner function of the environment as eigenvalues. That convolution channels with a Wigner-positive environment are PPT is the starting point of the convolution-channel work the entry builds on; this is the exact two-sided form for one qutrit.
- Verified
- 26 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- 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…
- cFor a group $G$ and an element $s \in G$, the local count $c_G(s)$ is the cardinality of the set of elements $g \in G$ such that…
Read back from the Lean
Let σ be a $3 \times 3$ complex matrix (Matrix (Fin 3) (Fin 3) ℂ) such that σ is Hermitian (hσ : σ.IsHermitian).
The theorem asserts that the following two statements are equivalent:
1. The $(3 \times 3) \times (3 \times 3)$ complex matrix (indexed by Fin 3 × Fin 3) whose entry at row p and column q is given by the partial transpose of the qutrit convolution Choi matrix of σ—specifically, qutrit_convolution_choi σ (p.1, q.2) (q.1, p.2)—is positive semidefinite (PosSemidef).
2. For all c : Fin 3 and p : Fin 3, the real part of the sum
$$\sum_{t : \text{Fin } 3} \exp\left(\frac{2\pi i}{3}\right)^{p.\text{val} \cdot t.\text{val}} \sigma(c - t, c + t)$$
is greater than or equal to $0$.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
The Choi matrix of the qutrit convolution channel, after partial transposition on the second factor, blocks into three 3x3 circulant submatrices indexed by the difference of coordinates. Using the discrete Fourier transform over Fin 3, this partially transposed Choi matrix is diagonalized, expressing its quadratic form as a conical combination of squared Fourier components whose coefficients are the discrete Wigner function values of the environment state σ. When the Wigner function is everywhere nonnegative, the quadratic form is manifestly a sum of nonnegative terms, establishing positive semidefiniteness. Conversely, evaluating the quadratic form on Fourier-phase test vectors and invoking character orthogonality isolates each individual Wigner value, showing that positive semidefiniteness forces every Wigner value to be nonnegative.
A 3x3 circulant bilinear form is diagonalized by the discrete Fourier transform over Fin 3 whenever 1 + w + w^2 = 0. automation
The algebraic identity decomposes the sum 3 ∑_i s_i (g * u)_i into three Fourier components ∑_{k=0}^2 (∑_j w^{kj} g_j)(∑_i w^{2ki} s_i)(∑_j w^{kj} u_j) by a linear combination of the cyclotomic relation 1 + w + w^2 = 0.
theorem in1187_circ (w g0 g1 g2 u0 u1 u2 s0 s1 s2 : ℂ) (h : 1 + w + w ^ 2 = 0) : 3 * (s0 * (g0 * u0 + g2 * u1 + g1 * u2) + s1 * (g1 * u0 + g0 * u1 + g2 * u2) + s2 * (g2 * u0 + g1 * u1 + g0 * u2)) = (g0 + g1 + g2) * (s0 + s1 + s2) * (u0 + u1 + u2) + (g0 + w * g1 + w ^ 2 * g2) * (s0 + w ^ 2 * s1 + w ^ 4 * s2) * (u0 + w * u1 + w ^ 2 * u2) + (g0 + w ^ 2 * g1 + w ^ 4 * g2) * (s0 + w ^ 4 * s1 + w ^ 8 * s2) * (u0 + w ^ 2 * u1 + w ^ 4 * u2) := by linear_combination (-g0*s0*u1 - g0*s0*u2 - g0*s1*u0 + 2*g0*s1*u1 - g0*s1*u2 - g0*s2*u0 - g0*s2*u1 + 2*g0*s2*u2 - g1*s0*u0 - g1*s0*u1 + 2*g1*s0*u2 + 2*g1*s1*u0 - g1*s1*u1 - g1*s1*u2 - g1*s2*u0 + 2*g1*s2*u1 - g1*s2*u2 - g2*s0*u0 + 2*g2*s0*u1 - g2*s0*u2 - g2*s1*u0 - g2*s1*u1 + 2*g2*s1*u2 + 2*g2*s2*u0 - g2*s2*u1 - g2*s2*u2*w^14 + g2*s2*u2*w^13 - g2*s2*u2 + w^12*(-g1*s2*u2 - g2*s2*u1) + w^11*(g1*s2*u2 + g2*s2*u1 - g2*s2*u2) + w^10*(-g0*s2*u2 - g1*s2*u1 - g2*s1*u2 - g2*s2*u0 + g2*s2*u2) + w^9*(g0*s2*u2 + g1*s2*u1 - g1*s2*u2 + g2*s1*u2 + g2*s2*u0 - g2*s2*u1) + w^8*(-g0*s2*u1 - g1*s1*u2 - g1*s2*u0 + g1*s2*u2 - g2*s1*u1 + g2*s2*u1 - g2*s2*u2) + w^7*(g0*s2*u1 - g0*s2*u2 + g1*s1*u2 + g1*s2*u0 - g1*s2*u1 + g2*s1*u1 - g2*s1*u2 - g2*s2*u0 + g2*s2*u2) + w^6*(-g0*s1*u2 - g0*s2*u0 + g0*s2*u2 - g1*s1*u1 + g1*s2*u1 - g1*s2*u2 - g2*s0*u2 - g2*s1*u0 + g2*s1*u2 + g2*s2*u0 - g2*s2*u1 - g2*s2*u2) + w^5*(g0*s1*u2 + g0*s2*u0 - g0*s2*u1 + g1*s1*u1 - g1*s1*u2 - g1*s2*u0 + g2*s0*u2 + g2*s1*u0 - g2*s1*u1) + w^4*(-g0*s1*u1 + g0*s2*u1 - 2*g0*s2*u2 - g1*s0*u2 - g1*s1*u0 + g1*s1*u2 + g1*s2*u0 - 2*g1*s2*u1 + g1*s2*u2 - g2*s0*u1 + g2*s1*u1 - 2*g2*s1*u2 - 2*g2*s2*u0 + g2*s2*u1 + g2*s2*u2) + w^3*(g0*s1*u1 - g0*s1*u2 - g0*s2*u0 - g0*s2*u1 + 2*g0*s2*u2 + g1*s0*u2 + g1*s1*u0 - g1*s1*u1 - g1*s1*u2 - g1*s2*u0 + 2*g1*s2*u1 - g1*s2*u2 + g2*s0*u1 - g2*s0*u2 - g2*s1*u0 - g2*s1*u1 + 2*g2*s1*u2 + 2*g2*s2*u0 - g2*s2*u1 - g2*s2*u2) + w^2*(-g0*s0*u2 - g0*s1*u0 - g1*s0*u1 - g2*s0*u0) + w*(g0*s0*u2 + g0*s1*u0 - 2*g0*s1*u1 + g0*s1*u2 + g0*s2*u0 + g0*s2*u1 - 2*g0*s2*u2 + g1*s0*u1 - 2*g1*s0*u2 - 2*g1*s1*u0 + g1*s1*u1 + g1*s1*u2 + g1*s2*u0 - 2*g1*s2*u1 + g1*s2*u2 + g2*s0*u0 - 2*g2*s0*u1 + g2*s0*u2 + g2*s1*u0 + g2*s1*u1 - 2*g2*s1*u2 - 2*g2*s2*u0 + g2*s2*u1 + g2*s2*u2)) * h
The bilinear form of the partially transposed Choi matrix decomposes into a sum over shifts c and momenta p of discrete Wigner components times Fourier components of the test vectors.
Expanding the matrix-vector product, dot product, and the definition of the Choi matrix partitions the 9x9 matrix into three 3x3 blocks indexed by the shift c = q.2 - q.1 in Fin 3. Each block has circulant structure. Applying the circulant diagonalization lemma in1187_circ to each block (c = 0, 1, 2) decomposes 9 s · M x into the Fourier basis.
uses
in1187_circtheorem in1187_qf (σ : Matrix (Fin 3) (Fin 3) ℂ) (w : ℂ) (h : 1 + w + w ^ 2 = 0) (s x : Fin 3 × Fin 3 → ℂ) : 9 * (s ⬝ᵥ (Matrix.of fun (p q : Fin 3 × Fin 3) => qutrit_convolution_choi σ (p.1, q.2) (q.1, p.2)).mulVec x) = ∑ c : Fin 3, ∑ p : Fin 3, (∑ t : Fin 3, w ^ (p.val * t.val) * σ (c - t) (c + t)) * ((∑ a : Fin 3, w ^ (2 * p.val * a.val) * s (a, a + c)) * (∑ a : Fin 3, w ^ (p.val * a.val) * x (a, a + c))) := by have h1 : (-1 : Fin 3) = 2 := rfl have h2 : (-2 : Fin 3) = 1 := rfl simp [dotProduct, Matrix.mulVec, Fintype.sum_prod_type, Fin.sum_univ_three, qutrit_convolution_choi, h1, h2] linear_combination in1187_circ w (σ 0 0) (σ 2 1) (σ 1 2) (x (0, 0)) (x (1, 1)) (x (2, 2)) (s (0, 0)) (s (1, 1)) (s (2, 2)) h + in1187_circ w (σ 1 1) (σ 0 2) (σ 2 0) (x (0, 1)) (x (1, 2)) (x (2, 0)) (s (0, 1)) (s (1, 2)) (s (2, 0)) h + in1187_circ w (σ 2 2) (σ 1 0) (σ 0 1) (x (0, 2)) (x (1, 0)) (x (2, 1)) (s (0, 2)) (s (1, 0)) (s (2, 1)) h
The characters of Fin 3 satisfy an orthogonality relation that inverts the discrete Fourier transform and isolates each momentum component ℓ(p). automation
By case analysis on p in {0, 1, 2}, expanding the sums over Fin 3 and reducing modulo 1 + w + w^2 = 0 via linear combination shows that the double character sum simplifies to 9 ℓ(p).
uses
Fin.sum_univ_threetheorem in1187_orth (w : ℂ) (h : 1 + w + w ^ 2 = 0) (ℓ : Fin 3 → ℂ) (p : Fin 3) : ∑ p' : Fin 3, ℓ p' * ((∑ a : Fin 3, w ^ (2 * p'.val * a.val) * w ^ (p.val * a.val)) * (∑ a : Fin 3, w ^ (p'.val * a.val) * w ^ (2 * p.val * a.val))) = 9 * ℓ p := by fin_cases p · simp [Fin.sum_univ_three] linear_combination (ℓ 1 + ℓ 2*w^10 - ℓ 2*w^9 + ℓ 2*w^8 + ℓ 2*w^6 - ℓ 2*w^5 - ℓ 2*w + ℓ 2 + w^4*(ℓ 1 + ℓ 2) + w^2*(ℓ 1 + ℓ 2)) * h · simp [Fin.sum_univ_three] linear_combination (ℓ 0*w^2 + ℓ 0 + ℓ 1*w^10 - ℓ 1*w^9 + 3*ℓ 1*w^7 - 3*ℓ 1*w^6 - 8*ℓ 1 + ℓ 2*w^16 - ℓ 2*w^15 + ℓ 2*w^13 + ℓ 2*w^8 + ℓ 2 + w^4*(ℓ 0 + 6*ℓ 1) + w^3*(-6*ℓ 1 + ℓ 2) + w*(8*ℓ 1 - ℓ 2)) * h · simp [Fin.sum_univ_three] linear_combination (-ℓ 0*w^5 + ℓ 0*w^2 + ℓ 0 + ℓ 1 + ℓ 2*w^22 - ℓ 2*w^21 + ℓ 2*w^19 - ℓ 2*w^18 - 3*ℓ 2*w^12 + 6*ℓ 2*w^7 - 8*ℓ 2 + w^16*(ℓ 1 + 3*ℓ 2) + w^15*(-ℓ 1 - 3*ℓ 2) + w^13*(ℓ 1 + 3*ℓ 2) + w^10*(ℓ 0 + 6*ℓ 2) + w^9*(-ℓ 0 - 6*ℓ 2) + w^8*(ℓ 0 + ℓ 1) + w^6*(ℓ 0 - 6*ℓ 2) + w^4*(ℓ 0 + 8*ℓ 2) + w^3*(ℓ 1 - 8*ℓ 2) + w*(-ℓ 0 - ℓ 1 + 8*ℓ 2)) * h
The primitive root of unity w = exp(2πi/3) satisfies w^3 = 1, w ≠ 1, and 1 + w + w^2 = 0.
Since 3 * (2πi/3) = 2πi, w^3 = exp(2πi) = 1. If w were 1, then 2πi/3 = 2πi * n for an integer n, implying 1 = 3n in integers, a contradiction. Factoring w^3 - 1 = (w - 1)(1 + w + w^2) = 0 and using w ≠ 1 yields 1 + w + w^2 = 0.
uses
Complex.exp_nat_mul,Complex.exp_two_pi_mul_I,Complex.exp_eq_one_iff,Real.pi_ne_zero,mul_eq_zero,sub_eq_zerotheorem qutrit_convolution_choi_ppt_iff_wigner_nonneg (σ : Matrix (Fin 3) (Fin 3) ℂ) (hσ : σ.IsHermitian) : open scoped ComplexOrder in (Matrix.of fun (p q : Fin 3 × Fin 3) => qutrit_convolution_choi σ (p.1, q.2) (q.1, p.2)).PosSemidef ↔ ∀ c p : Fin 3, 0 ≤ (∑ t : Fin 3, Complex.exp (2 * Real.pi * Complex.I / 3) ^ (p.val * t.val) * σ (c - t) (c + t)).re := by open scoped ComplexOrder in set w : ℂ := Complex.exp (2 * Real.pi * Complex.I / 3) with hw have hw3 : w ^ 3 = 1 := by rw [hw, ← Complex.exp_nat_mul] convert Complex.exp_two_pi_mul_I using 2 push_cast; ring have hw1 : w ≠ 1 := by intro h rw [hw, Complex.exp_eq_one_iff] at h obtain ⟨n, hn⟩ := h have hpi : (2 * (Real.pi : ℂ) * Complex.I) ≠ 0 := by simp [Real.pi_ne_zero] have h0 : (2 * (Real.pi : ℂ) * Complex.I) * (1 - 3 * (n : ℂ)) = 0 := by linear_combination 3 * hn rcases mul_eq_zero.1 h0 with h' | h' · exact hpi h' · have h3 : (1 : ℂ) = 3 * (n : ℂ) := by linear_combination h' have h4 : (1 : ℤ) = 3 * n := by exact_mod_cast h3 omega have h : 1 + w + w ^ 2 = 0 := by have h0 : (w - 1) * (1 + w + w ^ 2) = 0 := by linear_combination hw3 rcases mul_eq_zero.1 h0 with h' | h' · exact absurd (sub_eq_zero.1 h') hw1 · exact h'
The complex conjugate of w is w^2 = w⁻¹.
Complex conjugation of exp((2π/3)i) yields exp(-(2π/3)i) = w⁻¹. Since w^3 = 1 and w ≠ 0, clearing denominators gives w⁻¹ = w^2.
uses
Complex.exp_conj,Complex.exp_neg,Complex.conj_ofReal,Complex.conj_I,Complex.exp_ne_zerohave hs : star w = w ^ 2 := by have e1 : star w = w⁻¹ := by have hz : (2 * (Real.pi : ℂ) * Complex.I / 3) = ((2 * Real.pi / 3 : ℝ) : ℂ) * Complex.I := by push_cast; ring rw [hw, hz, Complex.star_def, ← Complex.exp_conj, ← Complex.exp_neg, map_mul, Complex.conj_ofReal, Complex.conj_I] congr 1 ring have hne : w ≠ 0 := by rw [hw]; exact Complex.exp_ne_zero _ rw [e1] field_simp linear_combination -hw3
For each shift c and momentum p, the discrete Wigner sum ∑_t w^{pt} σ(c - t, c + t) is self-conjugate and hence purely real.
Because σ is Hermitian, taking the complex conjugate sends σ(c - t, c + t) to σ(c + t, c - t) and w^{pt} to w^{-pt}. Substituting t ↦ -t in Fin 3 exchanges c - t and c + t, so the sum equals its own complex conjugate. A complex number equal to its conjugate has zero imaginary part and equals its real part.
uses
Fin.sum_univ_three,Complex.conj_eq_iff_im,Complex.exthave hσ' : ∀ i j, star (σ i j) = σ j i := fun i j => hσ.apply j i have hstar : ∀ c p : Fin 3, star (∑ t : Fin 3, w ^ (p.val * t.val) * σ (c - t) (c + t)) = ∑ t : Fin 3, w ^ (p.val * t.val) * σ (c - t) (c + t) := by intro c p have e2 : c - 2 = c + 1 := by fin_cases c <;> rfl have e3 : c + 2 = c - 1 := by fin_cases c <;> rfl have h4 : w ^ (4 * p.val) = w ^ p.val := by rw [show 4 * p.val = p.val + 3 * p.val by ring, pow_add, pow_mul, hw3, one_pow, mul_one] simp only [Fin.sum_univ_three, star_add, star_mul', star_pow, hs, hσ', ← pow_mul, Fin.val_zero, Fin.val_one, Fin.val_two, sub_zero, add_zero, e2, e3] linear_combination (σ (c - 1) (c + 1)) * h4 have hreal : ∀ c p : Fin 3, (∑ t : Fin 3, w ^ (p.val * t.val) * σ (c - t) (c + t)) = (((∑ t : Fin 3, w ^ (p.val * t.val) * σ (c - t) (c + t)).re : ℝ) : ℂ) := by intro c p have him := Complex.conj_eq_iff_im.1 (hstar c p) exact Complex.ext (by simp) (by simpa using him)
The partially transposed Choi matrix is Hermitian.
We verify entrywise that the entry at ((a, b), (a', b')) is the conjugate of the entry at ((a', b'), (a, b)). Nonzero entries occur precisely when a + b' = a' + b, with value σ(b - a', b' - a) / 3. Its complex conjugate is σ(b' - a, b - a') / 3 by Hermiticity of σ, matching the transpose.
uses
qutrit_convolution_choi,Matrix.conjTranspose_applyhave herm : (Matrix.of fun (p q : Fin 3 × Fin 3) => qutrit_convolution_choi σ (p.1, q.2) (q.1, p.2)).IsHermitian := by ext ⟨a, b⟩ ⟨a', b'⟩ simp only [Matrix.conjTranspose_apply, Matrix.of_apply, qutrit_convolution_choi] by_cases hc : a + b' = a' + b · rw [if_pos hc, if_pos hc.symm, star_div₀, hσ']; simp · rw [if_neg hc, if_neg (fun h' => hc h'.symm)]; simp
Positive semidefiniteness of the partially transposed Choi matrix reduces to nonnegativity of its quadratic form for all vectors.
By Matrix.posSemidef_iff_dotProduct_mulVec, an operator is positive semidefinite if and only if it is Hermitian and its quadratic form is nonnegative on all vectors. Since Hermiticity is already proven, this splits the theorem into the forward and backward implications on the quadratic form.
uses
Matrix.posSemidef_iff_dotProduct_mulVecrw [Matrix.posSemidef_iff_dotProduct_mulVec] constructor
If the partially transposed Choi matrix is positive semidefinite, then every discrete Wigner sum has nonnegative real part.
Given c, p in Fin 3, we evaluate the quadratic form on the test vector x(a, b) = w^{2pa} when b - a = c and 0 otherwise, whose conjugate is x*(a, b) = w^{pa} when b - a = c. In in1187_qf, all shifts other than c vanish, and the character orthogonality lemma in1187_orth isolates the momentum p, reducing 9 x* M x to 9 ∑_t w^{pt} σ(c - t, c + t). Since x* M x ≥ 0, this multiple is nonnegative, so the real part of the Wigner sum is nonnegative.
uses
in1187_qf,in1187_orth,Complex.nonneg_iff,Complex.re_ofReal_mul· rintro ⟨-, hpos⟩ c p have hx := hpos (fun q : Fin 3 × Fin 3 => if q.2 - q.1 = c then w ^ (2 * p.val * q.1.val) else 0) have hsx : star (fun q : Fin 3 × Fin 3 => if q.2 - q.1 = c then w ^ (2 * p.val * q.1.val) else 0) = fun q : Fin 3 × Fin 3 => if q.2 - q.1 = c then w ^ (p.val * q.1.val) else 0 := by funext q rw [Pi.star_apply] split_ifs · have h31 : w ^ (3 * (p.val * q.1.val)) = 1 := by rw [pow_mul, hw3, one_pow] rw [star_pow, hs, ← pow_mul, show 2 * (2 * p.val * q.1.val) = p.val * q.1.val + 3 * (p.val * q.1.val) by ring, pow_add, h31, mul_one] · simp rw [hsx] at hx have key := in1187_qf σ w h (fun q : Fin 3 × Fin 3 => if q.2 - q.1 = c then w ^ (p.val * q.1.val) else 0) (fun q : Fin 3 × Fin 3 => if q.2 - q.1 = c then w ^ (2 * p.val * q.1.val) else 0) have hcc : ∀ a c' : Fin 3, (a + c' - a = c) ↔ c = c' := by intro a c'; rw [add_sub_cancel_left]; exact eq_comm simp only [hcc, mul_ite, mul_zero, Finset.sum_ite_irrel, Finset.sum_const_zero, ite_mul, zero_mul, Finset.sum_ite_eq, Finset.mem_univ, if_true] at key rw [in1187_orth w h (fun p' => ∑ t : Fin 3, w ^ (p'.val * t.val) * σ (c - t) (c + t)) p] at key have h9 : (0 : ℂ) ≤ ((9 : ℝ) : ℂ) * (∑ t : Fin 3, w ^ (p.val * t.val) * σ (c - t) (c + t)) := by have h90 : (0 : ℂ) ≤ 9 * (∑ t : Fin 3, w ^ (p.val * t.val) * σ (c - t) (c + t)) := by rw [← key] exact mul_nonneg (by norm_num) hx simpa using h90 have h9r := (Complex.nonneg_iff.1 h9).1 rw [Complex.re_ofReal_mul] at h9r linarithIf all discrete Wigner sums have nonnegative real part, then the partially transposed Choi matrix is positive semidefinite.
For an arbitrary vector x, applying in1187_qf with s = x* expresses 9 x* M x as a sum over c, p in Fin 3 of (∑_t w^{pt} σ(c - t, c + t)) * |∑_a w^{pa} x(a, a + c)|^2. Each Wigner sum is real and assumed nonnegative, and each squared Fourier component is nonnegative by star_mul_self_nonneg. A sum of products of nonnegative numbers is nonnegative, which proves x* M x ≥ 0.
uses
in1187_qf,star_mul_self_nonneg,Complex.zero_le_real,Finset.sum_nonneg· intro hL0 refine ⟨herm, fun x => ?_⟩ have key := in1187_qf σ w h (star x) x have e9 : star x ⬝ᵥ (Matrix.of fun (p q : Fin 3 × Fin 3) => qutrit_convolution_choi σ (p.1, q.2) (q.1, p.2)).mulVec x = (((1 / 9 : ℝ)) : ℂ) * (9 * (star x ⬝ᵥ (Matrix.of fun (p q : Fin 3 × Fin 3) => qutrit_convolution_choi σ (p.1, q.2) (q.1, p.2)).mulVec x)) := by push_cast; ring rw [e9, key] refine mul_nonneg (Complex.zero_le_real.2 (by norm_num)) (Finset.sum_nonneg fun c _ => Finset.sum_nonneg fun p _ => ?_) rw [hreal c p] refine mul_nonneg (Complex.zero_le_real.2 (hL0 c p)) ?_ have hv : (∑ a : Fin 3, w ^ (2 * p.val * a.val) * star x (a, a + c)) = star (∑ a : Fin 3, w ^ (p.val * a.val) * x (a, a + c)) := by rw [star_sum] refine Finset.sum_congr rfl fun a _ => ?_ rw [star_mul', star_pow, hs, ← pow_mul, Pi.star_apply, mul_assoc] rw [hv] exact star_mul_self_nonneg _
in1187_circ- For complex numbers w, g_i, u_i, s_i, if 1 + w + w^2 = 0, then 3 ∑_i s_i (g * u)_i = ∑_{k=0}^2 (∑_j w^{kj} g_j)(∑_i w^{2ki} s_i)(∑_j w^{kj} u_j), diagonalizing a 3x3 circulant bilinear form into Fourier components.
Fin.sum_univ_three- The sum of a function over Fin 3 equals the sum of its values at 0, 1, and 2.
Complex.exp_nat_mul- For any complex number x and natural number n, exp(n * x) = (exp x)^n.
Complex.exp_two_pi_mul_I- exp(2πi) = 1.
Complex.exp_eq_one_iff- For a complex number x, exp x = 1 if and only if x = 2πi * n for some integer n.
Real.pi_ne_zero- The real number π is nonzero.
mul_eq_zero- In a domain, a product a * b = 0 if and only if a = 0 or b = 0.
sub_eq_zero- In an additive group, a - b = 0 if and only if a = b.
Complex.exp_conj- For any complex number x, exp(x̄) = conj(exp x).
Complex.exp_neg- For any complex number x, exp(-x) = (exp x)⁻¹.
Complex.conj_ofReal- The complex conjugate of a real number viewed as a complex number is itself.
Complex.conj_I- The complex conjugate of the imaginary unit I is -I.
Complex.exp_ne_zero- The complex exponential exp x is never zero.
Complex.conj_eq_iff_im- A complex number equals its complex conjugate if and only if its imaginary part is zero.
Complex.ext- Two complex numbers are equal if and only if their real parts and their imaginary parts are equal.
qutrit_convolution_choi- The Choi matrix of the qutrit convolution channel associated to environment state σ, with entry (p, q) equal to σ(p.2 - p.1, q.2 - q.1) / 3 when p.1 + p.2 = q.1 + q.2, and 0 otherwise.
Matrix.conjTranspose_apply- The (i, j) entry of the conjugate transpose of a matrix is the star of its (j, i) entry.
Matrix.posSemidef_iff_dotProduct_mulVec- A matrix M is positive semidefinite if and only if M is Hermitian and x* M x ≥ 0 for all vectors x.
in1187_qf- The bilinear form 9 s · M x for the partially transposed Choi matrix decomposes as ∑_{c, p} (∑_t w^{pt} σ(c - t, c + t)) (∑_a w^{2pa} s(a, a + c)) (∑_a w^{pa} x(a, a + c)).
in1187_orth- For any function ℓ on Fin 3 and p in Fin 3, the character sum ∑_{p'} ℓ(p') (∑_a w^{(2p'+p)a}) (∑_a w^{(p'+2p)a}) equals 9 ℓ(p).
Complex.nonneg_iff- A complex number z is nonnegative in the complex order if and only if its real part is nonnegative and its imaginary part is zero.
Complex.re_ofReal_mul- For a real number r and a complex number z, the real part of (r * z) equals r * z.re.
star_mul_self_nonneg- In a star-ordered ring, r* * r is nonnegative for any element r.
Complex.zero_le_real- A real number x satisfies x ≥ 0 if and only if its complex coercion satisfies (x : ℂ) ≥ 0.
Finset.sum_nonneg- A finite sum of nonnegative elements is nonnegative.
- The circulant diagonalization identity in1187_circ and the Fourier character orthogonality relation in1187_orth are verified purely algebraically modulo 1 + ω + ω^2 = 0 via the linear_combination tactic.
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_circ (w g0 g1 g2 u0 u1 u2 s0 s1 s2 : ℂ) (h : 1 + w + w ^ 2 = 0) : 3 * (s0 * (g0 * u0 + g2 * u1 + g1 * u2) + s1 * (g1 * u0 + g0 * u1 + g2 * u2) + s2 * (g2 * u0 + g1 * u1 + g0 * u2)) = (g0 + g1 + g2) * (s0 + s1 + s2) * (u0 + u1 + u2) + (g0 + w * g1 + w ^ 2 * g2) * (s0 + w ^ 2 * s1 + w ^ 4 * s2) * (u0 + w * u1 + w ^ 2 * u2) + (g0 + w ^ 2 * g1 + w ^ 4 * g2) * (s0 + w ^ 4 * s1 + w ^ 8 * s2) * (u0 + w ^ 2 * u1 + w ^ 4 * u2) := by linear_combination (-g0*s0*u1 - g0*s0*u2 - g0*s1*u0 + 2*g0*s1*u1 - g0*s1*u2 - g0*s2*u0 - g0*s2*u1 + 2*g0*s2*u2 - g1*s0*u0 - g1*s0*u1 + 2*g1*s0*u2 + 2*g1*s1*u0 - g1*s1*u1 - g1*s1*u2 - g1*s2*u0 + 2*g1*s2*u1 - g1*s2*u2 - g2*s0*u0 + 2*g2*s0*u1 - g2*s0*u2 - g2*s1*u0 - g2*s1*u1 + 2*g2*s1*u2 + 2*g2*s2*u0 - g2*s2*u1 - g2*s2*u2*w^14 + g2*s2*u2*w^13 - g2*s2*u2 + w^12*(-g1*s2*u2 - g2*s2*u1) + w^11*(g1*s2*u2 + g2*s2*u1 - g2*s2*u2) + w^10*(-g0*s2*u2 - g1*s2*u1 - g2*s1*u2 - g2*s2*u0 + g2*s2*u2) + w^9*(g0*s2*u2 + g1*s2*u1 - g1*s2*u2 + g2*s1*u2 + g2*s2*u0 - g2*s2*u1) + w^8*(-g0*s2*u1 - g1*s1*u2 - g1*s2*u0 + g1*s2*u2 - g2*s1*u1 + g2*s2*u1 - g2*s2*u2) + w^7*(g0*s2*u1 - g0*s2*u2 + g1*s1*u2 + g1*s2*u0 - g1*s2*u1 + g2*s1*u1 - g2*s1*u2 - g2*s2*u0 + g2*s2*u2) + w^6*(-g0*s1*u2 - g0*s2*u0 + g0*s2*u2 - g1*s1*u1 + g1*s2*u1 - g1*s2*u2 - g2*s0*u2 - g2*s1*u0 + g2*s1*u2 + g2*s2*u0 - g2*s2*u1 - g2*s2*u2) + w^5*(g0*s1*u2 + g0*s2*u0 - g0*s2*u1 + g1*s1*u1 - g1*s1*u2 - g1*s2*u0 + g2*s0*u2 + g2*s1*u0 - g2*s1*u1) + w^4*(-g0*s1*u1 + g0*s2*u1 - 2*g0*s2*u2 - g1*s0*u2 - g1*s1*u0 + g1*s1*u2 + g1*s2*u0 - 2*g1*s2*u1 + g1*s2*u2 - g2*s0*u1 + g2*s1*u1 - 2*g2*s1*u2 - 2*g2*s2*u0 + g2*s2*u1 + g2*s2*u2) + w^3*(g0*s1*u1 - g0*s1*u2 - g0*s2*u0 - g0*s2*u1 + 2*g0*s2*u2 + g1*s0*u2 + g1*s1*u0 - g1*s1*u1 - g1*s1*u2 - g1*s2*u0 + 2*g1*s2*u1 - g1*s2*u2 + g2*s0*u1 - g2*s0*u2 - g2*s1*u0 - g2*s1*u1 + 2*g2*s1*u2 + 2*g2*s2*u0 - g2*s2*u1 - g2*s2*u2) + w^2*(-g0*s0*u2 - g0*s1*u0 - g1*s0*u1 - g2*s0*u0) + w*(g0*s0*u2 + g0*s1*u0 - 2*g0*s1*u1 + g0*s1*u2 + g0*s2*u0 + g0*s2*u1 - 2*g0*s2*u2 + g1*s0*u1 - 2*g1*s0*u2 - 2*g1*s1*u0 + g1*s1*u1 + g1*s1*u2 + g1*s2*u0 - 2*g1*s2*u1 + g1*s2*u2 + g2*s0*u0 - 2*g2*s0*u1 + g2*s0*u2 + g2*s1*u0 + g2*s1*u1 - 2*g2*s1*u2 - 2*g2*s2*u0 + g2*s2*u1 + g2*s2*u2)) * htheorem in1187_qf (σ : Matrix (Fin 3) (Fin 3) ℂ) (w : ℂ) (h : 1 + w + w ^ 2 = 0) (s x : Fin 3 × Fin 3 → ℂ) : 9 * (s ⬝ᵥ (Matrix.of fun (p q : Fin 3 × Fin 3) => qutrit_convolution_choi σ (p.1, q.2) (q.1, p.2)).mulVec x) = ∑ c : Fin 3, ∑ p : Fin 3, (∑ t : Fin 3, w ^ (p.val * t.val) * σ (c - t) (c + t)) * ((∑ a : Fin 3, w ^ (2 * p.val * a.val) * s (a, a + c)) * (∑ a : Fin 3, w ^ (p.val * a.val) * x (a, a + c))) := by have h1 : (-1 : Fin 3) = 2 := rfl have h2 : (-2 : Fin 3) = 1 := rfl simp [dotProduct, Matrix.mulVec, Fintype.sum_prod_type, Fin.sum_univ_three, qutrit_convolution_choi, h1, h2] linear_combination in1187_circ w (σ 0 0) (σ 2 1) (σ 1 2) (x (0, 0)) (x (1, 1)) (x (2, 2)) (s (0, 0)) (s (1, 1)) (s (2, 2)) h + in1187_circ w (σ 1 1) (σ 0 2) (σ 2 0) (x (0, 1)) (x (1, 2)) (x (2, 0)) (s (0, 1)) (s (1, 2)) (s (2, 0)) h + in1187_circ w (σ 2 2) (σ 1 0) (σ 0 1) (x (0, 2)) (x (1, 0)) (x (2, 1)) (s (0, 2)) (s (1, 0)) (s (2, 1)) htheorem in1187_orth (w : ℂ) (h : 1 + w + w ^ 2 = 0) (ℓ : Fin 3 → ℂ) (p : Fin 3) : ∑ p' : Fin 3, ℓ p' * ((∑ a : Fin 3, w ^ (2 * p'.val * a.val) * w ^ (p.val * a.val)) * (∑ a : Fin 3, w ^ (p'.val * a.val) * w ^ (2 * p.val * a.val))) = 9 * ℓ p := by fin_cases p · simp [Fin.sum_univ_three] linear_combination (ℓ 1 + ℓ 2*w^10 - ℓ 2*w^9 + ℓ 2*w^8 + ℓ 2*w^6 - ℓ 2*w^5 - ℓ 2*w + ℓ 2 + w^4*(ℓ 1 + ℓ 2) + w^2*(ℓ 1 + ℓ 2)) * h · simp [Fin.sum_univ_three] linear_combination (ℓ 0*w^2 + ℓ 0 + ℓ 1*w^10 - ℓ 1*w^9 + 3*ℓ 1*w^7 - 3*ℓ 1*w^6 - 8*ℓ 1 + ℓ 2*w^16 - ℓ 2*w^15 + ℓ 2*w^13 + ℓ 2*w^8 + ℓ 2 + w^4*(ℓ 0 + 6*ℓ 1) + w^3*(-6*ℓ 1 + ℓ 2) + w*(8*ℓ 1 - ℓ 2)) * h · simp [Fin.sum_univ_three] linear_combination (-ℓ 0*w^5 + ℓ 0*w^2 + ℓ 0 + ℓ 1 + ℓ 2*w^22 - ℓ 2*w^21 + ℓ 2*w^19 - ℓ 2*w^18 - 3*ℓ 2*w^12 + 6*ℓ 2*w^7 - 8*ℓ 2 + w^16*(ℓ 1 + 3*ℓ 2) + w^15*(-ℓ 1 - 3*ℓ 2) + w^13*(ℓ 1 + 3*ℓ 2) + w^10*(ℓ 0 + 6*ℓ 2) + w^9*(-ℓ 0 - 6*ℓ 2) + w^8*(ℓ 0 + ℓ 1) + w^6*(ℓ 0 - 6*ℓ 2) + w^4*(ℓ 0 + 8*ℓ 2) + w^3*(ℓ 1 - 8*ℓ 2) + w*(-ℓ 0 - ℓ 1 + 8*ℓ 2)) * htheorem qutrit_convolution_choi_ppt_iff_wigner_nonneg (σ : Matrix (Fin 3) (Fin 3) ℂ) (hσ : σ.IsHermitian) : open scoped ComplexOrder in (Matrix.of fun (p q : Fin 3 × Fin 3) => qutrit_convolution_choi σ (p.1, q.2) (q.1, p.2)).PosSemidef ↔ ∀ c p : Fin 3, 0 ≤ (∑ t : Fin 3, Complex.exp (2 * Real.pi * Complex.I / 3) ^ (p.val * t.val) * σ (c - t) (c + t)).re := by open scoped ComplexOrder in set w : ℂ := Complex.exp (2 * Real.pi * Complex.I / 3) with hw have hw3 : w ^ 3 = 1 := by rw [hw, ← Complex.exp_nat_mul] convert Complex.exp_two_pi_mul_I using 2 push_cast; ring have hw1 : w ≠ 1 := by intro h rw [hw, Complex.exp_eq_one_iff] at h obtain ⟨n, hn⟩ := h have hpi : (2 * (Real.pi : ℂ) * Complex.I) ≠ 0 := by simp [Real.pi_ne_zero] have h0 : (2 * (Real.pi : ℂ) * Complex.I) * (1 - 3 * (n : ℂ)) = 0 := by linear_combination 3 * hn rcases mul_eq_zero.1 h0 with h' | h' · exact hpi h' · have h3 : (1 : ℂ) = 3 * (n : ℂ) := by linear_combination h' have h4 : (1 : ℤ) = 3 * n := by exact_mod_cast h3 omega have h : 1 + w + w ^ 2 = 0 := by have h0 : (w - 1) * (1 + w + w ^ 2) = 0 := by linear_combination hw3 rcases mul_eq_zero.1 h0 with h' | h' · exact absurd (sub_eq_zero.1 h') hw1 · exact h' have hs : star w = w ^ 2 := by have e1 : star w = w⁻¹ := by have hz : (2 * (Real.pi : ℂ) * Complex.I / 3) = ((2 * Real.pi / 3 : ℝ) : ℂ) * Complex.I := by push_cast; ring rw [hw, hz, Complex.star_def, ← Complex.exp_conj, ← Complex.exp_neg, map_mul, Complex.conj_ofReal, Complex.conj_I] congr 1 ring have hne : w ≠ 0 := by rw [hw]; exact Complex.exp_ne_zero _ rw [e1] field_simp linear_combination -hw3 have hσ' : ∀ i j, star (σ i j) = σ j i := fun i j => hσ.apply j i have hstar : ∀ c p : Fin 3, star (∑ t : Fin 3, w ^ (p.val * t.val) * σ (c - t) (c + t)) = ∑ t : Fin 3, w ^ (p.val * t.val) * σ (c - t) (c + t) := by intro c p have e2 : c - 2 = c + 1 := by fin_cases c <;> rfl have e3 : c + 2 = c - 1 := by fin_cases c <;> rfl have h4 : w ^ (4 * p.val) = w ^ p.val := by rw [show 4 * p.val = p.val + 3 * p.val by ring, pow_add, pow_mul, hw3, one_pow, mul_one] simp only [Fin.sum_univ_three, star_add, star_mul', star_pow, hs, hσ', ← pow_mul, Fin.val_zero, Fin.val_one, Fin.val_two, sub_zero, add_zero, e2, e3] linear_combination (σ (c - 1) (c + 1)) * h4 have hreal : ∀ c p : Fin 3, (∑ t : Fin 3, w ^ (p.val * t.val) * σ (c - t) (c + t)) = (((∑ t : Fin 3, w ^ (p.val * t.val) * σ (c - t) (c + t)).re : ℝ) : ℂ) := by intro c p have him := Complex.conj_eq_iff_im.1 (hstar c p) exact Complex.ext (by simp) (by simpa using him) have herm : (Matrix.of fun (p q : Fin 3 × Fin 3) => qutrit_convolution_choi σ (p.1, q.2) (q.1, p.2)).IsHermitian := by ext ⟨a, b⟩ ⟨a', b'⟩ simp only [Matrix.conjTranspose_apply, Matrix.of_apply, qutrit_convolution_choi] by_cases hc : a + b' = a' + b · rw [if_pos hc, if_pos hc.symm, star_div₀, hσ']; simp · rw [if_neg hc, if_neg (fun h' => hc h'.symm)]; simp rw [Matrix.posSemidef_iff_dotProduct_mulVec] constructor · rintro ⟨-, hpos⟩ c p have hx := hpos (fun q : Fin 3 × Fin 3 => if q.2 - q.1 = c then w ^ (2 * p.val * q.1.val) else 0) have hsx : star (fun q : Fin 3 × Fin 3 => if q.2 - q.1 = c then w ^ (2 * p.val * q.1.val) else 0) = fun q : Fin 3 × Fin 3 => if q.2 - q.1 = c then w ^ (p.val * q.1.val) else 0 := by funext q rw [Pi.star_apply] split_ifs · have h31 : w ^ (3 * (p.val * q.1.val)) = 1 := by rw [pow_mul, hw3, one_pow] rw [star_pow, hs, ← pow_mul, show 2 * (2 * p.val * q.1.val) = p.val * q.1.val + 3 * (p.val * q.1.val) by ring, pow_add, h31, mul_one] · simp rw [hsx] at hx have key := in1187_qf σ w h (fun q : Fin 3 × Fin 3 => if q.2 - q.1 = c then w ^ (p.val * q.1.val) else 0) (fun q : Fin 3 × Fin 3 => if q.2 - q.1 = c then w ^ (2 * p.val * q.1.val) else 0) have hcc : ∀ a c' : Fin 3, (a + c' - a = c) ↔ c = c' := by intro a c'; rw [add_sub_cancel_left]; exact eq_comm simp only [hcc, mul_ite, mul_zero, Finset.sum_ite_irrel, Finset.sum_const_zero, ite_mul, zero_mul, Finset.sum_ite_eq, Finset.mem_univ, if_true] at key rw [in1187_orth w h (fun p' => ∑ t : Fin 3, w ^ (p'.val * t.val) * σ (c - t) (c + t)) p] at key have h9 : (0 : ℂ) ≤ ((9 : ℝ) : ℂ) * (∑ t : Fin 3, w ^ (p.val * t.val) * σ (c - t) (c + t)) := by have h90 : (0 : ℂ) ≤ 9 * (∑ t : Fin 3, w ^ (p.val * t.val) * σ (c - t) (c + t)) := by rw [← key] exact mul_nonneg (by norm_num) hx simpa using h90 have h9r := (Complex.nonneg_iff.1 h9).1 rw [Complex.re_ofReal_mul] at h9r linarith · intro hL0 refine ⟨herm, fun x => ?_⟩ have key := in1187_qf σ w h (star x) x have e9 : star x ⬝ᵥ (Matrix.of fun (p q : Fin 3 × Fin 3) => qutrit_convolution_choi σ (p.1, q.2) (q.1, p.2)).mulVec x = (((1 / 9 : ℝ)) : ℂ) * (9 * (star x ⬝ᵥ (Matrix.of fun (p q : Fin 3 × Fin 3) => qutrit_convolution_choi σ (p.1, q.2) (q.1, p.2)).mulVec x)) := by push_cast; ring rw [e9, key] refine mul_nonneg (Complex.zero_le_real.2 (by norm_num)) (Finset.sum_nonneg fun c _ => Finset.sum_nonneg fun p _ => ?_) rw [hreal c p] refine mul_nonneg (Complex.zero_le_real.2 (hL0 c p)) ?_ have hv : (∑ a : Fin 3, w ^ (2 * p.val * a.val) * star x (a, a + c)) = star (∑ a : Fin 3, w ^ (p.val * a.val) * x (a, a + c)) := by rw [star_sum] refine Finset.sum_congr rfl fun a _ => ?_ rw [star_mul', star_pow, hs, ← pow_mul, Pi.star_apply, mul_assoc] rw [hv] exact star_mul_self_nonneg _