Finite fields
This file contains basic results about finite fields.
Throughout most of this file, K
denotes a finite field
and q
is notation for the cardinality of K
.
Main results
- Every finite integral domain is a field (
field_of_integral_domain
). - The unit group of a finite field is a cyclic group of order
q - 1
. (finite_field.is_cyclic
andcard_units
) sum_pow_units
: The sum ofx^i
, wherex
ranges over the units ofK
, isq-1
ifq-1 ∣ i
0
otherwise
finite_field.card
: The cardinalityq
is a power of the characteristic ofK
. Seecard'
for a variant.
Notation
Throughout most of this file, K
denotes a finite field
and q
is notation for the cardinality of K
.
The cardinality of a field is at most n
times the cardinality of the image of a degree n
polynomial
If f
and g
are quadratic polynomials, then the f.eval a + g.eval b = 0
has a solution.
The sum of x ^ i
as x
ranges over the units of a finite field of cardinality q
is equal to 0
unless (q - 1) ∣ i
, in which case the sum is q - 1
.
The sum of x ^ i
as x
ranges over a finite field of cardinality q
is equal to 0
if i < q - 1
.
The Fermat-Euler totient theorem. zmod.pow_totient
is an alternative statement
of the same theorem.