IUM lectures on Numbers

2.8. Peano's remaining axioms

Earlier on we proved 1+1=2, but can we also prove that 1+1=3? This would be easy to prove if 3=2, but 3=2 looks a bit suspicious. However, can we rule out 3=2 using only the axioms? It is amusing to note that we were able to prove lots of theorems about addition and multiplication without ever worrying about this issue.

In Peano's original paper, he add two extra axioms to the system in order to make this easy.

  • If x is a natural number, then S(x)\not=0.

  • If x and y are natural numbers and S(x)=S(y), then x=y.

The first of these axioms says that if you keep applying S then you will never end up back at 0, and the second axiom says that S is an injective function. Put together, these two axioms guarantee that if we keep applying the S function then it will never output a number which we've seen before ("counting doesn't loop"). Let's use Peano's extra axioms to show that 3\not=2.

Theorem 15

3\not=2.

Proof

We prove this by contradiction. Let's assume 3=2. Writing 2=S(1) and 3=S(2) (remember that those are the definitions of 3 and 2), we deduce S(2)=S(1) and hence by the second extra axiom we deduce 2=1, or in other words S(1)=S(0). Applying this axiom again we deduce that 1=0 or in other words S(0)=0. But this contradicts the first extra axiom (set x=0).

However, using the more modern approach explained in these notes, it is possible to prove these two extra axioms of Peano -- we don't need them after all. So for us they are theorems, not axioms.

Theorem 16 (Peano's extra axioms)

  • If x is a natural number, then S(x)\not=0.

  • If x and y are natural numbers and S(x)=S(y), then x=y.

This proof is non-examinable.

Proof

Let's use the axiom of recursion ("that's it") to define two new temporary functions. First let's define a function Z from the natural numbers to the set \{{\tt true},{\tt false}\} by recursion. It's called Z because it detects whether a number is zero.

Set Z(0)={\tt true}, and if we have already defined Z(n) then let's define Z(S(n)) by ignoring what the value of Z(n) was and just setting Z(S(n)) to be always false. The upshot of this definition is that we have a function which sends 0 to true and everything else to false.

Now it is easy to prove the first of Peano's extra axioms S(x)\neq0 by contradiction: if S(x)=0 for some x, then applying Z to both sides we deduce that {\tt false}={\tt true}, which is the contradiction we seek.

To prove the second axiom, let's define a "predecessor" function P(x) which subtracts 1 from a number. There is a problem with 0 though, because 0-1 is not a natural number, so we'll have to define P(0) to be something else. Fortunately our proof will never involve looking at P(0), so we can just define it to be anything we like. Formally then, let's define a function P from the naturals to the naturals by recursion: we will define P(0) to be 37, and if we have already defined P(n) then let's define P(S(n)) by forgetting all about P(n) and just setting P(S(n))=n.

Now P(0) is a bit weird, but P(S(n))=n, and this is exactly what we need to prove Peano's second extra axiom (injectivity of S). Indeed, if x and y are natural numbers and S(x)=S(y), then applying P we deduce P(S(x))=P(S(y)) and hence x=y, which is what we require. We conclude that Peano's extra axioms can be proved from the three axioms we assumed at the beginning.

We saw some slightly odd uses of recursion in the proof above; here's a slightly odd use of induction.

Theorem 17

Every natural number x is either 0 or the successor of some other natural number.

This proof is non-examinable too.

Proof

Induction on x. The base case has x=0 which is zero. For the inductive step we set x=S(n) and we know that the result is true for n. We can ignore the inductive hypothesis though, and conclude because x=S(n) is a successor.