1.5  Where N Comes From

Section 1.1 assumed one thing: that a Peano system exists (Axiom 1.1.1). Why should we believe it? Inside the real numbers there is one, the set NR of Sets and Functions (Corollary 1.4.3 (a)); but that answer presupposes R, an object far richer than the one it is meant to support. Axiomatic Set Theory gives a better answer: it builds a Peano system out of sets alone. This section describes that construction, without proofs. Nothing later in the book depends on it.

1.5.1. Sets as the raw material

Sets and Functions used sets as a working language. Its Section 1.2 stated a short list of working rules (W1)–(W6) that say which sets exist: a set may be cut out of a given set by a property (Sets and Functions, Definition 1.2.3), finitely many objects may be listed, sets have unions, the subsets of a set form a set (Sets and Functions, Definition 1.3.2), pairs from two sets form a product, and the number sets are sets. It did not derive these rules from more basic principles, and it took numbers and pairs as given objects. Two questions were left open: where these rules come from, and whether everything else, numbers and pairs included, is a set too.

Set theory answers both questions with a list of axioms. The construction below uses seven of them, each of which can be said in one line:

  • Extensionality. Two sets with the same elements are equal (Sets and Functions, Definition 1.2.1, now an axiom).
  • Empty set. There is a set with no elements, written ∅.
  • Pairing. For any sets a, b there is a set {a,b} whose elements are exactly a and b.
  • Union. For any set S of sets there is a set ⋃S of the elements of its members; with pairing it gives a∪b.
  • Power set. For any set X there is a set P(X) of all its subsets.
  • Specification. For any set A and any property, the elements of A with that property form a set.
  • Infinity. Some set contains ∅ and is closed under one particular step, the successor below.

Axiomatic Set Theory states the rest of the list (replacement, foundation and choice) and proves everything this section only describes.

Two features of the list matter for us. First, every axiom but extensionality says that some set exists. All of them except the empty set and infinity build their set out of sets already given; infinity is the one axiom that hands us a set no finite chain of building steps reaches. Second, there is nothing on the list except sets: no numbers, no points, no pairs as separate objects. So if natural numbers are to exist in this world, they must be particular sets. The question is which ones.

The answer is a matter of choice, not discovery. We need a set ω, an element of it to call zero and a function on it to call the successor, such that the three satisfy (P3), (P4) and (P5) of Definition 1.1.1. By Theorem 1.4.1, any two such choices are copies of each other, so it does not matter much which one we make. It only has to be made from the empty set by the operations on the list.

1.5.2. Zero and the successor as sets

There is only one set we are given outright, so it plays zero. For the successor we need a step that always produces something new, and the axioms offer a natural one: add the set itself as a new element. From here through Exercise B2, 0 and S stand for these sets, except in a sentence that names N, NR or R, where they keep their usual meanings; elsewhere in the section, and in the rest of the book, they mean what they meant before: 0:=∅,S(x):=x∪{x}. The right-hand side is a set by pairing (with a=b=x) and union. The first few numerals then come out as follows: 1=S(0)=∅∪{∅}={0},2=S(1)={0}∪{1}={0,1},3=S(2)={0,1}∪{2}={0,1,2}. The pattern is the point of the choice: each numeral is the set of the numerals before it. So n has exactly n elements, and “m comes before n” can be read as m∈n. Thus 2∈3, and also 2⊆3, since every element of 2 is an element of 3.

This reading is a feature of this construction, not of the natural numbers. In NR the question “is 2∈3?” has no meaning, and a warning in Section 1.4 records that no theorem of this book asks it. These sets are called the von Neumann numerals.

Quick check. Write 3 using only ∅ and braces. Is 1⊆3? Is 3∈1?

Solution. 3={∅,{∅},{∅,{∅}}}. Yes, 1⊆3: the only element of 1={0} is 0, and 0∈3. No, 3∉1: the only element of 1 is ∅, and 3≠∅, since 3 has elements.

1.5.3. The least inductive set

We now want a set holding all the numerals and nothing else. The other axioms build 0, then 1, then 2, one at a time, each in finitely many steps. A set holding all of them at once is what the axiom of infinity is for, and its “particular step” is S.

A set I is inductive if ∅∈I and S(x)∈I whenever x∈I. The axiom of infinity says that an inductive set exists. It says nothing more, and in particular it does not say that its inductive set holds only numerals.

The cure is the move of Sets and Functions, Proposition 1.3.2, with I as the ambient set, ∅ as the starting element and S as the step. The inductive subsets of I form a set, cut out of P(I) by specification, and their intersection is the smallest inductive subset of I. Axiomatic Set Theory checks that it lies inside every inductive set, not only inside those contained in I, and so does not depend on which I the axiom supplied. This least inductive set is called ω.

Is (ω,∅,S) a Peano system? The three axioms fare differently.

  • (P5) is leastness itself. A subset of ω that contains ∅ and is closed under S is inductive, so it contains the least inductive set ω; hence it is ω.
  • (P3) is immediate. Every S(x) has x as an element, and ∅ has none, so S(x)≠∅.
  • (P4) is the real work. From x∪{x}=y∪{y} we want x=y, and for arbitrary sets this needs care. For elements of ω it holds because each n∈ω has two properties that the pattern above suggests: an element of an element of n is an element of n, and n∉n. Axiomatic Set Theory proves both by induction on ω, and (P4) follows from them.

With all three in hand, (ω,∅,S) is a Peano system. By Theorem 1.4.1 it is a copy of (N,0,S), by exactly one isomorphism, which carries the von Neumann numeral n to the natural number n. So the assumption Axiom 1.1.1 is not a new article of faith: it follows from the axioms for sets. A reader who trusts them may read Axiom 1.1.1 as a theorem.

Warning. An inductive set need not be ω. The axiom of infinity supplies some inductive set, which may hold much else. In the same way, R contains 0 and is closed under x↦x+1, and R is not NR. Arguments about natural numbers use leastness, that is (P5), and never closure alone.

1.5.4. Pairs as sets

One more object from Sets and Functions has to be found among the sets: the ordered pair. Sets and Functions, Definition 1.4.1 took (a,b) as a new kind of object and asked only for its characteristic property, that (a,b)=(c,d) exactly when a=c and b=d. Set theory has no new kinds of objects, so a pair must be a set built from a and b.

The first idea, {a,b}, fails at once: {a,b}={b,a}, so it cannot record which coordinate came first. The standard repair marks the first coordinate by giving it a set of its own: (a,b):={{a},{a,b}}. This is the Kuratowski pair. The singleton {a} names the first coordinate; the other member adds the second. When a=b, both members are {a}, and (a,a)={{a}} has a single element. Axiomatic Set Theory proves the characteristic property for this definition, by comparing the members of two such sets case by case.

Once pairs are sets, so is everything built from them. The product A×B is a set of pairs, cut out of P(P(A∪B)) by specification. A function is a set of pairs (Sets and Functions, Definition 2.1.1), so N×N, the operations + and ⋅ of Section 1.2, and the isomorphisms of Section 1.4 are all sets. Chapter 2 of this volume needs none of this: it uses pairs only through the characteristic property of Sets and Functions, Definition 1.4.1.

Quick check. Is {{0}} an ordered pair? If so, of what?

Solution. Yes: (0,0)={{0},{0,0}}={{0}}, since {0,0}={0}. As a set, it is also {1}, because 1={0}.

1.5.5. Exercises

A. Check your understanding

Exercise (A1)
  • (a) List the elements of S(3).
  • (b) True or false: 2∈3 and 2⊆3, for the von Neumann numerals.
  • (c) Why can the set {a,b} not serve as the ordered pair (a,b)?
  • (d) Which Peano axiom is “ω is the least inductive set” in disguise?

Solution.

  • (a) S(3)=3∪{3} has the elements 0, 1, 2, 3; it is the numeral 4.

  • (b) Both are true: 3={0,1,2} has 2 as an element, and the elements 0, 1 of 2 are elements of 3.

  • (c) It forgets the order: {1,2}={2,1}, while the pairs (1,2) and (2,1) must differ, by the characteristic property, since 1≠2.

  • (d) (P5): a subset of ω containing ∅ and closed under S is inductive, so by leastness it is all of ω.

B. Practice

Exercise (B1: Numerals by hand)
  • (a) Write S(4) as a set of numerals. How many elements does the numeral n have, for n≤5?
  • (b) Compute 2∪3 and 2∩3.
  • (c) Is {1}⊆3? Is {1} one of the numerals 0,1,…,5?

Solution.

  • (a) S(4)={0,1,2,3}∪{4}={0,1,2,3,4}, the numeral 5. The numeral n is {0,1,…,n−1}, and it has n elements: 0=∅ has none, 1={0} has one, and so on, going up one numeral at a time. The step S(k)=k∪{k} gives one more element than k has, because k∉k: the elements of k are earlier numerals, which have fewer elements than k, so none of them is k. So 0,1,…,5 have 0,1,…,5 elements, and in particular they are all different.

  • (b) 2={0,1} and 3={0,1,2}, so 2∪3={0,1,2}=3 and 2∩3={0,1}=2: the union is the larger numeral and the intersection the smaller.

  • (c) Yes, {1}⊆3, since 1∈3. But {1} is none of the numerals 0,…,5. It has one element, so by (a) the only candidate is 1={0}; and {1}≠{0}, since their only elements 1 and 0 differ (1 has an element, 0 has none).

Exercise (B2: Pairs as sets)

Write (0,1), (1,0) and (1,1) as Kuratowski pairs, using numerals where you can. Show directly that (0,1)≠(1,0). How many elements does (a,b) have when a≠b, and when a=b?

Solution. (0,1)={{0},{0,1}}={1,2}, since {0}=1 and {0,1}=2. Next, (1,0)={{1},{1,0}}={{1},2}, and (1,1)={{1},{1,1}}={{1}}.

The set 1 is an element of (0,1). It is not an element of (1,0): it is not {1}, since 0∈1 while the only element of {1} is 1≠0; and it is not 2, since 1∈2 while 1∉1={0}. So the two sets have different elements, and (0,1)≠(1,0).

If a≠b, then {a}≠{a,b}, because b lies in the second and not in the first; so (a,b) has two elements. If a=b, then (a,a)={{a}} has one. (Note also that (0,1)={1,2} is not a numeral, although both its elements are: it is not 0=∅, since it has elements, and every other numeral {0,1,…,n−1} contains 0, which {1,2} does not, since 1 and 2 have elements and 0 has none.)

C. Going deeper

Exercise (C1: Closed is not least)

Each of the sets R, [0,∞) and NR∪{n+12:n∈NR} contains 0 and is closed under x↦x+1. For each, with e=0 and s(x)=x+1, decide which of (P3), (P4), (P5) hold. Then find the least subset of R that contains 0 and is closed under x↦x+1, and prove that it is least.

Solution. This exercise is about subsets of the real numbers of Sets and Functions, so it uses their arithmetic freely, as Corollary 1.4.3 (a) does; facts about NR itself come from Sets and Functions, Lemma 3.1.1.

(P4) holds in all three: x+1=y+1 gives x=y.

(P3) fails only in R, where s(−1)=−1+1=0. In the other two sets, x+1=0 would need x=−1. But every n∈NR has n≥0 (Sets and Functions, Lemma 3.1.1 (a)), so −1∉NR, −1∉[0,∞), and n+12≥12>−1.

(P5) fails in all three. The subset NR of each contains 0 and is closed under x↦x+1 (it lies in [0,∞) by the same clause (a)), but it is not the whole set: it misses −1∈R (as above), and 12, which lies in [0,∞) and in the third set, by Sets and Functions, Lemma 3.1.1 (e) with n=0 (no natural number lies strictly between 0 and 1).

The least such set is NR. It contains 0 and is closed under x↦x+1. Let T⊆R be any set with these two properties. Then T∩NR contains 0, and it is closed: if n∈T∩NR, then n+1∈T and n+1∈NR. By the set form of Logic and Proof, Axiom 4.2.1 (the remark at the start of Sets and Functions, Section 3.1), the only such subset of NR is NR itself, so T∩NR=NR, that is, NR⊆T.

The three sets show the point of the warning above: closure under the step is cheap, and only the least closed set is the natural numbers.

R. Review

Exercise (R1)

Prove that N∖{0} is infinite.

Solution. We read Sets and Functions, Definition 4.1.3 and Sets and Functions, Theorem 4.1.9 on subsets of N, through the citing rule of Section 1.4 (group (i)). Write A:=N∖{0} and B:=N∖{0,1}, where 1=S(0) (Definition 1.2.1 (c)). Consider S restricted to A, with codomain B. Its values lie in B: for n∈A, S(n)≠0 by (P3) for N (Axiom 1.1.1), and S(n)≠S(0)=1 by (P4), since n≠0. It is injective by (P4). It is onto B: if m∈B, then m≠0, so m=S(k) for some k∈N by Proposition 1.1.3 (a), and k≠0 because m≠1=S(0); so k∈A. Hence it is a bijection A→B. The set B is a proper subset of A: B⊆A is clear, and 1∈A, since 1=S(0)≠0 by (P3), while 1∉B. By Sets and Functions, Theorem 4.1.9, a finite set is not equinumerous with any proper subset; so A is not finite, that is, it is infinite (Sets and Functions, Definition 4.1.3).

Exercise (R2)

Let D:N→N be D(n):=S(S(n)). Show that D has a left inverse and no right inverse. Write a left inverse down explicitly. Is it the only one?

Solution. No right inverse. A function with a right inverse is surjective (Sets and Functions, Proposition 2.4.2), and D is not: 0 is not a value, since D(n)=S(S(n))≠0 by (P3) for N.

A left inverse. Write 1=S(0) (Definition 1.2.1 (c)). Let L:N→N have the graph G:={(n,k)∈N×N:(n∈{0,1} and k=0) or n=S(S(k))}. Each n∈N has exactly one partner. If n=0, the partner k=0 works, and no k has 0=S(S(k)), by (P3). If n=1, the partner k=0 works, and no k has S(0)=S(S(k)): by (P4) that would give 0=S(k), against (P3). If n∉{0,1}, then n≠0, so n=S(m) for exactly one m, by Proposition 1.1.3 (a); this m is not 0, since n≠S(0), so m=S(k) for exactly one k, by Proposition 1.1.3 (a) again. Thus n=S(S(k)) for exactly one k. So L is a function (Sets and Functions, Definition 2.1.1) with L(0)=L(1)=0 and L(S(S(k)))=k. Hence L(D(n))=n for every n∈N, that is, L∘D=idN: L is a left inverse of D (Sets and Functions, Definition 2.4.1 (a)). This matches Sets and Functions, Theorem 2.4.1: D is injective, by (P4) applied twice, and N≠∅.

Not unique. The values of a left inverse at 0 and 1 are never used, since neither is of the form D(n); setting L′(0):=5, L′(1):=0 and L′(S(S(k))):=k gives another left inverse.

Exercise (R3)

Let M={0,1}, e=0 and s(0)=s(1)=1. Show that there is no function f:M→N with f(0)=0 and f(s(x))=S(f(x)) for every x∈M. Which of the Peano axioms play the part, for definitions on N, that a theorem about reading formulas plays for definitions on formulas?

Solution. Suppose f exists. Taking x=1, f(1)=f(s(1))=S(f(1)). But no n∈N has n=S(n) (Proposition 1.1.3 (b)). So no such f exists. (Taking x=0 instead gives f(1)=S(0)=1, so the two equations at the input 1 also contradict each other.)

The trouble is that 1 is built in two ways, as s(0) and as s(1), and the two ways ask for different values. In Logic and Proof, Chapter 4, Logic and Proof, Theorem 4.3.4 defines functions on formulas, and what makes it work is Logic and Proof, Theorem 4.3.3: each compound formula is built from its parts in exactly one way. On N the same job is done by (P3) and (P4): 0 is not a successor, so its value is not asked for twice, and a successor is the successor of exactly one number, so the equation at S(n) asks for one thing. The structure M fails (P4), since s(0)=s(1), though it satisfies (P5).