1.6  Order and Well-Ordering of the Natural Numbers

Sets, Relations, and Cardinality, Chapter 2 compared natural numbers with the order of the real line, and proved that every non-empty set of natural numbers has a least element (Sets, Relations, and Cardinality, Theorem 2.1.3) from that order and induction. In ω there is no real line to borrow from. But the von Neumann numerals carry their order inside them: 3={0,1,2} is the set of the numbers before it. This section takes “is an element of” as the order, proves that it is a strict total order and a well-ordering, ties it to the arithmetic of the previous section, and then collects three groups of facts about ω: powers and parity, n-tuples, and lists of variable length.

1.6.1. Less than is “element of”

The numerals of Example (The first natural numbers as sets) were built so that each one collects all the earlier ones: 1={0}, 2={0,1}, 4={0,1,2,3}. So “m comes before n” can be read off the sets themselves, without any new structure.

m is less than n when m is one of the elements of n.

Definition 1.6.1 (Order on ω)

For m,n∈ω, we write m<n if m∈n, and m≤n if m<n or m=n. As usual, n>m means m<n, and n≥m means m≤n.

In words: m<n is membership, read as an order. For example 2<4, because 2∈{0,1,2,3}; 0<n for every n≠0, by Lemma 1.4.1 (e); and no m satisfies m<0, because 0=∅ has no elements. A minimal change gives a non-example: 4<2 fails, since 4 is not one of 0,1. The relation ≤ is “∈ or =”; exercise B1 shows that on ω it is also ⊆.

Nothing in the definition says that < behaves like an order. For arbitrary sets, membership does not: it can fail to be transitive, as the warning below shows. That it is a strict total order on ω is the first theorem of this section, and the induction theorem does the work.

Theorem 1.6.1 (Order on ω)
  • (a) < is a strict total order on ω: for all k,m,n∈ω, never n<n; if k<m and m<n, then k<n; and exactly one of m<n, m=n, n<m holds.
  • (b) For m,n∈ω, m<S(n) if and only if m≤n. Hence no k∈ω satisfies n<k<S(n).
  • (c) Every n∈ω is the set of the natural numbers less than it: n={m∈ω:m<n}. Hence {0,…,n}:={k∈ω:k≤n} equals S(n).
  • (d) 0≤n for every n∈ω; if n≠0, then 1≤n; and 0<1.
  • (e) For n∈ω, {1,…,n}:={k∈ω:1≤k≤n} equals S(n)∖{0}.

Idea. Irreflexivity and transitivity are facts already proved about the sets in ω: no n is an element of itself, and every n is a transitive set (Lemma 1.4.1). The real content is trichotomy. We prove “for every m: m∈n, m=n or n∈m” by induction on n, keeping m universally quantified inside the property. In the step, the awkward case is n∈m: we must place S(n) relative to m. A separate induction shows that the successor preserves ∈, and that settles it. The rest unwinds the definition of S(n).

Proof.

  • (a) Irreflexive: n∉n by Lemma 1.4.1 (c). Transitive: if k∈m and m∈n, then m⊆n because n is a transitive set (Lemma 1.4.1 (a)), so k∈n.

    Claim. For all m,n∈ω: if m∈n, then S(m)∈S(n).

    Proof of Claim. We use Theorem 1.3.3 (b) on n, for the property “for every m∈ω, if m∈n, then S(m)∈S(n)”. For n=0 it holds vacuously, since no m lies in 0=∅. Suppose it holds for n, and let m∈S(n)=n∪{n}. If m∈n, then S(m)∈S(n) by the hypothesis, and S(n)⊆S(S(n)), so S(m)∈S(S(n)). If m=n, then S(m)=S(n)∈S(S(n)). So the property holds for S(n).

    Trichotomy, at least one. We use Theorem 1.3.3 (b) on n, for the property T(n): “for every m∈ω, m∈n or m=n or n∈m”.

    Base case. Let m∈ω. Then m=0 or 0∈m, by Lemma 1.4.1 (e). So T(0) holds.

    Inductive step. Suppose T(n), and let m∈ω. By T(n) there are three cases. If m∈n or m=n, then m∈n∪{n}=S(n). If n∈m, then S(n)∈S(m)=m∪{m} by the claim, so S(n)∈m or S(n)=m. In every case m∈S(n), m=S(n) or S(n)∈m, which is T(S(n)).

    Trichotomy, at most one. If m∈n and m=n, then n∈n; if m=n and n∈m, then n∈n; if m∈n and n∈m, then m∈m by transitivity. Each contradicts irreflexivity.

  • (b) By Definition 1.3.1, m∈S(n)=n∪{n} if and only if m∈n or m=n, that is, m≤n. Now suppose n<k and k<S(n). Then k≤n, so k=n, giving n<n, or k<n, giving n<n by transitivity. Both contradict irreflexivity.

  • (c) (⊇): if m∈ω and m<n, then m∈n by definition. (⊆): if m∈n, then m∈ω, because ω is a transitive set (Lemma 1.4.1 (b)), and m<n. Applying this to S(n), which lies in ω by (P2) of Theorem 1.4.2, and using (b), S(n)={k∈ω:k<S(n)}={k∈ω:k≤n}.

  • (d) By Lemma 1.4.1 (e), n=0 or 0∈n; that is, 0≤n. Let n≠0. By Lemma 1.4.1 (d), n=S(k) for some k∈ω, and 0≤k. If k=0, then n=S(0)=1. If 0<k, then 1=S(0)<S(k)=n by the claim. So 1≤n. Finally 0∈{0}=S(0)=1, so 0<1.

  • (e) Let k∈S(n)∖{0}. Then k∈ω (as in (c)), k≤n by (b), and 1≤k by (d), since k≠0. Conversely, let k∈ω with 1≤k≤n. Then k∈S(n) by (b). And k≠0: otherwise 1≤0, but 1≠0 by (P3) of Theorem 1.4.2 and 1∉0=∅. This proves the theorem.

So the notation of Sets, Relations, and Cardinality, Chapter 2, {0,…,n} and {1,…,n}, keeps its meaning on ω, and the two sets are S(n) and S(n)∖{0}; in particular {1,…,0}=∅. In the “plus one” notation of Definition 1.5.1, (b) says that n+1 is the next number after n, and (d) with Corollary 1.5.2 gives 1≤k+1 for every k∈ω, since k+1≠0.

Warning. On arbitrary sets, ∈ is not transitive. ∅∈{∅} and {∅}∈{{∅}}, but ∅∉{{∅}}, whose only element is {∅}≠∅. The conclusion “k∈m and m∈n give k∈n” is false in general; on ω it holds by a theorem, Lemma 1.4.1 (a): the elements of ω are transitive sets. Membership by itself does not give it.

1.6.2. Well-ordering

In Sets, Relations, and Cardinality, Chapter 2, Sets, Relations, and Cardinality, Theorem 2.1.3 was derived from Logic and Proof, Axiom 4.2.1, which there was an axiom. On ω, induction is a theorem (Theorem 1.3.3), so well-ordering becomes one too. The proof here takes a different route from Sets, Relations, and Cardinality, Chapter 2’s strong induction, and the order of ω as membership makes it short.

Theorem 1.6.2 (Well-Ordering of ω)

Every non-empty subset A⊆ω has a least element: an a∈A with a≤x for every x∈A. The least element is unique.

Idea. Suppose A has no least element. Then we can show, by induction, that no natural number n contains an element of A: n∩A=∅. Passing from n to S(n)=n∪{n} adds only the element n, and if n were in A while nothing below it is, n would be least. But S(a) contains a, so no a can lie in A, and A is empty.

Proof. Let A⊆ω be non-empty, and suppose, for a contradiction, that A has no least element. Let B:={n∈ω:n∩A=∅}, a set by (Z6) of Axiom 1.1.1. We show that B is inductive in the sense of Theorem 1.3.3 (a). First, 0∈B, since 0=∅. Next, let n∈B. Then S(n)∩A=(n∩A)∪({n}∩A)={n}∩A. Suppose n∈A. Let x∈A. Then x∉n, because n∩A=∅; that is, x<n fails, so x=n or n<x by trichotomy (Theorem 1.6.1 (a)), and n≤x. Hence n is a least element of A, contrary to our supposition. So n∉A, S(n)∩A=∅, and S(n)∈B. By Theorem 1.3.3 (a), B=ω.

Since A is non-empty, there is some a∈A. Then S(a)∈ω=B, so S(a)∩A=∅; but a∈S(a)∩A. This contradiction shows, by RAA (Logic and Proof, Definition 2.5.1), that A has a least element.

Uniqueness. If a and a′ are least elements, then a≤a′ and a′≤a. If a≠a′, these give a<a′ and a′<a, so a<a by transitivity, contradicting irreflexivity (Theorem 1.6.1 (a)). So a=a′.

The proof concludes an existence statement from a contradiction, so its last step is RAA, not ¬I: what is refuted is “A has no least element”, and the double negation is removed classically. The statement is that of Sets, Relations, and Cardinality, Theorem 2.1.3, read on ω; there the proof went through strong induction on N⊆R, here through the inductive set B.

Both hypotheses are needed. The empty set is a subset of ω with no least element, since a least element must be an element of the set. The hypothesis A⊆ω is needed too. Read with the order of Definition 1.6.1, “∈ or =”, the non-empty set {0,{1}}={∅,{{∅}}} has no least element: neither ∅∈{{∅}} (the only element of {{∅}} is {∅}≠∅) nor {{∅}}∈∅ holds, and the two elements are different, so neither is ≤ the other. Outside ω, membership need not even compare two sets (compare the warning above). For sets of numbers, the warning after Sets, Relations, and Cardinality, Theorem 2.1.3 gives Z and the positive rationals.

Quick check. Is 3<5? What is the j∈ω with 5=2+j?

Solution. Yes: 3∈S(3)=4 and 4⊆4∪{4}=5, so 3∈5; by Theorem 1.6.1 (c), 5={0,1,2,3,4}. For the second question, j=3: by Definition 1.5.1 (a), 2+3=S(2+2)=S(4)=5, using 2+2=4 from the Quick check of the previous section. By (a) of the next proposition, 3 is the only such j.

1.6.3. Order and arithmetic

The order was defined by membership and the arithmetic by recursion. They are tied together by clause (a) of the next proposition: m≤n exactly when n is reached from m by adding something. Clauses (c), (e), (f) and (g) follow from it, with cancellation (b), the laws of Theorem 1.5.3 and trichotomy, together with (d) for (e) and (f) and an induction for (g); (d) itself needs only that a nonzero natural number is a successor and that a successor is never 0.

Proposition 1.6.3 (Order and Arithmetic on ω)

For all k,m,n,b∈ω:

  • (a) m≤n if and only if n=m+j for some j∈ω; this j is then unique, and is written n−m. Moreover m<n if and only if n=m+j for some j≠0.
  • (b) If m+k=n+k, then m=n.
  • (c) If m<n, then m+k<n+k.
  • (d) If mn=0, then m=0 or n=0.
  • (e) If m<n and k≠0, then mk<nk.
  • (f) If mk=nk and k≠0, then m=n.
  • (g) (Induction from b.) Let P(n) be a property of natural numbers. If P(b) holds and, for every n∈ω with n≥b, P(n) implies P(n+1), then P(n) holds for every n∈ω with n≥b.

Idea. Cancellation (b) needs no order: induct on k and peel off one successor at a time with Corollary 1.5.2. For (a), “m≤m+j” is an induction on j, and the converse is an induction on n whose step uses that nothing lies between n and n+1. Then (c), (e) and (f) translate an inequality m<n into an equation n=m+j with j≠0, compute, and translate back; (d) writes m and n as successors and uses that a successor is never 0. Finally (g) shifts the start of an induction from 0 to b.

Proof. All inductions are by Theorem 1.3.3 (b), and “Law (x)” refers to clause (x) of Theorem 1.5.3. We prove (b) first, since (a) uses it.

  • (b) Induct on k for “for all m,n: m+k=n+k⇒m=n”. For k=0, m+0=m and n+0=n. If the statement holds for k and m+(k+1)=n+(k+1), then (m+k)+1=(n+k)+1 by Definition 1.5.1 (a), so m+k=n+k by Corollary 1.5.2, and m=n by the hypothesis.

  • (c) (⇐) Fix m and induct on j for “m≤m+j”. For j=0, m+0=m. If m≤m+j, then, since m+j<S(m+j) by Theorem 1.6.1 (b), transitivity (or substitution, if m=m+j) gives m<S(m+j)=m+(j+1), the equality by Definition 1.5.1 (a). So m≤m+(j+1).

(⇒) Induct on n for “for every m≤n there is j∈ω with n=m+j”. For n=0: m<0 is impossible, since 0=∅, so m=0, and 0=0+0. Suppose the statement holds for n, and let m≤n+1. If m=n+1, take j=0. Otherwise m<n+1=S(n), so m≤n by Theorem 1.6.1 (b); by the hypothesis n=m+j for some j, and then n+1=(m+j)+1=m+(j+1) by Definition 1.5.1 (a).

Uniqueness. If m+j=m+j′, then j+m=j′+m by Law (b), so j=j′ by (b) of this proposition.

The strict case. If n=m+j, then j=0 if and only if n=m: if j=0, then n=m+0=m; if n=m, then m+j=m=m+0, so j=0 by uniqueness. Since m<n holds exactly when m≤n and m≠n (by Definition 1.6.1 and irreflexivity, Theorem 1.6.1 (a)), m<n holds if and only if n=m+j with j≠0.

  • (c) Let m<n, so n=m+j with j≠0 by (a). Then n+k=(m+j)+k=m+(k+j)=(m+k)+j by Laws (c), (b) and (c). Since j≠0, (a) gives m+k<n+k.

  • (d) Let mn=0 and n≠0; we show m=0. By Lemma 1.4.1 (d), n=j+1 for some j∈ω, so 0=mn=mj+m by Definition 1.5.1 (b). If m≠0, then m=i+1 for some i∈ω, and 0=mj+(i+1)=(mj+i)+1, by Definition 1.5.1 (a), which contradicts Corollary 1.5.2. So m=0.

  • (e) Let m<n and k≠0. By (a), n=m+j with j≠0, so nk=(m+j)k=mk+jk by Law (d). By (d), jk≠0, since j≠0 and k≠0. By (a), mk<nk.

  • (f) Let mk=nk and k≠0. If m<n, then mk<nk by (e), contradicting mk=nk and irreflexivity; likewise if n<m. By trichotomy, m=n.

  • (g) Let Q(i) be “P(b+i)”, for i∈ω. Q(0) is P(b+0)=P(b). If Q(i) holds, then b+i≥b by (a), so the hypothesis gives P((b+i)+1); and (b+i)+1=b+(i+1) by Definition 1.5.1 (a), so Q(i+1) holds. By Theorem 1.3.3 (b), Q(i) holds for every i∈ω. Finally, if n≥b, then n=b+i for some i by (a), and P(n) is Q(i).

Clause (a) is how subtraction appears on ω: n−m is defined only when m≤n, as the unique j with m+j=n. For example 5−2=3, by the Quick check above, and n−0=n. Clause (g) is the “induction from a base” that Sets, Relations, and Cardinality, Chapter 2 used as Sets, Relations, and Cardinality, Theorem 2.2.1, now proved on ω.

1.6.4. Powers and parity

Sets, Relations, and Cardinality, Chapter 3 counted with powers 2m3n and with even and odd numbers, and took both from the real numbers and the integers. Here are the facts it used, proved on ω. They are recorded for the citing rule at the end of this chapter, which says how Sets, Relations, and Cardinality, Chapter 3’s counting arguments read on ω.

For b∈ω, the powers bn (n∈ω) are defined by Theorem 1.5.1 with X=ω, a=1 and g(n,x)=x⋅b: b0:=1,bn+1:=bn⋅b. These are the two equations of Sets, Relations, and Cardinality, Definition 2.3.2, now on ω; so b1=1⋅b=b by Theorem 1.5.3 (e).

Proposition 1.6.4 (Powers and Parity on ω)

For all b,m,n∈ω:

  • (a) bm+n=bm⋅bn;
  • (b) if b≠0, then bn≠0;
  • (c) if b>1 and m<n, then bm<bn;
  • (d) there is exactly one pair (q,r) with q∈ω, r∈{0,1} and n=2q+r. In particular, no n∈ω is both of the form 2q and of the form 2q′+1.

Idea.

  • (a) and (b) are inductions on n following the definition of bn. For (c), first bj>1 for j≥1, by induction from 1; then write n=m+j and use (a). For (d), existence is an induction (a number is even or odd, and adding one swaps the two), and uniqueness reduces, after canceling, to “r=2j+r′ with j≥1”, which makes r≥2.

Proof. “Law (x)” refers to Theorem 1.5.3, and “Order (x)” to Proposition 1.6.3.

  • (a) Fix m and induct on n (Theorem 1.3.3 (b)). For n=0: bm+0=bm=bm⋅1=bmb0, by Law (e). If bm+n=bmbn, then bm+(n+1)=b(m+n)+1=bm+nb=(bmbn)b=bm(bnb)=bmbn+1, by Definition 1.5.1 (a), the definition of powers, the hypothesis, Law (g), and the definition again.

  • (b) Let b≠0; induct on n. b0=1≠0 by Corollary 1.5.2 (1=0+1). If bn≠0, then bn+1=bnb≠0 by Order (d).

  • (c) Let b>1. Then b>0, by 0<1 (Theorem 1.6.1 (d)) and transitivity, so b≠0. First, bj>1 for every j≥1, by Order (g) with base 1: b1=b>1; and if bj>1, then bj+1=bjb>1⋅b=b>1 by Order (e) (with b≠0), Law (e) and transitivity. Now let m<n. By Order (a), n=m+j with j≠0, so j≥1 by Theorem 1.6.1 (d), and bj>1. By (b), bm≠0. Then, by Order (e), Law (e), Law (f) and (a), bm=1⋅bm<bjbm=bmbj=bm+j=bn.

  • (d) Existence, by Theorem 1.3.3 (b). For n=0: 0=2⋅0+0. Suppose n=2q+r with r∈{0,1}. If r=0, then n=2q and n+1=2q+1. If r=1, then n+1=(2q+1)+1=2q+2=2q+2⋅1=2(q+1)=2(q+1)+0, by Law (c) and 1+1=2 (after Definition 1.5.1), Law (e), and Law (d).

Uniqueness. Let 2q+r=2q′+r′ with r,r′∈{0,1}. Suppose first that q<q′. By Order (a), q′=q+j with j≠0, so 2q+r=2(q+j)+r′=2q+(2j+r′) by Laws (d) and (c), and canceling 2q (Order (b), after Law (b)) gives r=2j+r′. Since j≥1 (Theorem 1.6.1 (d)), Order (a) gives j=1+i for some i∈ω, and 2j+r′=(2+2i)+r′=2+(2i+r′) by Laws (d), (e) and (c). So r=2+(2i+r′)≥2 by Order (a). But r=0 or r=1, and both are <2=S(1) by Theorem 1.6.1 (b); this contradicts trichotomy. So q<q′ is impossible, and q′<q is impossible by the same argument with the roles exchanged. By trichotomy q=q′, and then r=r′ by Order (b) (after Law (b)). The pairs (q,r) and (q′,r′) are therefore equal (Theorem 1.2.1).

If n=2q=2q+0 and n=2q′+1, the pairs (q,0) and (q′,1) would both represent n, and they differ since 0≠1; so no n is of both forms.

Any other definition of powers on ω by the same two equations, c(0)=1 and c(n+1)=c(n)⋅b, gives these powers, by the uniqueness half of Theorem 1.5.1. No proof in this chapter uses the proposition; it is here for the citing rule.

1.6.5. Tuples and lists as sets

Sets, Relations, and Cardinality, Chapter 1 used n-tuples (x1,…,xn) with n a variable, as working rule (W5), and stated working rule (W2) for lists (Sets, Relations, and Cardinality, Section 1.1); Sets, Relations, and Cardinality, Chapters 2 and 3 write {x1,…,xn} with n a variable. With pairs built from sets (Theorem 1.2.1) and with {1,…,n}=S(n)∖{0} (Theorem 1.6.1 (e)), we can now say what they are. An n-tuple, for n≥3, is a list of entries labeled by 1,…,n, and a function on {1,…,n} is exactly that.

Proposition 1.6.5 (Tuples and Lists as Sets)

Let X be a set. For n=2, an n-tuple in X is a pair (x1,x2) with x1,x2∈X (Definition 1.2.1), and X2:=X×X. For n∈ω with n≥3, an n-tuple in X is the graph G of a function x:{1,…,n}→X; with xk:=x(k) it is written (x1,…,xn):={(k,xk):k∈{1,…,n}}=G.

  • (a) For n≥2, there is exactly one set Xn whose elements are exactly the n-tuples in X; for n=2 it is X×X.
  • (b) For n≥2, two n-tuples (x1,…,xn) and (y1,…,yn) in X are equal if and only if xk=yk for every k∈{1,…,n}.
  • (c) For n≥3, no n-tuple is a pair; and for n,n′≥3 with n≠n′, no n-tuple is an n′-tuple.
  • (d) For every n∈ω (n=0,1 allowed) and every function x:{1,…,n}→X, the list {x1,…,xn}:={y∈X:y=xk for some k∈{1,…,n}} is a set: the image x({1,…,n}) of Sets, Relations, and Cardinality, Definition 1.6.1.
  • (e) For n≥3, no n-tuple is an element of ω.

The tuple is the graph alone, without the codomain X, so the same list of entries is the same tuple in every set that contains them.

Since a natural number is also a set, an exponent n∈ω could be read in more than one way. In Xn the exponent is always read as a number: Xn is the set of n-tuples of (a), not the set YX of Sets, Relations, and Cardinality, Section 1.4 taken with Y=X and with the set n as exponent, whose elements are pairs (graph, codomain) with graphs on n={0,…,n−1}. And Xn is written only for a declared set of entries X, never for X∈ω; for b∈ω, bn is always the power defined above. For example, the power 22 is 4={0,1,2,3}, while 2×2 is a set of four pairs.

Idea. Each clause unwinds a definition. Sets come from (Z5) and (Z6); equality of tuples is equality of graphs, which is agreement of values. For (c) and (e), look at the elements: an n-tuple with n≥3 has at least three elements, all of them pairs, while a pair has at most two elements and every non-zero natural number has the element ∅, which is not a pair.

Proof. In (a)–(c) and (e), n≥3 unless n=2 is named. First, {1,…,n} is a set, by (Z6) of Axiom 1.1.1 inside ω, and 1,2,3 are distinct elements of it: 1<2<3 by Theorem 1.6.1 (b) (2=S(1), 3=S(2)), so the three are distinct by irreflexivity and transitivity (Theorem 1.6.1 (a)); 1≤1,2,3, and each of them is ≤3≤n, so they lie in {1,…,n}.

  • (a) In each case the set is unique by (Z1), since two sets with the same elements are equal. For n=2, X×X is a set by Proposition 1.2.2, and its elements are exactly the pairs (x1,x2) with x1,x2∈X. For n≥3, every n-tuple is a subset of {1,…,n}×X, so the set {G∈P({1,…,n}×X):(G,X) is a function {1,…,n}→X} exists by Proposition 1.2.2 and (Z5), (Z6) of Axiom 1.1.1, and its elements are exactly the n-tuples in X. This is Xn.

  • (b) For n=2 this is Theorem 1.2.1. For n≥3, let G and G′ be the graphs of x and y. If xk=yk for every k, then each element (k,xk) of G is (k,yk)∈G′, and vice versa, so G=G′ by (Z1). Conversely, if G=G′, then (k,xk)∈G′ for each k, so xk=yk by (Fn2) of Sets, Relations, and Cardinality, Definition 1.4.1 for y.

  • (c) An n-tuple contains the three pairs (1,x1), (2,x2), (3,x3), which are distinct by Theorem 1.2.1, since their first coordinates are. Every element of a pair (a,b)={{a},{a,b}} is {a} or {a,b}. If a pair contained three distinct elements u,v,w, then u and v, being different, would be {a} and {a,b} in some order, and w, being one of these two, would equal u or v. So a pair has no three distinct elements, and an n-tuple is not a pair.

    Let 3≤n<n′. The n′-tuple contains a pair with first coordinate n′, since 1≤n′≤n′ (Theorem 1.6.1 (d), with n′≠0). Every element of the n-tuple is a pair (k,xk) with k≤n, and k=n′ would give n′≤n, which trichotomy rules out since n<n′. By Theorem 1.2.1, no element of the n-tuple has first coordinate n′, so the two sets differ. The case n′<n is the same with the roles exchanged.

  • (d) Let n∈ω and x:{1,…,n}→X. The set {x1,…,xn} is cut out of X by a condition, so it is a set by (Z6) of Axiom 1.1.1; by Sets, Relations, and Cardinality, Definition 1.6.1 it is x({1,…,n}). For n=0 it is ∅, since {1,…,0}=∅.

  • (e) An n-tuple t contains (1,x1), so t≠∅=0. Each element of t is a pair (k,xk)={{k},{k,xk}}, which has the element {k}, so no element of t is ∅. Every m∈ω with m≠0 has 0=∅ as an element (Lemma 1.4.1 (e)). So t is neither 0 nor any other element of ω.

Clause (d) is the second half of working rule (W2): Sets, Relations, and Cardinality, Proposition 2.3.8 and Sets, Relations, and Cardinality, Definition 3.1.2 in Sets, Relations, and Cardinality, Chapters 2 and 3, speak of {x1,…,xn} for a variable n, and this is the set they mean. Clauses (a) and (b) are working rule (W5) for n-tuples. Clause (c) bears out the convention of Sets, Relations, and Cardinality, Chapter 1, that a triple is not a pair, and (e), with Proposition 1.4.3 for n=2, that no pair or n-tuple is a natural number.

1.6.6. Exercises

A. Check your understanding

Exercise (A1)
  • (a) List the elements of {k∈ω:k≤3}. Which natural number is this set?
  • (b) True or false: for m,n∈ω, m<n implies m⊆n. Justify your answer.
  • (c) Find the least element of {n∈ω:n⋅n>10}, and say why it is least.
  • (d) Which clause of Theorem 1.6.1 says that the notation {0,…,n} of Sets, Relations, and Cardinality, Chapter 2 still means what it meant there, and what set is it on ω?

Solution.

  • (a) 0,1,2,3. By Theorem 1.6.1 (c), the set is S(3)=4.

  • (b) True. If m<n, then m∈n, and n is a transitive set (Lemma 1.4.1 (a)), so m⊆n.

  • (c) The least element is 4. From the defining equations, 0⋅0=0, 1⋅1=1, 2⋅2=4, 3⋅3=9 and 4⋅4=16; and 16>10, since 10∈16={0,1,…,15}, while 0,1,4,9 are all <10, since each is an element of 10={0,1,…,9} (both by Theorem 1.6.1 (c)). So 4 lies in the set. If x lies in the set and x<4, then x∈4={0,1,2,3}, and x⋅x∈{0,1,4,9}, so x⋅x<10, and x⋅x>10 fails by trichotomy. Hence x<4 is impossible, and 4≤x by trichotomy. The set is non-empty, so Theorem 1.6.2 promised a least element; this is it.

  • (d) Clause (c): {0,…,n}:={k∈ω:k≤n} is S(n). (Clause (e) does the same for {1,…,n}=S(n)∖{0}.)

B. Practice

Exercise (B1: Order as inclusion)

Prove that for all m,n∈ω, m≤n if and only if m⊆n.

Solution. (⇒) If m=n, then m⊆n. If m<n, then m∈n, and m⊆n because n is a transitive set (Lemma 1.4.1 (a)).

(⇐) Let m⊆n, and suppose m≤n fails. By trichotomy (Theorem 1.6.1 (a)), n<m, that is, n∈m. Then n∈m⊆n, so n∈n, contradicting Lemma 1.4.1 (c). Hence m≤n.

So on ω, “≤” can be read as “⊆”, just as “<” is “∈”. For arbitrary sets the two readings come apart: {1}⊆{0,1}=2, but {1} is not a natural number at all: 0∈1∈{1} while 0∉{1} (its only element is 1≠0), so {1} is not a transitive set, as every natural number is (Lemma 1.4.1 (a)).

Exercise (B2: A product is at least its factor)

Prove that for all m,n∈ω with n≥1, m≤mn. Show by an example that the hypothesis n≥1 is needed.

Solution. Since 1≤n, Proposition 1.6.3 (a) gives n=1+j for some j∈ω. Then mn=m(1+j)=m⋅1+mj=m+mj, by Theorem 1.5.3 (d) and (e). By Proposition 1.6.3 (a) again, m≤m+mj=mn.

The hypothesis is needed: for m=1 and n=0, mn=0, and 1≤0 is false, since 0<1 (Theorem 1.6.1 (d)) and trichotomy.

C. Going deeper

Exercise (C1: Strong induction on ω)

Let P(n) be a property of natural numbers. Suppose that, for every n∈ω, if P(k) holds for every k∈ω with k<n, then P(n) holds. Prove that P(n) holds for every n∈ω.

Solution (Hint 1). Consider the set of natural numbers at which P fails.

Solution (Hint 2). If that set is non-empty, Theorem 1.6.2 gives it a least element a. What do you know about P(k) for k<a?

Solution. Let A:={n∈ω:P(n) fails}, a set by (Z6) of Axiom 1.1.1, and suppose, for a contradiction, that A≠∅. By Theorem 1.6.2, A has a least element a. Let k∈ω with k<a. If k∈A, then a≤k, and with k<a this gives k<k (by transitivity, or directly if a=k), contradicting irreflexivity (Theorem 1.6.1 (a)). So k∉A, that is, P(k) holds. This holds for every k<a, so the hypothesis gives P(a), contradicting a∈A. Hence A=∅, and P(n) holds for every n∈ω.

This is the statement of Logic and Proof, Theorem 4.2.2, read on ω. There it was derived from Logic and Proof, Axiom 4.2.1 directly; here the route goes through well-ordering, which was itself proved from Theorem 1.3.3. As there, the hypothesis at n=0 is vacuous (no k<0), so it hands us P(0) outright.

Marking scheme. (10 points) - 2: considers the set of failures (or argues by contradiction from a failure) and makes it a set. - 3: applies Theorem 1.6.2, with the set non-empty, to obtain a least failure a. - 3: shows P(k) for every k<a, using that a is least and the order facts. - 2: applies the hypothesis at a and reaches the contradiction. Fatal errors (0 for the step): citing Logic and Proof, Theorem 4.2.2 (a statement about Logic and Proof, Chapter 4’s N, not proved on ω) instead of proving the result; taking a least element of a set not shown to be non-empty. A route by Theorem 1.3.3 (b) on “P(k) for every k<n” earns the same points: 2 for the property, 3 for the base (vacuous) and the use of Theorem 1.6.1 (b) in the step, 3 for the step, 2 for deducing P(n) from the property at n+1.

Exercise (C2: Find the error)

Here is an attempted proof that any two natural numbers are comparable. Is the conclusion true? Is the proof correct? If not, give the first line that fails, the rule it breaks, and a counterexample to the step.

Claim. For all m,n∈ω: m∈n, m=n or n∈m.

  1. We use Theorem 1.3.3 (b) on n, for the property “for every m∈ω: m∈n, m=n or n∈m”. (2) For n=0: every m is 0 or contains 0, by Lemma 1.4.1 (e). (3) Suppose the property holds for n, and let m∈ω. (4) If m∈n or m=n, then m∈n∪{n}=S(n). (5) If n∈m, then S(n)≤m, because nothing lies strictly between n and S(n): no k∈ω has n∈k∈S(n). (6) In every case m∈S(n), m=S(n) or S(n)∈m, which is the property for S(n). (7) By Theorem 1.3.3 (b), the claim holds.

Solution. The conclusion is true: it is trichotomy, Theorem 1.6.1 (a). The proof is not correct.

The failing line is (5). Its reason, “nothing lies strictly between n and S(n)”, is true (it follows from irreflexivity and transitivity, as in Theorem 1.6.1 (b)), but it does not give S(n)≤m. To pass from “m is not strictly between n and S(n)” to “S(n)∈m or S(n)=m”, one must know that if neither holds, then m∈S(n). That is trichotomy for S(n) and m: an instance of the claim being proved, at a number the induction has not reached. So the stated reason gives (5) only by assuming the goal (circular). Without that, (5) asserts the general fact “n∈m⇒S(n)≤m”, which is true but not yet proved. Either way, line (5) rests on an unavailable fact: entry (N9) of Logic and Proof, Example (What is not allowed).

Counterexample to the step. The inference “x∈y and nothing lies strictly between x and x∪{x}, so x∪{x}∈y or x∪{x}=y” fails for sets in general. Take x=∅ and y={∅,{{∅}}}. Then x∈y, and nothing lies strictly between x and x∪{x}={∅} (the only element of {∅} is ∅, and ∅∉∅). But {∅}∉y, since {∅}≠∅ and {∅}≠{{∅}}; and {∅}≠y, since {{∅}}∈y is not an element of {∅}. So the step needs something about ω beyond “nothing in between”.

Repair. Replace (5) by the claim inside the proof of Theorem 1.6.1: for all m,n∈ω, m∈n implies S(m)∈S(n), proved by its own induction. Then n∈m gives S(n)∈S(m)=m∪{m}, so S(n)∈m or S(n)=m. Lines (1)–(4), (6) and (7) are correct.

Marking scheme. (10 points) - 2: says that the conclusion is true and that the proof is not correct. - 3: names line (5) as the failing line and explains why its reason does not give S(n)≤m (it needs trichotomy for S(n) and m, or the unproved fact n∈m⇒S(n)≤m). - 2: classifies the error as (N9): a line resting on an unavailable fact, either the goal itself (circular) or an unproved general fact. - 2: gives a counterexample to the step on arbitrary sets (any x∈y with x∪{x} neither in nor equal to y). - 1: gives the repair through “m∈n⇒S(m)∈S(n)”. Fatal errors (0 for the step): declaring the conclusion false; blaming line (2) or (4), which are correct.