AFTD Auto-Formalizing Theoretical Domains

qutrit_zero_face_two_mode_sos

theoremverified

A real polynomial identity decomposes the two-mode zero-face expression into two weighted sums of squares.

Statement

theorem qutrit_zero_face_two_mode_sos
    (a b c d g z r : ℝ) (hr : r^2 = 3) :
    3 * (g * (3*a^2 + 3*b^2 + c^2 + d^2) / 2 + 3*z*(a*d-b*c)) =
      (g-r*z) * ((3*a-r*d)^2+(3*b+r*c)^2) / 4 +
      (g+r*z) * ((3*a+r*d)^2+(3*b-r*c)^2) / 4
Source
OP-2299 zero-Bell face rank-one witness, exact experiments 40958 and 40971.
Verified
26 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Used by 1

The proof, explained

The identity is established by algebraic expansion and polynomial reduction modulo the relation $r^2 = 3$. Expanding the squared terms on the right-hand side and grouping by the coefficients $g$ and $z$ shows that the right-hand side equals $\frac{g}{2}(9a^2 + 9b^2 + r^2(c^2 + d^2)) + 3r^2 z(ad - bc)$. Substituting $r^2 = 3$ reduces this directly to the left-hand side, confirming that their difference is an explicit polynomial multiple of $r^2 - 3$.

  1. The two-mode zero-face polynomial expression equals the given sum of weighted squares whenever $r^2 = 3$. automation

    Expanding the squared terms $(3a \mp rd)^2 + (3b \pm rc)^2$ on the right-hand side and regrouping in terms of $g$ and $z$ yields $\frac{g}{2}(9a^2 + 9b^2 + r^2(c^2 + d^2)) + 3r^2 z(ad - bc)$. Subtracting this from the left-hand side leaves precisely $-\frac{1}{2}(6z(ad - bc) + g(c^2 + d^2))(r^2 - 3)$. The `linear_combination` tactic applies the assumption $r^2 = 3$ (hypothesis $hr$) scaled by $-\frac{1}{2}(6adz - 6bcz + c^2g + d^2g)$, which cancels this difference completely, and closes the goal by ring normalization.

    line 6

      linear_combination (-(6*a*d*z-6*b*c*z+c^2*g+d^2*g)/2) * hr

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_zero_face_two_mode_sos    (a b c d g z r : ℝ) (hr : r^2 = 3) :    3 * (g * (3*a^2 + 3*b^2 + c^2 + d^2) / 2 + 3*z*(a*d-b*c)) =      (g-r*z) * ((3*a-r*d)^2+(3*b+r*c)^2) / 4 +      (g+r*z) * ((3*a+r*d)^2+(3*b-r*c)^2) / 4 := by  linear_combination (-(6*a*d*z-6*b*c*z+c^2*g+d^2*g)/2) * hr
See it in the graphDiscuss this resultChallenge it