Section 3.1 made “the same size” exact and settled
the finite sets. It also showed that is infinite, because
it is equinumerous with its proper subset (Example (Hilbert’s Hotel)).
The next question is which sets can be put into a list
indexed by .
Analysis on the Real Line, Chapter 1 already
uses the word for these sets,
countable, in its proof that the real
numbers cannot be listed. This section defines it,
proves three equivalent forms of it, shows that
countable sets are closed under subsets, images, unions
of two sets and finite products, and lists the integers
and the rationals.
Lists
Can we list the rational numbers as so
that every rational number appears somewhere? Density
makes it look impossible. Between any two rationals
lies a
third, ,
so no rational has a next one, and a list in increasing
order cannot even get from to . And yet a list need
not be in increasing order. It only has to reach every
element at some finite position. The rationals can be
listed in that sense, and so can many sets that look
larger than .
A list indexed by is a function on
, its -th entry being the
value at .
Reaching every element is surjectivity.
Countable means listable, repetitions
allowed.
Definition
3.2.1 (Countable Set)
A set is
countable if or
there exists a surjection . In
the second case that is, the elements of can be listed as ,
with , repetitions allowed. A set that is not
countable is uncountable. In symbols,
is countable if
and only if
In words: a non-empty set is countable when some list
reaches every one of its elements, each
at a finite position . The list may
repeat an element as often as it likes, and it need not
follow any order. The first clause is there because
there is no function at all from to (Proposition 1.4.2
(b)), so the second clause can never hold for the empty
set; without the first clause, would be
uncountable. For a non-empty set the definition says
that it is the image of some function from , which is how
Analysis on the Real Line, Chapter 1 states
it.
Examples, starting from the smallest:
- is
countable, by the first clause.
- A non-empty finite set is countable. For three
different objects , the list , that is , and
for , is a
surjection . Repetitions pad a short list out to the
length of .
- is
countable: is a
surjection.
- The set of squares is countable: it is the
image of under
, and
a function is a surjection onto its image (Section 3.1,
“Shrinking the codomain”). In the same way is countable.
A non-example by a minimal change.
The list is a list of . Read it as a list
of , keeping the
rule and changing only the target set, and it fails: the
clause “for every there is an with ” fails at . This shows that
this list misses , not that is uncountable; one
map proves nothing about all maps (the warning after the
non-example in Section 3.1). Sets that are genuinely
uncountable appear in Section 3.4.
Why repetitions are allowed. Two
reasons. First, finite sets are then countable with no
special case: pad the list by repeating an element, as
above. Second, the closure proofs below become short. A
function applied to a list gives a list of the image,
which may have repetitions even if the first list had
none; interleaving lists of two overlapping sets repeats
their common elements. If repetitions were forbidden,
every such proof would need a step that deletes them.
The definition puts that work in one place, the theorem
on three ways to say countable below, and does it
once.
Sometimes we need the stronger statement that a set
has exactly the size of .
Definition
3.2.2 (Countably Infinite Set)
A set is
countably infinite if ,
that is, if there is a bijection (equivalently,
by Proposition 3.1.1
(b), a bijection ).
So , and are countably
infinite (Section 3.1), and a countably infinite set is
countable, since a bijection is a surjection.
Warning. In this book “countable”
includes the finite sets and . Some books use
“countable” to mean “countably infinite” and say “at
most countable” for our “countable”. Before quoting a
theorem about countable sets from elsewhere, check which
convention it uses. Here, is countable and
is not countably infinite.
Subsets of
the natural numbers
Every countable set will turn out to be finite or
countably infinite, with nothing in between. The heart
of that is a fact about subsets of : an infinite one can
be listed in increasing order without gaps.
Lemma
3.2.1 (Subsets of the Natural Numbers)
Every subset is finite or countably infinite.
Idea. If is infinite, list it in
increasing order: is the least element
of , and is the least
element of above
. Well-ordering
supplies each least element, provided the set is
non-empty, and it is non-empty because has elements beyond any
bound, being infinite. Recursion turns the rule into a
function. The list misses nothing: if were skipped, it
would lie strictly between two consecutive entries ,
and then would
not be the least element of above .
Proof. If is finite there is
nothing to prove, so let be infinite. In
particular .
Every has an element of above it. Let
, and
suppose that no has . Then , a set with elements (the third
example after Definition 3.1.2),
so is finite by
Proposition 3.1.6,
a contradiction. Hence is
non-empty, and by Theorem 2.1.3
it has a least element.
The list. Define by ; by the previous paragraph
this is defined for every . By Theorem 2.3.1,
with and (which exists by Theorem 2.1.3),
there is a function from to with Every
lies in : , and .
Increasing. By construction for
every . Hence
whenever ,
by induction on :
there is no (Lemma 2.1.1
(a)), and if , then (Lemma 2.1.1
(e)), so , using the hypothesis when . In particular
is
injective, since gives or . Also for every : (Lemma 2.1.1
(a)), and if , then , so (Lemma 2.1.1
(e)).
Onto .
Let . The
set is non-empty, since , so it has a
least element by
Theorem 2.1.3.
If , then
and , so
. If , then (Lemma 2.1.1
(c)), and by the minimality of . So , and
. With this gives .
So , with codomain , is a bijection , and is countably
infinite.
Three ways
to say countable
Being countable (empty or listable by ), having an injection
into , and being
finite or the size of all describe the same
sets. Having the three forms side by side is what makes
countability easy to prove: we may use whichever is
cheapest for the set in hand.
Theorem
3.2.2 (Characterizations of Countable
Sets)
For every set ,
the following are equivalent.
- (i) is countable.
- (ii) There is an
injection .
- (iii) is finite or countably
infinite.
Idea. From a list to an injection:
send each element to the first position
at which it appears. From an injection to (iii): the
injection makes
equinumerous with a subset of , and Lemma 3.2.1
sorts those. From (iii) back to a list: pad a finite
list by repetition, as in the examples above.
Proof.
(i) (ii). If
, the
empty function is injective, vacuously. Otherwise let
be a surjection. For , the preimage is non-empty, since is onto, so it has a
least element by Theorem 2.1.3.
Define by Then for every , that is, , so is injective by Theorem 1.5.1
(a).
(ii) (iii). Let
be injective. With its codomain shrunk to , it is a bijection
(Section
3.1), so . By Lemma 3.2.1,
is finite or countably infinite. If has elements, there is a
bijection , and following it by the inverse of
gives a
bijection (Proposition 3.1.1
(b) for the inverse, Theorem 1.4.4
(c)); so has
elements. If
, then by
Proposition 3.1.1
(c).
(iii) (i). If is countably infinite,
a bijection is a surjection. Let be finite with elements. If , then , which is
countable. If , let be a bijection and
define by Every is for some , so is a surjection. This
proves the theorem.
The step (i) (ii) picks
one element of
for
every at once, and it needs no new principle for
that, because there is a rule that names the element:
the least one. That works because the preimages are
subsets of ,
which is well-ordered. Section 3.3 meets a step that
looks the same and has no such rule, and it is the point
at which the book adds the axiom of choice.
In practice, (ii) is often the cheapest test. An
injection into
only has to keep different elements apart, while a
surjection has to reach every element, and (iii) asks
for a bijection, which must do both.
Closure
properties
Three closure properties follow at once, each from
the form of countability that suits it.
Proposition
3.2.3 (Subsets of Countable Sets)
Every subset of a countable set is countable.
Proof. Let be countable and . By Theorem 3.2.2,
(i)
(ii), there is an injection . Its
restriction is injective, since it has the same
values. By (ii) (i), is countable.
Proposition
3.2.4 (Images of Countable Sets)
Let be
countable and a function. Then is countable. In
particular, if is
surjective, then
is countable.
Proof. If , then , which
is countable. Otherwise let be a
surjection. The function with codomain is surjective
(Section 3.1), so its composite with is a surjection by Theorem 1.4.4
(b). If is
surjective, then .
For unions we interleave two lists, taking the
entries of the first list at the even positions and
those of the second at the odd positions. That needs the
fact that every natural number is even or odd, in
exactly one way.
Proposition
3.2.5 (Union of Two Countable Sets)
If and are countable, then
is
countable.
Idea. Two lists and merge
into one, : the entry at position comes from the first
list and the entry at position from the second.
For this to define a function, every position must be
even or odd, and not both.
Proof. If , then , and if
, then
; both
are countable. So let and be
surjections.
Claim. Every can be written
as with
and , and the
pair is
unique. In particular, no natural number is both of the
form and of the
form
with .
Proof. By Theorem 2.2.3
with divisor ,
there are unique integers with and . Then by Proposition 2.1.2
(b), and by
Lemma 2.1.1
(e), so . If , then by the discreteness clause Proposition 2.1.2
(c), so
and , which contradicts (Lemma 2.1.1
(a)). So ,
and by Proposition 2.1.2
(b). Uniqueness among pairs with follows from
uniqueness among all integer pairs. The last sentence is
the uniqueness of .
Define by By the claim, each falls under
exactly one of the two clauses, with exactly one , so is a function. It is
onto: an element of is for some
, and an element
of is for some
, where and lie in by Lemma 2.1.1
(b). So is
countable.
If and overlap, the
interleaved list repeats their common elements, and the
definition does not mind. By induction on the number of
sets, a union of finitely many countable sets is
countable. A union of infinitely many
is a different matter, and Section 3.3 is about it.
Pairs of
natural numbers
The set looks two-dimensional, and a first attempt
to list it shows where the difficulty lies.
Example
(Listing the rows one after another)
Arrange in rows, the -th row being . Consider the “list” Is it a surjection ?
Solution. No. A list indexed by
gives each
entry a position . Here position holds , for every : that already
defines a function on all of . No position is left
for : there
is no
with ,
since the first coordinate of every value is . The word “then” asks
for positions after all the natural numbers, and there
are none. So the claim that this is a list of is false.
It is a list of the first row only.
Warning. A list must give every
entry a finite position. “First all of
row , then all of
row ” never
reaches row ,
because row uses
up every position. The same mistake hides in any listing
that runs through an infinite block before starting the
next one.
The conclusion that is countable is nevertheless
true.
Theorem
3.2.6 (The Plane of Natural Numbers Is
Countable)
The map , , is injective. Hence is
countable.
Try it first (ten minutes): list , or inject
it into . Which
is less work to write down and check?
Idea. The rows-first list fails, as
we saw. A list that works runs along the diagonals ,
each of which is finite; but writing a formula for the
position of
and checking that every position is used takes real
work. By Theorem 3.2.2
it is enough to inject into , and an injection
only has to be a code from which and can be read back. In
, the power
of records and the power of records . To read them back we
do not cite unique factorization into primes, which we
have not proved. Parity does the job: cancel the smaller
power of ; if any
factor is left on
one side, that side is even and the other is odd.
Proof. First, by Proposition 2.3.4
(d) and Lemma 2.1.1
(b). Next, every power with is odd, that
is,
for some :
by Logic and Proof, Axiom 4.2.1,
, and if , then (Definition 2.3.2).
Let with . Suppose . The
hypothesis is symmetric in the two pairs, so we may
assume . Then and (Lemma 2.1.1
(d), (e)), and by Proposition 2.3.4
(a). Canceling , which is
positive by Proposition 2.3.4
(e), gives The left side is even: by Definition 2.3.2,
where by Lemma 2.1.1
(c), so the left side is times the natural
number . The right side is odd, as shown above. No
natural number is both even and odd, by the uniqueness
of the remainder in Theorem 2.2.3
with divisor (the
claim in the proof of Proposition 3.2.5).
This contradiction shows .
Canceling
now gives . By Proposition 2.3.4
(e) with , would give , and
would
give ; so . Hence , and is injective. By Theorem 3.2.2,
(ii)
(i),
is countable.
Alternatively, one can list along its
diagonals: first the one pair with , then the two
pairs with , then the three with , and so on.
Each diagonal is finite, so every pair is reached after
finitely many steps, and the list never stalls on an
infinite block. Some readers find this picture more
convincing than the code . The injection is shorter to write out and
to check, which is why the proof uses it.
The theorem passes to products of any countable sets.
Chapter 1 defines for one set ; for several sets we
first say what the product is. For an integer and sets , let
and the -tuples whose -th coordinate lies in
. It is a set by
(W3), (W5) and (W1) of Section 1.1. For it is of Definition 1.3.2,
a pair being a -tuple, and if every
is the same set
, it is .
Corollary
3.2.7 (Products of Countable Sets)
- (a) If and are countable, then
is
countable.
- (b) Let be an integer. If
are
countable, then is countable.
Idea. For two factors, injections
and turn into a subset
of ,
and the code does the rest. More factors are added one
at a time: a -tuple is a -tuple followed by one
more coordinate.
Proof. (a) By Theorem 3.2.2,
(i)
(ii), there are injections and . The
map , , is injective: if , then and
by
Definition 1.3.1,
so and
.
Following it by the injection of Theorem 3.2.6
gives an injection (Theorem 1.4.4
(a)), and (ii) (i)
concludes. No case split is needed: if or , then
(Proposition 1.3.1),
so the map and its composite with are empty functions (Proposition 1.4.2
(a)), which are injective vacuously.
(b) We use Theorem 2.2.1
with on the
statement “for all countable sets , the set
is countable”. Base case . This is (a).
Step. Let , suppose the statement for , and let be
countable. The map is a function, since a -tuple determines its
coordinates (Section 1.3), and it sends onto : a -tuple with is the image of . By the hypothesis, is countable, so the domain is countable by
(a), and the -fold product is countable by Proposition 3.2.4.
By Theorem 2.2.1
the statement holds for every .
The map in the step is in fact a bijection, by the
characteristic property of tuples (Section 1.3). The
proof uses that property only to see that the map is
well defined, and of the map it uses only that it is
onto; injectivity is never needed. Tuples of different
lengths are different objects, and the book has no -tuples, so the
corollary starts at ; a single countable set needs no
corollary.
Quick check. Let be the set of the letters a–z. Is the
set of all strings of exactly letters, that is , countable? Which
results do you use?
Solution. Yes. The set is finite, so it is
countable by Theorem 3.2.2,
(iii)
(i). The strings of length are the -tuples of letters,
, which is countable by Corollary 3.2.7
(b) with . (It
is in fact finite, with elements: the map in
the step of the proof of Corollary 3.2.7
(b) is a bijection (the remark above), so
Exercise C2 (a) of Section 3.1, applied for after , counts
it. Countability needs less than the count.)
All strings of every finite length together form the
union of the sets over , a union of infinitely
many countable sets. Section 3.3 takes up such
unions.
The
integers and the rationals
Here is the answer to the question that opened the
section. Recall from Section 2.1 that , and .
Theorem
3.2.8 (The Integers and the Rationals Are
Countable)
, and are countable. Each
of them is countably infinite.
Idea. For , interleave the
non-negative and the negative integers, as in Proposition 3.2.5,
but with explicit lists, so that the result is a
bijection: . For , do not try to list
the fractions directly. Every rational is for some pair , and that set of pairs is
countable, so
is the image of a countable set.
Proof. . The identity
is a
bijection .
. By
the claim in the proof of Proposition 3.2.5,
every is
or for exactly one
, and not
both. So we may define by which begins , , , , . It is injective: , while
(Lemma 2.1.1
(a)), so an even and an odd input never share a value;
and or
gives . It is surjective: let . If , then . Otherwise
with , and , since ; so by Lemma 2.1.1
(c), and . So is a bijection.
.
The set is countable by Proposition 3.2.3,
and is
countable, so is countable by Corollary 3.2.7
(a). The map from to is defined, since
is not
, and it is
surjective by the definition of . By Proposition 3.2.4,
is countable.
It is infinite: , since , and is infinite (Example (Hilbert’s Hotel)),
so is not
finite by Proposition 3.1.6.
By Theorem 3.2.2,
(i)
(iii), is
countably infinite.
The list of
that the proof produces repeats every rational
infinitely often: , , , … are all . The definition allows
it, and that is what made the proof three lines. No line
of the proof, or of the results it cites, uses the axiom
of choice of Section 3.3: each surjection or injection
it relies on is either given by a formula or named by a
single , and the only selections made for many
elements at once are least elements (Theorem 2.1.3).
That can be
listed is the fact Analysis on the Real Line,
Chapter 1 quotes when it compares with : the rationals, dense
as they are, can be listed, while Analysis on the
Real Line, Chapter 1 shows that the reals
cannot.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) Define “ is countable”, and say
why the empty set is mentioned separately in the
definition.
- (b) True or false,
with a reason: every infinite subset of is countably
infinite; every countable set is finite or equinumerous
with .
- (c) Which of the
three forms (i)–(iii) of Theorem 3.2.2
is quickest to check for , and why?
- (d) Where does the
proof of (i) (ii) in Theorem 3.2.2
use Theorem 2.1.3,
and to which set is it applied?
Solution.
(a) is countable if or there is
a surjection (Definition 3.2.1).
The empty set is mentioned separately because there is
no function at all (Proposition 1.4.2
(b)), so the surjection clause never holds for .
(b) Both are
true. An infinite is countable by Proposition 3.2.3
and Theorem 3.2.8;
by Theorem 3.2.2,
(i)
(iii), it is finite or countably infinite, and it is not
finite. The second statement is (i) (iii) itself,
with “countably infinite” unfolded by Definition 3.2.2.
(c) Form (i): the
set is given as the image of under , and a
function is a surjection onto its image, so nothing is
left to check. Form (ii) is almost as quick: the
inclusion into
is injective. Form (iii) needs a bijection with , which costs a proof
that
is injective on .
(d) In defining
: well-ordering is applied to the
preimage , which is non-empty because is onto. It gives every
a definite
position, the first one at which appears in the list, so
no choice is needed.
B. Practice
Exercise
(B1)
Prove that each of the following sets is
countable.
- (a) .
- (b) .
- (c) , the
points of the plane with rational coordinates.
- (d) The set of open
intervals with rational endpoints, that is, of the sets
with and .
Solution.
(a) is
countable by Proposition 3.2.3,
and is
countable by Theorem 3.2.8;
so
is countable by Corollary 3.2.7
(a).
(b) It is a
subset of , which is countable by Theorem 3.2.6,
so it is countable by Proposition 3.2.3.
(c) is countable (Theorem 3.2.8),
so
is countable by Corollary 3.2.7
(a).
(d) Let , countable by (c) and
Proposition 3.2.3.
Define by . The set of intervals in
question is the image , so it is countable
by Proposition 3.2.4.
(Here
is an ordered pair, and the interval it names is written
in set-builder notation, so the two readings of “” never
meet.)
Exercise
(B2: Putting a proof in order)
The lines (i)–(ix) below include the seven lines of a
proof that implies and , for , shuffled, together with two lines that do
not belong. Write the seven lines in an order that makes
a correct proof, and say why each of the other two lines
fails.
- (i) The left side is
even, because by the supposition; the right side is odd; no
natural number is both (Theorem 2.2.3,
uniqueness of the remainder for divisor ). This is a
contradiction.
- (ii) Suppose .
- (iii) The left side
is odd and the right side is even, a contradiction.
- (iv) Canceling gives .
- (v) Suppose ; by
symmetry, say .
- (vi) Since is strictly
increasing on ,
.
- (vii) Since and are prime, unique
factorization gives and .
- (viii) Canceling
gives
.
- (ix) So .
Solution. The order is (ii), (v),
(viii), (i), (ix), (iv), (vi). No other order is
admissible. Line (ii) introduces the four numbers and
the equation. Lines (v), (viii) and (i) are one proof by
contradiction: (v) opens it, (viii) uses the supposition
to
cancel, and (i) closes it with a contradiction, so (ix),
its conclusion, must come right after (i). Line (iv)
cancels on both
sides, which needs , so it follows (ix); and (vi) uses the
equation of (iv).
Line (iii) reverses the parities. The left side has a
factor because
,
so it is even; the right side is odd. A line
asserting the opposite is false: for , , , the left
side is and the
right side is .
Line (vii) would end the proof at once, but it cites
unique factorization into primes, which the book has
neither proved nor taken as a school fact: Section 2.2
sets it aside as a fact it does not prove or use (after
Definition 2.2.2),
and the idea before Theorem 3.2.6
declines to cite it. So (vii) cites a line that is not
available, (N9) of Logic and Proof, Example (What is not allowed).
The theorem is true, and the conclusion of (vii) is
true; the error is in the citation, which is exactly why
the proof in the text goes through parity instead.
Exercise
(B3: A surjection by formula)
Give an explicit surjection and prove that it is one. List the
properties that any correct answer must have, so that a
different answer can be checked against them.
Solution. By the claim in the proof
of Proposition 3.2.5,
every is
for exactly
one pair
with and
.
Define by : so , , , . The uniqueness of the pair makes a function. It is
surjective: given , the number lies
in (Lemma 2.1.1
(b)), and . (It is even a bijection, by the uniqueness
of the pair.)
A correct answer must:
- assign to every exactly one
value, so that it is a function on all of ;
- take its values in ;
- reach every pair and every pair , for every , each at a
finite position.
For instance , also qualifies. The rows-first attempt , “then”
the pairs ,
fails the third property (Example (Listing the rows one after another)).
C. Going deeper
Exercise
(C1: Finite subsets of the natural numbers)
Let be the
set of all finite subsets of . Prove that is countable, without
using any result about unions of infinitely many
sets.
Solution (Hint 1). Inject into by sending to , for any with (the value does not depend on ): the number whose
binary digits are the indicator of .
Solution (Hint 2). To prove
injectivity, let
be the largest element at which two different sets differ (the
largest element of , a non-empty
finite subset of ). The terms above
are the same for
and . Then use .
Solution. The set exists by specification. We
build an injection in four steps. For and let a finite sum as in Definition 2.3.1
(indexed from ),
where is the indicator function of . Each term is or , and by Proposition 2.3.4
(d). So , by induction on through the recursive
clause of Definition 2.3.1,
using Lemma 2.1.1
(b) at each step.
Step 1: a bound. Each term is at most , so by Proposition 2.3.6
with
(shifting the index by one).
Step 2: one more term. Splitting off the
last term (Section 2.3), for , In particular, if , then . By
induction on , for every : the value
does not depend on which bound we use.
Step 3: injective for a fixed . We prove by Logic and Proof, Axiom 4.2.1
on : if and , then . For , and
are or , with values and . For the step, let
with ,
and write , . If and , then Steps 2 and 1 give a contradiction; the case
is the same with
and exchanged. So
lies in both
or in neither, the last terms in Step 2 agree, and . By the hypothesis, . Since
, it follows that
.
Step 4: the injection. Every lies in some
: if
, take
; otherwise
is a non-empty
finite set of real numbers, so it has a maximum (Proposition 2.3.8,
as in the remark at the end of Section 3.1), and . Define for any such ; by Step 2 this does
not depend on . If
, take at least as large as a
bound for and a
bound for ; then
,
and Step 3 gives . So is injective, and
is countable by
Theorem 3.2.2,
(ii)
(i).
For example
(the empty set contributes no terms), and : is the number
whose binary numeral has a exactly in the places
listed in . Step 3
is the uniqueness of binary numerals, and Step 4 uses no
principle of choice: every value is given by a
formula.
Marking scheme. (10 points) - 2:
defines a map from the finite subsets to explicitly, including
the value at , and checks
that its values are natural numbers. - 2: makes the map
well defined, either by a bound-independent definition
(as in Step 2) or by summing over the elements of listed in increasing
order. - 4: proves injectivity, either by comparing the
terms at the largest element at which and differ, using , or by an induction on the bound as in Step
3, or by an equivalent proved uniqueness argument for
binary numerals. - 2: concludes with Theorem 3.2.2,
(ii)
(i). - Route by surjection: an explicit map that reads
off binary digits (for example, is the set of for which the
quotient of by
in Theorem 2.2.3
is odd) earns the same points: 2 for defining the map, 2
for checking that each value is a finite subset of , 4 for a proof that
every is
a value, and 2 for concluding by Definition 3.2.1.
Fatal errors (0 for the step): writing as the union over
of the sets of
-element subsets
and citing a result on countable unions (the task
excludes it); asserting injectivity, or surjectivity on
the second route, “by uniqueness of binary expansions”
with no proof.
Exercise
(C2: Find the error)
Here is a “proof” that every subset of a countable
set is countable.
Let be
countable and . (1) If , then is countable by
definition. (2) Otherwise , so there is a surjection . (3)
Define by . (4) Let . Then , so for some , and . (5) Hence is a surjection onto
, and is countable.
Is the conclusion true? Does the argument prove it?
If not, name the line that fails, the rule it breaks,
and give a counterexample to that line.
Then repair the proof.
Solution. The conclusion is true:
it is Proposition 3.2.3.
The argument does not prove it.
Line (3) fails. It does not define a function from
to : Definition 1.4.1
requires, for every , exactly one
value in , and when
the
formula offers no value in at all. Counterexample
to line (3): , , . Then “”, and , so is not a function into
. Lines (1), (2)
and (4) are correct, and (5) would follow if were a function .
Repair. In the case , fix one
element
(one ) and define Now is
a function , and line (4) shows that it is onto: for
, some has , and then
.
The repaired proof uses that is non-empty, which
line (1) had already split off; the flawed line ignored
the elements of , and the default value is where they go. The
proof in the text avoids the issue by restricting an
injection instead, since a restriction
of a function is always a function.
Marking scheme. (10 points) - 2:
says the conclusion is true, citing Proposition 3.2.3
or an equivalent proof. - 3: names line (3) and the
broken requirement: a function into needs a value in at every (Definition 1.4.1).
- 2: gives a concrete instance of the failure of line
(3), with a specific whose value leaves
. - 3: repairs the
proof with a default value in (or by restricting an
injection), and checks surjectivity. Fatal errors (0 for
the step): calling the conclusion false; blaming line
(4) or (5); a “counterexample” that shows a subset that
is not countable.