AFTD Auto-Formalizing Theoretical Domains

qutrit_zero_face_two_mode_nonneg

theoremverified

The two-mode zero-face expression is nonnegative when both Fourier coefficients are nonnegative.

Statement

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

The proof, explained

The proof relies on a sum-of-squares (SOS) decomposition. By the identity `qutrit_zero_face_two_mode_sos`, three times the target expression decomposes into the sum of two terms, each being the product of a Fourier coefficient ($g - rz$ or $g + rz$) and a sum of squares, divided by 4. Because both Fourier coefficients are assumed nonnegative and squares of real numbers are always nonnegative, both terms are nonnegative, and linear arithmetic completes the proof.

  1. Both terms in the sum-of-squares decomposition, $(g - rz)((3a - rd)^2 + (3b + rc)^2)/4$ and $(g + rz)((3a + rd)^2 + (3b - rc)^2)/4$, are nonnegative.

    Each term is the product of an assumed nonnegative factor ($0 \le g - rz$ and $0 \le g + rz$, respectively) with a sum of two real squares, divided by the positive constant 4. Lean's `positivity` tactic establishes the nonnegativity of each term directly from these signs.

    lines 5–6

      have h₁ : 0 ≤ (g-r*z) * ((3*a-r*d)^2+(3*b+r*c)^2) / 4 := by positivity
      have h₂ : 0 ≤ (g+r*z) * ((3*a+r*d)^2+(3*b-r*c)^2) / 4 := by positivity
  2. The expression $g(3a^2 + 3b^2 + c^2 + d^2)/2 + 3z(ad - bc)$ is nonnegative.

    The algebraic identity `qutrit_zero_face_two_mode_sos` expresses three times the target expression as the sum of the two nonnegative terms from the preceding step. Linear arithmetic (`linarith`) then concludes that the target expression itself is nonnegative.

    lines 7–8

    uses qutrit_zero_face_two_mode_sos

      have heq := qutrit_zero_face_two_mode_sos a b c d g z r hr
      linarith
qutrit_zero_face_two_mode_sos
For real numbers $a, b, c, d, g, z, r$ satisfying $r^2 = 3$, three times the expression $g(3a^2 + 3b^2 + c^2 + d^2)/2 + 3z(ad - bc)$ equals the sum of $(g - rz)((3a - rd)^2 + (3b + rc)^2)/4$ and $(g + rz)((3a + rd)^2 + (3b - rc)^2)/4$.

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_nonneg    (a b c d g z r : ℝ) (hr : r^2 = 3)    (hminus : 0 ≤ g-r*z) (hplus : 0 ≤ g+r*z) :    0 ≤ g * (3*a^2 + 3*b^2 + c^2 + d^2) / 2 + 3*z*(a*d-b*c) := by  have h₁ : 0 ≤ (g-r*z) * ((3*a-r*d)^2+(3*b+r*c)^2) / 4 := by positivity  have h₂ : 0 ≤ (g+r*z) * ((3*a+r*d)^2+(3*b-r*c)^2) / 4 := by positivity  have heq := qutrit_zero_face_two_mode_sos a b c d g z r hr  linarith
See it in the graphDiscuss this resultChallenge it