Rings and Fields
Goal
By the end of this chapter, you should understand the difference between rings, integral domains, and fields. You should also understand why is not always a field, why prime moduli are special, and why fields are needed before we can define elliptic curves cleanly.
Prerequisites
You should know modular arithmetic and the basic definition of a group. In particular, you should be comfortable with:
- addition and multiplication modulo
- modular inverses
- additive and multiplicative notation for groups
- the idea of a set with one or more operations
Motivation
Groups have one operation. Rings and fields have two operations that behave like addition and multiplication.
This matters because elliptic curve equations, finite fields, pairings, and many cryptographic algorithms need both operations. For example, an elliptic curve equation may look like:
To make sense of this equation, we need to know what addition, multiplication, powers, and division mean in the number system where and live.
Rings and fields give us that language.
Rings
A ring is a set with two operations, usually called addition and multiplication.
The exact definition has several parts. A set is a ring if:
- is an abelian group under addition.
- Multiplication is associative.
- Multiplication distributes over addition.
The distributive laws are:
and:
for all .
Some books require a ring to have a multiplicative identity, and some do not. In this textbook, we will usually care about rings with a multiplicative identity, but we will state the identity explicitly when it matters.
Example: The Integers
The integers:
form a ring under ordinary addition and multiplication.
Under addition:
- the identity is
- the inverse of is
- addition is associative and commutative
Under multiplication:
- multiplication is associative
- multiplication distributes over addition
- is a multiplicative identity
But is not a field, because most integers do not have multiplicative inverses inside . For example, there is no integer such that:
Commutative Rings
A ring is commutative if multiplication commutes:
for all in the ring.
The integers are a commutative ring.
The modular rings are also commutative rings:
Not every ring is commutative. For example, matrices form rings where multiplication usually depends on order. This book mostly uses commutative rings and fields.
Multiplicative Identity
A multiplicative identity is an element, usually written , that does nothing under multiplication:
and:
In , the multiplicative identity is .
In , the multiplicative identity is also the residue class represented by :
A multiplicative identity is different from an additive identity. The additive identity is because:
Integers Modulo as Rings
For any positive integer , the set:
is a ring under addition and multiplication modulo .
Example: in :
and:
The operations stay inside the set because we always reduce modulo .
Zero Divisors
A zero divisor is a nonzero element such that there is another nonzero element with:
In modular arithmetic, this means:
even though neither nor is congruent to .
Example: in :
Here and are nonzero modulo , but their product is zero. So and are zero divisors.
Zero divisors are one reason is not always a field. If is a zero divisor, then it cannot have a multiplicative inverse. If it did, multiplying by would force , contradicting that was nonzero.
Integral Domains
An integral domain is a commutative ring with multiplicative identity where:
- .
- There are no zero divisors.
The integers form an integral domain.
Example:
If in , then either or . You cannot multiply two nonzero integers and get zero.
is not an integral domain because:
But is an integral domain. There are no nonzero residues whose product is modulo .
Fields
A field is a commutative ring with multiplicative identity where every nonzero element has a multiplicative inverse.
In a field, you can add, subtract, multiply, and divide by any nonzero element.
The rational numbers form a field. For example, the inverse of is:
The integers do not form a field, because has no inverse in .
Why Is Not Always a Field
is a field exactly when is prime.
If is composite, then for some integers and with:
and:
Then in :
So and are zero divisors. A field cannot have zero divisors.
Example:
In :
so it is not a field.
If is prime, every nonzero element of is coprime to , so it has a modular inverse. Therefore is a field.
Example: in , the nonzero elements are:
Each has an inverse:
Characteristic
The characteristic of a ring or field is the smallest positive integer such that:
If no such positive integer exists, the characteristic is .
The integers have characteristic . No positive number of copies of adds up to in .
The ring has characteristic :
The field has characteristic when is prime.
Characteristic matters because algebra can behave differently in different characteristics. For example, in characteristic :
This changes many formulas.
Polynomial Rings
A polynomial ring is a ring whose elements are polynomials with coefficients from another ring or field.
For example:
is the ring of polynomials in with integer coefficients.
Examples of elements:
If the coefficients come from , we write:
In that ring, coefficients are reduced modulo . For example:
Polynomial rings let us build larger algebraic systems from smaller ones. Finite fields used in pairing-based cryptography are often built using polynomials and quotient rings.
Quotient Rings, Gently
A quotient ring is what you get when you decide that two ring elements should count as the same if their difference is a multiple of some chosen element or ideal.
The familiar example is modular arithmetic:
This can be read as "integers where numbers that differ by a multiple of are treated as equivalent."
For example, in :
because:
and is a multiple of .
Polynomial quotient rings follow the same idea, but with polynomials. Instead of reducing integers by a number like , we reduce polynomials by another polynomial.
For example, in a quotient where is treated as zero, we get:
This lets high-degree polynomials be reduced to lower-degree representatives.
This chapter only needs the intuition. Later finite-field chapters will use this idea more concretely.
Why Fields Are Needed for Elliptic Curves
Elliptic curve equations use addition, multiplication, powers, and division by nonzero values. A typical curve equation has the form:
To define the curve over a set of numbers, those operations need to behave well. Fields give us that setting.
Over a field, every nonzero element has an inverse. That means formulas used in the elliptic curve group law can divide by nonzero quantities when needed.
For cryptography, elliptic curves are often defined over finite fields. This keeps the set of possible points finite and makes computation exact.
Chia Connection
BLS12-381, the pairing-friendly curve used in BLS signatures, is built using finite fields. Later chapters will discuss the base field, scalar field, and extension fields involved in BLS12-381.
For now, the important point is that "field" is not decoration. The field is the arithmetic environment where curve coordinates, polynomial relations, and pairing computations live.
Chia uses BLS signatures, so understanding fields is part of the path toward understanding how those signatures are represented and verified. Exact parameters and implementation details should be checked against primary specifications and Chia-related source code when those chapters make specific claims.
Source starting points: BLS12-381 construction notes and the IETF pairing-friendly curves draft.
Common Pitfalls
Thinking a ring is just a group with multiplication added. A ring has a specific interaction between addition and multiplication through distributive laws.
Assuming every is a field. It is a field only when is prime.
Ignoring zero divisors. Zero divisors break familiar cancellation rules. If , you cannot always cancel unless you know cancellation is valid.
Confusing integral domains with fields. Every field is an integral domain, but not every integral domain is a field. The integers are an integral domain but not a field.
Forgetting the characteristic. In finite fields, repeated addition of eventually gives . This can change algebraic identities.
Treating quotient rings as mysterious. Modular arithmetic is already a quotient-ring idea: reduce by a rule and work with representatives.
Exercises
- Explain why is a ring under ordinary addition and multiplication.
- Is a field? Explain which field rule fails.
- Find two nonzero zero divisors in .
- Is a field? Explain using either zero divisors or modular inverses.
- List the multiplicative inverses of all nonzero elements in .
- What is the characteristic of ?
- In , simplify .
- In ordinary integers, and implies . Give an example showing that cancellation can fail in .
- Explain in your own words why fields are useful for elliptic curve equations.
Further Reading
- Later chapter: Finite Fields
- Later chapter: Elliptic Curve Group Law
- Later chapter: BLS12-381
- Any introductory abstract algebra text covering rings, fields, and quotient rings