Section 2.5 counted finite sets, and Section 2.3
proved the laws of powers and
by
induction (Proposition 2.3.4).
For finite sets these numbers count functions: has elements when has and has (Section 1.5, before Example (All functions between two small sets)).
This section asks what is left of that arithmetic when
the sets are infinite and all we have are
bijections.
The plane
and the line
A square has two dimensions and a segment has one.
Surely the plane has more points than the line? The
injection gives , and it seems that
the other half of the plane should be left over.
A second question. Is , the set of
sequences of natural numbers, bigger than ? A real number in
is only a
sequence of digits below , while a sequence in
may use
any natural number at every place, so looks
bigger.
Guess both answers before reading on. The plane is a
product,
is a power, and the line will turn out to be a power
too: a power of .
Adding
sizes: disjoint unions
For finite sets that do not meet, Section 2.5 added
sizes by taking the union (Proposition 2.5.5).
So define the sum of two sets as their union? With we want two
elements, and has one. The union counts the shared
element once. The cure is to tag every element with the
name of the set it came from, so that the two copies
cannot overlap.
A disjoint union keeps a labeled copy of each
set, so nothing is counted twice.
Definition
3.6.1 (Disjoint Union)
Let and be sets. Their
disjoint union is The maps , , and , , are the inclusions.
In words: every element of is with or with , and not
both, since would give by the
characteristic property of pairs (Definition 1.4.1).
By the same property each inclusion is injective, the
two images are disjoint, and together they make up . So a function
on may
be defined by giving its values on the two tagged parts
separately: these are the two cases that cannot overlap,
as in the proof of Proposition 3.1.5.
Example
(Two copies of ℕ)
Show that .
Solution. This is the merging of
two lists from the proof of Proposition 3.1.5,
now as a bijection. Let and ,
for ; by
the unwinding above this defines . For the decoder, let ,
where
with and
; the
pair exists and is unique by the claim in that proof,
and . Then by the uniqueness, and . By
Theorem 1.6.4,
is a
bijection.
This is the first encoding of the section: writes a pair as one
number, and reads
it back. The method box comes with the next one.
Quick check.
- (a) With , list the
elements of and of . (b) What is ? (c)
If , give a bijection .
Solution.
- (a) , three elements; , two. (b) , since ; and is a bijection .
(c) Send to if and to if . The cases do not
overlap, since , so this is a function. Its inverse
sends and .
Warning. No
subtraction. For numbers, gives . For sets, although : the map sending and
is a bijection ,
and is a bijection (Exercise B4 (a) has the details). Every
law below is proved by a bijection, never borrowed from
the numbers.
Multiplying, raising to powers, and comparing
Products (Definition 1.4.2)
and sets of functions (Section 1.5) are the
other two operations. If has elements and has , then has elements and has , as Exercise C2 of
Section 2.5 counts. The base is written on the line and
the exponent is the domain: is the set of
functions from to
.
Before any law, we check that the three operations
see only sizes.
Proposition
3.6.1 (Sums, Products and Powers Respect
Size)
Let be sets with
and . Then
- (a) ;
- (b) ;
- (c) .
Idea. Carry each element across
along the bijections: on each tagged part for (a), on
each coordinate for (b), and for (c) by composing a
function with the bijections on both sides. The inverses
carry everything back.
Proof. Let and be bijections, with
two-sided inverses and (Theorem 1.6.4).
(a) Send and ; this is a function by
the two-part rule after Definition 3.6.1.
The same rule with and undoes it on
each part, so it is a two-sided inverse.
(b) Send . The map is a
two-sided inverse, by Definition 1.4.1.
(c) For , the composite
is a function . Let
and for . By
Proposition 1.5.3
and , , and in
the same way. In each part, Theorem 1.6.4
gives a bijection.
The comparison of Definition 3.4.1
is respected as well, with one exception.
Proposition
3.6.2 (Monotonicity)
Let be sets with and . Then
- (a) ;
- (b) ;
- (c) if ,
then .
Idea. Carry the injections across,
as in the previous proof. For powers, a function on
must be extended
to all of ,
and the extension needs a value to put on the points
that does not
reach.
Proof. Let and
be injections. (a), (b): the maps of the
previous proof with , in place of , are injective, by
Definition 1.4.1.
- (c) Fix . For define by In the first case is unique, since is injective, so is a function. If
, then
for every ,
so , since is injective. Hence
(Proposition 1.5.1),
and is an
injection .
A non-example by minimal change.
Drop “” from (c), and take ,
,
.
Then , but has
one element, the empty function (Proposition 1.5.2),
while ; there is no injection from a
one-element set into . The proof used
exactly once,
and here there is no . (If , then
too,
since a function into has empty
domain.)
Quick check. Where does the proof
of (c) use that
is injective? Where does it use that is injective?
Solution. Injectivity of makes a function: the
point with must be
unique. Injectivity of makes injective: must
give .
Encoding:
the diagonals of ℕ × ℕ
Section 3.1 showed countable by an injection. At the
scratch work for Theorem 3.1.6
it set aside the list along the diagonals, because
writing a formula for the position of and checking that
every position is used takes real work. The Quick check
before 3.4’s Looking-ahead remark got from Theorem 3.4.3
without ever seeing a bijection. Here is the work,
done.
For ,
the triangular number (Definition 2.3.1)
has and
. It counts the points on the diagonals , which hold points.
Example
(The diagonal pairing of ℕ × ℕ with ℕ)
Show that is a bijection .
Idea (Scratch work). What must the
code record? Which diagonal the point is on, , and its place
on that diagonal, ; from and we read back . The diagonals
before diagonal
hold points, so the code counts them and adds
the place. Small values: diagonal gives ; diagonal gives ; diagonal gives . The decoder must
find, for each ,
the diagonal it falls on.
|
|
|
exactly one with |
| gap |
every
is with
, , in exactly one
way |
Existence by induction on : stepping from to moves one place
along the diagonal, or, at its end, to the start of the
next one. Uniqueness: diagonal fills the block , just below , so different
diagonals give different numbers.
Solution.
Claim. For every there are with and , and the
pair is
unique.
Proof. Existence, by Theorem 2.2.1
from . First,
.
Suppose with . If , then with . If , then .
Uniqueness. First, for every , so if , then , by Theorem 2.2.1
on from
. Now let
with and , and suppose ; by symmetry
. Then
a contradiction. So , and then
.
The bijection. , since
,
by Theorem 2.2.1
on from and with Lemma 2.1.1
(b). For ,
write by the claim and set , where because (Lemma 2.1.1
(d)); the uniqueness in the claim makes a function. Then
. And , by the uniqueness applied to , where
. By
Theorem 1.6.4,
is a
bijection.
A table of the first values: , , , , , . Decoding
: , so and .
Example
(Method: build a bijection by encoding and
decoding)
Template. (1) Say what an element of
the source must record for nothing to be lost. (2)
Choose a code: a rule sending each element to an element
of the target, and check that it lands there. (3) Write
the decoder: a rule reading an element of the source
back from each element of the target, and check that it
is a function, with exactly one answer for each input.
(4) Check both round trips and cite Theorem 1.6.4.
When to use it. The two sets carry
the same information arranged differently: two numbers
in one, a pair of sequences in one sequence, a function
of two variables as a function with function values.
The usual failure. Checking one
round trip only: alone shows only that is injective (Theorem 1.6.1).
A decoder that is not a function, with two readings of
one code or none (the interleaving of decimals, later in
this section). If the decoder works on part of the
target only, keep the injection and use Example (Method: injections both ways).
Warning. An injective code is not
yet a bijection. The code of Theorem 3.1.6
is injective, but
is not a value, and no decoder is defined at . Step (3) of the
method, a decoder defined on the whole
target, is what makes a bijection.
Quick check. Compute and .
Solution. . For : , so , and . Check: .
The laws of
exponents, for all sets
For numbers, and . Read through the sets these numbers
count, each law says that two sets of functions are the
same size, and for sets we must find the bijection.
Theorem
3.6.3 (Laws of Cardinal Arithmetic)
For all sets :
- (a) , ,
and ;
- (b) ;
- (c) has exactly
one element, and ;
- (d) ;
- (e) ;
- (f) .
Idea (Scratch work). For (d): what
is an element of each side? On the left, a function
defined on the
tagged copies of
and . On the
right, a pair with and . A function on two disjoint pieces is
the same thing as a function on each piece. So cut into its two pieces by
composing with the inclusions, and glue a pair back
together piece by piece.
|
an element of : |
|
one with
and |
| gap |
, is a function: the parts do not
overlap (after Definition 3.6.1) |
Proof.
(d) Let for . For
, let be the function
with This is a function, because every element of
has
exactly one of the two forms. Then : for , , so by Proposition 1.5.1,
and likewise ; the pairs are equal by Definition 1.4.1.
And : the two functions agree at every and every , which are all the
points of , so they are equal by Proposition 1.5.1.
By Theorem 1.6.4,
is a
bijection.
(e) For , each is a function . Let , . For and
, the rule
is an element of ; let
send to it. Then
for all , so . And
is
the function , which is ; so . Here
Proposition 1.5.1
is used twice: first for functions on , then for functions on
. By Theorem 1.6.4,
is a
bijection.
The remaining parts are proved by the same kind of
regrouping; the maps are in the fold below.
↺Second readingThe
other laws
Each map below has the stated inverse, and each round
trip is one line of Proposition 1.5.1
and Definition 1.4.1.
As a sample, the associativity of has three cases,
one for each form of element; on the map gives
, and
the inverse, reading the tag outside and the tag
inside, returns
.
(a) : , ; it is its own inverse, with the
roles of and
exchanged. : , , ; the three forms of the source do
not overlap, and the inverse reads the three forms of
the target back. : . : , with inverse .
(b) : and ; the inverse moves the tag
back inside.
(c) , the empty function, by Proposition 1.5.2
(a). The map is a bijection , with
inverse sending
to the function .
(d) Let and
on . The map from to has the
inverse .
Law (f) is called currying: a
function of two variables becomes a function whose
values are functions. For finite sets with , and elements, the theorem
gives back and with no induction in sight; the
induction has moved into the counting of Section 2.5.
Nothing in the proof used finiteness.
Example
(Method: prove a law of sizes by a bijection of
sets)
Template. (1) Write out what an
element of each side is: a tagged element, a pair, a
function, a function with function values. (2) Find the
map that only regroups: compose with the inclusions,
pair the coordinates, or curry. (3) Write the reverse
regrouping. (4) Check both round trips with Proposition 1.5.1
and Definition 1.4.1,
and cite Theorem 1.6.4.
When to use it. A law familiar from
numbers, such as , is claimed for sets of any size; or a
size is to be computed by rewriting a set step by
step.
The usual failure. Computing with
symbols, as in “”, when
no number
exists and the step is the law itself: (N9) of Logic and Proof, Example (What is not allowed).
Dropping the tags: with in place of the law fails: for
and
,
has
elements and
has
(Exercise B4
(b)).
Quick check. Let , and . How many
elements has each side of (d)? Let , , . What is
?
Solution. has three elements, and a function
from it to
is fixed by three values, each or :
functions. On the right, has elements and has , so the product has
. And
with ,
, .
Subsets are
0–1 functions
Section 1.5 stated, for every set, that subsets and
0–1 functions match, and gave both maps: send to and
to . Here are the two
round trips, which make a base like any
other.
Theorem
3.6.4 (Subsets and 0–1 Functions)
For every set ,
the map is a bijection , with inverse . In particular .
Section 2.5 (the fold after Proposition 2.5.8),
Section 3.3 (after Corollary 3.3.3)
and Section 3.4 (the Quick check after Proposition 3.4.2)
quoted this correspondence; it is now a theorem to
cite.
Corollary
3.6.5 (No Set Is the Size of Its 0–1
Functions)
For every set ,
.
Idea. One injection is easy; for
strictness, move a bijection over to with the
theorem just proved, where Cantor’s theorem forbids
it.
Proof. The map is
injective, since takes the
value at only; so . A bijection ,
followed by the inverse of the bijection of Theorem 3.6.4,
would be a bijection (Theorem 1.5.4
(c)), in particular a surjection, against Theorem 3.3.2.
So , , , … grow strictly at each step, and
there is no largest size.
No set of
all sets, once more
Section 3.3 (consequence (i) after Theorem 3.3.2)
saw that Russell’s argument is Cantor’s, with the rule
and in the role of . What is new here is a
proof by sizes of the last clause of Theorem 1.2.4:
there is no set of which every set is an element.
Suppose were
such a set. Every subset of is a set, hence an
element of , so
. Define by if , and
otherwise. It is onto: each lies
in , and . This
contradicts Theorem 3.3.2.
Cantor’s set for this , , agrees with on , and
contains every , since . The
unrestricted collection is never formed.
The size of
the line
The hook asked about ; first itself. A real number
in is a
digit sequence, a function . So should be a power,
and that power should be a power of .
Theorem
3.6.6 (The Line Is a Power of Two)
.
Idea. Injections both ways (Example (Method: injections both ways)).
Into the 0–1 sequences, the digits are encoded and the
laws do the bookkeeping. Out of them, a 0–1 sequence is
read as decimal digits and , which contain no .
Proof. Let and , the set of digit sequences (Definition 3.3.1).
. This is the step of the proof of
Theorem 3.3.4.
Send to its
expansion not ending in all s: one exists by (D1),
and only one by (D3), so the rule is a function and no
choice is made. It is injective, since a digit sequence
is an expansion of only one number, by (D2).
. The map is a
bijection (inverse , Lemma 2.1.1
(c)), so (Proposition 3.6.1
(c)). The map injects into , so (Proposition 3.6.2
(c), as ), and this is by Theorem 3.6.3
(f). A pair
is recorded by one number, by the method of Example (Method: build a bijection by encoding and decoding):
the code is a bijection ,
whose decoder takes quotient and remainder on division
by (Theorem 2.2.3,
with the quotient in as in the claim in
the proof of Proposition 3.1.5).
So (Proposition 3.6.1
(c)). Composing the maps gives an injection (Theorem 1.5.4
(a)).
. For , let
for : a digit sequence with digits and only. By (D2) it is an
expansion of exactly one , and by Definition 3.3.1
at , so . If , the two
digit sequences differ. If also , they
would be two different expansions of one number, and by
(D3) one of them would end in all s; but neither contains
a . So , and
is
injective.
Conclusion. By Proposition 3.4.1
(b) and Theorem 3.4.3,
. By Example (The real line and its intervals),
, and by Theorem 3.6.4,
. Chaining with Proposition 2.5.1
proves the theorem.
The first step is the one of Exercise C1 of Section
3.4. What is new is the middle step, where the laws
reduce the bookkeeping to the one-line code in
place of the set of that exercise,
and the last, where the digits and suffice because (D3)
needs only that no appears. Neither step
needed binary expansions of real numbers.
Quick check. Which step of the
proof of Theorem 3.6.6
uses the axiom of choice?
Solution. None. The expansion of
is picked by a
rule (“the one not ending in all s”), every other map is
a formula, and Theorem 3.4.3
was proved without choice (Section 3.4).
Back to the
plane
Example
(Interleaving digits)
The natural map interleaves digits. If
and , with the expansions not
ending in all s,
let the inverse splits the digits of into the odd and the
even places. Is a
bijection?
Solution. is a function into
. The
expansions of and
are fixed by the
rule, as in the last proof. Let be the interleaved
sequence: , . It has infinitely many places
that are not
(those of ), so it
does not end in all s, and by (D2) it is an
expansion of exactly one . To see , let be the first place with
(Theorem 2.1.3).
Every earlier digit is , so by Proposition 2.3.6
and .
is
injective. If , both interleaved
sequences are expansions of and neither ends in all
s, so by (D3) they
are equal. Then and , and , by (D2).
is not
onto. Take . The truncations
at even places are (Proposition 2.3.6
with ), and the inequalities of Definition 3.3.1
hold at every place. This expansion has no tail of s and no tail of s, so by (D3) it is the
only expansion of . A preimage
would need
;
but was the
expansion of not
ending in all s.
The splitting “inverse” named “the whose
expansion is ” without
checking that such a exists: that is (N14)
of Logic and Proof, Example (What is not allowed).
So the direct route gives an injection and no bijection.
The injection is enough (Example (Method: injections both ways)),
and the laws give a bijection with no
digit-fiddling.
Theorem
3.6.7 (The Plane Is the Size of the
Line)
.
Read through the maps, the composite on 0–1 sequences
sends to the
sequence with
at place and
at place : the interleaving
of Exercise B3 of Section 3.4. The trouble with decimals
has gone because 0–1 sequences, unlike numbers, have no
double expansions. That price is paid once, in the proof
of Theorem 3.6.6.
Theorem
3.6.8 (Sequences of Natural Numbers)
.
Proof. Send to
the same rule with codomain . This map is
injective: two sequences with the same image have the
same value at every point, so they are equal (Proposition 1.5.1).
In the other direction, is an injection ,
so (Proposition 3.6.2
(c), as ). This is (Theorem 3.6.3
(f)), and that is by Example (The diagonal pairing of ℕ × ℕ with ℕ)
and Proposition 3.6.1
(c). By Proposition 3.4.1
(b) and Theorem 3.4.3,
, which is by Theorem 3.6.6.
Exercise B4 (d) of Section 3.4 reached the equality
through graphs and .
Corollary
3.6.9 (Sequences of Real Numbers)
.
So both guesses of the hook were wrong. The plane is
no bigger than the line, and is no bigger
either. For every infinite set it is in fact true that
and ; in general these cannot be proved
without the axiom of choice (the first is equivalent to
it), and this book does not prove them.
Quick check. Show that .
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) True or false,
for every set :
; ; has exactly
one element; .
- (b) Under the
bijection of Theorem 3.6.3
(f) with and , which element of corresponds to
?
- (c) Give an
injection .
- (d) The proof of Theorem 3.6.6
reads a 0–1 sequence as decimal digits and . Which other pairs of
digits give an injection into in the same way?
Why does the pair
and not follow
from (D3) alone?
Solution.
(a) True: , and is a bijection onto . True: no pair has a
first coordinate in . True, by Proposition 1.5.2
(a). False: for , has
one element, the empty function; the claim holds for
every non-empty ,
by Proposition 1.5.2
(b).
(b) The with ,
since for both .
(c) Send , which lies in (Example (The real line and its intervals)),
and . Each part is injective (the first is a
bijection onto , the second cancels the ), and the values of the
two parts are disjoint, so the map is
injective.
(d) Any pair that
misses works
unchanged: a sequence with no s cannot end in all
s, so (D3) rules
out two different expansions of one number, and the
first digit is at most , so . Any pair that misses gives an injection too,
since a sequence with no s cannot end in all
s; but if the pair
contains , the
sequence of all s
goes to , so the
target must be widened to , which Example (The real line and its intervals)
also covers. (The digits and , used in Exercise C1 of
Section 3.4, miss both.) With the digits and , one sequence could end
in all s and
another in all s,
which is exactly the situation (D3) allows; so (D3)
alone does not decide whether is
injective, and a further computation at the first
differing place would be needed.
B. Practice
Exercise
(B1: Encodings)
Prove each equality by an explicit bijection and its
inverse.
Solution.
(a) Send .
The inverse sends
to , the
quotient and remainder of on division by (Theorem 2.2.3,
with as
in the claim in the proof of Proposition 3.1.5).
Both round trips follow from the uniqueness in the
division algorithm.
(b) For let
. For the
inverse, given , write with
(division by , unique), and set ,
. This defines on all of , since each is or for exactly one
. The round trips
follow from the two uniqueness statements and Proposition 1.5.1.
(c) Let . The decoder sends to , where
and . The round trips follow from
and , each used twice, together with the
characteristic property of triples (the paragraph after
the proof of Corollary 3.1.7).
For example, .
Solution.
(a) Directly:
send ,
with inverse . The round trips hold because every
element of is or , and not both (after Definition 3.6.1).
Or by laws: by Theorem 3.6.4,
which is by Theorem 3.6.3
(d), which is by Theorem 3.6.4
twice with Proposition 3.6.1
(b).
(b) Send ,
with inverse sending to the function , . Or from
(c) and (d) of Theorem 3.6.3,
since is
the same size as , by , .
Exercise
(B3: Sets the size of the line, used later)
Prove:
- (a) ;
- (b) ;
- (c)
for every integer .
Solution.
(a) injects
into . In the
other direction, , so the inclusion
followed by a bijection (Theorem 3.6.7)
is an injection . Apply Theorem 3.4.3.
(b) Unwinding Definition 3.6.1,
, a subset of ; so it
injects into as
in (a). And injects into . Apply Theorem 3.4.3.
(c) By Theorem 2.2.1
with . The
base case is
Theorem 3.6.7.
Step: the map is
a bijection , by the characteristic property
of tuples (the paragraph after the proof of Corollary 3.1.7).
So by the hypothesis with Proposition 3.6.1
(b), then Theorem 3.6.7,
chained by Proposition 2.5.1.
(The book has no -tuples and defines
for only, so the
induction starts at .)
Exercise
(B4: Prove or disprove)
Prove each true statement and refute each false one
with a counterexample. Here
are sets.
- (a) If , then .
- (b) .
- (c) If , then .
- (d) .
- (e) If
and , then .
- (f) There is a set
with .
Solution.
(a) False. Take
, , . The map , is a
bijection , with inverse and
for (Lemma 2.1.1
(c)). And is a bijection . So both sides are the size of
, while .
(b) False. Take
and
. Then
,
and
has elements,
while has . Finite sets with different numbers of
elements are not equinumerous (Corollary 2.5.4).
The statement is true when , by Quick check 1 (c) with
Proposition 3.6.1
(c), and Theorem 3.6.3
(d).
(c) False. Take
,
,
:
this is the non-example after Proposition 3.6.2.
It is true when , by Proposition 3.6.2
(c).
(d) False. The
map is a bijection , with inverse sending to the function
, . Since is
countable (Theorem 3.1.6),
there is an injection (Theorem 3.1.2),
and so an injection
(Theorem 1.5.4
(a)). If were the same size as , composing
would inject into , making it countable
(Theorem 3.1.2),
against Theorem 3.3.1.
Base and exponent do not commute.
(e) False. Take
, , ; then
(Corollary 2.5.4
for “no bijection”). But , by , and : the map is
a bijection , and Example (Two copies of ℕ)
finishes.
(f) False. For
every ,
gives , so would give by Theorem 3.4.3,
against Corollary 3.6.5.
C. Going deeper
Exercise
(C1: Functions from the line to the line)
Prove that . Deduce that there is no
surjection .
Solution (Hint 1). Replace the base
by , then
curry.
Solution (Hint 2). You will need
.
Solution. Let be a bijection (Theorem 3.6.6).
Then by Proposition 3.6.1
(c) with and
; then Theorem 3.6.3
(f) with ,
; then Exercise (B3: Sets the size of the line, used later)
(a) with Proposition 3.6.1
(c), now in the exponent; then Theorem 3.6.4;
chained by Proposition 2.5.1.
For the second part, let be a bijection. If were onto, then would be onto (Theorem 1.5.4
(b)), against Theorem 3.3.2.
Since , where for all , is an injection
(evaluate at ),
and a bijection would be a surjection, (Definition 3.4.1):
there are more functions than real numbers.
Marking scheme. (10 points) - 2:
replaces the base by , citing
the bijection and Proposition 3.6.1
(c). - 3: applies currying in the right direction: with , , to reach . - 2: uses together with respecting size in the
exponent. - 1: passes from to . - 2:
rules out a surjection by composing with the bijection
and citing Theorem 3.3.2.
Any other complete route (for example graphs into , an injection and Theorem 3.4.3)
earns the 8 points of the first part, split between the
two injections. Fatal errors (0 for the step): computing
with symbols as if sizes were numbers (“”) with no bijection
behind each step.
Exercise
(C2: Find the error)
Claim: is countable.
Proof. Send to the natural number
. Different sequences have different binary
digits, so is
injective, and an injection into makes a set countable
(Theorem 3.1.2).
Is the conclusion true? Where does the argument fail?
What does it prove?
Solution. The conclusion is
false: is uncountable (Theorem 3.3.1).
The error is in the first line. is named before it
is shown to exist: (N14) of Logic and Proof, Example (What is not allowed).
The sum is infinite whenever has infinitely many
s, and Section 2.3
defines only finite sums (Definition 2.3.1);
no natural number is “”. The all- sequence is a witness:
it has no value under .
What survives. On the sequences that are
eventually , the
sum is finite ( for any past the last ), and is defined there. It is
injective once the uniqueness of binary digits is
proved, which Exercise R1 below does not do (R1 gives
existence only). The countability of that set follows
anyway, with no binary digits: changing the codomain
from to
injects it into
the set of eventually zero functions of Exercise (R4),
at the end of this section, which is countable; compose
with an injection of that set into (Theorem 3.1.2,
Theorem 1.5.4
(a)).
Marking scheme. (10 points) - 2:
says the conclusion is false, citing Theorem 3.3.1.
- 3: names the failing step, an infinite sum named as a
natural number, with (N14). - 2: gives a witness, such
as the all-
sequence. - 2: says what the argument does prove: the
eventually zero sequences form a countable set. - 1:
flags that the injectivity of on them needs the
uniqueness of binary digits, which is not proved. Fatal
errors (0 for the step): calling the conclusion true;
locating the error in “an injection into makes a set
countable”, which is correct.
Exercise
(C3: Rearrangements of ℕ)
Let be the set
of bijections . Exercise C2 of Section 3.3 showed that
is uncountable.
Prove that it has exactly the size of : .
Solution. Up. Every
bijection is a function , so ,
and the inclusion followed by a bijection (Theorem 3.6.8)
is an injection .
Down. For , let swap and when , and fix them
when ; this
is a function, since each is or for exactly one
. It is its own
inverse, so (Theorem 1.6.4).
The map is injective, since exactly when
. This is the construction of Exercise (C2: Permutations of the naturals).
Composing the Up injection with a bijection
(Theorem 3.6.6)
gives (Proposition 3.4.1
(b)); by Theorem 3.4.3,
, and this is by Theorem 3.6.6.
Marking scheme. (10 points) - 3:
shows , through and
Theorem 3.6.8.
- 3: defines and shows that
it is a bijection of . - 2: shows that
is injective, by reading off . - 2:
concludes by Theorem 3.4.3
and Theorem 3.6.6.
Fatal errors (0 for the step): concluding
from “ is
uncountable and ” alone, with no injection from a set
the size of
into .
R. Review
Exercise
(R1)
Prove that every integer is a sum of
distinct powers of : there are an integer
and natural
numbers with .
Solution. We use Theorem 2.2.2
with . Let
, and
suppose every integer with is such a
sum.
The largest power of not above . The set is non-empty, since by
Theorem 2.3.7
with . By Theorem 2.1.3
it has a least element (the method of Example (Method: the least element)).
Since , , so , and (Lemma 2.1.1
(c)). As ,
; so
The step. Let , so
. If , then , a sum with . If , then , because . By the hypothesis, with . Each ,
so (if
, then
by
Proposition 2.3.4
(e)). Hence a sum of distinct powers of . By Theorem 2.2.2,
every is
such a sum. For example .
The base is
the right one: is
not a sum of one or more powers of , since each power is
positive.
Exercise
(R2)
Show that by a counter-model whose domain is . Say in words what
the two sentences say when is read as “”.
Solution. Let have domain and . Both formulas are
sentences, so no assignment matters.
The premise is true. says “every natural number has a larger
one”. For each , has .
The conclusion is false. says “some natural number is larger than
every natural number”. For any , the choice
gives
false, so
no works.
So is a
counter-model, and . By the soundness statement of
Logic and Proof, Section 7.2 (the subsection
“From counter-models to non-derivability”), a
counter-model shows non-derivability: .
This is the converse of Logic and Proof, Proposition 5.6.2
with the variables renamed and the two places of exchanged (read as ), and the
counter-model is the one of Logic and Proof, Example (The swap of and ): there the
domain was and
was read as ; with the roles of
the variables exchanged, read as and the domain cut
down to , the
same witnesses work, as checked above. In the premise
the larger number
is chosen after
and depends on it; the conclusion asks for one in advance.
Exercise
(R3)
For an integer , how many truth functions with inputs are there? Prove
your answer.
Solution. There are . A truth function
with inputs (Logic and Proof, Definition 4.4.4)
assigns a truth value to each row ; read a
row as the function on , and let be the set of rows.
There are rows. The map
sending a row to is a
bijection (injective and
surjective by Example (Method: proving injectivity)
and Example (Method: proving surjectivity)):
a row is determined by the places where it is , and every set
of places arises: given , the row with for
and
otherwise maps to , and two rows with the
same -places agree
at every , since
each is or . Since has elements, Proposition 2.5.8
gives subsets,
so has elements (compose the
bijections).
There are truth
functions. In the same way, a truth function is determined by the
set , and every subset
of arises (the
same two checks, with in
place of the row map); so the truth functions are in
bijection with , which has
elements by
Proposition 2.5.8
again. For this gives .
Exercise
(R4)
A function is eventually zero if
there is
with for
every . Is
the set of eventually zero functions countable?
Solution. Yes. The tool is
a countable union of countable sets.
For let
be the set of
with for every ; the set of eventually zero functions is
. Each is countable:
- has one
element, the zero function, so it is countable.
- For ,
is a
bijection : a function in is determined by its
value at , and
every value occurs.
- For ,
is a bijection (
factors), by the same reasoning and the characteristic
property of tuples; the product is countable by Corollary 3.1.7,
and so is
(compose a surjection with the
inverse bijection, Proposition 3.1.4).
By Theorem 3.2.3,
is countable.
(That theorem uses Axiom 3.2.1;
here it could be avoided, since each comes with an
explicit listing, but the question did not ask for
that.)
Why the look-alike fails. A diagonal
argument, as in Theorem 3.3.1,
builds from a list of eventually zero functions the function
. It differs from every , but for every
, so is not
eventually zero: it is not in , and nothing is
contradicted. A diagonal argument proves uncountability
only when the diagonal object stays inside the set; this
is the usual failure named in Example (Method: the diagonal).