Cantor Set 2018
Cantor Set 2018
David Pierce
Matematik Bölümü
Mimar Sinan Güzel Sanatlar Üniversitesi
İstanbul
mat.msgsu.edu.tr/~dpierce/
dpierce@msgsu.edu.tr
Abstract
We show how the Cantor set, with the order topology induced
from R, is homeomorphic to the power set of the natural num-
bers, as equipped with the Tychonoff topology. We obtain an
analogy between the Heine–Borel Theorem and the Tychonoff
Theorem—and with the Compactness Theorem of model the-
ory.
Preface
These notes are based on a course of seven lectures, 2 × 50
minutes each. I have thoroughly revised the notes from a sim-
ilar course in January . Those notes were divided by day;
the present notes are divided by topic and may differ more
from what actually happened in class. The Summary on page
lists the numbered theorems of these notes (other results are
called lemmas and have their own numbering); what I did day
by day is roughly as follows.
Monday Theorem .
Tuesday Theorem , Cantor’s Theorem, Russell Paradox.
Wednesday Schröder–Bernstein, Cantor Intersection.
Thursday Theorems , , and .
Friday Theorem , Heine–Borel.
Saturday König’s Lemma, Tychonoff Theorem.
Sunday Compactness Theorem, Stone Representation.
The section on topological rings is an afterthought that con-
nects the course to the following week’s course, on finite fields.
Two students attended at least parts of both courses. For the
Cantor set course, I had thirty or forty students the first day;
down to about fifteen on Thursday, six on Friday, and four on
Sunday.
Summary
The Cantor Set is the intersection C of an infinite family of
sets, as in (.). The family forms a decreasing chain, as in
(.). Each set in the family is a union, as in (.), of finitely
many sets, which closed intervals of R, as in (.).
. C is the set of points in [0, 1] that can be written in base
3 without the digit 1 (page ).
. C is equipollent with the set P(ω) of subsets of the set
ω of natural numbers (page ).
. P(ω) is uncountable, By Cantor’s Theorem (page ).
. The proof is as for the Russell Paradox (page ).
. P(ω) and R are equipollent, by the Cantor–Schröder–
Bernstein Theorem (page ).
. As the intersection of a decreasing chain of nonempty
bounded closed sets, C is nonempty, by the Cantor In-
tersection Theorem (page ).
. R is a topological space with open intervals as a basis
(page ).
. C is closed in this topology (page ).
. R has only itself and the empty set as clopen subsets
(page ).
. C has many clopen subsets, namely its intersection with
the intervals mentioned above (page ).
. C is compact by the Heine–Borel Theorem (page ), so
every clopen subset is a finite union of the clopen subsets
just mentioned.
. Our proof of the Heine–Borel Theorem is analous to that
of König’s Lemma (page ).
. —Also to that of the Tychonoff Theorem (page ).
. —And of the Compactness Theorem for propositional
logic (page ).
. This Compactness Theorem is a special case of the Stone
Representation Theorem (page ), though the Com-
pactness Theorem of first-order logic is not.
With the topology induced from R, the Cantor set is a topolog-
ical ring in two different ways, as (isomorphic to) the Boolean
ring P(ω) and the ring Z(2) of dyadic integers.
Contents
Cardinality
. The Cantor Set . . . . . . . . . . . . . . . . . .
. Natural numbers . . . . . . . . . . . . . . . . .
. Comparison of sets . . . . . . . . . . . . . . . .
Topology
. Open and closed sets . . . . . . . . . . . . . . .
. Clopen sets . . . . . . . . . . . . . . . . . . . .
. Compactness . . . . . . . . . . . . . . . . . . .
. Continuity . . . . . . . . . . . . . . . . . . . . .
. König’s Lemma . . . . . . . . . . . . . . . . . .
. Tychonoff topology . . . . . . . . . . . . . . . .
Algebra
. Logic . . . . . . . . . . . . . . . . . . . . . . . .
. Boolean algebras . . . . . . . . . . . . . . . . .
. Stone spaces . . . . . . . . . . . . . . . . . . . .
. Topological rings . . . . . . . . . . . . . . . . .
List of Figures
. Some sets Cn . . . . . . . . . . . . . . . . . . .
. The Cantor set . . . . . . . . . . . . . . . . . .
x − 1/2
. Graph of y = . . . . . . . . . . . . .
x · (1 − x)
. Cantor–Schröder–Bernstein Theorem . . . . . .
Cardinality
. The Cantor Set
The Cantor set is a certain subset of R. For the sake of defining
it, we let
C0 = [0, 1],
C1 = [0, 1/3] ∪ [2/3, 1],
C2 = [0, 1/9] ∪ [2/9, 1/3] ∪ [2/3, 7/9] ∪ [8/9, 1],
C1
C2
C3
. The sets Cn compose a decreasing chain:
C0 ⊇ C1 ⊇ C2 ⊇ · · · (.)
C = C0 ∩ C1 ∩ C2 ∩ · · ·
Cardinality
and
1 2 2 1
C2 = 0, 2 ∪ 2 , 2 + 2
3 3 3 3
2 2 1 2 2 2 2 1
∪ 1 , 1 + 2 ∪ 1 + 2 , 1 + 2 + 2 . (.)
3 3 3 3 3 3 3 3
Here the ordering < of ω is ⊂, and one can show that this
is also ∈. Easily ω is well-ordered, that is, each nonempty
subset has a least element; for the T
least element of a nonempty
subset A of ω is the intersection A.
We shall denote the set of functions from a set B to a set A
by
B
A.
Putting everything together, we have
n
2 = functions from {0, . . . , n − 1} to {0, 1} .
(e0 , . . . , en−1 ), e
∗
Each element of ω includes, as a subset, each of its elements; it
is also well-ordered, in the sense to be defined presently; therefore, by
definition, each element of ω is an ordinal. There may be other ordinals,
such as ω itself. Still, ω would be a limit ordinal, in the sense of being
neither 0 nor a successor. By definition, ω is the class, in the sense of
page , of ordinals that neither are limits nor contain limits. Though
it is not usually expressed this way, the Axiom of Infinity is that the
class ω is a set. In this way, the Axiom is parallel to most of the other
Zermelo–Fraenkel Axioms, namely those whereby certain classes are sets.
Cardinality
—in handwriting, ~e —, where each ek is in 2. We can now
say precisely \
C= Cn , (.)
n∈ω
where " #
[ X 2ek X 2ek 1
Cn = k+1
, k+1
+ n . (.)
e∈n 2 k∈n
3 k∈n
3 3
In ternary (base-3) notation,
X 2ek
k+1
= 0.d1 · · · dn ,
k∈n
3
where dk+1 = 2ek . In this notation then, from (.) and (.)
we have
C0 = [0, 1],
C1 = [0, 0.1] ∪ [0.2, 1],
C2 = [0, 0.01] ∪ [0.02, 0.1] ∪ [0.2, 0.21] ∪ [0.22, 1],
and likewise
{0, 1, 2} b
0.222
ω r {2} b
b 0.221
b
{0, 1} b
0.22
ω r {1} b
b 0.21
b
{0, 2} b
0.202
ω r {1, 2} b
b 0.201
b
{0} b
0.2
X 2
X 3k+1
k∈X
ω r {0} b
b 0.1
b
{1, 2} b
0.022
ω r {0, 2} b
b 0.021
b
{1} b
0.02
ω r {0, 1} b
b 0.01
b
{2} b
0.002
ω r {0, 1, 2} b
b 0.001
b
∅ b
0
Figure .: The Cantor set
Cardinality
Thus each of the endpoints of a component interval of Cn is a
series
∞
X 2ek
,
k=0
3k+1
where each ek is in the set 2. Then the series is just
X 2
k+1
,
k∈A
3
P(A) = {X : X ⊆ A} = {X : ∀y (y ∈ X =⇒ y ∈ A)}.
(.)
C0 r C1 = (0.1, 0.2),
which is just the set of numbers in [0, 1] that need the digit 1
in the first place after the point. Likewise,
Then
C = g[P(ω)] = {g(X) : X ∈ P(ω)},
which is the range of g or the image of P(ω) under g. Note
that g is increasing, in the sense that
Cardinality
Here we use the result from analysis that the sum of an ab-
solutely convergent series is independent of the order of the
terms.
The symbol △ denotes the operation of taking the sym-
metric difference of two sets, so that
A △ B = (A r B) ∪ (B r A).
Then
A = B ⇐⇒ A △ B = ∅. (.)
m = min(A △ B).
Then
A ∩ m = {x ∈ A : x < m} = {x ∈ B : x < m} = B ∩ m.
A ⊆ (A ∩ m) ∪ {x ∈ ω : x > m},
(A ∩ m) ∪ {m} ⊆ B,
1 2
g(A) 6 g(A ∩ m) + < g(A ∩ m) + 6 g(B).
3m+1 3m+1
In short, if A 6= B, then g(A) 6= g(B). Thus g is injective.
Cardinality
By (.) now,
ω ≺ C,
and so C is uncountable. Note also that, for any set A,
P(A) ≈ A 2, (.)
By Cantor’s Theorem,
A ≺ A 2.
A = {x : x ∈ A},
P(D) = {x : x ⊆ D},
Cardinality
The Separation Axiom is that every sub-class of a set is a
set. Since every class is a sub-class of the universal class V, it
follows that this too is a proper class. But we already knew
this from (.) and Cantor’s Theorem.
We now define a function f , like g in (.), from P(ω) to
R. We let X 1
f (A) = k+1
.
k∈A
2
Then f (∅) = 0 and f (ω) = 1, and in general
f (A) ∈ [0, 1].
Indeed,
f [P(ω)] = [0, 1],
since every number in the interval has a binary expansion.
However, some of these numbers have more than one binary
expansion. For example, the equation f (X) = 1/2 has two
solutions, {0} and ω r {0}; so f is not injective. By the
Axiom of Choice, f has a right inverse h, which means
f h(a) = a (.)
for all y in [0, 1]. Then h is injective, so
[0, 1] 4 P(ω). (.)
In fact we can make an explicit definition of h once for all,
without needing the Axiom of Choice. If a ∈ [0, 1], we define
h(a) = {k ∈ ω : ak = 1},
where the ak are defined recursively by
X ai 1
0, if a < i+1
+ k+1
,
2 2
i∈k
ak = X ai 1
1, if a > i+1
+ k+1
.
2 2
i∈k
R ≈ P(ω). (.)
Cardinality
3
−2 −1 1 2 3
−1
−2
−3
x − 1/2
Figure .: Graph of y =
x · (1 − x)
A0 B0
g[B] f [A]
A0 B0
A B
1 1
g f [A] f g[B]
A0 B0
A1 B1
A B
h 2 i h 2 i
g f g[B] f g f [A]
Cardinality
This is clear when n = 0, and if true when n = m, then for
example [
Bm+1 ⊆ f [A] r Bk+1 ,
k<m
S
but the latter is B r k<m+1 Bk , since
f [A] = B r B0 . (.)
and therefore [ [
An ≈ Bn .
n∈ω n∈ω
Finally, [ [
Ar An ≈ B r Bn ,
n∈ω n∈ω
since
" # " #
[ [ [
f Ar An = f A r An
n∈ω n∈ω k<n
" !# " #
\ [ \ [
=f Ar An = f Ar Ak
n∈ω k<n n∈ω k<n
!
\ [ [
= Br Bk =Br Bn ,
n∈ω k6n n∈ω
lim an = c. (.)
n→∞
Since
a0 6 a1 6 a2 6 · · · 6 c 6 · · · 6 b2 6 b1 6 b0 , (.)
c belongs to each Fn .
In the proof, we still get (.), provided each Fn is bounded,
so that we can define
an = inf Fn , bn = sup Fn .
If we also have an ∈ Fn , then because the Fn compose a de-
creasing chain, we can conclude
{an : n > k} ⊆ Fk .
Ac .
(b − ε, b + ε) ⊆ A,
(b − ε, b + ε) ∩ Ac 6= ∅,
we have
[
A= (b − ε, b + ε) : b ∈ A & ε ∈ EA,b , (.)
Topology
Theorem. In R,
() if A and B are closed, so is A ∪ B; T
() if F is a family of closed sets, then F is closed;
() every closed set is the intersection of a family, each of
whose elements is the union of finitely many closed in-
tervals.
where
1
Ie = ae , ae + n , (.)
3
where we have X 2ek
ae = . (.)
k∈n
3k+1
Let us write [
n
ω>
2= 2. (.)
n∈ω
Topology
If e ∈ ω> 2, let us define
De = Ie ∩ C. (.)
Since n 2 is finite, and the sets De are disjoint from one another,
the complement of each of these is closed, so each is open as
well as closed.
Now let U be an open subset of R. For every a in C ∩ U,
for some positive ε,
(a − ε, a + ε) ⊆ U.
g(A ∩ n) = ae
Ie ⊆ (a − ε, a + ε),
and so
De ⊆ U ∩ C.
Since also a ∈ De , and a was an arbitrary element of U ∩ C,
this is a union of various sets De .
We now know that unions of finite subsets of
{De : e ∈ ω> 2}
. Compactness
If a topological space is the union of a certain family of open
subsets, this family is called an open cover of the space. If
some finite subset of the family also covers the space, that
subset is called a finite sub-cover. If every open cover of
a space has a finite sub-cover, then the space itself is called
compact.
Easily, every closed subset of a compact space is compact
in the subspace topology, since an open cover of the subset,
Topology
together with the complement of the subset, yields an open
cover of the whole space.
There is an equivalent definition of compactness in terms of
closed sets. A family of subsets of a topological space whose
every finite subset has nonempty intersection is said to have
the Finite Intersection Property or FIP. Then the space
is compact if and only if every family of subsets with FIP has
nonempty intersection.
Heine–Borel Theorem. Every closed bounded subset of
R is compact in the subspace topology.
Proof. For reasons discussed, it is enough to show that an
interval [a, b] is compact. Writing this interval as I0 , we let
F be a collection of closed subsets of I0 that has FIP. Let
c = 12 (a + b), so that
a < c < b.
One of the intervals [a, c] and [c, b] is an interval I1 such that
the family F ∪ {I1 } has FIP. For, suppose I1 cannot be [a, c].
Then for some finite subset F0 of F ,
\
F0 ∩ [a, c] = ∅.
(note that the signs are correct, and we are not applying a De
Morgan law), we must have
\ \
F0 ∩ F1 ∩ [c, b] 6= ∅.
. Continuity
One way that notion of compactness arises in mathematics is
as follows. On a subset A of R, a function f is continuous if
∀ε ε > 0 =⇒ ∀x x ∈ A =⇒ ∃δ δ > 0 & ∀y
(y ∈ A & |x − y| < δ =⇒ |f (x) − f (y)| < ε) ,
Topology
while f is absolutely continuous if
∀ε ε > 0 =⇒ ∃δ δ > 0 & ∀x x ∈ A =⇒ ∀y
(y ∈ A & |x − y| < δ =⇒ |f (x) − f (y)| < ε) .
dom(e) = n.
If m 6 n, then
e ↾ m = (e0 , . . . , em−1 ), (.)
and we may write
e ↾ m ⊆ e.
When understood to be ordered by inclusion in this way, the
set ω> 2 defined by (.) is a binary tree of height ω. Note
Topology
König’s Lemma. If T is an infinite subset of ω
2, then
for some σ in ω 2, the set
{n ∈ ω : σ ↾ n ∈ T }
{x ∈ T : e ⊆ x}
{x ∈ T : (e, i) ⊆ x}
C = D∅ ,
De = D(e,0) ∪ D(e,1) .
En i = {σ ∈ ω 2 : σ(n) = i},
so that [
G[En i ] = D(e,i) ,
e∈n 2
Topology
Therefore the sets En i compose a sub-basis of closed sets for
a topology on ω 2 in which G is a homeomorphism onto
C. This means G is a bijection, and both G and G−1 are
continuous. Generalizing from the description of continuity
on page , we define a function f from one topological space
to another to be continuous if f −1 (F ) is closed for every
closed set F .
We give the set 2 the topology in which every subset is
closed. Then the topology on ω 2 is the product topology or
Tychonoff topology for the following reason.
If (Ωi : i ∈ I) is an indexed family of topological spaces, we
define the product Y
Ωi
i∈I
S
as the set of functions f from I to i∈I Ωi such that, for each
i in I,
f (i) ∈ Ωi .
If we denote the product by Ω, we can define, for each i in I,
the function πi from Ω to Ωi given by
πi (f ) = f (i).
Topology
Algebra
. Logic
The Tychonoff topology on ω 2 arises independently in propo-
sitional logic as follows.
Starting with a collection {Pk : k ∈ ω} of (propositional)
variables, we define (propositional) formulas recursively:
. Each variable is a formula, namely an atomic formula.
. If F is a formula, then so is ¬G, the negation of F .
. If F and G are formulas, then so is (F ∧ G), the con-
junction of F and G.
Let us denote by
L
the set of propositional formulas so defined. Then for example,
if L contains F and G, then it contains
¬(¬F ∧ ¬G),
(¬F ∨ G)
Lemma. Every formula in L is uniquely readable:
) no atomic formula is also a negation or a conjunction;
) no negation is also a conjunction;
) every conjunction is uniquely so.
A F.
Algebra
Then by definition
A Pk ⇐⇒ k ∈ A, (.a)
A ¬F ⇐⇒ A 2 F, (.b)
A (F ∧ G) ⇐⇒ A F & A G. (.c)
If Γ ⊆ L, we define
\
Mod(Γ) = {Mod(F ) : F ∈ Γ}; (.)
{Mod(Γ) : Γ ⊆ L}
{Mod(F ) : Γ ∈ L}.
Mod(F ∧ ¬F ),
Moreover,
{X ∈ P(ω) : χX ∈ Ek 1 }
= {X ∈ P(ω) : k ∈ X} = Mod(Pk ),
and likewise
{X ∈ P(ω) : χX ∈ Ek 0 } = Mod(¬Pk ),
Algebra
To do so, we make one more recursive definition, parallel to
(.).
V (F ) = {k ∈ ω : Pk occurs in F }.
A F ⇐⇒ V (F ) ∩ A F
as follows.
Algebra
This gives us
A (G ∧ H) ⇐⇒ A G & A H [(.c)]
⇐⇒ V (G ∧ H) ∩ A G
& V (G ∧ H) ∩ A H [(.)]
⇐⇒ V (G ∧ H) ∩ A (G ∧ H). [(.c)]
A = {k ∈ ω : Gk is Pk }.
{F } ∪ {Gk : k ∈ V (F )},
Algebra
In general, an abstract Boolean algebra (like L/∼) is a set
B with operations ∧, ∨, ¬, ⊥, and ⊤ with the following prop-
erties.
. The binary operations ∨ and ∧ are commutative:
x ∨ y = y ∨ x, x ∧ y = y ∧ x.
x ∨ ⊥ = x, x ∧ ⊤ = x.
x ∨ (y ∧ z) = (x ∨ y) ∧ (x ∨ z),
x ∧ (y ∨ z) = (x ∧ y) ∨ (x ∧ z).
x ∨ ¬x = ⊤, x ∧ ¬x = ⊥.
x ∨ x = x, x ∧ x = x,
x ∨ ⊤ = ⊤, x ∧ ⊥ = ⊥,
x ∨ (x ∧ y) = x, x ∧ (x ∨ y) = x, (.)
¬¬x = x,
¬(x ∨ y) = ¬x ∧ ¬y, ¬(x ∧ y) = ¬x ∨ ¬y,
(x ∨ y) ∨ z = x ∨ (y ∨ z), (x ∧ y) ∧ z = x ∧ (y ∧ z).
x ∨ (x ∧ y) = (x ∧ ⊤) ∨ (x ∧ y)
= x ∧ (⊤ ∨ y) = x ∧ ⊤ = x.
x ⊢ y ⇐⇒ x ∧ y = x.
x ∧ y = x ⇐⇒ x ∨ y = y.
If A ⊆ ω, we define
Algebra
• by these and (.), is an ultrafilter.
Note that we can replace (.) and (.) with the single
equivalence
A = {k ∈ ω : Pk ∈ Φ}.
F ∈ Φ ⇐⇒ A F. (.)
In detail:
. (.) holds by (.a) when F is atomic.
. If (.) holds when F is G, then
¬G ∈ Φ ⇐⇒ G ∈
/Φ [by (.)]
⇐⇒ A 2 G [by hypothesis]
⇐⇒ A ¬G. [by (.b)]
Algebra
when A ⊆ P(ω). Then
Γ ⊆ ∆ =⇒ Mod(Γ) ⊇ Mod(∆),
A ⊆ B =⇒ Th(A ) ⊇ Th(B).
Algebra
+ 0 1 × 0 1
0 0 1 0 0 0
1 1 0 1 0 1
Algebra
Now ω 2 is a Boolean ring with respect to the pointwise oper-
ations given by
(xk : k ∈ ω) ∗ (yk : k ∈ ω) = (xk ∗ yk : k ∈ ω),
where ∗ is + or ×. By the Stone Representation Theorem, ω 2
is isomorphic to the Boolean algebra of clopen subsets in the
Stone topology on S(ω 2). This space consists of the principal
ultrafilters
{χX : a ∈ X},
where a ∈ ω, along with the nonprincipal ultrafilters,
which include the filter
{χX : X c ∈ Pω (ω)},
where Pω (A) consists of the finite subsets of A; but the
existence of the nonprincipal ultrafilters depends on the Prime
Ideal Theorem mentioned above.
The elements χ{n} (where n ∈ ω) are the atoms of the
Boolean algebra ω 2; but when this is given the Tychonoff
topology, the Boolean algebra of clopen subsets is atomless.
The Boolean ring ω 2 is a topological ring with respect to
the Tychonoff topology, because addition and multiplication
are continuous in each factor. Indeed, if A ∈ P(ω), and
• if f is x 7→ x + χA , then
(
En i+1 , if n ∈ A,
f −1 (En i ) =
En i , if n ∈ Ac ;
• if g is x 7→ x · χA , then
En i ,
if n ∈ A,
−1
f (En i ) = ∅, if n ∈ Ac & i = 1;
2, if n ∈ Ac & i = 0.
ω
and the new ring itself by Z(2) . This is the ring of dyadic
integers (or 2-adic integers). Since
X
1+ 2k = 0
k∈ω
1
|a| = ,
2m
where
m = min{n ∈ ω : an 6= 0}.
Also |0| = 0. Then the triangle inequality holds in the
strong form
|x + y| 6 max{|x| , |y|},
Algebra
so the function (x, y) 7→ |x − y| is a metric on Z(2) (called
an ultrametric). The induced topology is just the Tychonoff
topology, since, if we define