A processor stores a number in a word of fixed width. A 64-bit word can hold exactly distinct values, and the hardware’s arithmetic wraps around on overflow: what the machine natively computes is addition and multiplication modulo . For a verifier that must add, multiply, and divide, this built-in arithmetic falls at the last hurdle: in no even class has an inverse, since a class is a unit only when its representative is coprime to the modulus (Theorem 2.24). The question this section answers is the natural one to ask next. Among all finite arithmetics—finite sets closed under an addition and a multiplication obeying the ring laws—which ones allow division by every nonzero element? In the language of §4: what are the finite fields, what sizes do they come in, and what structure do they carry?
Part of the answer is already in hand. The residue ring is a field exactly when is prime (4.26), giving one finite field for every prime ; and the quotient recipe of Example 4.22 promised further examples of prime-power size . This section completes the picture with two theorems. The first, 6.9, is a prohibition: no other sizes occur—every finite field has exactly elements for some prime , so there is no field with , , or elements. This constrains cardinalities, not binary representation widths: fields of size exist for every positive . The second, 6.17, is the section’s payoff and one of the most consequential facts in the volume: the multiplicative group is cyclic—the powers of a single well-chosen element sweep out every nonzero value. Cyclicity is what makes discrete logarithms meaningful and what guarantees the roots of unity on which the polynomial machinery of later sections runs.
The route is as follows. We first make the prime field computational, with two inversion algorithms and the square-and-multiply technique that powers one of them. We then determine the possible sizes of a finite field through the characteristic and the prime subfield, meet the Frobenius map —the symmetry peculiar to characteristic —and finally prove cyclicity by a counting argument of Gauss.
The field certified by 4.26 is the workhorse of the entire series, and the first order of business is to compute in it. Addition, subtraction, and multiplication are residue arithmetic as in §2; the operation that needs an algorithm is inversion. As §4 stressed, an existence proof and an algorithm are different assets, and cryptography needs both. For inversion in there are two standard routes, with different characters.
Given with , run the extended Euclidean algorithm (Theorem 2.13) on the pair . Since is prime and , the gcd is , and the algorithm outputs integers with . Reducing modulo gives , that is,
The cost is division steps (Theorem 2.13). This is the standard general-purpose method; a worked instance is Example 2.25, which computed by exactly this route.
The second route rests on Fermat’s little theorem and on a technique for fast exponentiation that is used throughout cryptography, so we record the technique first, in the generality it deserves.
Let be an element of any structure with an associative multiplication, and let have binary expansion with digits . Squaring repeatedly produces the values
and multiplying together the factors indexed by the nonzero digits gives
The computation uses squarings and at most further multiplications— multiplications in all, against the multiplications of the naive product . For the -bit exponents of later sections the difference is that between a few hundred multiplications and a count that no conceivable computer could finish.
Written additively, the same algorithm computes the multiple of a group element by repeated doubling and selective adding. Under the name double-and-add it is the algorithm for scalar multiplication on elliptic curves (10.20), where the group operation is written ; the two names denote one algorithm in two notations.
The two routes are asymptotically comparable, but they differ in a respect invisible to asymptotics and central to practice. In 6.4 the sequence of operations performed—which steps square, which multiply—depends only on the binary digits of the public exponent , never on the secret input ; the method is constant-time-friendly. The extended Euclidean route, by contrast, performs a sequence of divisions whose lengths and quotients depend on itself, so its running time and memory-access pattern can leak information about to an observer timing the computation. Side-channel-resistant implementations therefore often prefer the Fermat route despite its slightly larger constant factor.
We turn to the sizes question: which cardinalities can a finite field have? The tool is the characteristic of 4.5. Recall the canonical homomorphism
whose kernel is an ideal of ; the characteristic is its nonnegative generator (Definition 4.30).
Every finite field has prime characteristic: for some prime . In particular .
The map cannot be injective, since its domain is infinite and its codomain is finite; two distinct integers must satisfy , and then is a nonzero element of . Hence with , that is, ; and the characteristic of a field, being nonzero, is prime by Theorem 4.32. For itself, Example 4.31 computed directly. □
The characteristic locates a canonical copy of inside every field of characteristic . Remark 4.33 described this copy informally; we now make it precise, beginning with the notion of a subfield.
A subfield of a field is a subset containing and and closed under addition, negation, multiplication, and inversion of nonzero elements; with the restricted operations, is itself a field. The prime subfield of is the intersection of all subfields of —equivalently, the smallest subfield of , and equivalently again the subfield generated by .
Two words on the equivalences. The intersection of any family of subfields is again a subfield, since each defining closure property survives intersection; and the intersection of all subfields is contained in every subfield, hence is the smallest one. That this smallest subfield is exactly what generates—the closure of under the field operations—follows from the classification below, whose proof exhibits the prime subfield inside the closure of .
Let be a field. If , the prime subfield of is isomorphic to . If , it is isomorphic to .
Suppose first that , so that . Define
The map is well defined and injective at a stroke: holds if and only if , i.e. , i.e. . It is a ring homomorphism because is one (4.5) and merely re-reads on residue classes. Its image is therefore a subring of isomorphic to the field , and is in fact a subfield: for the computation exhibits the inverse of each nonzero element of inside . Finally, lies in every subfield: a subfield contains , hence all its additive multiples by closure under addition and negation. So is contained in the intersection of all subfields and is itself a subfield, forcing to be that intersection: the prime subfield is .
Now suppose , so that is injective and for every nonzero integer . Define
The map is well defined: if with , then in , so by applying , and multiplying both sides by gives . That preserves sums, products, and is the usual arithmetic of fractions, transported by the homomorphism and commutativity. Injectivity is immediate: forces , hence . The image of is thus a subfield of isomorphic to ; and it lies in every subfield , since contains , hence every , hence—being closed under inversion and multiplication—every . As before the image must equal the intersection of all subfields, and the prime subfield is a copy of . □
The size constraint now falls out of a counting device worth naming, for it recurs whenever a field sits over a subfield: vector-space counting over the prime subfield. Every field of characteristic is a vector space over its prime subfield : vectors are the elements of , vector addition is the field addition, and scalar multiplication for is the field multiplication, so the vector-space axioms are instances of the ring axioms of . The proof below uses exactly two facts about vector spaces: a space with a finite spanning set has a basis, and coordinates with respect to a basis are unique. Both are stated and proved in the linear-algebra section (8), whose development is independent of the present theorem, so no circularity arises.
Every finite field has cardinality for some prime and integer , where .
By 6.6 the characteristic of is a prime , and by 6.8 the prime subfield of is a copy of , with which we identify it. As explained above, is then a vector space over . It is spanned by the finite set itself, so it has a finite basis ; and because makes nonzero. Every element of is thus
for a unique tuple with each : existence because the span, uniqueness because coordinates with respect to a basis are unique (8). The assignment is therefore a bijection from to , and counting tuples gives . □
Fields of every prime-power size do exist, and are unique; we state the fact in full, but prove only the part the series stands on.
For every prime power there exists a field with exactly elements, and any two finite fields of the same cardinality are isomorphic. One constructs such a field as the quotient of the polynomial ring by the ideal generated by an irreducible polynomial of degree —the recipe recorded in Example 4.22.
The theorem is deliberately left unproved, and the omission costs the series nothing. The fields on the critical path of Halo 2 and Orchard are prime fields, the case with , and there the theorem is already proved: existence is 4.26, and uniqueness is immediate from the classification, since a field with elements has order with by 6.9, so it equals its own prime subfield, a copy of (6.8). The general case would require a development of polynomial factorisation over field extensions on which nothing later in the series relies, so we state it for orientation only. Convention, fixed henceforth: the letter denotes a prime power, and a field with elements, of characteristic ; results are stated for general whenever the proof is identical to the prime case, and the reader focused on Halo 2 may read throughout.
Characteristic is not merely a bookkeeping invariant; it changes what algebra is true. The most famous instance is the schoolroom error , false over and for every , which in characteristic becomes a theorem.
The proof expands by the binomial theorem, so we first fix its coefficients and their two readings.
Let be a commutative ring. For all and every integer ,
where the integer coefficient acts as the additive multiple , equals the number of -element subsets of an -element set, and satisfies
Expand the product by distributivity without collecting terms: the result is a sum of products, one for each way of choosing, from every factor, either its or its . By commutativity such a product equals exactly when was chosen from of the factors, and it is determined by the set of those factors; so the coefficient of is the number of -element subsets of the factors, and collecting the terms gives the displayed sum.
For the formula, count the sequences of distinct elements of an -element set in two ways. Choosing the entries in turn, there are choices for the first, for the second, and for the -th: sequences. Alternatively, each such sequence is a -element subset together with an ordering of it, and a -element set has orderings — the same count with in place of — so there are sequences per subset, and the number of subsets is . □
Let be a commutative ring of prime characteristic . Then for all ,
and more generally for every .
By the binomial theorem (6.12),
where the integer coefficient acts as the additive multiple . We claim that for . From the factorial identity of the same lemma
the prime divides the right-hand side. It does not divide : that product is a product of integers all smaller than , and if divided the product it would divide one of the factors by Euclid’s lemma for primes (Lemma 2.17), which is impossible. Applying Euclid’s lemma to the left-hand side instead, must divide , say .
Now let and consider the corresponding term. Writing for the canonical homomorphism of 4.5, the coefficient acts as multiplication by , since means exactly . Every middle term of the binomial expansion therefore vanishes, and the terms and leave .
The general case follows by induction on , the base case being the identity just proved. For , apply the base case to the elements and :
using the inductive hypothesis in the middle step. □
The identity says that in characteristic , raising to the -th power respects addition—and it obviously respects multiplication. A map respecting both operations is a homomorphism, and a homomorphism from a structure to itself is called an endomorphism; this one has a name of its own.
Let be a field of characteristic . The Frobenius map of is
Let be a field of characteristic . The Frobenius map is a ring homomorphism fixing the prime subfield pointwise. If is finite, is an automorphism of —a bijective ring homomorphism of onto itself.
Multiplicativity is commutativity and associativity alone: . Additivity is the freshman’s dream (Lemma 6.13), and ; so is a ring homomorphism.
Injectivity holds for a reason worth isolating, since it recurs: every ring homomorphism between fields is injective. Indeed, if had for some , then
in , contradicting in a field. In particular is injective.
The prime subfield is fixed pointwise. By 6.8 its elements are the values , and since is a ring homomorphism,
the last step because for all integers (Corollary 3.32).
Finally, let be finite. An injective map from a finite set to itself is surjective—the injectivity-implies-surjectivity device of 4.4—so is a bijective ring homomorphism of onto itself, an automorphism. □
The iterates are again homomorphisms, as the general case of the freshman’s dream states directly. On the prime field itself the Frobenius map is the identity; on larger fields of characteristic it is a genuine, structure-preserving symmetry, and 6.24 below records where it re-enters the cryptographic story.
The multiplicative group of a finite field is a finite abelian group of order : every one of the nonzero elements is invertible, precisely because is a field. Finite abelian groups can in general be quite far from cyclic—the unit group of Example 3.22 has order with no element of order —so it is a genuinely strong fact that is always cyclic. The proof is a counting argument of Gauss, and its arithmetic engine is an identity about the totient function . Everything we use about is its counting definition (Definition 2.26): is the number of integers with and . No further totient theory is needed or assumed.
For every integer ,
the sum running over the positive divisors of .
Partition the set according to the value of . For each the gcd is a positive divisor of , so the classes
are disjoint and cover ; hence .
We claim . A member of is divisible by , so it has the form with ; we show that, for such ,
For the forward direction, suppose ; then divides both and , so is a common divisor exceeding and . For the converse, suppose . The integer is a common divisor of and , so divides by the strongest-common-divisor property (Remark 2.12); write with . From we get , and from we get (cancel in each divisibility); so divides , forcing and .
The members of are therefore exactly the integers with and , and by the counting definition of the totient (Definition 2.26) there are precisely of them. Summing,
the second equality because is a bijection of the set of positive divisors of onto itself. □
The theorem now follows from a beautiful squeeze. We count the elements of each possible order twice over—once inside the group, once through the totient—and Gauss’s identity leaves the two counts no room to differ.
Let be any field and let be a finite subgroup of the multiplicative group, of order . Then is cyclic. In particular, for a finite field the whole multiplicative group is cyclic of order .
For each divisor , let
count the elements of of order exactly . Every element of the finite group has finite order dividing (Corollary 3.30), so the sets counted by the partition and
| (6) |
The key claim is that for each , either or . Suppose and choose of order . The powers are distinct elements of (Proposition 3.12(3)), and each satisfies
so each is a root in of the polynomial . That polynomial has degree , so it has at most roots in (Theorem 5.18); the distinct powers of therefore account for all of its roots. Now take any of order . Then , so is a root of and hence for some . By Corollary 3.23,
which equals exactly when . The elements of order in are thus precisely the powers with and , and by the counting definition of the totient there are of them: . This proves the claim, and with it the inequality for every .
Summing the inequality over the divisors of and comparing (6) with Gauss’s identity (Lemma 6.16),
The two ends are equal, so the inequality is an equality term by term: for every divisor . In particular
since always witnesses in the totient count. Hence contains an element of order ; its powers form a subgroup of with distinct elements (Proposition 3.12(3)), which must be all of . So is cyclic.
For the final statement, let be finite. The multiplicative group has elements—every nonzero element of a field is a unit—and is a finite subgroup of itself, so it is cyclic of order . □
The equality established along the way is worth extracting: it was proved for subgroups of a field’s multiplicative group, but it holds in any cyclic group, by the same gcd computation and with no field in sight.
A cyclic group of order contains, for each divisor , exactly elements of order , and no elements of any other order. In particular has exactly generators.
Write with ; the elements of are the powers , , each appearing once (Proposition 3.12(3)). By Corollary 3.23, , which is always a divisor of ; and if and only if . By the gcd computation in the proof of Lemma 6.16 (applied with and divisor ), the exponents with are exactly with and , of which there are by Definition 2.26. The generators are the elements of order , numbering . □
A generator of the cyclic group is called a primitive root (or primitive element) of . Equivalently, an element is primitive if and only if .
Existence is 6.17, and the census refines it: has exactly primitive roots (6.18), always at least one.
The name has a second reading, developed later in the volume: a primitive root of is precisely a primitive -th root of unity in the sense of 9.3, where the identification is restated once roots of unity have been defined in general. The two vocabularies—group-theoretic “generator of ” and polynomial-flavoured “primitive -th root of unity”—name the same elements.
The group has order . Testing , the successive powers modulo are
which run through all of : the element is a primitive root of . By contrast is not: its powers are , so . The full roster of primitive roots consists of the powers with (Corollary 3.23), namely and : the primitive roots of are and , and there are of them, as the census predicts.
Cyclicity settles, in one stroke, how many solutions the equation has in a finite field—the question on which the evaluation domains of later sections turn.
Let be a finite field and . The solutions of in number exactly , and they form the cyclic subgroup of of that order. In particular, when the equation has exactly solutions.
Fix a primitive root (6.17) and write each element of uniquely as with (Proposition 3.12(3)). Then , and holds if and only if (Proposition 3.12(1)). Set and write , with . Then
the last step by Euclid’s lemma (Proposition 2.15(1), with ). The qualifying exponents in are therefore the multiples of , namely for : exactly of them. The corresponding solutions are exactly the powers of , which by Corollary 3.23 has order ; so the solution set is the cyclic subgroup of order . When we have , giving exactly solutions. □
The corollary is precisely what renders a curve such as Pallas or Vesta suitable for Halo 2: one chooses the field size so that is divisible by a large power of , and the corollary then guarantees a multiplicative subgroup of -power order—the evaluation domain on which the number-theoretic transform, and hence efficient polynomial arithmetic, operates. The construction of these domains and the transform itself are the business of 9; the curves are introduced in 10.
The section’s two structural discoveries each carry cryptographic weight. First, the cyclicity of (6.17) underlies the discrete-logarithm problem—writing every nonzero element as invites the question of recovering , and the presumed hardness of doing so is a foundational assumption of later volumes—and, through 6.22, guarantees the existence of the roots of unity used in polynomial commitment schemes. Second, the Frobenius endomorphism (6.14) is not merely abstract: on an elliptic curve over it induces an endomorphism of the curve whose characteristic polynomial encodes the number of curve points as , where is the Hasse trace—tying the size of the cryptographic group directly to the field-theoretic Frobenius. Both connections are taken up in 10.
The question that opened the section is now answered in full. A finite arithmetic in which every nonzero element inverts exists only at prime-power sizes—6.9 forbids every other cardinality—and at each admissible size there is exactly one field, up to isomorphism (6.10). The machine’s own wrap-around arithmetic is instructive here: is a prime-power size, so a field with elements exists, but it is not the ring of word arithmetic—whose even classes have no inverses—but the polynomial-quotient construction of 6.10, with a different multiplication altogether. The proof systems of this series instead take the prime route: a prime of roughly bits, the field , inversion by 6.1 or 6.4. The payoff theorem then delivers the structure that everything later rides on: the multiplicative group of the chosen field is a single cycle, generated by one element, with exactly elements of each order and a guaranteed subgroup of every size dividing . Polynomials over these fields, the subject that the volume develops next into evaluation domains, fast transforms, and commitment schemes, will draw on that guarantee constantly.