Cantor set

Also: Cantor space; middle-thirds Cantor set; \(\{0, 1\}^{\mathbb{N}}\); \(2^\omega\)

Construction
The countable power of the two-point discrete space

See it in Lean

Definition

The Cantor set \(C = \{0, 1\}^{\mathbb{N}}\) is the countable power of the two-point discrete space \(\{0, 1\}\): the set of all sequences of zeros and ones, with the product topology.

For a finite sequence \(s = (s_0, \dots, s_{n-1})\) of zeros and ones, let \(N_s = \{x \in C : x_k = s_k \text{ for } k < n\}\). These sets form a base. Each \(N_s\) is open, since it restricts only finitely many coordinates; and a basic open set \(\prod_k U_k\) of the product, with \(U_k = \{0, 1\}\) for \(k \ge n\), contains with each of its points \(x\) the set \(N_s\) for \(s = (x_0, \dots, x_{n-1})\). Each \(N_s\) is also closed, since its complement is the union of the sets \(N_t\) for the other sequences \(t\) of the same length.

Description

The space is compact and metrizable, because the two-point discrete space is, and it is zero-dimensional: the sets \(N_s\) are open and closed. Unlike its factor it is not scattered; indeed it has no isolated point, since every \(N_s\) is infinite. So it is totally disconnected but not discrete, as no infinite compact space can be, since compact discrete spaces are finite.

Among compact metrizable spaces the Cantor set comes first: every nonempty compact metrizable space is a continuous image of it. The proof uses two more of its features: every nonempty closed subset of \(C\) is a retract of \(C\), and \(C\) is homeomorphic to its own countable power.

The name comes from Cantor's middle-thirds set: remove the open middle third from \([0, 1]\), then the open middle thirds of the two intervals that remain, and so on. What is left is a closed subset of the line that is homeomorphic to \(C\), the sequence \(x\) corresponding to the real number \(\sum_n 2 x_n / 3^{n+1}\).

Facts

Results

Homeomorphic to the middle-thirds set

See it in Lean

Statement

Let \(K = \bigcap_n K_n \subseteq \mathbb{R}\), where \(K_0 = [0, 1]\) and \(K_{n+1}\) is obtained from \(K_n\), a union of \(2^n\) disjoint closed intervals of length \(3^{-n}\), by removing the open middle third of each. Then \(C\) is homeomorphic to \(K\) (with the subspace topology of \(\mathbb{R}\)).

Proof

Define \(\varphi : C \to \mathbb{R}\) by \(\varphi(x) = \sum_{n \ge 0} 2 x_n / 3^{n+1}\).

\(\varphi\) is continuous. If \(x\) and \(y\) agree in their first \(m\) coordinates, then \(|\varphi(x) - \varphi(y)| \le \sum_{n \ge m} 2/3^{n+1} = 3^{-m}\). Every neighbourhood of \(x\) contains the basic set \(N_{(x_0, \dots, x_{m-1})}\) for a suitable \(m\), so \(\varphi\) is continuous.

\(\varphi\) maps \(C\) into \(K\). By induction on \(n\), the intervals of \(K_n\) are the intervals \([a, a + 3^{-n}]\) with \(a = \sum_{k < n} 2 s_k / 3^{k+1}\) for a sequence \(s = (s_0, \dots, s_{n-1})\) of zeros and ones: removing the middle third of \([a, a + 3^{-n}]\) leaves \([a, a + 3^{-n-1}]\) and \([a + 2 \cdot 3^{-n-1}, a + 3^{-n}]\), which correspond to \(s_n = 0\) and \(s_n = 1\). For \(x \in C\) and each \(n\), the number \(\varphi(x)\) lies in the interval of \(K_n\) given by \((x_0, \dots, x_{n-1})\), since the remaining terms of the sum lie between \(0\) and \(3^{-n}\). So \(\varphi(x) \in K\).

\(\varphi\) is a bijection onto \(K\). If \(x \ne y\), let \(m\) be the first index with \(x_m \ne y_m\). Then \(\varphi(x)\) and \(\varphi(y)\) lie in the two distinct intervals of \(K_{m+1}\) inside the interval of \(K_m\) given by \((x_0, \dots, x_{m-1})\), which are disjoint; so \(\varphi(x) \ne \varphi(y)\). Conversely, let \(t \in K\). For each \(n\) the point \(t\) lies in exactly one interval of \(K_n\), given by a sequence \(s^{(n)}\) of length \(n\), and since these intervals are nested, each \(s^{(n+1)}\) extends \(s^{(n)}\). Let \(x\) be the infinite sequence they define. Then \(\varphi(x)\) and \(t\) lie in the same interval of \(K_n\) for every \(n\), so \(|\varphi(x) - t| \le 3^{-n}\) for all \(n\), and \(\varphi(x) = t\).

Conclusion. So \(\varphi\) is a continuous bijection from \(C\) onto \(K\). The space \(C\) is compact and \(K\) is Hausdorff, so \(\varphi\) is a closed map onto \(K\), and hence a homeomorphism. \(\blacksquare\)

Used in: the description of the space.

Homeomorphic to its own countable power

See it in Lean

Statement

The Cantor set \(C\) is homeomorphic to its countable power \(C^{\mathbb{N}}\).

Proof

This is the case \(X = \{0, 1\}\) of the theorem that a countable power is homeomorphic to its square and to its own countable power. Explicitly, fix a bijection \(\pi : \mathbb{N} \times \mathbb{N} \to \mathbb{N}\); then \(x \mapsto ((x_{\pi(m, n)})_n)_m\) is a homeomorphism of \(C\) onto \(C^{\mathbb{N}}\). \(\blacksquare\)

Used in: the description of the space; Hilbert cube — A continuous image of the Cantor set.

Every nonempty closed subset is a retract

See it in Lean

Statement

Let \(F \subseteq C\) be closed and nonempty. Then there is a continuous map \(r : C \to C\) with image \(F\) such that \(r(x) = x\) for every \(x \in F\).

Proof

For a finite sequence \(s\) of zeros and ones, say that \(s\) meets \(F\) if \(N_s\) meets \(F\). Every initial segment of a sequence that meets \(F\) meets \(F\), and the empty sequence meets \(F\) because \(F\) is nonempty. For each finite sequence \(s\) that meets \(F\), choose a point \(z_s \in F \cap N_s\).

Let \(x \in C\). If \(x \in F\), put \(r(x) = x\). Otherwise, since \(F\) is closed, some basic neighbourhood \(N_{(x_0, \dots, x_{m-1})}\) of \(x\) misses \(F\); so there is a largest \(n\) such that \(p(x) = (x_0, \dots, x_{n-1})\) meets \(F\), and we put \(r(x) = z_{p(x)}\). In both cases \(r(x) \in F\), and \(r\) fixes \(F\), so its image is \(F\).

\(r\) is continuous. Let \(x \in C\) and \(m \in \mathbb{N}\); we find a neighbourhood \(V\) of \(x\) such that every \(y \in V\) has \(r(y)\) agreeing with \(r(x)\) in the first \(m\) coordinates, which proves continuity at \(x\).

Case \(x \notin F\). Let \(n\) be the length of \(p(x)\) and \(V = N_{(x_0, \dots, x_n)}\). Every \(y \in V\) agrees with \(x\) in its first \(n + 1\) coordinates; \((x_0, \dots, x_n)\) does not meet \(F\), so \(y \notin F\) and \(p(y) = p(x)\). Hence \(r(y) = r(x)\) on \(V\).

Case \(x \in F\). Let \(V = N_{(x_0, \dots, x_{m-1})}\) and \(y \in V\). If \(y \in F\), then \(r(y) = y\) agrees with \(x = r(x)\) in the first \(m\) coordinates. Otherwise \((y_0, \dots, y_{m-1}) = (x_0, \dots, x_{m-1})\) meets \(F\) (at \(x\)), so \(p(y)\) has length at least \(m\) and extends it; then \(r(y) = z_{p(y)} \in N_{p(y)}\) agrees with \(y\), and so with \(x\), in the first \(m\) coordinates. \(\blacksquare\)

Used in: the description of the space; “Every compact metrizable space is a continuous image”.

Every compact metrizable space is a continuous image

See it in Lean

Statement

Every nonempty compact metrizable space \(X\) is a continuous image of \(C\): there is a continuous surjection \(C \to X\).

Proof

Let \(Q = I^{\mathbb{N}}\) be the Hilbert cube. The space \(X\) is compact, hence σ-compact and so Lindelöf, and metrizable, hence separable; so \(X\) embeds in \(Q\). Let \(e : X \to Q\) be an embedding. Its image \(e(X)\) is compact, hence closed in the Hausdorff space \(Q\), and nonempty.

There is a continuous surjection \(g : C \to Q\). The set \(F = g^{-1}(e(X))\) is closed in \(C\) and nonempty, since \(g\) is onto. By the retraction theorem for closed subsets of \(C\) there is a continuous map \(r : C \to C\) with image \(F\). Then \(g \circ r\) is a continuous map of \(C\) onto \(e(X)\), and \(e^{-1} \circ g \circ r\) is a continuous map of \(C\) onto \(X\), since \(e\) is a homeomorphism onto its image. \(\blacksquare\)

This is the Hausdorff–Alexandroff theorem.

Used in: the description of the space.

Properties

Values: true · false · independent of ZFC. Each space page proves a few facts about the space directly; the rest of its row follows from those by the general theorems. Everything listed is checked in Lean (what that means).

Cantor set: every property, its value, and how it is known: proved directly, or the reason it follows from other values
PropertyValueHow
First countable true Because the two-point discrete space is first countable
Second countable true Because the two-point discrete space is second countable
Separable true Because the two-point discrete space is separable
Lindelöf true Because it is second countable
Metrizable true Because the two-point discrete space is metrizable
Hausdorff true Because the two-point discrete space is Hausdorff
Compact true Because the two-point discrete space is compact
σ-compact true Because the two-point discrete space is compact
Countably compact true Because it is compact
Sequentially compact true Because the two-point discrete space is sequentially compact
Weakly locally compact true Because the two-point discrete space is compact
T₀ true Because the two-point discrete space is T₀
T₁ true Because the two-point discrete space is T₁
Urysohn true Because the two-point discrete space is Urysohn
Regular true Because the two-point discrete space is regular
Completely regular true Because the two-point discrete space is completely regular
Normal true Because it is compact and Hausdorff
Completely normal true Because it is perfectly normal
Perfectly normal true Because it is metrizable
Connected false Because the two-point discrete space is not connected
Path connected false Because the two-point discrete space is not path connected
Locally connected false Because the two-point discrete space is not connected
Locally path connected false Because the two-point discrete space is not path connected
Totally disconnected true Because the two-point discrete space is totally disconnected
Totally separated true Because the two-point discrete space is totally separated
Zero-dimensional true Because the two-point discrete space is zero-dimensional
Functionally Hausdorff true Because the two-point discrete space is functionally Hausdorff
Semiregular true Because the two-point discrete space is semiregular
Fully T₄ true Because it is normal and paracompact
Fully normal true Because it is fully T₄ and T₁
Countable chain condition true Because it is separable
Countable false Proved directly
Has a σ-locally finite base true Because it is second countable
Limit point compact true Because it is countably compact
Pseudocompact true Because it is countably compact
Locally relatively compact true Because it is compact
σ-locally compact true Because it is σ-compact and weakly locally compact
Paracompact true Because it is metrizable
Countably paracompact true Because it is perfectly normal
Metacompact true Because it is σ-compact and Hausdorff
Countably metacompact true Because it is metacompact
Completely metrizable true Because the two-point discrete space is completely metrizable
Second category true Because it is nonempty and is a Baire space
Arc connected false Because it is not path connected
Locally arc connected false Because it is not locally path connected
Hyperconnected false Because the two-point discrete space is not hyperconnected
Ultraconnected false Because the two-point discrete space is not ultraconnected
Strongly connected false Because the two-point discrete space is not strongly connected
Totally path disconnected true Because the two-point discrete space is totally path disconnected
Scattered false Because the two-point discrete space has at least two points
Extremally disconnected false Because it is Hausdorff but not sequentially discrete
Discrete false Because the two-point discrete space has at least two points
Biconnected false Because it is not connected
Has a dispersion point false Because it is not biconnected
Cardinality less than \(\mathfrak{c}\) false Because it has cardinality equal to \(\mathfrak{c}\)
Cardinality equal to \(\mathfrak{c}\) true Proved directly
Cardinality at most \(2^{\mathfrak{c}}\) true Because it has cardinality equal to \(\mathfrak{c}\)

Proofs

First countable: true

Follows from the theorem “A countable power is first countable iff the space is”, applied to:

Second countable: true

Follows from the theorem “A countable power is second countable iff the space is”, applied to:

Separable: true

Follows from the theorem “A countable power is separable iff the space is”, applied to:

Lindelöf: true

Follows from the theorem “Second countable spaces are Lindelöf”, applied to:

Metrizable: true

Follows from the theorem “A countable power is metrizable iff the space is”, applied to:

Hausdorff: true

Follows from the theorem “A countable power is Hausdorff iff the space is”, applied to:

Compact: true

Follows from the theorem “A countable power is compact iff the space is”, applied to:

σ-compact: true

Follows from the theorem “A countable power is σ-compact iff the space is compact”, applied to:

Countably compact: true

Follows from the theorem “Compact spaces are countably compact”, applied to:

Sequentially compact: true

Follows from the theorem “A countable power is sequentially compact iff the space is”, applied to:

Weakly locally compact: true

Follows from the theorem “A countable power is weakly locally compact iff the space is compact”, applied to:

T₀: true

Follows from the theorem “A countable power is T₀ iff the space is”, applied to:

T₁: true

Follows from the theorem “A countable power is T₁ iff the space is”, applied to:

Urysohn: true

Follows from the theorem “A countable power is Urysohn iff the space is”, applied to:

Regular: true

Follows from the theorem “A countable power is regular iff the space is”, applied to:

Completely regular: true

Follows from the theorem “A countable power is completely regular iff the space is”, applied to:

Normal: true

Follows from the theorem “Compact Hausdorff spaces are normal”, applied to:

Completely normal: true

Follows from the theorem “Perfectly normal spaces are completely normal”, applied to:

Perfectly normal: true

Follows from the theorem “Metrizable spaces are perfectly normal”, applied to:

Connected: false

Follows from the theorem “A countable power is connected iff the space is”, applied to:

Path connected: false

Follows from the theorem “A countable power is path connected iff the space is”, applied to:

Locally connected: false

Follows from the theorem “A countable power is locally connected iff the space is locally connected and connected”, applied to:

Locally path connected: false

Follows from the theorem “A countable power is locally path connected iff the space is locally path connected and path connected”, applied to:

Totally disconnected: true

Follows from the theorem “A countable power is totally disconnected iff the space is”, applied to:

Totally separated: true

Follows from the theorem “A countable power is totally separated iff the space is”, applied to:

Zero-dimensional: true

Follows from the theorem “A countable power is zero-dimensional iff the space is”, applied to:

Functionally Hausdorff: true

Follows from the theorem “A countable power is functionally Hausdorff iff the space is”, applied to:

Semiregular: true

Follows from the theorem “A countable power of a semiregular space is semiregular”, applied to:

Fully T₄: true

Follows from the theorem “Normal paracompact spaces are fully T₄”, applied to:

Fully normal: true

Follows from the theorem “Fully T₄ T₁ spaces are fully normal”, applied to:

Countable chain condition: true

Follows from the theorem “Separable spaces satisfy the countable chain condition”, applied to:

Countable: false

Proved directly for this space. See it in Lean

Statement

Cantor space is not countable.

Proof

If all binary sequences formed a list \((x_n)\), the sequence whose \(n\)th entry is the opposite of \(x_n(n)\) would differ from every sequence on that list. \(\blacksquare\)

Has a σ-locally finite base: true

Follows from the theorem “Second countable spaces have a σ-locally finite base”, applied to:

Limit point compact: true

Follows from the theorem “Countably compact spaces are limit point compact”, applied to:

Pseudocompact: true

Follows from the theorem “Countably compact spaces are pseudocompact”, applied to:

Locally relatively compact: true

Follows from the theorem “Compact spaces are locally relatively compact”, applied to:

σ-locally compact: true

Follows from the theorem “σ-compact weakly locally compact spaces are σ-locally compact”, applied to:

Paracompact: true

Follows from the theorem “Metrizable spaces are paracompact”, applied to:

Countably paracompact: true

Follows from the theorem “Perfectly normal spaces are countably paracompact”, applied to:

Metacompact: true

Follows from the theorem “Hausdorff sigma-compact spaces are metacompact”, applied to:

Countably metacompact: true

Follows from the theorem “Metacompact implies countably metacompact”, applied to:

Completely metrizable: true

Follows from the theorem “A countable power is completely metrizable iff the space is”, applied to:

Second category: true

Follows from the theorem “A nonempty Baire space is of second category”, applied to:

Arc connected: false

Follows from the theorem “Arc connected spaces are path connected”, applied to:

Locally arc connected: false

Follows from the theorem “Locally arc connected spaces are locally path connected”, applied to:

Hyperconnected: false

Follows from the theorem “A countable power is hyperconnected iff the space is”, applied to:

Ultraconnected: false

Follows from the theorem “A countable power is ultraconnected iff the space is”, applied to:

Strongly connected: false

Follows from the theorem “A countable power is strongly connected iff the space is”, applied to:

Totally path disconnected: true

Follows from the theorem “A countable power is totally path disconnected iff the space is”, applied to:

Scattered: false

Follows from the theorem “A countable power is scattered iff the space has at most one point”, applied to:

Extremally disconnected: false

Follows from the theorem “Extremally disconnected Hausdorff spaces are sequentially discrete”, applied to:

Discrete: false

Follows from the theorem “A countable power is discrete iff the space has at most one point”, applied to:

Biconnected: false

Follows from the theorem “Biconnected spaces are connected”, applied to:

Has a dispersion point: false

Follows from the theorem “A dispersion point implies biconnectedness”, applied to:

Cardinality less than \(\mathfrak{c}\): false

Follows from the theorem “A space of cardinality \(\mathfrak{c}\) does not have cardinality less than \(\mathfrak{c}\)”, applied to:

Cardinality equal to \(\mathfrak{c}\): true

Proved directly for this space. See it in Lean

Proof

The underlying set consists of all functions from \(\mathbb N\) to a two-point set. Its cardinality is \(2^{\aleph_0}=\mathfrak c\). \(\blacksquare\)

Cardinality at most \(2^{\mathfrak{c}}\): true

Follows from the theorem “Every space of cardinality \(\mathfrak{c}\) has cardinality at most \(2^{\mathfrak{c}}\)”, applied to:

Baire: true

Follows from the theorem “Completely metrizable spaces are Baire spaces”, applied to:

Countable extent: true

Follows from the theorem “Lindelöf spaces have countable extent”, applied to:

Fréchet–Urysohn: true

Follows from the theorem “First countable spaces are Fréchet–Urysohn”, applied to:

Hereditarily Lindelöf: true

Follows from the theorem “Second countable spaces are hereditarily Lindelöf”, applied to:

Locally compact: true

Follows from the theorem “Weakly locally compact regular spaces are locally compact”, applied to:

R₀: true

Follows from the theorem “A countable power is R₀ iff the space is”, applied to:

Realcompact: true

Follows from the theorem “Countable powers of realcompact spaces are realcompact”, applied to:

Sequential: true

Follows from the theorem “Fréchet–Urysohn spaces are sequential”, applied to:

Submetrizable: true

Follows from the theorem “Metrizable spaces are submetrizable”, applied to:

Finite: false

Follows from the theorem “Finite spaces are countable”, applied to:

Sequentially discrete: false

Follows from the theorem “Sequentially discrete, sequentially compact spaces are finite”, applied to:

References

  • Steen and Seebach, Counterexamples in Topology, 2nd ed. (1978), Example 29
  • π-Base, S000026: Cantor space \(2^\omega\)