3.1. Construction of the integers
We have developed a theory of addition, but there are equations involving addition such as x+3=2 which we cannot solve in natural numbers.
The approach we will take to fix this is to define a new number system, the integers:
\Z=\{\ldots,-3,-2,-1,0,1,2,3,\ldots\}.
Of course we cannot use this as a definition because it has \ldots in it.
So how do we construct the integers formally from the naturals?
We will explain a beautiful method using the theory of equivalence relations and equivalence classes.
We want to think of negative integers as things like "the result of subtracting 7 from 4" --
whatever this is.
Now, every integer k can be expressed as a difference a - b of natural numbers, and in particular can be built from two natural numbers.
So how about we just define the integers to be \N \times \N, the set of ordered pairs of natural numbers?
The ordered pair (4,7) would then correspond to the integer 4 - 7.
But there is a problem here: we have too many integers with this definition.
The ordered pairs (4,7) and (5,8) are different pairs
(they are different vectors in the plane, if you like),
but the integers 4-7 and 5-8 are equal.
There isn't just one way to write an integer k as a difference a-b, there are lots of ways.
What we want to do then, is to start with \N \times \N (which is too big) and then "squish some elements together" and somehow make (4,7) and (5,8) "equal" even though they are not actually equal.
Once we have squished (4,7) and (5,8) and (6,9) and (n,n+3) together, and then squished together all the other different pairs of natural numbers which give rise to the same integer,
then we really will have defined the integers.Note that there is another possibility here:
instead of squishing different pairs together, we could decide to throw out all pairs (a,b) except those of the form (a,0) or (0,b), i.e. we only consider "differences" a-0 and 0-b.
This might superficially look simpler, but it causes real problems later on.
For example the standard formula (a-b)+(c-d)=(a+c)-(b+d) is no longer helpful in telling us how to add differences,
because even if one each of the numbers in (a,b) and (c,d) is zero,
this may not be the case for (a+c, b+d).
You could still define the sum to be "start with (a+c, b+d) and decrement until one of these numbers reaches zero," but then proving things like associativity of addition becomes a nightmare.
This squishing together of different elements of a set is formally done by putting an equivalence relation on the set, and then considering the equivalence classes.
The axioms of an equivalence relation are an attempt to mimic and generalise the concept of equality.
When you quotient out a set by an equivalence relation by taking the set of equivalence classes, the concept of equivalence in the bigger set becomes the concept of equality in the quotient set:
if x\sim y are equivalent, then the equivalence classes cl(x) and cl(y) are equal.
What should our equivalence relation be?
It is supposed to relate pairs (a,b) and (c,d) of naturals if they represent the same integer, that is, if a-b=c-d.
But there is a big problem here: this argument is circular, because we haven't defined the integers or subtraction yet, so "a-b=c-d" doesn't make sense at this point.
Can we rewrite this equation in such a way that it doesn't mention subtraction?
Yes we can: adding b+d to both sides turns the equation into a+d=b+c, which makes perfect sense.
But is it an equivalence relation?
Proposition 37
The following binary relation on \mathbb{N}\times\mathbb{N}
(a,b)\sim (c,d)\textrm{ if and only if } a+d=b+c
is an equivalence relation.
Proof
Reflexivity: We have to show that (a,b)\sim (a,b).
By commutativity of addition we have immediately a+b=b+a, hence \sim is reflexive.
Symmetry: Here we must show that if (a,b)\sim (c,d), then (c,d)\sim (a,b).
By definition, (a,b)\sim (c,d) means the same as a+d=b+c, and similarly (c,d)\sim (a,b) if and only if c+b=d+a.
So we need to show that a+d=b+c\implies c+b=d+a.
This follows, because equality is symmetric and addition is commutative.
Transitivity: Assume that (a,b)\sim (c,d) and (c,d)\sim (e,f) or in other words a+d=b+c and c+f=d+e.
We want to show that a+f=b+e.
Adding f to both sides of the first identity, we deduce a+d+f=b+c+f,
and using the second identity on the right hand side (and did you spot the use of associativity?) gives us a+d+f=b+d+e.
Rearrange to get a+f+d=b+e+d, and now using the cancellation law for addition (Theorem 18(1)) we deduce a+f=b+e, which was what we had to prove.
Definition 38
The set of integers \mathbb{Z} is the set of all equivalence classes for \N\times\N under this equivalence relation.
Note that we did not add any new axioms here, we just made definitions.