Rings and Fields
Rings and Fields
Rings and Fields
Guy McCusker
1W2.1
Example: lists
Operations
Binary operations
A binary operation takes two elements of the set and operates on them to
give a third element.
Example
I addition is a binary operation on the integers
I conjunction and disjunction are binary operations on the truth values
I union and intersection are binary operations on P(A) for any set A
I subtraction of one number from another is a binary operation on the
integers, but not on the natural numbers because for example 3 − 5
does not give a natural number.
Nullary operations
A nullary operation takes no elements of a sets as input, and gives an
element as output.
You shouldn’t have too much trouble imagining that there are other kinds
of operation: ternary ones (three inputs), infinitary ones (infinite number
of inputs) and so on.
G.A.McCusker@bath.ac.uk (1W2.1) CM10196 Topic 5: Groups, Rings, Fields 8 / 56
When we describe a set with a binary operation on it, we’ll have to give
two pieces of data:
I the set itself; this will be some set A
I the operation; this will be a function f : A × A −→ A.
For instance, the set N of natural numbers together with the addition
function + : N × N −→ N is a “set with a binary operation”.
Examples of monoids
I The natural numbers with the operation of addition and the constant
0 form a monoid; this works on the integers too.
I The natural numbers with the operation of multiplication and the
constant 1 form a monoid; this works on the integers too.
I The truth values, with the operation of conjunction and the constant
value true form a monoid.
I The truth values, with the operation of disjunction and the constant
value false form a monoid.
I The collection of finite lists of numbers, with the operation of
concatenation and the constant value the empty list, forms a monoid.
The underlying set we will work with is called Z/kZ (for slightly complex
reasons); all we need to know is that
Exercise
Suppose we consider the same set but without the element 0, and the
operation of multiplication mod k. Is the operation well-defined on this
smaller set? What if k is a prime?
The question is asking if, given a and b in Z/kZ \ {0}, the number a ×k b
is still in the set.
Functions on a set
Let A be any set, and consider the set AA , that is, the set of all functions
from A to A.
We know that
h ◦ (g ◦ f ) = (h ◦ g ) ◦ f
and also that, if we write id for the identity function on A,
id ◦ f = f ◦ id = f .
Let’s prove a fact about monoids in the abstract, i.e. without talking
about a particular monoid.
Theorem
In any monoid, there is exactly one identity element, i.e. exactly one
element e such that e · a = a = a · e for all a.
Proof We know from the definition of a monoid that there is at least
one identity element, so we have to show that there cannot be more.
e1 = e1 · e2 = e2
using the unit equation for e2 to get the first equality, and the unit
equation for e1 to get the second.
Here are all six of the bijections from the set {1, 2, 3} to itself.
3 3 3 3 3 3
2 2 2 2 2 2
1 1 1 1 1 1
3 3 3 3 3 3
2 2 2 2 2 2
1 1 1 1 1 1
These six maps correspond to the six ways of drawing a triangle with
corners labelled A, B and C:
A A C
C B B C A B
B C B
C A B A A C
Notice that each layout of the triangle can be obtained by rotating and
reflecting the original one.
Inverses
The symmetries of a triangle (or any set) have a special property: each
such map has an inverse, that is to say, another map you can compose it
with to end up with the identity.
Monoids where every element has an inverse are the subject of a large and
important area of algebra called group theory.
To make the idea of “monoid with inverses” precise, we’ll define a new
kind of algebraic structure, called a group.
Groups
Definition
A group is given by
I a set A
I a binary operation on A (written with a dot or with concatenation, as
before)
I a nullary operation (constant) called the unit or identity and written e
I a unary operation called inverse; the inverse of an element a is
written a−1
such that the following equations hold for all a, b, c ∈ A:
associativity (a · b) · c = a · (b · c)
unit a · e = a and e · a = a
inverse a · a−1 = e = a−1 · a.
Non-examples of groups!
Some non-examples:
I The natural numbers with addition as the operation do not form a
group because there’s no inverse for any n > 0.
I The integers with multiplication do not form a group because no
number other than 1 has an inverse.
I The rationals with multiplication do not form a group because 0 has
no inverse.
I The 1-1 functions on a set do not form a group because a function
which is not bijective does not have an inverse.
aa−1 = e = a−1 a
Exercise
Show that, for any elements a and b of a group,
(ab)−1 = b −1 a−1 .
Cancellation laws
Theorem
In any group, for any a, b and c,
I if a · b = a · c then b = c
I if b · a = c · a then b = c.
Exercise
Prove this. It’s easy. Remember inverses exist.
{0, 1, 2, . . . , n − 1}
{1, 2, . . . , p − 1}
Multiplication tables
· 1 2 3 4
1 1 2 3 4
2 2 4 1 3
3 3 1 4 2
4 4 3 2 1
Cyclic groups
3, 4, 2, 1, 3, 4, 2, 1, . . .
Because multiplying by 3 takes us round and round this loop, hitting all
the elements as we go, the group is called cyclic.
Exercise
Check that 2 is also a generator for the group. What about 1 and 4?
The number of elements in a finite group is called its order. So the group
we just saw is called the cyclic group of order four.
a, a · a, a · a · a, ...
a, a2 , a3 , ...
Order of an element
Theorem
In a finite group, every element has a finite order.
a, a2 , a3 , . . . , an−1
e, a, a2 , a3 , . . . , an−1 .
11 = 1
12 = 2
..
.
1k = k
..
.
1n−1 = n − 1
1n = 0
Logarithms
In the real numbers, any positive number x has a logarithm base 2, which
is to say a number y such that
2y = x.
Groups of symmetries
We’ve already seen this group (as a monoid) in the case of a triangle. In
that case, every permutation of the set {1, 2, 3} gave us an element of the
group.
A B D A C D B C
D C C B B A A D
D C C B B A A D
A B D A C D B C
C B
corresponds to the map
A 7→ D
B 7→ A
C 7→ B
D 7→ C
G.A.McCusker@bath.ac.uk (1W2.1) CM10196 Topic 5: Groups, Rings, Fields 38 / 56
Subgroups
If we have a group, sometimes we can find a subset of its elements which
also forms a group, with the same operation, unit and inverse as the
original group.
Here are all the symmetries of the triangle, with the ones that are not
rotations drawn in grey.
A A C
C B B C A B
B C B
C A B A A C
Rotational permutations
Here are all six of the bijections from the set {1, 2, 3} to itself, with the
ones that are not rotations greyed out. Notice the way these bijections
correspond to the symmetries of the triangle on the previous slide.
3 3 3 3 3 3
2 2 2 2 2 2
1 1 1 1 1 1
3 3 3 3 3 3
2 2 2 2 2 2
1 1 1 1 1 1
Abelian groups
ab = ba
All the groups we’ve seen that are based on addition or multiplication of
numbers are Abelian, because addition and multiplication are themselves
commutative.
3 3 3 3
2 2 2 2
1 1 1 1
In fact, any cyclic group is Abelian: since every element can be written as
g n where g is the generator, we always have
g n · g m = g n+m = g m+n = g m · g n .
Rings
Definition
A ring is given by
I a set A
I a binary operation called multiplication on A, written ×
I a binary operation called addition on A, written +
such that
I there is an element 0, and a unary operation taking each element a to
−a, which make the set A with operation + into an Abelian group.
I there is an element 1 which makes the set A with operation × into a
monoid
I multiplication distributes over addition:
a × (b + c) = (a × b) + (a × c)
(a + b) × c = (a × c) + (b × c)
G.A.McCusker@bath.ac.uk (1W2.1) CM10196 Topic 5: Groups, Rings, Fields 46 / 56
Warning
Examples
Fields
Rings talk about addition and multiplication, but not division. We can
request further structure to arrive at a field.
Definition
A field is a ring such that
I 0 6= 1
I multiplication is commutative
I for every a 6= 1, there exists a−1 such that a × a−1 = a−1 × a = 1.
To put it another way, the non-zero elements of the ring form an Abelian
group.
Examples
Theorem
In any field, if a × b = 0 then at least one of a and b is zero.
This says that 0 has no interesting divisors; it is therefore said that a field
has no zero divisors.
The topic of algebra concerns the study of these kinds of structure in great
depth. There are many amazing things that can be constructed and
proved using the kinds of ideas we’ve seen here.
The most important ideas are here, though: the idea that we can
abstractly capture the kinds of operations and equations we make use of,
and reason about these structures at a general level.
Once we’ve got this lemma, the fact we need follows immediately: since
the gcd of a and p is 1, we get
1 = ax + py
for some x and y , and then a ×p x = 1.
G.A.McCusker@bath.ac.uk (1W2.1) CM10196 Topic 5: Groups, Rings, Fields 54 / 56
Proving the lemma
m = a − nc
= a − nax − nby
= a(1 − nx) + b(−ny )
Since c is the smallest integer of this form, and since m < c, we must
have m = 0 i.e. c divides a. Similarly we show c divides b.
Finally we show that any number that divides both a and b divides c. This
is easy.