theorem
Hex.AlgebraicNumber.Unity.polynomial_value
(n : ℕ)
:
HexRootsMathlib.toPolyℂ (polynomial n) = if n % 2 = 0 then Polynomial.X ^ (n / 2) + 1 else Polynomial.X ^ n - 1
The executable binomial has the stated complex interpretation.
theorem
Hex.AlgebraicNumber.Unity.root_pow
{n : ℕ}
(_hn : 2 < n)
{z : ℂ}
(hz : (HexRootsMathlib.toPolyℂ (polynomial n)).IsRoot z)
:
theorem
Hex.AlgebraicNumber.Unity.generator?_value
(n : ℕ)
:
∃ (a : AlgebraicNumber), generator? n = some a ∧ a.toComplex = HexNumberFieldMathlib.Unity.zeta n
Construction of the primitive generator is total and chooses the standard branch.
@[simp]
@[simp]
A fixed-field power has the same value as an ordinary algebraic power.
@[simp]
Rational turns agree exactly with Mathlib's complex exponential.
The reduced denominator is the exact multiplicative order.
@[simp]
@[simp]