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: 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, -tuples,
and lists of variable length.
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: ,
, . So
“ comes before
” can be read off
the sets themselves, without any new structure.
is less
than when is one of the elements
of .
Definition
1.6.1 (Order on )
For , we write if , and if or . As usual, means , and means .
In words: is membership, read as an order. For example
, because
; for every , by Lemma 1.4.1
(e); and no
satisfies ,
because has no elements. A minimal change
gives a non-example: fails, since is not one of . 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 , never ; if and , then ; and exactly one of , , holds.
- (b) For , if
and only if . Hence no satisfies .
- (c) Every is the set
of the natural numbers less than it: . Hence equals .
- (d) for every ; if , then ; and .
- (e) For , equals .
Idea. Irreflexivity and
transitivity are facts already proved about the sets in
: no is an element of
itself, and every
is a transitive set (Lemma 1.4.1).
The real content is trichotomy. We prove “for every
: , or ” by induction on
, keeping universally quantified
inside the property. In the step, the awkward case is
: we must
place
relative to . A
separate induction shows that the successor preserves
, and that
settles it. The rest unwinds the definition of .
Proof.
- (a)
Irreflexive: by Lemma 1.4.1
(c). Transitive: if and , then because
is a transitive
set (Lemma 1.4.1
(a)), so .
Claim. For all : if , then .
Proof of Claim. We use Theorem 1.3.3
(b) on , for the
property “for every , if , then ”. For it holds vacuously,
since no lies in
.
Suppose it holds for , and let . If , then by the hypothesis, and , so . If , then . So the property
holds for .
Trichotomy, at least one. We use Theorem 1.3.3
(b) on , for the
property : “for
every ,
or or ”.
Base case. Let . Then or , by Lemma 1.4.1
(e). So
holds.
Inductive step. Suppose , and let . By there are three
cases. If
or , then
. If , then by the claim, so or
.
In every case , or ,
which is .
Trichotomy, at most one. If and , then ; if and , then ; if and , then by transitivity.
Each contradicts irreflexivity.
(b) By Definition 1.3.1,
if and only if or , that is, . Now suppose
and .
Then , so
, giving , or , giving by transitivity.
Both contradict irreflexivity.
(c) : if and , then by definition.
: if
, then , because
is a
transitive set (Lemma 1.4.1
(b)), and .
Applying this to , which lies
in by (P2)
of Theorem 1.4.2,
and using (b), .
(d) By Lemma 1.4.1
(e), or ; that is, . Let . By Lemma 1.4.1
(d), for some , and . If , then . If
, then
by the claim. So . Finally , so .
(e) Let . Then (as in (c)), by (b), and by (d), since
.
Conversely, let with . Then by (b). And : otherwise , but by (P3) of Theorem 1.4.2
and . This proves the theorem.
So the notation of Sets, Relations, and
Cardinality, Chapter 2, and , keeps
its meaning on , and the two sets
are
and ; in particular . In the “plus one” notation of Definition 1.5.1,
(b) says that
is the next number after , and (d) with Corollary 1.5.2
gives
for every , since .
Warning. On arbitrary sets,
is not
transitive. and , but , whose only element is . The conclusion “ and give ” 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.
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 has a
least element: an with for every . The least element is unique.
Idea. Suppose has no least element.
Then we can show, by induction, that no natural number
contains an
element of : .
Passing from to
adds only the element , and if were in while nothing below it
is, would be
least. But contains
, so no can lie in , and is empty.
Proof. Let be
non-empty, and suppose, for a contradiction, that has no least element.
Let a set by (Z6) of Axiom 1.1.1.
We show that is
inductive in the sense of Theorem 1.3.3
(a). First, , since . Next, let . Then Suppose . Let . Then , because ; that is, fails, so or by trichotomy
(Theorem 1.6.1
(a)), and .
Hence is a least
element of ,
contrary to our supposition. So , , and . By
Theorem 1.3.3
(a), .
Since is
non-empty, there is some . Then , so ; but . This contradiction shows, by RAA (Logic and Proof, Definition 2.5.1),
that has a least
element.
Uniqueness. If and are least
elements, then and . If , these give and , so by transitivity,
contradicting irreflexivity (Theorem 1.6.1
(a)). So .
The proof concludes an existence statement from a
contradiction, so its last step is RAA, not : what
is refuted is “
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 , here
through the inductive set .
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 is needed too. Read with the
order of Definition 1.6.1,
“ or ”, the non-empty set
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 and the
positive rationals.
Quick check. Is ? What is the
with
?
Solution. Yes:
and , so ; by Theorem 1.6.1
(c), . For the second question, : by Definition 1.5.1
(a), , using from the Quick
check of the previous section. By (a) of the next
proposition, is
the only such .
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: exactly when
is reached from
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 .
Proposition
1.6.3 (Order and Arithmetic on )
For all :
- (a) if and only if
for some
; this
is then unique,
and is written . Moreover if and only if for some .
- (b) If , then .
- (c) If , then .
- (d) If , then or .
- (e) If and , then .
- (f) If and , then .
- (g) (Induction
from .) Let
be a property
of natural numbers. If holds and, for every
with
, implies , then holds for every
with
.
Idea. Cancellation (b) needs no
order: induct on
and peel off one successor at a time with Corollary 1.5.2.
For (a), “” is an induction on , and the converse is an
induction on
whose step uses that nothing lies between and . Then (c), (e) and
(f) translate an inequality into an equation
with
, compute,
and translate back; (d) writes and as successors and uses
that a successor is never . Finally (g) shifts the
start of an induction from to .
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
for “for all
: ”. For , and . If the statement holds for and , then by Definition 1.5.1
(a), so by Corollary 1.5.2,
and by the
hypothesis.
(c) Fix and induct on for “”. For , . If , then, since
by Theorem 1.6.1
(b), transitivity (or substitution, if ) gives the equality by Definition 1.5.1
(a). So .
Induct on for
“for every
there is with ”. For : is impossible, since , so , and . Suppose the
statement holds for , and let . If , take . Otherwise , so by Theorem 1.6.1
(b); by the hypothesis for some , and then by Definition 1.5.1
(a).
Uniqueness. If , then by Law
(b), so
by (b) of this proposition.
The strict case. If , then if and only if
: if , then ; if , then , so
by
uniqueness. Since holds exactly when and (by Definition 1.6.1
and irreflexivity, Theorem 1.6.1
(a)),
holds if and only if with .
(c) Let , so with by (a). Then
by Laws (c), (b) and (c). Since , (a) gives .
(d) Let and ; we show . By Lemma 1.4.1
(d), for
some ,
so
by Definition 1.5.1
(b). If ,
then for
some ,
and by Definition 1.5.1
(a), which contradicts Corollary 1.5.2.
So .
(e) Let and . By (a), with , so
by Law (d). By (d), , since and . By (a), .
(f) Let and . If , then by (e),
contradicting and irreflexivity; likewise if . By trichotomy,
.
(g) Let be “”, for . is . If holds, then by (a), so
the hypothesis gives ; and by Definition 1.5.1
(a), so
holds. By Theorem 1.3.3
(b), holds for
every .
Finally, if , then for some by (a), and is .
Clause (a) is how subtraction appears on : is defined only
when , as
the unique with
. For
example ,
by the Quick check above, and . 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 .
Powers and
parity
Sets, Relations, and Cardinality, Chapter 3
counted with powers 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 , the powers () are defined
by Theorem 1.5.1
with ,
and :
These are the two equations of Sets, Relations, and Cardinality, Definition 2.3.2,
now on ; so
by Theorem 1.5.3
(e).
Proposition
1.6.4 (Powers and Parity on )
For all :
- (a) ;
- (b) if , then ;
- (c) if and , then ;
- (d) there is exactly
one pair
with ,
and
. In
particular, no is both of the form and of the form .
Idea.
- (a) and (b) are
inductions on
following the definition of . For (c), first for , by induction
from ; then write
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 “ with
”, which
makes .
Proof. “Law (x)” refers to Theorem 1.5.3,
and “Order (x)” to Proposition 1.6.3.
(a) Fix and induct on (Theorem 1.3.3
(b)). For :
, by Law (e). If , then
by Definition 1.5.1
(a), the definition of powers, the hypothesis, Law (g),
and the definition again.
(b) Let ; induct on . by Corollary 1.5.2
(). If
, then
by Order (d).
(c) Let . Then , by (Theorem 1.6.1
(d)) and transitivity, so . First, for every , by Order (g) with base : ; and if
, then
by Order (e) (with ), Law (e) and
transitivity. Now let . By Order (a), with , so by Theorem 1.6.1
(d), and . By (b), . Then, by Order (e), Law (e), Law (f) and
(a),
(d)
Existence, by Theorem 1.3.3
(b). For :
.
Suppose
with . If , then and . If , then by Law (c) and (after Definition 1.5.1),
Law (e), and Law (d).
Uniqueness. Let
with . Suppose first that . By Order
(a),
with , so
by Laws (d) and (c), and canceling (Order (b), after Law
(b)) gives . Since (Theorem 1.6.1
(d)), Order (a) gives for some , and
by Laws (d), (e) and (c). So by Order (a). But or , and both are by
Theorem 1.6.1
(b); this contradicts trichotomy. So is
impossible, and is impossible by the same argument with the
roles exchanged. By trichotomy , and then
by Order
(b) (after Law (b)). The pairs and are
therefore equal (Theorem 1.2.1).
If and , the pairs and would both represent , and they differ since
; so no
is of both
forms.
Any other definition of powers on by the same two
equations,
and , 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.
Tuples and
lists as sets
Sets, Relations, and Cardinality, Chapter 1
used -tuples with
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 with
a variable. With
pairs built from sets (Theorem 1.2.1)
and with (Theorem 1.6.1
(e)), we can now say what they are. An -tuple, for , is a list of
entries labeled by , and a function on is
exactly that.
Proposition
1.6.5 (Tuples and Lists as Sets)
Let be a set.
For , an
-tuple in
is a
pair
with
(Definition 1.2.1),
and . For with , an -tuple in is the graph
of a function
; with it is written
- (a) For , there is exactly
one set whose
elements are exactly the -tuples in ; for it is .
- (b) For , two -tuples and
in are equal if
and only if for every .
- (c) For , no -tuple is a pair; and
for
with ,
no -tuple is an
-tuple.
- (d) For every ( allowed) and
every function , the list is a set: the image of Sets, Relations, and Cardinality, Definition 1.6.1.
- (e) For , no -tuple is an element of
.
The tuple is the graph alone, without the codomain
, 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
could
be read in more than one way. In the exponent is
always read as a number: is the set of -tuples of (a), not the
set of
Sets, Relations, and Cardinality, Section 1.4
taken with
and with the set
as exponent, whose elements are pairs (graph, codomain)
with graphs on . And is written only for a
declared set of entries , never for ; for , is always the power
defined above. For example, the power is , while
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 -tuple with 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), unless is named. First,
is
a set, by (Z6) of Axiom 1.1.1
inside , and
are
distinct elements of it: by Theorem 1.6.1
(b) (, ), so the three are distinct by
irreflexivity and transitivity (Theorem 1.6.1
(a)); , and each of them is , so they lie
in .
(a) In each case
the set is unique by (Z1), since two sets with the same
elements are equal. For , is a set by Proposition 1.2.2,
and its elements are exactly the pairs with . For , every -tuple is a subset of
, so the set exists by Proposition 1.2.2
and (Z5), (Z6) of Axiom 1.1.1,
and its elements are exactly the -tuples in . This is .
(b) For this is Theorem 1.2.1.
For , let
and be the graphs of
and . If for every , then each element
of is , and
vice versa, so by (Z1). Conversely, if , then for
each , so by (Fn2) of Sets, Relations, and Cardinality, Definition 1.4.1
for .
(c) An -tuple contains the
three pairs , , , which are distinct by Theorem 1.2.1,
since their first coordinates are. Every element of a
pair is or . If a pair
contained three distinct elements , then and , being different, would
be and in some order,
and , being one of
these two, would equal or . So a pair has no three
distinct elements, and an -tuple is not a
pair.
Let . The -tuple contains a
pair with first coordinate , since
(Theorem 1.6.1
(d), with ). Every element of the -tuple is a pair with , and would give
, which
trichotomy rules out since . By Theorem 1.2.1,
no element of the -tuple has first
coordinate ,
so the two sets differ. The case is the same
with the roles exchanged.
(d) Let and . The set is cut out of 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 . For it is , since .
(e) An -tuple contains , so . Each
element of is a
pair , which has the element , so no element of
is . Every with has as an
element (Lemma 1.4.1
(e)). So is
neither 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 for a variable , and this is the set
they mean. Clauses (a) and (b) are working rule (W5) for
-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 , that no
pair or -tuple is
a natural number.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) List the
elements of . Which natural number is this
set?
- (b) True or false:
for , implies . Justify your answer.
- (c) Find the least
element of , and say why it is
least.
- (d) Which clause of
Theorem 1.6.1
says that the notation of Sets, Relations, and
Cardinality, Chapter 2 still means what it meant
there, and what set is it on ?
Solution.
(a) . By Theorem 1.6.1
(c), the set is .
(b) True. If
, then
, and is a transitive set (Lemma 1.4.1
(a)), so .
(c) The least
element is . From
the defining equations, , , , and ; and , since , while are all , since each is an element of
(both by Theorem 1.6.1
(c)). So lies in
the set. If lies
in the set and , then , and , so , and fails by trichotomy. Hence
is
impossible, and by trichotomy. The set is non-empty, so Theorem 1.6.2
promised a least element; this is it.
(d) Clause (c):
is . (Clause
(e) does the same for .)
B. Practice
Exercise
(B1: Order as inclusion)
Prove that for all , if and only if .
Solution. If , then . If , then , and because
is a transitive
set (Lemma 1.4.1
(a)).
Let
, and
suppose
fails. By trichotomy (Theorem 1.6.1
(a)), ,
that is, .
Then , so , contradicting Lemma 1.4.1
(c). Hence .
So on ,
“” can be read
as “”,
just as “” is
“”. For
arbitrary sets the two readings come apart: , but is not a natural
number at all: while (its only element is ), so 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 with , . Show by an example that the hypothesis
is
needed.
C. Going deeper
Exercise
(C1: Strong induction on ω)
Let be a
property of natural numbers. Suppose that, for every
, if
holds for
every
with , then
holds. Prove
that holds for
every .
Solution (Hint 1). Consider the set
of natural numbers at which fails.
Solution (Hint 2). If that set is
non-empty, Theorem 1.6.2
gives it a least element . What do you know about
for ?
Solution. Let , a set by (Z6) of Axiom 1.1.1,
and suppose, for a contradiction, that . By Theorem 1.6.2,
has a least
element . Let
with
. If , then , and with this gives (by
transitivity, or directly if ), contradicting
irreflexivity (Theorem 1.6.1
(a)). So , that is, holds. This holds
for every ,
so the hypothesis gives , contradicting . Hence , and holds for every
.
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 is vacuous (no
), so it
hands us
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 . - 3: shows for every , using that
is least and the
order facts. - 2: applies the hypothesis at 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
, 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 “ for
every ”
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 from the property at
.
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 : , or .
- We use Theorem 1.3.3
(b) on , for the
property “for every : ,
or ”. (2)
For : every
is or contains , by Lemma 1.4.1
(e). (3) Suppose the property holds for , and let . (4) If
or , then . (5) If , then ,
because nothing lies strictly between and : no has . (6) In every case ,
or , which is the property for . (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 and ”, is true
(it follows from irreflexivity and transitivity, as in
Theorem 1.6.1
(b)), but it does not give . To
pass from “ is not
strictly between
and ”
to “ or ”, one must know that if neither holds, then
. That is trichotomy for and : 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 “”, 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
“ and
nothing lies strictly between and , so or
”
fails for sets in general. Take and . Then , and nothing lies
strictly between
and (the only element of is , and ). But ,
since and ; and ,
since 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 , implies , proved by its own induction.
Then gives
, so or
.
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 (it
needs trichotomy for and , or the unproved fact
). - 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
with
neither in nor equal to ). - 1: gives the repair
through “”. Fatal errors
(0 for the step): declaring the conclusion false;
blaming line (2) or (4), which are correct.