AFTD Auto-Formalizing Theoretical Domains

prime_convolution_diagonal_environment_separable

theoremverified

For any finite dimension at least two and any coupling, a convolution channel with a nonnegative diagonal environment has a separable Choi matrix.

Statement

theorem prime_convolution_diagonal_environment_separable (n : ℕ) (r : Fin (n+2)) (w : Fin (n+2) → ℝ)
    (hw : ∀ j, 0 ≤ w j) :
    matrix_is_separable (n+2) (n+2)
      (prime_convolution_choi (n+2) r (Matrix.diagonal (fun j => (w j : ℂ))))
Source
OP-2466 diagonal remainder of the product-orbit certificate
Verified
29 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
  • matrix_is_separableWith dA dB : ℕ explicit arguments, in this order, and ρ : Matrix (Fin dA × Fin dB) (Fin dA × Fin dB) ℂ, the proposition that ρ is…
  • prime_convolution_five_two_fifth_entanglement_breaking_iffFor every real t with 0 ≤ t ≤ 1: the matrix prime_convolution_choi 5 2 (two_level_environment 5 (1/5) t) (d = 5, r = 2, p = 1/5) is…
  • prime_convolution_choiWith d : ℕ, r : ZMod d and σ : Matrix (Fin d) (Fin d) ℂ (no hypotheses), returns the complex matrix indexed by Fin d × Fin d whose entry…

The proof, explained

To show that a prime convolution channel with a nonnegative diagonal environment diag(w) has a separable Choi matrix, the diagonal environment is decomposed as a conical combination ∑_k w(k) D_k of the rank-one standard basis projectors D_k = |k⟩⟨k|. By linearity of the convolution channel Choi map, its Choi matrix decomposes into the sum ∑_k w(k) C(D_k). Each C(D_k) is proved to be separable by identifying D_k with an orbit twirl of standard basis vectors, and the conical combination of separable matrices is therefore separable.

  1. The convolution orbit sum ∑_i e₀(i) e_k(r*i+j) e₀(i+j-l) e_k(r*(i+j-l)+l) equals the basis outer product e_k(j) e_k(l).

    Because e₀(i) = 0 for all i ≠ 0, Finset.sum_eq_single collapses the sum over i to the single term at i = 0. Setting i = 0 leaves e_k(j) e₀(j - l) e_k(r(j - l) + l). When j = l, this reduces to e_k(j) e₀(0) e_k(l) = e_k(j) e_k(l) since e₀(0) = 1. When j ≠ l, the difference j - l is nonzero (via sub_ne_zero.mpr), so e₀(j - l) = 0 and the product vanishes; the right-hand side also vanishes because j and l cannot both equal k when j ≠ l.

    lines 10–21

    uses Finset.sum_eq_single, in1249_basis, if_pos, zero_mul, zero_add, one_mul, sub_ne_zero.mpr, Finset.mem_univ

      classical
      rw [Finset.sum_eq_single 0]
      · simp only [in1249_basis, if_pos rfl, zero_mul, zero_add, one_mul]
        by_cases h : j = l
        · subst l
          simp [in1249_basis]
        · have hsub : j-l ≠ 0 := sub_ne_zero.mpr h
          simp [in1249_basis, h, hsub]; aesop
      · intro i _ hi
        simp [in1249_basis, hi]
      · intro h
        exact absurd (Finset.mem_univ _) h
  2. For each standard basis projector D_k = |k⟩⟨k|, the Choi matrix of the convolution channel is separable.

    By in1243_twirl_sep, the convolution channel applied to the twirled bilinear matrix formed from a = e₀ and b = e_k yields a separable Choi matrix. By the orbit summation identity in1249_basis_orbit, each entry of this twirled matrix coincides exactly with e_k(j) e_k(l), which is the (j, l)-entry of D_k. Applying congrArg to coerce the real entries to complex numbers, the Choi matrix of D_k is identical to this twirled Choi matrix, and is therefore separable.

    lines 26–31

    uses in1243_twirl_sep, in1249_basis, Matrix.of_apply, Complex.ofReal_mul, congrArg, in1249_basis_orbit

      have h := in1243_twirl_sep n r (in1249_basis n 0) (in1249_basis n k)
      convert h using 1
      congr 1
      ext j l
      simp only [Matrix.of_apply, ← Complex.ofReal_mul]
      exact congrArg (fun x : ℝ => (x : ℂ)) (in1249_basis_orbit n r k j l).symm
  3. The diagonal environment matrix diag(w) decomposes as the conical sum ∑_k w(k) D_k of the rank-one basis projectors D_k.

    We define D_k by (D_k)_(j,l) = e_k(j) e_k(l) and verify the equality entrywise. On the diagonal (j = l), the entry of diag(w) is w(j), and in the sum ∑_k w(k) D_k(j, j) only the term k = j is nonzero by Finset.sum_eq_single, yielding w(j). Off the diagonal (j ≠ l), the entry of diag(w) is 0, and every term in the sum vanishes by Finset.sum_eq_zero because j and l cannot both equal k.

    lines 37–56

    uses Matrix.diagonal_apply, Matrix.sum_apply, Matrix.smul_apply, smul_eq_mul, Matrix.of_apply, in1249_basis, Finset.sum_eq_single, Ne.symm, apply_ite, Complex.ofReal_one, Complex.ofReal_zero, Finset.sum_eq_zero

      classical
      let D : Fin (n+2) → Matrix (Fin (n+2)) (Fin (n+2)) ℂ :=
        fun k => Matrix.of fun j l => (in1249_basis n k j * in1249_basis n k l : ℂ)
      have heq : Matrix.diagonal (fun j => (w j : ℂ)) = ∑ k ∈ Finset.univ, (w k : ℂ) • D k := by
        ext j l
        simp only [Matrix.diagonal_apply, Matrix.sum_apply, Matrix.smul_apply, smul_eq_mul, D, Matrix.of_apply,
          in1249_basis]
        by_cases h : j = l
        · subst l
          rw [Finset.sum_eq_single j]
          · simp
          · intro k _ hj
            have : j ≠ k := Ne.symm hj
            simp [this]
          · simp
        · simp only [apply_ite (fun a : ℝ => (a : ℂ)), Complex.ofReal_one, Complex.ofReal_zero]
          rw [Finset.sum_eq_zero]
          · simp [h]
          · intro k _
            by_cases hj : j=k <;> by_cases hl : l=k <;> simp_all
  4. The Choi matrix of the convolution channel with environment diag(w) is separable.

    Using the decomposition diag(w) = ∑_k w(k) D_k, linearity of the Choi representation (in1243_choi_linear) expresses the channel Choi matrix as ∑_k w(k) C(D_k). Since each weight is nonnegative (hw k : 0 ≤ w k) and each C(D_k) is separable (in1249_basis_choi_sep), each scaled term w(k) C(D_k) is separable by in1243_sep_smul. Finally, in1243_sep_sum shows that the finite sum of these separable matrices is separable.

    lines 57–60

    uses in1243_choi_linear, in1243_sep_sum, in1243_sep_smul, in1249_basis_choi_sep

      rw [heq, in1243_choi_linear (n+2) (r : ZMod (n+2)) Finset.univ w D]
      apply in1243_sep_sum
      intro k _
      exact in1243_sep_smul _ _ _ (hw k) _ (in1249_basis_choi_sep n r k)
apply_ite
A function distributes over an if-then-else conditional expression.
Complex.ofReal_one
The real number one coerced to the complex numbers is the complex number one.
Complex.ofReal_mul
The coercion from real numbers to complex numbers preserves multiplication.
Complex.ofReal_zero
The real number zero coerced to the complex numbers is the complex number zero.
congrArg
If two inputs are equal, applying a function to both yields equal results.
Finset.mem_univ
Every element of a finite type belongs to the universal finset.
Finset.sum_eq_single
If every term in a finite sum other than the one at a vanishes, and a is in the index set, the sum equals the term at a.
Finset.sum_eq_zero
A finite sum in which every term is zero evaluates to zero.
if_pos
When the condition of an if-then-else is true, the expression evaluates to the positive branch.
in1243_choi_linear
The prime convolution channel Choi representation is linear, commuting with linear combinations of environment matrices.
in1243_sep_smul
Scaling a separable bipartite matrix by a nonnegative real scalar yields a separable matrix.
in1243_sep_sum
A finite sum of separable bipartite matrices is separable.
in1243_twirl_sep
For any two real vectors a and b, the Choi matrix of the convolution channel applied to the twirled bilinear combination of a and b is separable.
in1249_basis
The standard basis indicator function in dimension n + 2, taking value 1 when the indices match and 0 otherwise.
in1249_basis_choi_sep
The Choi matrix of the convolution channel applied to each rank-one standard basis projector is separable.
in1249_basis_orbit
For the standard basis vectors e₀ and e_k, the convolution orbit summation simplifies to the outer product e_k(j) e_k(l).
Matrix.diagonal_apply
The (i, j)-entry of a diagonal matrix is the diagonal element when i = j and zero otherwise.
Matrix.of_apply
The (i, j)-entry of a matrix defined by a function is the function evaluated at (i, j).
Matrix.smul_apply
The (i, j)-entry of a scalar multiple of a matrix is the scalar times the (i, j)-entry.
Matrix.sum_apply
The (i, j)-entry of a sum of matrices equals the sum of the individual (i, j)-entries.
Ne.symm
Inequality is symmetric: if a ≠ b, then b ≠ a.
one_mul
Multiplication by one on the left leaves an element unchanged.
smul_eq_mul
Scalar multiplication in an algebra or ring coincides with ring multiplication.
sub_ne_zero.mpr
If two elements are distinct, their difference is nonzero.
zero_add
Adding zero on the left leaves an element unchanged.
zero_mul
Multiplication by zero on the left yields zero.

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

open Fin.CommRingset_option maxHeartbeats 1000000def in1249_basis (n : ℕ) (k : Fin (n+2)) (j : Fin (n+2)) : ℝ := if j=k then 1 else 0theorem in1249_basis_orbit (n : ℕ) (r k j l : Fin (n+2)) :    (∑ i, in1249_basis n 0 i * in1249_basis n k (r*i+j) *      in1249_basis n 0 (i+j-l) * in1249_basis n k (r*(i+j-l)+l)) =      in1249_basis n k j * in1249_basis n k l := by  classical  rw [Finset.sum_eq_single 0]  · simp only [in1249_basis, if_pos rfl, zero_mul, zero_add, one_mul]    by_cases h : j = l    · subst l      simp [in1249_basis]    · have hsub : j-l ≠ 0 := sub_ne_zero.mpr h      simp [in1249_basis, h, hsub]; aesop  · intro i _ hi    simp [in1249_basis, hi]  · intro h    exact absurd (Finset.mem_univ _) htheorem in1249_basis_choi_sep (n : ℕ) (r k : Fin (n+2)) :    matrix_is_separable (n+2) (n+2)      (prime_convolution_choi (n+2) r (Matrix.of fun j l => (in1249_basis n k j * in1249_basis n k l : ℂ))) := by  have h := in1243_twirl_sep n r (in1249_basis n 0) (in1249_basis n k)  convert h using 1  congr 1  ext j l  simp only [Matrix.of_apply, ← Complex.ofReal_mul]  exact congrArg (fun x : ℝ => (x : ℂ)) (in1249_basis_orbit n r k j l).symmtheorem prime_convolution_diagonal_environment_separable (n : ℕ) (r : Fin (n+2)) (w : Fin (n+2) → ℝ)    (hw : ∀ j, 0 ≤ w j) :    matrix_is_separable (n+2) (n+2)      (prime_convolution_choi (n+2) r (Matrix.diagonal (fun j => (w j : ℂ)))) := by  classical  let D : Fin (n+2) → Matrix (Fin (n+2)) (Fin (n+2)) ℂ :=    fun k => Matrix.of fun j l => (in1249_basis n k j * in1249_basis n k l : ℂ)  have heq : Matrix.diagonal (fun j => (w j : ℂ)) = ∑ k ∈ Finset.univ, (w k : ℂ) • D k := by    ext j l    simp only [Matrix.diagonal_apply, Matrix.sum_apply, Matrix.smul_apply, smul_eq_mul, D, Matrix.of_apply,      in1249_basis]    by_cases h : j = l    · subst l      rw [Finset.sum_eq_single j]      · simp      · intro k _ hj        have : j ≠ k := Ne.symm hj        simp [this]      · simp    · simp only [apply_ite (fun a : ℝ => (a : ℂ)), Complex.ofReal_one, Complex.ofReal_zero]      rw [Finset.sum_eq_zero]      · simp [h]      · intro k _        by_cases hj : j=k <;> by_cases hl : l=k <;> simp_all  rw [heq, in1243_choi_linear (n+2) (r : ZMod (n+2)) Finset.univ w D]  apply in1243_sep_sum  intro k _  exact in1243_sep_smul _ _ _ (hw k) _ (in1249_basis_choi_sep n r k)
See it in the graphDiscuss this resultChallenge it