AFTD Auto-Formalizing Theoretical Domains

qutrit_cyclic_face_complex_sos

theoremverified

The cyclic zero-Bell product witness, multiplied by the squared norm of the second factor, equals four explicit positive-partial-transpose squares for any primitive cube root and constrained product.

Statement

theorem qutrit_cyclic_face_complex_sos (w x0 x1 x2 y0 y1 y2 : ℂ)
    (hw : w^2+w+1=0) (hstar : (starRingEnd ℂ) w = -1-w)
    (hg : x0*y1+w*x1*y2+w^2*x2*y0=0) :
    (Complex.normSq y0 + Complex.normSq y1 + Complex.normSq y2) *
      ((-Complex.normSq (x0*y1+x1*y2+x2*y0) +
          Complex.normSq (x0*y1+w^2*x1*y2+w*x2*y0))/3 +
         Complex.normSq (x0*y2)+Complex.normSq (x1*y0)+Complex.normSq (x2*y1)) =
    Complex.normSq ((starRingEnd ℂ) x0*y0*y2 + w*(starRingEnd ℂ) x1*y0*y1 + w^2*(starRingEnd ℂ) x2*y1*y2) +
    Complex.normSq ((w^2*x0*(starRingEnd ℂ) y0*y1 - 2*x1*(starRingEnd ℂ) y0*y2 + w*x2*(starRingEnd ℂ) y0*y0)/3 + x2*(starRingEnd ℂ) y1*y1) +
    Complex.normSq ((w*x0*(starRingEnd ℂ) y1*y1 + w^2*x1*(starRingEnd ℂ) y1*y2 - 2*x2*(starRingEnd ℂ) y1*y0)/3 + x0*(starRingEnd ℂ) y2*y2) +
    Complex.normSq ((-2*x0*(starRingEnd ℂ) y2*y1 + w*x1*(starRingEnd ℂ) y2*y2 + w^2*x2*(starRingEnd ℂ) y2*y0)/3 + x1*(starRingEnd ℂ) y0*y0)
Source
OP-2299 exact dual certificate 41079 and algebraic identity 41085.
Verified
28 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
  • qutrit_cyclic_face_algebraic_sosThe algebraic four-square identity underlying the cyclic zero-Bell PPT two-copy certificate, with conjugate variables represented…
Used by 1

The proof, explained

The theorem proves that a cyclic zero-Bell witness for two qutrits, multiplied by the squared norm $\sum_{j=0}^2 |y_j|^2$ of the second factor, decomposes as a sum of four squared norms of positive-partial-transpose (PPT) expressions. The proof first uses the primitive cube root property $\bar{w} = w^2$ to conjugate the cyclic product constraint $x_0 y_1 + w x_1 y_2 + w^2 x_2 y_0 = 0$, obtaining the dual constraint on $\bar{x}$ and $\bar{y}$. It then instantiates an underlying algebraic sum-of-squares identity `qutrit_cyclic_face_algebraic_sos` with the conjugated variables. Finally, by embedding the equality into ℂ and expanding each squared norm as $|z|^2 = \bar{z} z$, the goal reduces to a polynomial identity modulo the cyclotomic relation $w^2 + w + 1 = 0$.

  1. $\bar{w} = w^2$ and $\overline{w^2} = w$

    Using the minimal polynomial equation $w^2 + w + 1 = 0$ (hypothesis `hw`), we have $-1 - w = w^2$. Substituting the hypothesis $\bar{w} = -1 - w$ (`hstar`) yields $\bar{w} = w^2$. Conjugating $w^2$ distributes over powers via `map_pow`, giving $\overline{w^2} = (\bar{w})^2 = (-1 - w)^2$, which simplifies to $w$ modulo $w^2 + w + 1 = 0$.

    lines 12–17

    uses map_pow

      have hwstar : (starRingEnd ℂ) w = w^2 := by
        rw [hstar]
        linear_combination -hw
      have hwstar2 : (starRingEnd ℂ) (w^2) = w := by
        rw [map_pow, hstar]
        linear_combination hw
  2. The conjugated constraint $\bar{x}_0 \bar{y}_1 + \bar{x}_1 \bar{y}_2 w^2 + \bar{x}_2 \bar{y}_0 w = 0$ holds.

    Applying complex conjugation to the constraint $x_0 y_1 + w x_1 y_2 + w^2 x_2 y_0 = 0$ (`hg`) using `congrArg`, conjugation distributes over additions, multiplications, powers, and zero (`map_add`, `map_mul`, `map_pow`, `map_zero`). Rewriting $\bar{w}$ as $w^2$ and simplifying $(w^2)^2 = w$ via $(w^2 - w)(w^2 + w + 1) = 0$ yields the conjugated cyclic constraint.

    lines 18–25

    uses congrArg, map_add, map_mul, map_pow, map_zero

      have hgc : (starRingEnd ℂ) x0*(starRingEnd ℂ) y1 + (starRingEnd ℂ) x1*(starRingEnd ℂ) y2*w^2 + (starRingEnd ℂ) x2*(starRingEnd ℂ) y0*w=0 := by
        have h := congrArg (starRingEnd ℂ) hg
        simp only [map_add, map_mul, map_pow, map_zero] at h
        rw [hwstar] at h
        have hw4 : (w^2)^2 = w := by
          linear_combination (w^2-w)*hw
        rw [hw4] at h
        linear_combination h
  3. The algebraic sum-of-squares identity `hcalc` holds for $x, y$ and their complex conjugates $\bar{x}, \bar{y}$.

    Specialize the lemma `qutrit_cyclic_face_algebraic_sos` by setting the formal conjugate variables $X_0, X_1, X_2$ to $\bar{x}_0, \bar{x}_1, \bar{x}_2$ and $Y_0, Y_1, Y_2$ to $\bar{y}_0, \bar{y}_1, \bar{y}_2$. The prerequisites are $w^2 + w + 1 = 0$, the cyclic product constraint `hg` (reordered), and its conjugated counterpart `hgc` established in the previous step.

    line 26

    uses qutrit_cyclic_face_algebraic_sos

      have hcalc := qutrit_cyclic_face_algebraic_sos w x0 x1 x2 ((starRingEnd ℂ) x0) ((starRingEnd ℂ) x1) ((starRingEnd ℂ) x2) y0 y1 y2 ((starRingEnd ℂ) y0) ((starRingEnd ℂ) y1) ((starRingEnd ℂ) y2) hw (by linear_combination hg) hgc
  4. The identity of real squared norms is cast into ℂ and rewritten as an algebraic polynomial identity in coordinates, their conjugates, and $w$.

    By injectivity of the canonical embedding ℝ ↪ ℂ (`Complex.ofReal_injective`), it suffices to prove the equality in ℂ. Each squared complex norm $|z|^2$ is rewritten as $\bar{z} z$ via `Complex.normSq_eq_conj_mul_self`. Distributing conjugation across additions, subtractions, products, divisions, powers, and natural numbers (`map_add`, `map_sub`, `map_mul`, `map_div₀`, `map_neg`, `map_pow`, `map_ofNat`), using $\overline{\bar{z}} = z$ (`Complex.conj_conj`), and substituting $\bar{w} = -1 - w$ (`hstar`), the goal becomes a purely algebraic polynomial relation over ℂ.

    lines 27–29

    uses Complex.ofReal_injective, Complex.ofReal_add, Complex.ofReal_mul, Complex.ofReal_div, Complex.ofReal_neg, Complex.ofReal_ofNat, Complex.normSq_eq_conj_mul_self, map_add, map_sub, map_mul, map_div₀, map_neg, map_pow, map_ofNat, Complex.conj_conj

      apply Complex.ofReal_injective
      simp only [Complex.ofReal_add, Complex.ofReal_mul, Complex.ofReal_div, Complex.ofReal_neg, Complex.ofReal_ofNat, Complex.normSq_eq_conj_mul_self]
      simp only [map_add, map_sub, map_mul, map_div₀, map_neg, map_pow, map_ofNat, Complex.conj_conj, hstar]
  5. The powers of $w$ satisfy $w^2 = -w - 1$, $w^3 = 1$, and $w^4 = w$.

    These reduction rules follow by polynomial arithmetic from the cyclotomic equation $w^2 + w + 1 = 0$: directly for $w^2 = -w - 1$, by $(w - 1)(w^2 + w + 1) = w^3 - 1 = 0$ for $w^3 = 1$, and by $(w^2 - w)(w^2 + w + 1) = w^4 - w = 0$ for $w^4 = w$.

    lines 30–32

      have hw2 : w^2 = -w-1 := by linear_combination hw
      have hw3 : w^3 = 1 := by linear_combination (w-1)*hw
      have hw4 : w^4 = w := by linear_combination (w^2-w)*hw
  6. The theorem statement holds.

    Normalizing both `hcalc` and the goal into ring normal form, replacing powers of $w$ using $w^4 = w$, $w^3 = 1$, and $w^2 = -w - 1$, and re-normalizing reveals that the goal expression is identically $\frac{1}{9}$ times `hcalc`. Concluding with a linear combination with coefficient $\frac{1}{9}$ finishes the proof.

    lines 33–36

      ring_nf at hcalc ⊢
      simp only [hw4, hw3, hw2] at hcalc ⊢
      ring_nf at hcalc ⊢
      linear_combination (1/9 : ℂ)*hcalc
Complex.ofReal_injective
The canonical injection of the real numbers into the complex numbers is injective.
Complex.ofReal_add
The canonical inclusion ℝ ↪ ℂ preserves addition: ↑(r + s) = ↑r + ↑s.
Complex.ofReal_mul
The canonical inclusion ℝ ↪ ℂ preserves multiplication: ↑(r * s) = ↑r * ↑s.
Complex.ofReal_div
The canonical inclusion ℝ ↪ ℂ preserves division: ↑(r / s) = ↑r / ↑s.
Complex.ofReal_neg
The canonical inclusion ℝ ↪ ℂ preserves negation: ↑(-r) = -↑r.
Complex.ofReal_ofNat
The canonical inclusion ℝ ↪ ℂ preserves natural number numerals.
Complex.normSq_eq_conj_mul_self
The squared norm of a complex number z, viewed in ℂ, equals its complex conjugate times itself: ↑(|z|²) = conj(z) * z.
Complex.conj_conj
Complex conjugation is an involution: conj(conj(z)) = z.
congrArg
If a₁ = a₂, then f(a₁) = f(a₂) for any function f.
map_add
A homomorphism preserves addition: f(x + y) = f(x) + f(y).
map_sub
A homomorphism preserves subtraction: f(a - b) = f(a) - f(b).
map_mul
A homomorphism preserves multiplication: f(x * y) = f(x) * f(y).
map_div₀
A homomorphism with zero preserves division: f(a / b) = f(a) / f(b).
map_neg
A homomorphism preserves negation: f(-a) = -f(a).
map_pow
A homomorphism preserves powers: f(a ^ n) = f(a) ^ n.
map_zero
A homomorphism preserves zero: f(0) = 0.
map_ofNat
A ring homomorphism preserves natural number numerals.
qutrit_cyclic_face_algebraic_sos
An algebraic sum-of-squares identity relating a cyclic product expression scaled by ∑ Yⱼ yⱼ to a sum of four squares, under the conditions w² + w + 1 = 0 and the cyclic relations on x, y and X, Y.

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

theorem qutrit_cyclic_face_complex_sos (w x0 x1 x2 y0 y1 y2 : ℂ)    (hw : w^2+w+1=0) (hstar : (starRingEnd ℂ) w = -1-w)    (hg : x0*y1+w*x1*y2+w^2*x2*y0=0) :    (Complex.normSq y0 + Complex.normSq y1 + Complex.normSq y2) *      ((-Complex.normSq (x0*y1+x1*y2+x2*y0) +          Complex.normSq (x0*y1+w^2*x1*y2+w*x2*y0))/3 +         Complex.normSq (x0*y2)+Complex.normSq (x1*y0)+Complex.normSq (x2*y1)) =    Complex.normSq ((starRingEnd ℂ) x0*y0*y2 + w*(starRingEnd ℂ) x1*y0*y1 + w^2*(starRingEnd ℂ) x2*y1*y2) +    Complex.normSq ((w^2*x0*(starRingEnd ℂ) y0*y1 - 2*x1*(starRingEnd ℂ) y0*y2 + w*x2*(starRingEnd ℂ) y0*y0)/3 + x2*(starRingEnd ℂ) y1*y1) +    Complex.normSq ((w*x0*(starRingEnd ℂ) y1*y1 + w^2*x1*(starRingEnd ℂ) y1*y2 - 2*x2*(starRingEnd ℂ) y1*y0)/3 + x0*(starRingEnd ℂ) y2*y2) +    Complex.normSq ((-2*x0*(starRingEnd ℂ) y2*y1 + w*x1*(starRingEnd ℂ) y2*y2 + w^2*x2*(starRingEnd ℂ) y2*y0)/3 + x1*(starRingEnd ℂ) y0*y0) := by  have hwstar : (starRingEnd ℂ) w = w^2 := by    rw [hstar]    linear_combination -hw  have hwstar2 : (starRingEnd ℂ) (w^2) = w := by    rw [map_pow, hstar]    linear_combination hw  have hgc : (starRingEnd ℂ) x0*(starRingEnd ℂ) y1 + (starRingEnd ℂ) x1*(starRingEnd ℂ) y2*w^2 + (starRingEnd ℂ) x2*(starRingEnd ℂ) y0*w=0 := by    have h := congrArg (starRingEnd ℂ) hg    simp only [map_add, map_mul, map_pow, map_zero] at h    rw [hwstar] at h    have hw4 : (w^2)^2 = w := by      linear_combination (w^2-w)*hw    rw [hw4] at h    linear_combination h  have hcalc := qutrit_cyclic_face_algebraic_sos w x0 x1 x2 ((starRingEnd ℂ) x0) ((starRingEnd ℂ) x1) ((starRingEnd ℂ) x2) y0 y1 y2 ((starRingEnd ℂ) y0) ((starRingEnd ℂ) y1) ((starRingEnd ℂ) y2) hw (by linear_combination hg) hgc  apply Complex.ofReal_injective  simp only [Complex.ofReal_add, Complex.ofReal_mul, Complex.ofReal_div, Complex.ofReal_neg, Complex.ofReal_ofNat, Complex.normSq_eq_conj_mul_self]  simp only [map_add, map_sub, map_mul, map_div₀, map_neg, map_pow, map_ofNat, Complex.conj_conj, hstar]  have hw2 : w^2 = -w-1 := by linear_combination hw  have hw3 : w^3 = 1 := by linear_combination (w-1)*hw  have hw4 : w^4 = w := by linear_combination (w^2-w)*hw  ring_nf at hcalc ⊢  simp only [hw4, hw3, hw2] at hcalc ⊢  ring_nf at hcalc ⊢  linear_combination (1/9 : ℂ)*hcalc
See it in the graphDiscuss this resultChallenge it