Evaluating cyclotomic polynomials #
This file states some results about evaluating cyclotomic polynomials in various different ways.
Main definitions #
Polynomial.eval(₂)_one_cyclotomic_prime(_pow):eval 1 (cyclotomic p^k R) = p.Polynomial.eval_one_cyclotomic_of_not_isPrimePow: ifnisn't a prime power (and isn't1), theneval 1 (cyclotomic n R) = 1.Polynomial.cyclotomic_pos:∀ x, 0 < eval x (cyclotomic n R)if2 < n.IsPrimitiveRoot.isUnit_sub_one_iff: if all prime numbers are not units inR, thenζ - 1is a unit precisely when the order ofζis not a prime power.
Cyclotomic polynomials are always positive on inputs larger than one.
Similar to cyclotomic_pos but with the condition on the input rather than index of the
cyclotomic polynomial.
Cyclotomic polynomials are always nonnegative on inputs one or more.
The n-th cyclotomic polynomial takes the value 1 at 1 when n isn't a prime power (and
isn't 1).
The n-th cyclotomic polynomial takes the value 1 at 1 when n is not of the form p ^ k
with p prime. See eval_one_cyclotomic_of_not_isPrimePow for a version using IsPrimePow.
The element ζ - 1 is a unit precisely when the n-th cyclotomic polynomial takes a unit
value at 1.
If the order of ζ is not a prime power, then ζ - 1 is a unit.
If the order of ζ is a power of the prime p, then ζ - 1 is a unit precisely when p is
a unit in R.
If all prime numbers are not units in R, then ζ - 1 is a unit precisely when the order of
ζ is not a prime power.