Reduction modulo the modulus is invisible after passing to the field.
The modByMonic spelling of HexGFqMathlib.ofPolyHom_reduceMod.
The executable structural power carries to a Mathlib power.
This is clean now only because HexGFqMathlib.field pins npow to the
executable power: with Mathlib's npowRec default the two would not be
definitionally equal and pow_zero/pow_succ would not apply to the ^ that
elaboration picks here.
The binary generator power represents the corresponding field power.
A generator power representative is already reduced.
On reduced representatives, being one in the field is being one on the nose.
Hex's Mathlib-free prime predicate implies Mathlib's.
Every prime dividing a validated prime-power product appears in its prime
list. This is unique factorization in the form the check needs: it is what
turns "the supplied primes multiply to N" into "the supplied primes are all
of them", so a short list cannot weaken the test.
A verified executable primitivity certificate proves that the Conway
generator has multiplicative order p ^ n - 1.
This is the assembly point for the component transport lemmas above. The
factorization check makes qs exhaustive, while the two power checks
become the hypotheses of orderOf_eq_of_pow_and_pow_div_prime.