There are many ways to define the natural numbers, but for this chapter, we'll
use the Von Neumann definition.
The Axiom of Infinity
Before we see that definition, we define a special set called the
successor set.
successor. Let S be a set. Then
S+=S∪{S}
is the set obtained by adjoining S to the elements of S, called the successor of S.
Suppose we represented the empty set with the symbol 0.
0:=∅
Note that this is an antisymmetric relation. We're not saying that 0is∅, nor are we saying that ∅is0. We're merely stating that the symbol 0 is a representation of ∅. Now, using the successor set, we can construct a set that looks like the following:
The problem, however, is that ellipsis. With what we have so far, we have no premise, or reason, that allows us to say that we can continue the pattern above. Put differently, if someone asked us: "How do you know that your pattern will continue forever? Who's to say that it won't stop?" we'd have no good answer. Obviously, we can't tell our interrogator "Well why don't you list them out and see if I'm wrong." That's far too rude. We can achieve a similar effect — more politely — with an axiom.
axiom of infinity. There exists a set ω, called the inductive set, containing 0 and the successor of each of its elements.
With this axiom established, we can now end the interrogation with a definition:
natural numbers. Let 0:=∅ and S be the successor
S(a)=a∪{a} for every set a. By the axiom of infinity, there
are subsets of the inductive set ω which contain 0, are closed
under S, and are themselves inductive. If one such subset B is an
arbitrary successor set, then ω∩B is also an arbitrary successor.
Hence, the intersection of all inductive sets is still an inductive set. We call
this intersection the natural numbers, which may be visualized as:
In short, we're using the axiom of infinity to implement the natural numbers inductively. We define 0 as the empty set, and then for each natural number n, we have the definition S(n):=n∪{n}. Because the axiom of infinity tells us that there is a set ω that contains (i) the empty set, and (ii) for all x∈ω, we have x∪{x}∈ω, the set of natural numbers N is merely an intersection of all the subsets of ω. And since N is an intersection, it is, in fact, a set (as opposed to a class).
The Peano Axioms
To nail the coffin completely, we take a closer look at what exactly the set of
natural numbers is. From the definition of the successor set, we get the first
two Peano axioms:
peano axiom i.0∈ω.
peano axiom ii.n∈ω⇒n+∈ω
Next, we know that if a set S is a subset of ω and S is a
successor set, then S=ω. This gives us the third Peano axiom:
peano axiom iii. If S⊂ω,0∈S, and n+∈S
whenever n∈S, then S=ω.
The third axiom follows simply from the definition of the successor set. As it
turns out, the third Peano axiom is also known as the Principle of Mathematical
Induction — that given the set S we just described, there is always a
minimal element. Next, we know that since 0 represents the empty set, it cannot be the case that any successor is 0, since the successor, by definition, is a union of an element and a set — i.e., not empty, and therefore, not zero. This yields the fourth axiom:
peano axiom iv. For all n∈ω,n+=0.
Now, suppose we defined the set S as follows:
n∈S if, and only if:
(1) n∈ωand
(2) ∀x∈n[n⊂x]
That is, S is the set of all n that are not subsets of themselves. Since
0 is not a subset of any of its elements (it's the empty set), it follows
that 0∈S. What if, say, n∈S? Well, from the definition above, we
have n∈ω, which means that n⊂n, and n∈/n. It follows, then, that n+ (the successor of n) is not a subset of n — n+⊂n. But n+ must be in there somewhere, otherwise n∈/ω. The only other set n+ can be a subset of is x. But if n+⊂x, then n⊂x, and because n⊂S, it must be the case that x∈/n. Thus, it cannot be the case that n+⊂n, and n+⊂x∈n. This yields the following lemma:
peano lemma i. For all n∈S,n⊂n.
Next, suppose we defined the set S as follows:
n∈S if, and only if,
(1) n∈ωand
(2) ∀x∈n[x⊂n]
It's true that 0∈S. Now let's consider n∈S. If x∈n+, then we have two cases: Either (a) x∈n, or (b) x=n. For
case (a), since n∈S, it follows that x∈n from our definition.
And since n∈S, it follows that x⊂n+. Case (b) is trivial —
if x=n, we have x=n∈S, and since x=n∈S,x=n⊂n+.
This yields the following lemma:
peano lemma ii. For all n∈S,n⊂n+.
Now suppose that n,m∈S and n+=m+ (the successor of n is the
same set as the successor of m). This means there are two cases:
Since n∈n+, it follows that n∈m+, and either n∈m or n=m.
Since m∈m+, it follows that m∈n+, and either m∈n, or m=n.
Suppose n=m. Then it must be the case that n∈m and m∈n.
From the second lemma, it follows that n∈n. But this would then mean
that n⊂n, which contradicts the first lemma. This yields the fifth
Peano axiom:
peano axiom v. If n,m∈ω and n+=m+, then n=m.
The Peano axioms define the set S as the natural numbers N. Given the
set N, we can construct the integers Z, the rationals Q, the reals R, and the complex numbers C.
The Recursion Theorem
Say we had some set X. We just constructed the natural numbers, so let's consider the Cartesian product N×X. Suppose there's some collection N with the following properties:
N is a collection of all the subsets A of N×X, with n∈N.
There exists a function f:X→X, with a∈X.
N contains a tuple (0,a)∈N.
If (n,x)∈N, then (n+,f(x))∈N.
From the two properties above, it follows that N=∅. And since N is a nonempty collection of sets, there exists an intersection of all the subsets. We'll denote that intersection u. Since all of the subsets of N×X are sets of tuples, it follows that u is a set of tuples.
Since (0,a)∈N, it follows that there is exactly one (0,a)∈u. Why? Because if there wasn't just one (0,a)∈u, it follows that there's another (0,b)∈u, where a=b. That is, u contains two tuples (0,a) and (0,b). If we excluded the (0,b), then we'd have two outcomes. First, we'd still have (0,a), since a=b. Second, excluding (0,b) means that u∖{(0,b)} is the smallest set in N. But this can't be true, because u is the smallest set in N.
Is there exactly one (n,x)∈u? Well, if (n,x)∈u, then (n+,f(x))∈u by property 4. And if (n,x) was not unique, then there must be some (n+,y)∈u where y=f(x). Otherwise, we'd violate property 4. Say we excluded (n+,y). This gives us the set u∖{(n+,y)}. Because n+=0, this smaller set still contains (0,a). But if the smaller set contains (0,a), then it must also contain some tuple of the form (k+,f(k)), again by property 4. If turns out that k=n, then it must be the case that the smaller set contains (n+,f(x)), because we said that y=f(x). If k=n, then the smaller set contains (k+,f(k)) anyway, because m+=n+. These cases (k=n or k=n) cannot be true, because both imply u∖{(n+,y)}∈N. This contradicts the fact that u is smallest set in N. Therefore, there is exactly one (n,x)∈u.
What can we conclude from these findings? From property 1, the giant collection N contains functions from N to some set X. Now, if we had an element a∈X and a function f:X→X, then there's a function u:N→X where u(0)=a and u(n+)=f(u(n)) for every n∈N. Why? Because there's always a subset of N, call it S, where (n,x)∈u, for at most one x. That subset S has the property where if 0∈S, then n∈S, then n+∈S. This conclusion is called the Recursion Theorem.
recursion theorem. Let a∈X and f:X↦X. Then there exists a function u:N↦X such that u(0)=a and u(n+)=f(u(n)) for all n∈N.
The recursion theorem is what allows us to construct recursive definitions. For example, suppose we were told that a function f is defined as
f(0),f(f(0)),f(f(f(0))),f(f(f(f(0)))),….
This is a function defined in terms of a previous application of the function, starting at some known base case. The Principle of Induction, on its own, does not allow us to create these definitions. Why? Because we have no reason to believe, with induction alone, that the function f even exists. Induction says nothing about existence. Indeed, this is a drawback of inductive proofs, and it's why many mathematicians find them unsatisfying — they do not yield new theorems. This illustrates a key point in mathematics, and more broadly, logic: There's a difference between describing an object (e.g., proving its properties with induction) and establishing the object's existence.
Operations on Naturals
Having established the natural numbers, we now want to establish their arithmetic. We begin with addition.
Addition
The recursion theorem is precisely what allows us to define addition. Before we do so, let's quickly review the notion of a successor:
successor. For each n∈N, there exists exactly one natural number called the successor of n, denoted n+, for which the following properties are true:
n+=0.
If n+=m+, then n=m.
If n=0, then we denote n+ as 1.
Here is the definition of addition:
addition.
By the recursion theorem, to every pair (x,y)∈N×N, there exists a unique function + that assigns exactly one natural number such that:
+(x,0)↦x for every x∈N.
+(x,y+)↦(+(x,y))+ for every x,y∈N.
We denote the assigned natural number as x+y.
Suppose we're given +(x,0+). Then by property (2), we have +(x,0+)=(+(x,0+))+. Recall that we denote the successor 0+ with the symbol 1. So, we have +(x,1)=(+(x,0))+. And since +(x,0)=x, we have +(x,1)=x+. What this means, then, is that the successor of any natural number x∈N can be expressed as x+1. We now join the rest of society: Whenever we write x+1 with x∈N, we mean the successor of x. Since +(x,0)↦x, we get the following properties:
lemma. Given x∈N,x+0=x.
lemma.0+1=1.
The second property is quite remarkable, because it's in line with the fourth Peano axiom: For all n∈ω,n+=0. Thus, 1+1=0.
To make things clearer, we ought to state the Peano axioms entirely with our new
notation for the succesor.
axiom.0∈N.
axiom. If n∈N, then n+1∈N.
axiom. For all n∈N,n+1=0.
Having established addition, we can move forward to establishing a few other properties.
Given n,m∈N, if n=m, then n+1=m+1. This is just the contrapositive of the fourth Peano Axiom: If n,m∈N, then n=m implies n+=m+.
axiom. Given n,m∈N, if n=m, then n+1=m+1.
Next, given n∈N, it must be the case that n+1=n. Why? Suppose n+1=n. If n=0, then 0+1=0. But that can't be true, since we've already established that 0+1=1. So it must be the case that n+1=n.
lemma. Given n,m∈N,n+1=n.
We'll state the contrapositive of the third property explicitly as well:
lemma. Given n,m∈N, if n+1=m+1, then n=m.
Suppose we have some n∈N with n=0. It follows that n+1∈N, since n+1 is simply n's successor. If we let x=n+1, then x∈N. And since x=n+1, it cannot be the case that x=1, since n=0. (It also can't be the case that x=0, since the successor of a natural number is never 0.) Thus, we have the following:
lemma. For each x∈N with x=0 and x=1, there exists an n such that x=n+1 and n=0.
Associative Law of Addition
From the definition of addition, we know that given a,b∈N, there exists a natural number a+b∈N. Addition also tells us that (a+b)+0=a+b, and b+0=b. Thus, we have:
a+b=(a+b)+0=a+(b+0)=a+b.
Might it be true that (a+b)+c=a+(b+c) for all a,b,c∈N? Well, let's suppose it's true. Then it must be the case that:
(a+b)+c+1∈N.
Let x=c+1. Then by the definition of addition, we have:
(a+b)+x=((a+b)+x)+1.
Since we assumed that (a+b)+c=a+(b+c) is true, it follows that for the righthand side, ((a+b)+x)+1=(a+(b+x))+1. Therefore:
(a+b)+x=((a+b)+x)+1.=(a+(b+x))+1.
From the definition of addition, know that a+(b+x)=(a+(b+x))+1. Thus, we get:
(a+b)+x=((a+b)+x)+1.=(a+(b+x))+1.=a+(b+x).
Given that x=c+1, it follows that (a+b)+c=a+(b+c) for all a,b,c∈N.
associativity of addition.∀a,b,c∈N:(a+b)+c=a+(b+c).
Commutativity of Addition
From the definition of addition, we know that 0+0=0=0+0. Is 0+k=k+0? Suppose it's true that 0+k=k+0. Then let k′=k+1, the successor of k. From the definition of addition, we know that (0+k′)=(0+k)′. Thus, we have:
0+k′=(0+k)′.
Then, we assumed that 0+k=k+0, we have:
0+k′=(0+k)′.=(k+0)′.
By the definition of addition, we know that k+0=k. Therefore, we have:
0+k′=(0+k)′.=k′.
And since k′+0=k′, we have:
0+k′=(0+k)′.=k′+0.
This gives us the first property of commutativity:
commutativity of zero on addition.∀n∈N:n+0=n=0+n.
Say we had a,b∈N, with b=a+1, the successor of a. Is it the case that (a+1)+b=(a+b)+1? Well, suppose (a+1)+b=(a+b)+1. If a=0, it follows that:
(0+1)+b=(0+b)+1.
We know that the successor of 0 is 1, and that 0+b=b following the commutativity of zero on addition. Therefore:
1+b=b+1.
We said that a=0, and that b=a+1, the successor of a, which means b=1:
1+0=0+1.
The initial assumption that (a+1)+b=(a+b)+1 cannot be true. We know that the successor of 0 is 1, and that 1+0=1, by the law of commutativity on zero. Given an n∈N, it must be true that (a+1)+b=(a+b)+1.
commutatitivty of successor on addition.∀a,b∈N:(a+1)+b=(a+b)+1.
Might it be the case that for any m,n∈N,m+n=n+m? Well, it's certainly true if n=0. Let's assume it's true for all m,n∈N. From the commutativity of a successor on addition, we know know that:
(n+1)+m=(n+m)+1.
Because we assumed that m+n=n+m, we have:
(n+1)+m=(n+m)+1.=(m+n)+1.
Clearly, (n+1)+m=(m+n)+1 is true, per the commutativity of a successor on addition. Therefore, we have:
commutativity of addition.∀n,m∈N:n+m=m+n.
Commutativity is a valuable property, but it also means that we must keep a close eye on it. In particular, we ought to establish that y=x+y if, and only if, x=0 for all y∈N. This proposition consists of two claims:
(x=0)⇒(x+y=y).(x+y=y)⇒(x=0).
The second claim is straightforward to check. Suppose x+y=y,x=0, and y is some arbitrary natural number. Then we'd have 0+y=y. But this violates the commutativity of zero on addition, so it must be true that (x+y=y)⇒(x=0). Now to the first claim. Suppose (x=0)⇒(x+y=y). The contrapositive of this assumption is that (x+y=y)⇒(x=0). But we just verified that (x+y=y)⇒(x=0). The first claim must therefore be true. Thus, we have the following:
lemma. For all y∈N,y=x+y if, and only if, x=0.
We should also establish that given x,y,z∈N, if y=z, then x+y=x+z. We'll use induction for this one. First, consider the case of some fixed y,z∈N. If y=z, we know that their successors aren't equal either: y′=z′. And since y′=z′, we have 1+y=1+z. And since 1∈N, we know that the proposition holds for the base case — a fixed y∈N and a fixed z∈N. Let's prove it for any natural number x∈N. Suppose its true that if y=z, then x+y=x+z. It follows that (x+y)′=(x+z)′. Because addition is commutative on successors, we know that x′+y=x′+z. Since x∈N,x′∈N, and the proposition holds for all x∈N.
lemma. For all x,y,z∈N, if y=z, then x+y=x+z.
Comparison Relations
Having established addition, we should establish that N is ordered. To do so, we have to return to using strictly set theory symbols. For a set to have some notion of ordering, we must have method of comparing its elements. For the natural numbers, this is done with the following definition:
comparable. Given m,n∈N, we say that m and n are comparable if at least one of these cases is true: (a) m∈n, (b) m=n, or (c) n∈m.
Suppose that for each n∈N, there exists a set S(n) comprising all the m∈N that satisfy at least one of the cases in the definition. That is, all the m∈N that are comparable to n are contained in the set S(n). Now let's say that S is the set of all n where S(n)=N. This implies that S=N. Clearly, 0∈S, because S(0) contains the set of all n that are comparable to 0: Given an m∈N, it's impossible for m∈0, because 0:=∅, so either m=0 or 0∈m, which satisfies the definition. Because m∈S(0), it follows that m+∈S(0), which means that S(0)=N. That's the base case, where n=0. Now let's show that if S(n)=N, it follows that S(n+)=ω. We know that 0∈S(n+), because n+∈S(0). Suppose that m∈S(n+). Then either n+∈m, or n+=m, or m∈n+, per the definition. If it's m∈n+, then either m=n or m∈n. Consider the last case, m∈n. Because we assumed that m∈S(n+), we know that m+∈S(n+), since m∈N. This means that we have either n∈m+,n=m+, or m+∈n. The first case, n∈m+, cannot occur. Why? Because if n∈m+, then either n∈m or n=m, which means that n⊂m. And that cannot be true, because no natural number is a subset of its elements. What about the case where n+∈m or n+=m? Well, if n+∈m, then n+=m+, and if n+=m, then n+=m+. And the cases where n=m+ and m+∈n? Both of these cases imply that m+∈n+. All of this leads to the following:
theorem. Let m,n∈N with m=n. Then it must be true that: (m∈n)⇔(m⊂n). Because it is always the case that either m∈n,m=n, or n∈m, we adopt the following conventions: If it is known that m∈n, we write m<n. If it is known that m∈/n, we write m≥n. If it is known that n∈m, we write m>n. And if it is known that n∈/m, we write m≤n.
From the theorem above, we can make a few observations. (A) First, if m=n, then n∈/m and m∈/n. (B) Second, if m∈n, then n∈/m, since no natural number is a subset of itself. (C) Third, if n∈m, then m∈/n, again because no natural number is a subset of itself. Putting it all together:
Examining each of these cases, it's clear that they can never occur at the same time. If (A) is true, then (B) and (C) are false. If (B) is true, then (A) is false because m∈n and (C) is false. If (C) is true, then (A) is again false because n∈m, and (B) is false.
theorem. Let m,n∈N. Then exactly one of the following is true:
m<n.
m=n.
m>n.
We can state some properties about the comparison properties. Suppose a,b,c∈N. If a<b, and b<c, is it the case that a<c? Let's assume it's not the case: a<b and b<c and a≮c. If a≮c, then c≤a. So either c=a or c<a. If c=a, then b<a. But this contradicts our assumption that a<b. Perhaps c<a then? If c<a, then it must be true that c⊂a. But from the definition of the < sign, we know that if b<c and a<b imply that b⊂c and a⊂b. Can it be true that c⊂a⊂b⊂c? No. It must be the case that a<c.
transitivity of lesser. Given a,b,c∈N, if a<b and b<c, it follows that a<b<c.
Multiplication
Here is the definition of multiplication:
multiplication.
By the recursion theorem, to every pair (x,y)∈N×N, there exists a unique function × that assigns exactly one natural number such that:
×(x,0)↦0 for every x∈N.
×(x,y+)↦×(x,y+x) for every x,y∈N.
We denote the assigned natural number as x×y, or equivalently, xy.
Notice that this is structurally the same definition as that of addition. Other than the different function symbol ×, the key difference is that x×0 maps to 0, and that x×y+ maps to x×y+x.
The first property we should prove is the commutativity of zero on multiplication. This will make our lives easier for the other proofs. We claim that x×0=0=0×x. We'll prove this with induction. Our base case is x=0. In that case, 0×0=0=0×0. This is true by definition. Now we prove it holds our claim holds for x∈N. We claim that if x×0=0×x is true, then (x+1)×0=0×(x+1).
By the definition of multiplication, we know
that 0×(x+1)=(0×(x+0))+0. Therefore, we have:
0×(x+1)=(0×x)+0
Since we assumed that x×0=0×x (our induction hypothesis), we have:
0×(x+1)=(0×x)+0=0+0
By the definition of natural addition, we know that 0+0=0. By the definition of natural multiplication, we have (x+1)×0=0. Therefore, it must be true that 0×(x+1)=0=(x+1)×0.
zero element.∀n∈N:n×0=0=0×n.
We should state clearly that there's an identity element for multiplication, 1. This follows directly from the definition of multiplication. We know that 1 is the successor of 0. So, given x×1, we must have x×(0+1). It must also be the case that n×1=1×n. If it weren't, then we'd have 0×1=0×1 when n=0, which violates the zero element rule.
identity element.∀n∈N:n×1=n=1×n.
Commutativity of Multiplication
Is it true that xy=yx for any x,y∈N? It's certainly true when x=1, by the identity element. We have y×1=y, and 1×y=y. Suppose x∈N, and xy=yx is true. Then by the definition of addition, xy+y=yx+y=yx+. And by the definition of multiplication, we have x+y=xy+y. Thus, we have x+y=yx+. It follows that xy=yx for all x,y∈N.
commutativity of multiplication.∀a,b∈N:a⋅b=b⋅a.
Distributivity of Multiplication over Addition
Suppose x,y∈N. We claim that x(y+z)=xy+xz. First, suppose z=1. Then we'd have x(y+1)=xy+=xy+x=xy+x⋅1. Which is true. Therefore, the claim is true for the case where z=1. Now suppose we select an arbitrary z. Assume that x(y+z)=xy+xz is true. If it is true, then we have:
distributivity of multiplication.∀a,b,c∈N:a(b+c)=ab+ac.
Associativity of Multiplication
We claim that (xy)z=x(yz) for all x,y,z∈N. First, suppose z=1. Then (xy)⋅1=xy=x(y⋅1). This is true. No suppose z is some arbitrary natural number. Assume (xy)z=x(yz) is true. Then we have:
(xy)z+=(xy)z+xy=x(yz)+xy=x(yz+y)=x(yz+).
Clearly, (xy)z=x(yz) for all x,y,z∈N.
associativity of multiplication.∀a,b,c∈N:a(bc)=b(ac).
Integers
The natural numbers, truly, are a remarkable construct. But they're inherently limited: We have no way of solving equations like x+1=0 and x+5=3. The former cannot be solved because no successor is 0 by definition, and the latter cannot be solved because no natural number is a subset of its elements, which implies that 3 cannot be a successor of 5.
We need another construct.
One idea is to define the integers as solutions to the equation x+b=a, where x,b,a∈N. This avoids violating our established definitions and propositions, because it's cast entirely in terms of the naturals. An integer, then, is an ordered pair (a,b) which we may denote as a−b. The problem with this idea, however, is that it's overbroad — different equations can have the same solutions. For example, x+1=2 and x+3=4 have the same solution 1. However, because we defined the solutions as tuples, the x in x+1=2 is the tuple (1,2), which we denote as 2−1, and the x in x+3=4 is the tuple (3,4), which we denote as 4−3. Because these are different tuples, we have 2−1=4−3. That's not what we want.
What we can do is establish that the tuples solving these equations are all the same. We'll start by establishing some notation.
notation. Let m,n∈N. Then the notation m−n denotes a pair (m,n)∈N×N.
Now a definition:
definition. Let ∼ be a relation on N×N. The relation m−n∼p−q is true if and only if m+q=n+p.
From the definition above, we can infer a few things. First, we have m−n∼m−n, since m+n=m+n by the definition of addition. Thus:
lemma i.a. Given m,n∈N, it follows m−n∼m−n. That is, the relation ∼ is reflexive.
Second, if by the commutative property of addition, we have n+p=m+q. It follows that p−q∼m−n.
lemma i.b. Given m,n,p,q∈N, if m−n∼p−q, then p−q∼m−n. That is, the relation ∼ is symmetric.
Third, say we had six natural numbers, m,n,p,q,r,s. Now suppose we had m−n∼p−q and p−q∼r−s. This implies that:
m+qp+s=n+p,=q+r.
Since all six numbers are natural numbers, we know that (m+s)+q is a natural number, since the successor of a natural number is a natural number. Using the laws we already have:
(m+s)+q=m+(s+q)by associativity of addition=m+(q+s)by commutativity of addition=(m+q)+sby associativity of addition=(n+p)+ssince m+q=n+p=n+(p+s)by associativity of addition=n+(q+r)since p+s=q+r=n+(r+q)by commutativity of addition=(n+r)+qby associativity of addition
Since (m+s)+q=(n+r)+q, we know that m+s=n+r. Which means that, if m−n∼p−q and p−q∼r−s, it follows that m−n∼r−s.
lemma i.c. Given m,n,p,q,r,s∈N, if m−n∼p−q, and p−q∼r−s, then m−n∼r−s. That is, the relation ∼ is symmetric.
Because of lemma i.a., lemma i.b., and lemma i.c., the relation is reflexive, symmetric, and transitive. Therefore, the relation ∼ is an equivalence relation.
theorem. For all natural numbers a,b,c,d, if and only if a+d=b+c, then the pair of natural numbers represented by a−b is equivalent to the pair represented by c−d.
What we've essentially done is define a−b as denoting a pair (a,b) where a,b∈N. But more importantly, we've established that we can verify whether a given pair is equivalent to a−b. In other words, by the recursion theorem, given a,b,c,d∈N, there exists an equivalence class of ordered pairs:
[(a,b)]≡:=[(a,b)≡(c,d)⇔(a+d=b+c)].
Because the set of natural numbers always has a unique member 0, every equivalence class [(a,b)]≡ has a unique member of the form (n,0),(0,n), or both at once, where n∈N. Gathering all of these classes into a set, we have:
By convention, we denote classes of the form [(n,0)] as n, and classes of the form [(0,n)] as −n. That is, their solution forms:
{…,−3,−2,−1,−0,0,1,2,3,…}.
Now, to embed the natural numbers in this set, we define (by the recursion theorem) a function that maps each natural number n∈N to a subset of Z: the subset [(n,0)]. Thus, we have 0↦0,1↦1,2↦2, and so on. This allows us to say that the natural numbers are a subset of this set of equivalent classes. We might notice something funny. There's a −0? Indeed, there is! But only because of how we've defined the integers: Each member of the set (an integer) is a set of equivalence classes of mappings — there are always two symbols. However, the natural number 0 has a very special property: 0+n=0=n+0. As such, −0 and 0 are no different. Thus, we adopt another convention to denote the set:
[(a,b)]:={a−b−(b−a)ifa≥belse
This gives us the set we're all familiar with, which we denote more concisely as Z:
Z:={…,−3,−2,−1,0,1,2,3,…}
More explicitly:
integers. The set Z is defined as the disjoint union Z−⊔{0}⊔Z+, where Z− is the set of all equivalence classes [(0,a)]≡, where Z+ is the set of all equivalence classes [(a,0)]≡, and where the equivalence ≡ is defined as x+m=y+n given (x,y),(n,m)∈N×N. By definition, N⊂Z.
Operations on the integers are defined as follows:
integer addition. Let a,b∈Z. Then
a+b=[(m,n)]≡+[(p,q)]≡=[(m+p,n+q)]≡
where m,n,p,q∈N.
Now, we have to make sure that this operation is well-defined, because we're adding equivalence classes here, rather than the usual natural numbers. Fortunately, we can do so quickly. First, let's consider the base case (m,n)≡(m,n), and (p,q)≡(p,q). Then we have:
m+n=m+nandp+q=p+q.
Both true. Now let's suppose (m,n)≡(m+,n+) and (p,q)≡(p+,q+). Then we have:
m+n+=m++nandp+q+=p++q.
According to our definition of addition, we have:
m++p++n+q=n++q++m+p.
Integer addition is well defined. Note that because of this definition, subttraction comes naturally. The same verification must be done for multiplication:
integer multiplication. Let a,b∈Z. Then
a⋅b=[(m,n)]≡⋅[(p,q)]≡=[(mp+nq,np+mq)]≡
where m,n,p,q∈N.
The Rationals
From number theory, the / operation, called division, is defined as follows:
division. Let a,b∈Z. Then a/b is defined if and only if there exists a q∈Z such that a=bq+r with 0≤r<b.
This is a nice definition, since it allows us to solve equations like 2x+1=5. Here, there is a q∈Z, the integer 2. Unfortunately, we can't solve 2x=1. Why? Because there is no q∈Z that satisfies 2x=1. This means that we need a special set of numbers that can solve this equation. Since we want to solve equations involving Z, we need all of the usual integer operations to work on this new set. We'll also want its members to be ordered. The last thing we want is reinventing over a thousand years of mathematics. What we want is a number of the form
ba.
This allows us to use the cancellation law of addition on the integers. For example, given 2x=1, the solution would be a number from this set, denoted 21.
2⋅21=1.
Sound familiar? Indeed, this is precisely what we did when we wanted
to define subtraction. We defined a set of equivalence classes. Once again, we'll have to define what the symbol ba means. Otherwise, it'd be ambiguous. A good first attempt is to define ba as a tuple (a,b) that belongs to some relation R⊆Z×Z. This is permissible, since a∈Z and b∈Z. If we just left it at this, however, we'd run into a problem. Since we're allowing any integer to form this tuple, we can have
01.
But if there is a number 1/0, it follows that:
0⋅011=1⋅0.=0.
Not good. So, we can't allow the b in the tuple (a,b) to be 0. So, we'll have to adjust the codomain to Z∖0 (the integers excluding 0). This gives us our first working definition:
ba⇔(a,b)∈R⊆(Z×Z∖0)
This is pretty good. We've defined what ba means purely in terms some relation. But, we've got a problem. Recall that tuple equality is defined as (a,b)=(c,d)⇔(a=c∧b=d). Suppose we're given the following equations: 2x−1=0, and 4x−2=0. Since both these equations are equal to 0, have:
So, the solution for both equations is x=21. If we solved them individually, we get the following:
2x−12xx=0.=1.=21.
4x−24xx=0.=2.=42.
We're getting two different tuples. If 2x−1=0, then we get the tuple (1,2). But if 4x−2=0, we get the tuple (2,4). Those are two different tuples, but we just saw that both equations should return the same tuple (1,2). So how do we ensure that (1,2) is the same as (2,4)? Clearly, they aren't the same under tuple equality. This is the precisely the kind of problem we wanted to avoid when we constructed the integers. Thus, we again define the rationals as equivalence classes.
rationals. Let (a,b),(c,d)∈Z×Z. The set Q is defined as the set of all equivalence classes [(a,b)]≡, such that ad≡bc and b=0. If [(a,b)]∈Q, we may denote it as ba.