Section 3.2 listed , and , and showed that a
union of two countable sets is countable (Proposition 3.2.5).
The next question is a union of countably
many countable sets. The natural proof is
short, and it contains one step that none of the rules
met so far can justify. This section isolates that step,
adds the principle that licenses it, the axiom of
choice, and then shows how to tell a proof that needs
the axiom from one that only seems to.
A union of
countably many lists
Let be countable sets, a family in the
sense of Definition 1.2.3.
We want to prove that
is countable.
Here is the proof most people write first. List each
set: . Put in row and column of an infinite grid.
Every element of the union stands somewhere in the grid,
and the grid is indexed by , which is
countable (Theorem 3.2.6).
So the union is the image of a countable set, and it is
countable.
Every step but the first, “list each set”, is a
result of Section 3.2. Where do the lists come from?
The
obstacle, rule by rule
For a non-empty , “ is countable” says
that there exists a surjection (Definition 3.2.1).
To use it we apply (Logic and Proof, Definition 5.6.1):
we name the object and argue inside the box of that
name. One names one surjection, for
one .
- Finitely many sets. The proof of Proposition 3.2.5
used two ’s; for we could nest ten boxes.
- All at once. The grid needs a list of
for every , assembled into one
object: a function that sends each to a surjection . A proof is a
finite object. It cannot contain one for
each of infinitely many indices, and no rule of
Logic and Proof, Chapter 5 makes infinitely
many choices in one step.
Two escape routes fail. Recursion (Theorem 2.3.1)
defines a function on all of at once, but from a
rule given in
advance, each value determined by the previous one. The
list of is
not determined by the list of , and a rule producing
a list of every would already be
the missing object. Induction on , with Proposition 3.2.5
at each step, proves “for every ,
is countable” (Exercise C3 writes it out), but that is a
statement about each separately; nothing
makes the lists for different fit together.
Section 1.5 met the same wall: a right inverse of a
surjection must pick a preimage of
every point at once, and the rules
could do that only for finitely many points, or when a
rule names the preimage.
The axiom
of choice
None of the working rules (W1)–(W6) of Section 1.1
forms a set out of infinitely many arbitrary picks. The
principle we add is the simplest statement that
does.
From any family of non-empty sets, one may pick
one element from each set, all at once.
Axiom
3.3.1 (Axiom of Choice)
Let be a set,
and let be a family of sets such that is
non-empty for every
. Then
there exists a function Such a function is called a
choice function for the family.
In symbols, with the set of functions
of Section 1.4 and :
In words: the hypothesis says that each set of the
family has an element; the conclusion says that
one function picks an element of every
at the same
time. The codomain, a set by (W3), only gives somewhere to take its
values. The axiom asserts that exists and gives no
recipe for it.
Its status. For finitely many
indices the axiom adds nothing (proved below); for
infinitely many it is a genuinely new principle. It is
independent of the other axioms of set theory: Gödel
(1938) showed that adding it creates no contradiction
that was not there already, and Cohen (1963) that it
cannot be proved from them. A later chapter states its
best-known equivalent, Zorn’s lemma; the companion
volume on set theory proves it equivalent to the axiom,
together with the other equivalents such as the
well-ordering theorem, and surveys the independence
results. This book uses the axiom openly on the main
line, among other places: here, for countable unions and
right inverses; in Section 3.6, for infinite subsets
that can be listed; in Analysis on the Real
Line, Chapter 1, for sup approximations (the remark
below); in Measure and Integration, Chapter 1,
for the Vitali set; in Functional Analysis,
Chapter 4, through Zorn’s lemma, for the Hahn–Banach
theorem; and in Functional Analysis, Chapter 6,
for Tychonoff’s theorem. Each use is flagged at its
line.
Examples.
- The empty family. If , the empty
function (Proposition 1.4.2
(a)) is a choice function: the condition “for every
”
holds vacuously. No axiom is needed.
- A family with a rule. Let and , the positive multiples of
. Each contains . The rule is a
choice function, defined by specification (Definition 1.1.3);
no axiom is needed.
- A family with no rule in sight. Let be the set of non-empty
subsets of , and
for
. A choice
function picks an element of every non-empty set of
reals. “The least element” fails, since has none, and no
rule that works for every is known. Here the
axiom supplies what the other rules do not.
A non-example by minimal change. In
Example 2, add the index . The positive multiples of form the empty set
( means
), so , and no
function can have . Only the clause “ is non-empty for
every ” fails, and
without it the conclusion is false. That is why the
proofs below remove the empty sets from a family before
they choose. (Dropping “all at once” instead would leave
nothing beyond the hypothesis.)
When choice
is not needed
Two kinds of construction look like choice and are
not; telling them apart from a real use is the skill
this section is for.
Finitely many sets. For every
finite set and
every family of non-empty sets, a choice function exists,
with no appeal to the axiom. For , three
applications of name
, and
is the graph of a choice function. For
a finite set of arbitrary size we induct on its number
of elements (Definition 3.1.2).
Let be: “for
every set with
elements and
every family of non-empty sets, there is a choice
function”. Base case : a set with elements is the image
of a bijection from , so it is empty, and the
empty function is a choice function (Example 1).
Inductive step: assume , and let have elements. Then
,
since a bijection has a value at ; pick by . The
set has elements (Corollary 3.1.7),
so gives a
choice function for .
Since , one more
names . The graph of together with the
pair ,
with codomain , is a function on ,
because ; and it is a choice function. So holds, and Logic and Proof, Axiom 4.2.1
gives for
every .
Each step uses two ’s
and no new principle; the induction says nothing about
an infinite ,
which has no number of elements.
A rule that picks. If one
description names an element of each , the choice function
is defined by specification (W1), as the set of pairs
with the element named for
. Typical rules:
the least element of a non-empty set of
natural numbers (Theorem 2.1.3);
the non-negative square root of a
positive real; in a bisection, the left
half if it has the property in question, and
otherwise the right half. The first rule is how Theorem 3.2.2
passed from a surjection to an injection with no axiom:
the least preimage is named, not chosen.
Warning. Choice is not
“picking an element”. “Let ” is a single
and needs no axiom; neither does picking
from ten sets. The axiom is needed only for picking
one element from each of infinitely many sets,
with no rule. A proof that says “choose” need
not use it, and one that never says “choose” may: “for
each , let be a list of ” is a use, however it
is worded.
Right
inverses
The first consequence settles the question Section
1.5 left open. By Proposition 1.5.2,
a function with a right inverse is surjective; the
converse is where choice enters.
Theorem
3.3.2 (Surjections Have Right Inverses)
Let be a surjective function. Then has a right inverse:
there is a function with for every
.
Idea. A right inverse must name a
preimage of every . The preimages of the
points of form a
family of sets indexed by , each non-empty because
is onto. A choice
function for that family is exactly a right inverse.
Proof. For , let (Definition 1.6.2).
This defines a family of
subsets of ,
indexed by . Each
is non-empty,
since is
surjective (Definition 1.4.4).
By Axiom 3.3.1
there is a function with for every
. The union
is a subset of ,
so the graph of
is a subset of , and with codomain it is a function with
(Definition 1.4.1).
For every ,
, that
is, . So
,
and is a right
inverse of (Definition 1.5.1
(b)).
Together with Proposition 1.5.2:
a function is surjective if and only if
it has a right inverse. The theorem is in fact
equivalent to the axiom: a right inverse of the
projection , from the set of pairs with onto , is a choice function
in disguise.
Quick check. Let ,
. It is surjective. Does the existence
of a right inverse of need Axiom 3.3.1?
Solution. No. Each has the
preimages and
, and the rule
“take the non-negative one” names one of them: . Then
, so is a right inverse, defined by a
formula. The axiom is needed only when no such rule is
available.
Countable
unions
Now the theorem the section opened with. The second
form, with any countable index set, is the one used in
practice.
Theorem
3.3.3 (Countable Unions of Countable
Sets)
(a) Let be a
family of sets such that is countable for
every .
Then is countable.
(b) Let be a countable set and
a
family of sets such that is countable for
every . Then
is countable.
Idea. This is the grid of the
opening, with the lists supplied by the axiom. ① Throw
away the empty sets: the axiom needs non-empty ones, and
they add nothing to the union. ② For each remaining
, the surjections
form a
non-empty set; choose one from each, all at once. ③ The
chosen lists turn the grid into a surjection onto the union,
and the grid is countable by Section 3.2. Part (b) is
part (a) after renumbering the index set by a list.
Before reading on: which line uses choice, and
why can not replace it?
Proof.
- (a) Let and .
If , every is empty, so , which is
countable by Definition 3.2.1.
Suppose . For , let the set of surjections (Definition 1.1.3,
with the
set of functions of Section 1.4). Since is countable and
non-empty, (Definition 3.2.1).
By Axiom 3.3.1,
applied to the family , there is
a function with for every
. This is
the only line of the proof that uses the axiom.
Define by . It takes values in : maps into . It is
surjective: let ; then for some (Definition 1.2.4),
so and ; since is a surjection onto
, there is with , that is,
.
The set is
countable by Proposition 3.2.3,
as a subset of ,
which is countable (the identity is a surjection). So
is
countable by Corollary 3.2.7
(a), and it is non-empty, since it contains for any . By Definition 3.2.1
there is a surjection . Then is surjective (Theorem 1.4.4
(b)), and is
countable.
- (b) Let . If , then , which is countable. Otherwise Definition 3.2.1
gives a surjection ; fix one. For put , a
countable set. Then . An element of
lies in with . If with , then for some , because is onto, and . By (a), is countable.
The line in bold is the only use of the axiom. The
surjections of
parts (a) and (b) are single objects, each named by one
. What needed the axiom was a surjection
for every at once:
supplies only
inside the box of a fixed , and needs all of them
outside every such box. The set is there because for
there is no function at all (Proposition 1.4.2
(b)), so . The theorem completes the closure
properties of countable sets: subsets, images, finite
products, countable unions.
Neither hypothesis can be dropped: Section 3.4 shows
that is not
countable, and
is the union of the single set , and also of the
countable sets , .
Warning. The choice is of
the lists, not of preimages. A surjection gives least
preimages by a rule (Theorem 3.2.2),
but only once the surjection is in
hand. In Theorem 3.3.3,
what is missing is the surjection itself, one for each
, and the sets
need not be
sets of natural numbers, so no “least” is available to
name one.
Unions
without choice
Many countable unions met in practice come with their
lists, and then no axiom is used.
Example
(Unions that come with their lists)
Solution.
(a) By the
definition , a
number is rational exactly when it lies in for some , so the
two sets are equal. Fix the bijection of
Theorem 3.2.8
(, ).
Then lists , and the whole family
of lists is the single function defined by specification. It is onto : for with , , take
with . Since is
countable and non-empty (Proposition 3.2.3,
Corollary 3.2.7),
composing with a
surjection lists . The grid is the same
as in Theorem 3.3.3;
the difference is that the rows were written down, not
chosen.
(b) No, and its
place before Axiom 3.3.1
does not settle this, since by the warning in “When
choice is not needed” a proof can use the axiom without
naming it; we check the lines. The maps and are
formulas. The results cited name finitely many objects
by : one injection in Proposition 3.2.3,
two in Corollary 3.2.7
(a), one surjection in Proposition 3.2.4.
The passage from a surjection to an injection in Theorem 3.2.2
takes the least preimage, a rule; the return from an
injection to a list goes through Lemma 3.2.1,
whose list is defined by recursion from least elements
(Theorem 2.1.3),
again a rule. No line picks from infinitely many sets
without a rule.
The pattern is general: if one formula in lists every , the family of lists
is a single function, and no axiom is used. Choice
enters only when each is known to be
countable as a bare existence statement.
Algebraic
numbers
The theorem pays off at once. A real number is called
algebraic if it is a root of a non-zero
polynomial with integer coefficients. To keep this
inside what the book has defined, we speak of
coefficient tuples. For and (a -tuple, entries
numbered from ),
let (Definition 2.3.1,
Definition 2.3.2),
and call
non-zero if for some . Then is
algebraic if for some and some non-zero
.
Constant polynomials are left out without loss, since a
non-zero constant has no roots.
For example, is algebraic, a root of (). Every
rational is
algebraic, a root of (). So is , a root of .
We use one fact from school algebra, not proved here:
if is non-zero, then has at most real roots.
(It follows from the factor theorem.) In particular the
set is finite.
Theorem
3.3.4 (The Algebraic Numbers Are
Countable)
The set of algebraic real numbers is countable.
Idea. Sort the polynomials by
degree. For each ,
the coefficient tuples form a countable set, and each
polynomial contributes finitely many roots: a countable
union of finite sets. Then take the union over . Both unions are
instances of Theorem 3.3.3
(b).
Proof. Let be the set
of algebraic real numbers, and for let be the set of
non-zero tuples in .
Step 1. Let . The set is countable (Theorem 3.2.8),
and is
the product of factors all equal to , so it is countable
by Corollary 3.2.7
(b). Hence is countable (Proposition 3.2.3).
Step 2. For , the root set is finite by the
school fact above, hence countable (Theorem 3.2.2,
(iii)
(i)). So , the set of
roots of the non-zero polynomials of degree at most
, is countable by
Theorem 3.3.3
(b), with the countable index set .
Step 3. By definition, . The index set
is countable (Proposition 3.2.3).
So is
countable by Theorem 3.3.3
(b).
The proof cites Theorem 3.3.3
twice, and so it uses Axiom 3.3.1.
Here the axiom can be avoided (not proved in the text;
nothing later uses it): list each finite root set in
increasing order, which is a rule, and replace the two
unions by one fixed enumeration of all integer
coefficient tuples. Exercise C2 asks you to carry this
out. The countability of has a
striking consequence once we know that is not countable:
Section 3.4 deduces that some real numbers are not
algebraic.
Exercises
A. Check your
understanding
Exercise
(A1)
These parts are about the proof of Theorem 3.3.3.
- (a) Which line of
the proof of part (a) uses Axiom 3.3.1?
What are the index set and the sets of the axiom at that
line?
- (b) Why does the
proof introduce the set ?
- (c) Run the proof on
for , with the lists for
odd and
for even . What is
, and what is
?
- (d) State the idea
of the proof in two sentences.
- (e) Is Axiom 3.3.1
needed to show that
is countable when every is a subset of ? Justify your
answer.
Solution.
(a) The line “By
Axiom 3.3.1,
applied to the family , there is
a function on
with ”. There
, the set of
indices with , and the sets of the axiom are the
, the sets of
surjections . The axiom chooses lists, not elements of
the .
(b) The axiom
applies only to families of non-empty
sets. If , there is no function at all (Proposition 1.4.2
(b)), so , and the family would
not qualify. Empty sets add nothing to the union, so
restricting to
loses nothing.
(c) Every is non-empty, so
. The pair
has even, so . (Each is onto : and .)
(d) Choose, with
the axiom, a list of each non-empty , all at once. The
lists turn the countable grid into a
surjection onto the union, so the union is
countable.
(e) No. The union
is a subset of ,
so it is countable by Proposition 3.2.3.
(Even the proof can run without the axiom: for
and
otherwise (Theorem 2.1.3)
is a rule that maps onto any non-empty
.)
B. Practice
Exercise
(B1: Which constructions need choice?)
Determine which of the following constructions need
Axiom 3.3.1.
Justify your answer.
- (a) Choose a real
number in each interval , .
- (b) Choose an
element of each non-empty subset of .
- (c) Choose an
element of each non-empty subset of .
- (d) Choose one of
the two square roots of each positive real number.
Solution.
(a) No. The rule
names an element of each interval,
since .
(b) No. The rule
“the least element” names one, by Theorem 2.1.3:
is
a choice function, defined by specification.
(c) Yes, as far
as this book is concerned. The rule “the least element”
fails, since
has no least element, and no rule is known that names an
element of every non-empty set of reals. A proof that
needs such a function uses the axiom, and says
so.
(d) No. The rule
“the positive one” names one root of each : .
Exercise
(B2: Finite sequences)
Prove that the set of all finite sequences of natural
numbers is countable, and say whether your proof uses Axiom 3.3.1.
Here a finite sequence of length is a function
, represented by its graph, a subset of
; the sequence of length is .
Hint: Theorem 2.3.1,
together with one fixed surjection .
Solution. Let be the set
of such that
is the graph of a
function for some (Definition 1.1.3,
Definition 1.2.2).
This is
determined by ,
since is the set of first coordinates of , and is its number of
elements (Corollary 3.1.4);
call it the length of , and let be the set
of elements of length . So , and .
With choice. Each is
countable (for it is in bijection with , by ; with ; has one
element), so Theorem 3.3.3
(a) applies. This route uses Axiom 3.3.1,
through the theorem.
Without choice. Fix one surjection (Theorem 3.2.6,
Definition 3.2.1;
a single ), and write . For of length and , let , the sequence with appended; it has length
. Every
is for
the restriction
of to and .
Let , the set of functions , let
be the
constant function with value , and define
by By Theorem 2.3.1
there is a function from to with and for all .
Claim: for every , maps onto . By
Logic and Proof, Axiom 4.2.1
on . For , every value of
is , and . Assume the claim for . Each value has length , because has
length . Let ,
say
with . By the hypothesis there is
with , and since
is onto
there is with
.
Then . This proves the claim.
Now maps onto : for , the
claim gives with
, and
some has . So
is
countable. One surjection was named, and the lists were defined from it
by recursion: no choice is used. Either route earns full
credit if the use of choice is reported correctly.
Exercise
(B3)
A rational point of the plane is a
point of . Prove that the set of lines in the plane
that pass through two different rational points is
countable. Does your proof use Axiom 3.3.1?
Solution. Let . The set is countable by Theorem 3.2.8
and Corollary 3.2.7;
so is its product with itself, again by Corollary 3.2.7,
and so is the subset (Proposition 3.2.3).
For ,
let be the line through and , as a subset of : . Two different points
lie on exactly one line (school geometry), so the lines
in question form the image ,
countable by Proposition 3.2.4.
The map is a
formula, so no choice is used.
C. Going deeper
Exercise
(C1: Exit check: countable unions)
Prove that if is countable for
every ,
then so is . Point to the step of your proof that
uses Axiom 3.3.1.
Solution. Let and . If , then , which is
countable. Let . For , the set of surjections is non-empty
(Definition 3.2.1).
By Axiom 3.3.1,
applied to , there is a function on with for every
: a list of
every at once,
which no finite number of ’s
gives. This is the step that uses the axiom.
Put for .
It is onto : if
, then for some (Definition 1.2.4),
so , and
for
some , as is onto . Since is
countable (Proposition 3.2.3),
is
countable (Corollary 3.2.7
(a)) and non-empty, so some is onto (Definition 3.2.1),
and so is (Theorem 1.4.4
(b)). This is the proof of Theorem 3.3.3
(a).
Marking scheme. (10 points) - 1:
handles the empty sets: the case where every is empty, and the
restriction to the non-empty ones before choosing. - 3:
obtains, by Axiom 3.3.1,
a surjection onto for every simultaneously, and
says at that line that the axiom is used. - 2: defines a
map from a set of pairs (or another index set) to the
union. - 2: shows that this map is onto the union. - 2:
shows that the index set is countable and non-empty,
citing the product result, and concludes. Through
injections : 1 for noting that they exist for
every , empty
included (the
empty function), so nothing is discarded; 3 for choosing
all by Axiom 3.3.1,
flagged; 2 for into , with
the least with (Theorem 2.1.3);
2 for its injectivity; 2 for concluding with Theorem 3.2.6
and Theorem 3.2.2,
(ii)
(i). Fatal errors (0 for the step): “for each let be a list of ” with no mention of
choice, an unflagged infinite that
no rule licenses (0 for the choice step); listing row by
row, as in Example (Listing the rows one after another)
(0 for the countability step).
Solution (Hint 1). Use Exercise (B2: Finite sequences)
to obtain, without choice, one surjection from onto all coefficient
tuples of all lengths together.
Solution (Hint 2). For an
algebraic , let
be the least
index whose tuple has as a root; it exists by
Theorem 2.1.3.
Solution. Use the notation of Theorem 3.3.4,
and let be the set
of algebraic numbers.
One list of all coefficient tuples. Let
be
defined as in Exercise (B2: Finite sequences),
with in place
of , and let
be the bijection of Theorem 3.2.8.
Sending to the sequence maps
onto
(use
entrywise to
find a preimage), so is
countable without choice, by that exercise and Proposition 3.2.4.
Since
is non-empty (it contains , the sequence
of length ), fix
one surjection (Definition 3.2.1),
a single . A sequence of length is read as
the tuple , and every such tuple
arises; write and . Call good
for if has length at
least , is
non-zero, and . Then is algebraic if and
only if some is
good for , since
is onto.
An injection, by rules. For , let
be the
least that is good for (Theorem 2.1.3),
and let well defined because this set is a subset of
the finite set (Proposition 3.1.6,
Corollary 3.1.4).
Both are named by rules, so
is a function , defined by
specification.
It is injective. Let with and
; call this common index , and suppose , say . Both are
roots of . The set is a subset of , and a proper one, since lies in the second and
not in the first. By Proposition 3.1.6,
the first has fewer elements: , a contradiction. So .
Following it with the injection of
Theorem 3.2.6
gives an injection (Theorem 1.4.4
(a)), so is countable
by Theorem 3.2.2,
(ii)
(i). Apart from the single surjection , every object was
named by a rule, so Axiom 3.3.1
is not used.
Marking scheme. (10 points) - 3:
produces, without choice, one surjection (or injection)
relating to the
coefficient tuples of all degrees at
once, citing Exercise (B2: Finite sequences)
or an explicit coding. - 3: assigns to each algebraic
number its data (an index of a polynomial and a position
among its roots) by rules, such as a
least index and a count or the increasing order of the
finite root set. - 4: proves that the resulting map is
injective (or a map onto surjective),
concludes, and says why no step uses choice. Fatal
errors (0 for the step): citing Theorem 3.3.3,
which uses the axiom; “for each polynomial (or each
), take a list”
with no rule given.
Exercise
(C3: Finite unions)
- (a) Prove, without
Axiom 3.3.1,
that for every finite set and every family of
countable sets, is countable.
- (b) Explain in two
sentences why your induction does not prove Theorem 3.3.3.
Solution.
- (a) We use Logic and Proof, Axiom 4.2.1
on the number of elements of . Let be: “for every set
with elements and every
family of countable sets, is
countable”.
Base case. A set with elements is empty, so
, which is countable.
Inductive step. Assume , and let have elements and be a
family of countable sets. Since , ; pick
. Then
has elements (Corollary 3.1.7),
so is countable by , applied to the
family . Since , an element lies in some
with exactly when it
lies in or in
, so which is countable by Proposition 3.2.5.
So holds,
and Logic and Proof, Axiom 4.2.1
gives for
every . Each step
makes finitely many ’s,
so no choice is used.
- (b) The induction
proves the statement for each finite number of sets, and is not finite (Example (Hilbert’s Hotel)),
so no instance of is about the family
.
Writing as the union of the finite unions
does not help, since that needs a list of every finite
union at once, which is a choice of infinitely many
lists again.