AFTD Auto-Formalizing Theoretical Domains

qutrit_phase_root_polynomial

theoremverified

An elementary algebraic identity for the qutrit phase root.

Statement

theorem qutrit_phase_root_polynomial :
    qutrit_phase_root^2 + qutrit_phase_root + 1 = 0
Source
Standard qutrit phase-space convention.
Verified
28 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
  • qutrit_phase_rootThe primitive third root of unity used to label qutrit maximally entangled basis states.
Used by 1

The proof, explained

The theorem states that the qutrit phase root ω = (-1 + i√3)/2, a primitive cube root of unity, satisfies the polynomial equation ω^2 + ω + 1 = 0. The proof first records the identity (√3)^2 = 3, then splits the complex equality into separate equations for the real and imaginary parts. After unfolding definitions and expanding products, nonlinear arithmetic verifies both the real and imaginary identities.

  1. (√3)^2 = 3

    The square of the square root of 3 equals 3 by `Real.sq_sqrt`, with the non-negativity condition 0 ≤ 3 verified by `norm_num`.

    line 3

    uses Real.sq_sqrt

      have hs : (Real.sqrt 3)^2 = 3 := Real.sq_sqrt (by norm_num)
  2. It suffices to show that the real part and the imaginary part of the expression both vanish.

    By complex extensionality (`Complex.ext`), two complex numbers are equal if their real and imaginary components match. This splits the goal into showing the real part is 0 and the imaginary part is 0.

    line 4

    uses Complex.ext

      apply Complex.ext <;>
  3. The real and imaginary components reduce to explicit real arithmetic expressions in √3.

    Expanding the definition of `qutrit_phase_root` = (-1 + i√3)/2, rewriting the square as multiplication with `pow_two`, and evaluating the real and imaginary parts of complex multiplication using `Complex.mul_re` and `Complex.mul_im` simplifies the real part to (-1/2)(-1/2) - (√3/2)(√3/2) + (-1/2) + 1 = 0 and the imaginary part to (-1/2)(√3/2) + (√3/2)(-1/2) + √3/2 = 0.

    line 5

    uses Complex.mul_re, Complex.mul_im, pow_two

        simp [qutrit_phase_root, Complex.mul_re, Complex.mul_im, pow_two] <;>
  4. qutrit_phase_root^2 + qutrit_phase_root + 1 = 0 automation

    Nonlinear arithmetic (`nlinarith`), using the identity (√3)^2 = 3 (`hs`), verifies that both the real part (1/4 - 3/4 - 1/2 + 1 = 0) and the imaginary part (-√3/4 - √3/4 + √3/2 = 0) equal 0.

    line 6

        nlinarith [hs]
Real.sq_sqrt
For any non-negative real number x, the square of its square root is x.
Complex.ext
Two complex numbers are equal if and only if their real parts and their imaginary parts are respectively equal.
Complex.mul_re
The real part of a product of complex numbers z and w is z.re * w.re - z.im * w.im.
Complex.mul_im
The imaginary part of a product of complex numbers z and w is z.re * w.im + z.im * w.re.
pow_two
Squaring an element in a monoid is equivalent to multiplying it by itself: a ^ 2 = a * a.

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_phase_root_polynomial :    qutrit_phase_root^2 + qutrit_phase_root + 1 = 0 := by  have hs : (Real.sqrt 3)^2 = 3 := Real.sq_sqrt (by norm_num)  apply Complex.ext <;>    simp [qutrit_phase_root, Complex.mul_re, Complex.mul_im, pow_two] <;>    nlinarith [hs]
See it in the graphDiscuss this resultChallenge it