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
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
- Baire — because it is completely metrizable
- Has countable extent — because it is Lindelöf
- Fréchet–Urysohn — because it is first countable
- Hereditarily Lindelöf — because it is second countable
- Locally compact — because it is regular and weakly locally compact
- R₀ — because the two-point discrete space is R₀
- Realcompact — because the two-point discrete space is realcompact
- Sequential — because it is Fréchet–Urysohn
- Submetrizable — because it is metrizable
Results
Homeomorphic to the middle-thirds set
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
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
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
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).
Proofs
First countable: true
Follows from the theorem “A countable power is first countable iff the space is”, applied to:
- the two-point discrete space is first countable (because it is second countable)
Second countable: true
Follows from the theorem “A countable power is second countable iff the space is”, applied to:
- the two-point discrete space is second countable (because it is finite)
Separable: true
Follows from the theorem “A countable power is separable iff the space is”, applied to:
- the two-point discrete space is separable (because it is second countable)
Lindelöf: true
Follows from the theorem “Second countable spaces are Lindelöf”, applied to:
- this space is second countable (because the two-point discrete space is second countable)
Metrizable: true
Follows from the theorem “A countable power is metrizable iff the space is”, applied to:
- the two-point discrete space is metrizable (because it is discrete)
Hausdorff: true
Follows from the theorem “A countable power is Hausdorff iff the space is”, applied to:
- the two-point discrete space is Hausdorff (because it is metrizable)
Compact: true
Follows from the theorem “A countable power is compact iff the space is”, applied to:
- the two-point discrete space is compact (because it is finite)
σ-compact: true
Follows from the theorem “A countable power is σ-compact iff the space is compact”, applied to:
- the two-point discrete space is compact (because it is finite)
Countably compact: true
Follows from the theorem “Compact spaces are countably compact”, applied to:
- this space is compact (because the two-point discrete space is compact)
Sequentially compact: true
Follows from the theorem “A countable power is sequentially compact iff the space is”, applied to:
- the two-point discrete space is sequentially compact (because it is compact and countable)
Weakly locally compact: true
Follows from the theorem “A countable power is weakly locally compact iff the space is compact”, applied to:
- the two-point discrete space is compact (because it is finite)
T₀: true
Follows from the theorem “A countable power is T₀ iff the space is”, applied to:
- the two-point discrete space is T₀ (because it is scattered)
T₁: true
Follows from the theorem “A countable power is T₁ iff the space is”, applied to:
- the two-point discrete space is T₁ (because it is Hausdorff)
Urysohn: true
Follows from the theorem “A countable power is Urysohn iff the space is”, applied to:
- the two-point discrete space is Urysohn (because it is T₀ and regular)
Regular: true
Follows from the theorem “A countable power is regular iff the space is”, applied to:
- the two-point discrete space is regular (because it is metrizable)
Completely regular: true
Follows from the theorem “A countable power is completely regular iff the space is”, applied to:
- the two-point discrete space is completely regular (because it is zero-dimensional)
Normal: true
Follows from the theorem “Compact Hausdorff spaces are normal”, applied to:
- this space is compact (because the two-point discrete space is compact)
- this space is Hausdorff (because the two-point discrete space is Hausdorff)
Completely normal: true
Follows from the theorem “Perfectly normal spaces are completely normal”, applied to:
- this space is perfectly normal (because it is metrizable)
Perfectly normal: true
Follows from the theorem “Metrizable spaces are perfectly normal”, applied to:
- this space is metrizable (because the two-point discrete space is metrizable)
Connected: false
Follows from the theorem “A countable power is connected iff the space is”, applied to:
- the two-point discrete space is not connected (because it is discrete and has at least two points)
Path connected: false
Follows from the theorem “A countable power is path connected iff the space is”, applied to:
- the two-point discrete space is not path connected (because it is not connected)
Locally connected: false
Follows from the theorem “A countable power is locally connected iff the space is locally connected and connected”, applied to:
- the two-point discrete space is not connected (because it is discrete and has at least two points)
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:
- the two-point discrete space is not path connected (because it is not connected)
Totally disconnected: true
Follows from the theorem “A countable power is totally disconnected iff the space is”, applied to:
- the two-point discrete space is totally disconnected (because it is totally separated)
Totally separated: true
Follows from the theorem “A countable power is totally separated iff the space is”, applied to:
- the two-point discrete space is totally separated (because it is zero-dimensional and T₀)
Zero-dimensional: true
Follows from the theorem “A countable power is zero-dimensional iff the space is”, applied to:
- the two-point discrete space is zero-dimensional (because it is discrete)
Functionally Hausdorff: true
Follows from the theorem “A countable power is functionally Hausdorff iff the space is”, applied to:
- the two-point discrete space is functionally Hausdorff (because it is completely regular and T₀)
Semiregular: true
Follows from the theorem “A countable power of a semiregular space is semiregular”, applied to:
- the two-point discrete space is semiregular (because it is regular)
Fully T₄: true
Follows from the theorem “Normal paracompact spaces are fully T₄”, applied to:
- this space is normal (because it is compact and Hausdorff)
- this space is paracompact (because it is metrizable)
Fully normal: true
Follows from the theorem “Fully T₄ T₁ spaces are fully normal”, applied to:
- this space is fully T₄ (because it is normal and paracompact)
- this space is T₁ (because the two-point discrete space is T₁)
Countable chain condition: true
Follows from the theorem “Separable spaces satisfy the countable chain condition”, applied to:
- this space is separable (because the two-point discrete space is separable)
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:
- this space is second countable (because the two-point discrete space is second countable)
Limit point compact: true
Follows from the theorem “Countably compact spaces are limit point compact”, applied to:
- this space is countably compact (because it is compact)
Pseudocompact: true
Follows from the theorem “Countably compact spaces are pseudocompact”, applied to:
- this space is countably compact (because it is compact)
Locally relatively compact: true
Follows from the theorem “Compact spaces are locally relatively compact”, applied to:
- this space is compact (because the two-point discrete space is compact)
σ-locally compact: true
Follows from the theorem “σ-compact weakly locally compact spaces are σ-locally compact”, applied to:
- this space is σ-compact (because the two-point discrete space is compact)
- this space is weakly locally compact (because the two-point discrete space is compact)
Paracompact: true
Follows from the theorem “Metrizable spaces are paracompact”, applied to:
- this space is metrizable (because the two-point discrete space is metrizable)
Countably paracompact: true
Follows from the theorem “Perfectly normal spaces are countably paracompact”, applied to:
- this space is perfectly normal (because it is metrizable)
Metacompact: true
Follows from the theorem “Hausdorff sigma-compact spaces are metacompact”, applied to:
- this space is σ-compact (because the two-point discrete space is compact)
- this space is Hausdorff (because the two-point discrete space is Hausdorff)
Countably metacompact: true
Follows from the theorem “Metacompact implies countably metacompact”, applied to:
- this space is metacompact (because it is σ-compact and Hausdorff)
Completely metrizable: true
Follows from the theorem “A countable power is completely metrizable iff the space is”, applied to:
- the two-point discrete space is completely metrizable (because it is discrete)
Second category: true
Follows from the theorem “A nonempty Baire space is of second category”, applied to:
- this space is nonempty (proved directly)
- this space is a Baire space (because it is completely metrizable)
Arc connected: false
Follows from the theorem “Arc connected spaces are path connected”, applied to:
- this space is not path connected (because the two-point discrete space is not path connected)
Locally arc connected: false
Follows from the theorem “Locally arc connected spaces are locally path connected”, applied to:
- this space is not locally path connected (because the two-point discrete space is not path connected)
Hyperconnected: false
Follows from the theorem “A countable power is hyperconnected iff the space is”, applied to:
- the two-point discrete space is not hyperconnected (because it is not strongly connected)
Ultraconnected: false
Follows from the theorem “A countable power is ultraconnected iff the space is”, applied to:
- the two-point discrete space is not ultraconnected (because it is not path connected)
Strongly connected: false
Follows from the theorem “A countable power is strongly connected iff the space is”, applied to:
- the two-point discrete space is not strongly connected (because it is not connected)
Totally path disconnected: true
Follows from the theorem “A countable power is totally path disconnected iff the space is”, applied to:
- the two-point discrete space is totally path disconnected (because it is countable and T₁)
Scattered: false
Follows from the theorem “A countable power is scattered iff the space has at most one point”, applied to:
- the two-point discrete space has at least two points (proved for the family)
Extremally disconnected: false
Follows from the theorem “Extremally disconnected Hausdorff spaces are sequentially discrete”, applied to:
- this space is Hausdorff (because the two-point discrete space is Hausdorff)
- this space is not sequentially discrete (because it is sequentially compact but not finite)
Discrete: false
Follows from the theorem “A countable power is discrete iff the space has at most one point”, applied to:
- the two-point discrete space has at least two points (proved for the family)
Biconnected: false
Follows from the theorem “Biconnected spaces are connected”, applied to:
- this space is not connected (because the two-point discrete space is not connected)
Has a dispersion point: false
Follows from the theorem “A dispersion point implies biconnectedness”, applied to:
- this space is not biconnected (because it is not connected)
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:
- this space has cardinality equal to \(\mathfrak{c}\) (proved directly)
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:
- this space has cardinality equal to \(\mathfrak{c}\) (proved directly)
Baire: true
Follows from the theorem “Completely metrizable spaces are Baire spaces”, applied to:
- this space is completely metrizable (because the two-point discrete space is completely metrizable)
Countable extent: true
Follows from the theorem “Lindelöf spaces have countable extent”, applied to:
- this space is Lindelöf (because it is second countable)
Fréchet–Urysohn: true
Follows from the theorem “First countable spaces are Fréchet–Urysohn”, applied to:
- this space is first countable (because the two-point discrete space is first countable)
Hereditarily Lindelöf: true
Follows from the theorem “Second countable spaces are hereditarily Lindelöf”, applied to:
- this space is second countable (because the two-point discrete space is second countable)
Locally compact: true
Follows from the theorem “Weakly locally compact regular spaces are locally compact”, applied to:
- this space is regular (because the two-point discrete space is regular)
- this space is weakly locally compact (because the two-point discrete space is compact)
R₀: true
Follows from the theorem “A countable power is R₀ iff the space is”, applied to:
- the two-point discrete space is R₀ (because it is regular)
Realcompact: true
Follows from the theorem “Countable powers of realcompact spaces are realcompact”, applied to:
- the two-point discrete space is realcompact (because it is compact and Hausdorff)
Sequential: true
Follows from the theorem “Fréchet–Urysohn spaces are sequential”, applied to:
- this space is Fréchet–Urysohn (because it is first countable)
Submetrizable: true
Follows from the theorem “Metrizable spaces are submetrizable”, applied to:
- this space is metrizable (because the two-point discrete space is metrizable)
Finite: false
Follows from the theorem “Finite spaces are countable”, applied to:
- this space is not countable (proved directly)
Sequentially discrete: false
Follows from the theorem “Sequentially discrete, sequentially compact spaces are finite”, applied to:
- this space is sequentially compact (because the two-point discrete space is sequentially compact)
- this space is not finite (because it is not countable)
References
- Steen and Seebach, Counterexamples in Topology, 2nd ed. (1978), Example 29
- π-Base, S000026: Cantor space \(2^\omega\)