Skip to main content

Math 344-1,2: Kursobjekt

Section 1.16 Compactness in metric spaces

As useful as the Heine-Borel theorem is in characterizing compactness in \(\R^n\text{,}\) it relies in part on a non-topological property: namely, boundedness with respect to the Euclidean, box, or taxicab norm. In this section we investigate the relation of compactness to various related topological properties that turn out to be equivalent to compactness in the setting of metric spaces. First we meet our new compact-like properties.

Definition 1.16.1. Limit point compact.

A topological space \(X\) is limit point compact if all infinite subsets of \(X\) have a limit point.

Definition 1.16.2. Sequentially compact.

A topological space \(X\) is sequentially compact if every sequences of elements of \(X\) has a convergent subsequence.
Theorem 1.16.3 asserts that compactness, limit point compactness, and sequential compactness are equivalent in the setting of metric spaces.
Our proof of Theorem 1.16.3 will involve a series of results that articulate which implications hold between these three concepts in full generality, and highlight what extra conditions are required to obtain equivalences. Before embarking on this investigation we look at two examples that illustrate two different uses of Theorem 1.16.3: namely, (a) deciding whether a given subset of a metric space is compact, and (b) showing that a given space is not a metric space.

Example 1.16.4.

Proof.

Let \(A\) be an infinite subset of \(X\text{,}\) and let \(A'=\{x_1,x_2,\dots\}\) be any countable infinite subset of \(A\text{.}\) We will show that \(A'\) has a limit point. Assume by contradiction that \(A'\) has no limit point. Since in general the closure of a set is obtained by adding all limit points, we see that \(A'\) is closed. Since \(X\) is compact, we conclude that \(A'\) is compact. On the other hand, since no element of \(A'\) is a limit point of \(A'\) is a limit point of \(A'\text{,}\) it is easy to see that all singletons of \(A'\) are open in the subspace topology. This contradicts the compactness of \(A'\) since the open covering \(A'=\bigcup_{n=1}^{\infty}\{x_n\}\) has no finite subcover.

Remark 1.16.6. Countably compact space.

A close look at our proof of Theorem 1.16.5 reveals that limit point compactness follows from a slightly weaker notion of compactness: namely, countable compactness. A space is countably compact if every countable open subcover has a finite subcover. We have the following implications:
\begin{equation*} X \text{ compact} \implies X \text{ countably compact} \implies X \text{ limit point compact}\text{.} \end{equation*}
It can be shown that none of these implications is in fact an equivalence. However, if \(X\) is further assumed to be \(T_1\text{,}\) then limit point compactness implies countable compactness. We record this fact schematically as follows:
\begin{equation*} X \text{ limit point compact} \underset{(T_1)}{\implies} X \text{ countably compact}\text{.} \end{equation*}

Proof.

We will show that sequential compactness implies countable compactness. The result then follows from Remark 1.16.6. Suppose by contradiction that the open covering \(X=\bigcup_{n=1}^\infty U_n\) has no finite subcover. It follows that we can construct a sequence \((x_n)_{n=1}^\infty\) satisfying \(x_n\notin U_1\cup U_2\cup \cdots \cup U_n\text{.}\) By sequential compactness there is a convergent subsequence \(x_{n_m}\rightarrow x\text{.}\) Since \(\{U_n\}_{n=1}^\infty\) is a covering, we have \(x\in U_{N}\) for some \(N\text{.}\) But by construction there is an \(M\) such that \(x_{n_m}\notin U_N\) for all \(m\geq M\text{.}\) A contradiction. Thus there must be a finite subcover of \(\{U_n\}_{n=1}^\infty\text{.}\)
At this point we have the following logical diagram for a general topological space. Without further assumptions on \(X\) none of the implications below is an equivalence.
Compactness implications
Figure 1.16.8. Compactness implications
We now set about elaborating on Figure 1.16.8 by adding additional properties to \(X\text{.}\) It turns out that some of the so-called countability axioms play a useful role in this regard. We will take these topics up in earnest in Section 1.18, but will introduce here, somewhat prematurely, two of these notions (viz., the first and second countable axioms).

Definition 1.16.9. Local basis.

Let \(X\) be a topological space. Given \(x\in X\text{,}\) a local basis at \(x\) is a collection \(\mathcal{B}_x\) of open neighborhoods of \(x\) such that for all open \(U\) containing \(x\) there is a \(B\in \mathcal{B}_x\) such that \(B\subseteq U\text{.}\)

Definition 1.16.10. First countable.

A topological space \(X\) is first countable if every \(x\in X\) has a countable local basis.

Proof.

Assume \(X\) is \(T_1\text{,}\) second countable, and limit point compact. Let \((x_n)_{n\in \Z_+}\) be a sequence in \(X\) and let \(A=\{x_n\colon n\in \Z_+\}\text{,}\) the set of entries of \((x_n)_{n\in \Z_+}\text{.}\) If \(A\) is finite, then it is easy to see that there is a constant subsequence of \((x_n)_{n\in \Z_+}\text{,}\) and such a subsequence clearly converges. If \(A\) is infinite, then since \(X\) is limit point compact, there is a limit point \(x\) of \(A\text{.}\) Let \(\mathcal{B}=\{B_n\colon n\in \Z_+\}\) be a countable local basis at \(x\text{.}\) Replacing \(B_n\) with \(\bigcap_{i=1}^n B_n\text{,}\) we may assume that \(B_n\supseteq B_{n+1}\) for all \(n\text{.}\)

Definition 1.16.12. Second countable.

A topological space \(X\) is second countable if it has a countable basis.

Proof.

Assume \(X\) is second countable, and let \(X=\bigcup_{i\in I}U_i\text{.}\) As we will show in Theorem 1.18.8, since \(X\) is second countable, there is a countable subcovering \(X=\bigcup_{j=1}^\infty V_j\text{,}\) where \(V_j=U_{i_{j}}\) for some \(i_j\in I\text{.}\) If the countable covering \(\{V_j\}_{j=1}^\infty\) had no finite subcovering, then we could construct a sequence \((x_n)_{n=1}^\infty\) satisfying \(x_n\notin U_1\cup U_2\cup \cdots\cup U_n\) for all \(n\in \Z_+\text{.}\) Since \(X\) is sequentially compact, the sequence would have a convergent subsequence \(x_{n_k}\rightarrow x\text{.}\) We must have \(x\in V_N\) for some \(N\text{.}\) But by construction \(x_{n}\notin V_N\) for all \(n\geq N\text{,}\) whence it follows that \(x_{n_k}\notin V_n\) eventually. A contradiction. We conclude that \(\{V_n\}_{n\in \Z_+}\text{,}\) and hence \(\{U_i\}_{i\in I}\) has a finite subcovering, as desired.
The following logical diagram summarizes what we know thus far. (We leave as an exercise the proof that if \(X\) is \(T_1\) and limit point compact, then it is countably compact.)
Compactness implications
Figure 1.16.14. Compactness implications
Corollary 1.16.15 now follows from a diagram chase and the fact that second countable implies first countable. (See Theorem 1.18.8.)
Finally, we are ready to prove Theorem 1.16.3. Since any metric space \(X\) is \(T_1\) and first countable, we have \((1)\implies (2)\implies (3)\text{.}\) To show \((3)\implies (1)\) it suffices to prove that any sequentially compact metric space is second countable. This is the result of our last theorem.

Proof.

We show first that if \(X\) is a sequentially compact metric space, then it is totally bounded: i.e., given any \(\epsilon > 0\text{,}\) we have
\begin{equation*} X=\bigcup_{i=1}^n B_\epsilon(x_i) \end{equation*}
for some elements \(\{x_i\colon 1\leq i\leq n\}\text{.}\) Indeed, suppose by contradiction that there is an \(\epsilon\) for which this is not true. Construct a sequence as follows: choose any \(x_1\in X\text{;}\) since \(B_\epsilon(x_1)\ne X\text{,}\) we can find an element \(x_2\notin B_\epsilon(x_2)\text{;}\) in general, given choices \(x_1,x_2,\dots, x_n\text{,}\) choose
\begin{equation*} x_{n+1}\notin B_\epsilon(x_1)\cup B_{\epsilon}(x_2)\cup\cdots \cup B_{\epsilon}(x_n)\text{.} \end{equation*}
Since \(X\) is sequentially compact the the sequence \((x_n)_{n\in \Z_+}\) has a convergent subsequence \((x_{n_k})_{k\in \Z_+}\text{.}\) This is a contradiction since this sequence would not be Cauchy: indeed by construction, for any \(n_j\) and \(n_k\) with \(n_k > n_j\text{,}\) we have \(x_{n_k}\notin B_\epsilon(n_j)\text{.}\)
Since \(X\) is totally bounded, for each \(n\in \Z_+\) we have
\begin{equation*} X=\bigcup_{i=1}^{m_n} B_{1/n}(x_{n,i})\text{.} \end{equation*}
Let \(Q=\{x_{n,i}\colon n\in \Z_+, 1\leq i\leq m_n\}\text{,}\) a countable set. It is easy to see that \(Q\) is dense in \(X\text{:}\) i.e., \(\overline{Q}=X\text{.}\) As we will show in Theorem 1.18.8, any metric space containing a countable dense subset is second countable.
We end our treatment of compactness with the amazing Cantor set. This mysterious space, besides serving as a nice testing ground for our theory around connectedness and compactness, is surprisingly omnipresent in topology and related fields. By way of illustration, we remark that it can be shown that every compact metric space is the continuous image of the Cantor set.

Definition 1.16.17. Perfect space.

Let \(X\) be a topological space. An element \(x\in X\) is isolated if \(\{x\}\) is open in \(X\text{.}\) The space \(X\) is perfect if it has no isolated elements.

Definition 1.16.18. Totally disconnected.

A space \(X\) is totally disconnected if the connected components of \(X\) are singletons: equivalently, if an subset of \(X\) containing more than one element is disconnected.

Topological specimen 16. Cantor set.

There is a unique family \(\{C_n\}_{n=0}^\infty\) of closed sets of \([0,1]\) of of \([0,1]\) satisfying the following properties:
  • \(C_0=[0,1]\text{.}\)
  • \(C_n=\bigcup_{k=1}^{2^n}I_{n,k}\) is a disjoint union of \(2^n\) intervals of the form \([a_k/3^n, (a_k+1)/3^n\text{,}\) where \(a_k\in \{0,1,\dots, 3^n-1\}\text{.}\)
  • \(C_{n+1}\) is obtained by “deleting the middle third” of each interval appearing in \(C_n\text{:}\) that is each interval \([a_k/3^n, (a_k+1)/3^n]\) of \(C_n\) gives rise to two intervals \([a_{k}/3^{n+1}, (a_k+1)/3^{n+1}]\) and \([(a_k+2)/3^{n+1}, (a_k+3)/3^{n+1}]\text{.}\)
Here is a tree illustration of the first three members of this family.
described in detail following the image
Recursive generation of \(C_n\)
Figure 1.16.19. Recursive generation of \(C_n\)
The Cantor set is defined as \(\mathcal{C}=\bigcap_{n=0}^\infty C_n\text{.}\)
The Cantor set is nonempty, (i) Hausdorff, (ii) compact, (iii) perfect, (iv) totally disconnected, and (v) second countable, as we show below. Amazingly, you can also show that any nonempty space \(X\) satisfying properties \((i)-(v)\) is homeomorphic to the Cantor set!

Proof.

Since \([0,1]\) is compact, and since \(\{C_n\}_{n=0}^\infty\) is a collection of nested nonempty closed sets, we know by Corollary 1.14.14 that \(\mathcal{C}\ne \emptyset\text{.}\) Since each \(C_n\) is clearly closed, \(\mathcal{C}=\bigcap_{n=1}^\infty C_n\) is closed and bounded, hence compact. Since \(\mathcal{C}\) is a subspace of a Hausdorff space, it is Hausdorff.
We show that \(\mathcal{C}\) is perfect. We know already that \(\mathcal{C}\) is closed. Given any \(x\in \mathcal{C}\) and \(\epsilon > 0\text{,}\) pick \(N\in \Z_+\) such that \(1/3^N< \epsilon\text{.}\) Since \(x\in C_{N}\text{,}\) we have \(x\in I=[a_k/3^N, (a_k+1)/3^N]\) for some \(a_k\in \{0,1,\dots, 3^N-1\}\text{.}\) Let \(J, K\) be the two subintervals of \(I\) remaining after deleting its middle third. Assume without loss of generality that \(x\in J\text{.}\) The collection \(\{C_n\cap K\}_{n=1}^\infty\) is itself a family of nested, closed and nonempty subsets of \([0,1]\text{.}\) Again by compactness, there is an element \(y\in \bigcap_{n=0}^\infty (C_n\cap K)\subseteq \mathcal{C}\text{.}\) Since \(x,y\in I\text{,}\) we have \(d(x,y)\leq 1/3^N< \epsilon\text{.}\) Since \(x\in J\) and \(y\in K\text{,}\) and since \(J\cap K=\emptyset\text{,}\) we have \(x\ne y\text{.}\)
We prove \(\mathcal{C}\) is totally disconnected. Let \(A\) be any subset of \(\mathcal{C}\) containing two distinct elements \(x\) and \(y\text{.}\) We will find a nontrivial separation of \(A\text{.}\) Since \(x\ne y\text{,}\) we can find an \(n\) and disjoint intervals \(I_{n,j}=[a_j/3^n, (a_j+1)/3^n], I_{n,k}=[a_k/3^n, (a_k+1)/3^n]\) such that \(x\in I_{n,j}\) and \(y\in I_{n,k}\text{:}\) otherwise we would have \(d(x,y)\leq 1/3^n\) for all \(n\text{,}\) which would imply \(d(x,y)=0\text{.}\) Assume without loss of generality that \(a_j< a_k\text{,}\) and let \(b\) be any element between \(a_j\) and \(a_k\) that does not lie in \(C_n\text{.}\) The open sets \(U=A\cap [0,b)\) and \(V=A\cap (b,1]\) form a separation of \(A\text{,}\) proving it is not connected. We conclude that the only connected subsets of \(\mathcal{C}\) are singletons, and thus that the connected components are singletons.