Skip to main content

Mathematical Analysis

Section 4.3 Compactness

Subsection Compactness Basics

“The lunatic, the lover, and poet, are of imagination all compact.”
―William Shakespeare

Definition 4.43. Compact.

A metric space \(X\) is compact if every sequence \((x_n)_{n=1}^\infty\subseteq X\) has a convergent subsequence.
A subset \(A\subseteq X\) is compact if \(A\) is a compact metric space with the induced metric; ie every sequence \((a_n)_{n=1}^\infty\subseteq A\) has a subsequence which converges in \(A\text{.}\)
If \((x_n)_{n=1}^\infty\subseteq [a,b]\text{,}\) there is a subsequence \((x_{n_k})_{k=1}^\infty\subseteq (x_n)_{n=1}^\infty\) converging to some \(x\in \mathbb{R}\text{.}\) (from Bolzano-Weierstrass Theorem, every bounded sequence has a convergent subsequence). Since \(a\leq x_{n_k}\leq b\) for all \(k\geq 1\) and \(x=\lim_{k\rightarrow\infty}x_{n_k}\text{,}\) we have \(a\leq x\leq b\text{.}\) So \(x\in[a,b]\text{.}\)
\(A=(0,1]\subseteq \mathbb{R}\) is not compact.
Solution.
\((\frac{1}{n})_{n=1}^\infty\subseteq A\) has no subsequence which converges in \(A\text{.}\)
If \(A\) is not closed let \(x\in\overline{A}\setminus A\text{.}\) Then exists \((x_n)_{n=1}^\infty\subseteq A\) with \(x=\lim_{n\rightarrow\infty}x_n\text{.}\) Any subsequence of \((x_n)_{n=1}^\infty\) converges to \(x\text{,}\) so no subsequence of \((x_n)_{n=1}^\infty\) converges to a point in \(A\text{.}\)
Further, suppose \(A\subseteq X\) is closed and \(X\) is compact. Let \((x_n)_{n=1}^\infty\subseteq A\) be a sequence. There is a subsequence \((x_{n_k})_{k=1}^\infty\) which converges in \(X\text{.}\) Since \(A\) is closed, \(\lim_{k\rightarrow\infty}x_{n_k}\in A\text{.}\)
Suppose \((x_n)_{n=1}^\infty\subseteq X\) is Cauchy. Since \(X\) is compact, \((x_n)_{n=1}^\infty\) has a convergent subsequence. Now, every Cauchy sequence with a convergent subsequence converges. So \((x_n)_{n=1}^\infty\) converges.

Remark 4.48.

The converse is false! \(\mathbb{R}\) is complete, but not compact. For ex, \((n)_{n=1}^\infty\) has no convergent subsequence.

Subsection The Heine-Borel Theorem

“A piece of art is a compact form of the universe.”
―Thomas Kinkade

Definition 4.49. Bounded Metric Space.

A metric space is bounded if there exists \(C>0\) such that for all \(x,y\in X,d(x,y)\leq C\text{.}\) Equivalently (when \(x\neq \emptyset\)), \(\sup_{x,y\in X}d(x,y)<\infty\text{.}\)
A subset \(A\subseteq X\) is bounded if \(A\) is bounded as a metric space with the induced metric. ie exists \(C>0,\forall x,y\in A, d(x,y)\leq C\text{.}\)
Discrete metric is bounded always, but not compact.
Set \(x=\lim_{n\rightarrow\infty}x_n, y=\lim_{n\rightarrow\infty}y_n\text{.}\) Then \(d(x,y)\leq d(x,x_n)+d(x_n,y_n)+d(y_n,y)\text{.}\) So \(d(x,y)\leq \liminf_{n\rightarrow\infty}d(x_n,y_n)\text{.}\)
Similarly, \(d(x_n,y_n)\leq d(x_n,x)+d(x,y)+d(y,y_n)\text{.}\) So \(\limsup_{n\rightarrow\infty}d(x_n,y_n)\leq d(x,y)\text{.}\)
Suppose \(X\) is an unbounded metric space, so \(\sup_{x,y\in X}d(x,y)=\infty\text{.}\) Then for all \(n\geq 1, \exists x_n,y_n\in X\) with \(d(x_n,y_n)\geq n\text{.}\) If \(X\) is compact, there exist convergent subsequences \((x_{n_k})_{k=1}^\infty\) and \((y_{n_k})_{k=1}^\infty\) of \((x_n)_{n=1}^\infty,(y_n)_{n=1}^\infty\text{.}\) But then \((d(x_{n_k},y_{n_k}))_{k=1}^\infty\) converges and hence is bounded, but \(d(x_{n_k},y_{n_k})\geq n_k\) for all \(k\geq 1\text{.}\)
(\(\impliedby\)) Let \((x_k)_{k=1}^\infty\) be a sequence in \(A\subseteq \mathbb{C}^n\) and write \(x_k=(x_k^{(1)},x_k^{(2)},\dots,x_k^{(n)}),x_k^{(j)}\in\mathbb{C}\text{.}\) Note that for any \(x=(x^{(1)},\dots, x^{(n)})\in \mathbb{C}^n\text{,}\) and any \(j=1,\dots, n\text{,}\) we have \(\left|{x^{(j)}}\right|=(\left|{x^{(j)}}\right|^2)^{\frac{1}{2}}\leq (\sum_{i=1}^n\left|{x^{(i)}}\right|^2)^{\frac{1}{2}}=\left|{\left|{{x}}\right|}\right|^2\text{.}\) In particular, since \((x_k)_{k=1}^\infty\subseteq\mathbb{C}^n\) is bounded, \((x_k^{(1)})_{k=1}^\infty \subseteq \mathbb{C}\) is also bounded. By the Bolzano-Weierstrass theorem, \((x_k^{(1)})_{k=1}^\infty\) has a convergent subsequence. Call it \((x_{k(1,l)}^{(1)})_{l=1}^\infty\subseteq \mathbb{C}\) (so \(\mathbb{Z}_{\geq 1}\rightarrow \mathbb{Z}_{\geq 1}\) by \(l\mapsto k(1,l)\) strictly increasing.) Let \(x^{(1)}=\lim_{l\rightarrow\infty}x_{k(1,l)}^{(1)}\text{.}\) Then \((x_{k(1,l)})_{l=1}^\infty\subseteq \mathbb{C}\) is a bounded sequence and hence \((x_{k(1,l)}^{(2)})_{l=1}^\infty\subseteq \mathbb{C}\) is bounded. So \((x_{k(1,l)}^{(2)})_{l=1}^\infty\subseteq \mathbb{C}\) has a convergent subsequence \((x_{k(2,l)}^{(2)})_{l=1}^\infty\) converging to some \(x^{(2)}\in\mathbb{C}\text{.}\)
Note that \((x_{k(2,l)}^{(1)})_{l=1}^\infty\) is a subsequence of \((x_{k(1,l)}^{(1)})_{l=1}^\infty\text{,}\) so \(\lim_{l\rightarrow\infty}x_{k(2,l)}^{(1)}=x^{(1)}\) and \(\lim_{l\rightarrow\infty}x_{k(2,l)}^{(2)}=x^{(2)}\text{.}\)
Continue in this way choosing \((x_{k(j+1,l)})_{l=1}^\infty\) to be a subsequence of \((x_{k(j,l)})_{l=1}^\infty\) for \(j=1,\dots,n-1\text{.}\) To arrange for \((x_{k(n,l)})_{l=1}^\infty\) to be convergent and set \(x^{(j)}=\lim_{l\rightarrow\infty}x_k^{(i)}\) for \(i=1,\dots,n\text{.}\) Then set \(k_l=k(n,l)\geq 1\) for each \(l\geq 1\text{.}\) Then \((x_{k_l})_{l=1}^\infty\) is a subsequence of \((x_k)_{k=1}^\infty\) (in fact a subsubsub...subsequence (\(n\) “subs”)).
So \((x_{k_l}^{(j)})_{l=1}^\infty\) converges to \(x^{(j)}\in\mathbb{C}\) for all \(j=1,\dots,n\text{.}\) Then if \(x=(x^{(1)},\dots,x^{(n)}\text{,}\) we have \(\lim_{l\rightarrow\infty}x_{k_l}=x\text{.}\) Since \(A\) is closed and each \(x_{k_l}\in A\text{,}\) we have \(x\in A\text{.}\) So every sequence in \(A\) has a subsequence converging in \(A\text{.}\) This shows that \(A\) is compact.
(\(\implies\)) same as for \(\mathbb{C}^n\text{.}\)
(\(\impliedby\)) \(\mathbb{R}^n\subseteq \mathbb{C}^n\) is closed, and so if \(A\) is closed in \(\mathbb{R}^n\) then \(A\) is also closed in \(\mathbb{C}^n\text{.}\) So \(A\) is compact by the Heine-Borel Theorem.

Subsection Totally Bounded Metrics

“It is totally awesome.”
―Rachel Caine
A version of the Heine-Borel theorem does hold for all metric spaces: Compact \(\iff\) complete and “totally bounded”

Definition 4.55. Diameter.

For a metric space \(X\text{,}\) define the diameter of \(X\) to be \(\text{diam}(X)=\sup_{x,y\in X}d(x,y)\in [0,\infty]\text{.}\)
\(\text{diam}(X)<\infty \iff X\) is bounded. Similarly, for a subset \(A\subseteq X, \text{diam}(A)=\sup_{x,y\in A}d(x,y)\in[0,\infty]\text{.}\)

Definition 4.57. Totally Bounded Metric.

A metric space \(X\) is totally bounded if for all \(\varepsilon>0,\) there exists \(A_1,\dots,A_n\subseteq X\) for some \(n\in \mathbb{Z}_+\) with \(X=\cup_{i=1}^n A_i\) and \(\text{diam}(A_i)<\varepsilon\text{.}\)

Example 4.58. Closed Interval is Totally Bounded.

\([0,1]\) is totally bounded. For all \(n\geq 1,\) \([0,1]=\cup_{k=1}^n[\frac{k-1}{n},\frac{k}{n}]\) and \(\text{diam}([\frac{k-1}{n},\frac{k}{n}])=\frac{1}{n}\) for all \(k=1,\dots,n\text{.}\)
Any bounded set in \(\mathbb{R}^n\) is totally bounded.
If \(\varepsilon=\frac{1}{2}\text{,}\) any set \(A\subseteq X\) with \(\text{diam}(A)<\varepsilon\) contains at most one point. So if we could write \(X=\cup_{i=1}^n A_i\) with \(\text{diam}(A_i)<\frac{1}{2}\text{,}\) then \(X\) would have at most \(n\) points. So \(X\) would be finite.
Let \(X\) be a metric space.
  1. If \(X\) is totally bounded, then \(X\) is bounded.
  2. \(X\) is totally bounded iff \(\forall \varepsilon>0\) there exist \(a_1,\dots,a_n\in X\) with \(X=\cup_{i=1}^n B_\varepsilon(a_i)\text{.}\) (This is the book's definition of totally bounded.)
  3. A subset of a totally bounded set is totally bounded.
(\(\implies\)) [totally bounded implies every sequence has a Cauchy subsequence] Suppose \(X\) is a totally bounded metric space. Let \((x_n)_{n=1}^\infty\subseteq X\) be a sequence. We'll first construct a sequence \((A_k)_{k=1}^\infty\) of subsets of \(X\) such that
  1. \(\displaystyle A_k\supseteq A_{k+1}\)
  2. \(\displaystyle \text{diam}(A_k)\leq \frac{1}{k}\)
  3. \(\{{n\geq 1}\,:\,{x_n\in A_k}\}\) is infinite for all \(k\geq 1\text{.}\)
Let \(A_0=X\text{.}\) Assuming \(k\geq 1, A_{k-1}\) has been constructed, note that \(A_{k-1}\) is totally bounded (subset of totally bounded set is totally bounded). So \(\exists B_1,\dots,B_n\subseteq A_{k-1}\) with \(A_{k-1}=\cup_{i=1}^n B_i\) and \(\text{diam}(B_i)\leq \frac{1}{k}\text{.}\) Since \(\{{m\geq 1}\,:\,{x_m\in A_{k-1}}\}=\cup_{i=1}^n\{{n\geq 1}\,:\,{x_m\in B_i}\}\) is infinite, there is an \(i_0\in\{1,\dots,n\}\) such that \(\{{m\geq 1}\,:\,{x_m\in B_{i_0}}\}\) is infinite. Set \(A_k=B_{i_0}\text{.}\) Now construct \((x_{n_k})_{k=1}^\infty\) as follows: Since \(\{{n\geq 1}\,:\,{x_n\in A_1}\}\) is infinite, it's not empty, so there exist \(n_1\geq 1\) with \(x_{n_1}\in A_1\text{.}\) Now if \(n_k\) has been constructed, then \(\{{n\geq 1}\,:\,{x_n\in A_{k+1}}\}\) is infinite, and hence \(\{{n\geq 1}\,:\,{x_n\in A_{k+1}}\}\setminus\{1,2,\dots,n_k\}\) is non-empty. Choose \(n_{k+1}\in\mathbb{Z}\) with \(n_{k+1}>n_k\) and \(x_{n_{k+1}}\in A_{k+1}\text{.}\) Then \((x_{n_k})_{k=1}^\infty\) is a subsequence of \((x_n)_{n=1}^\infty\) with \(x_{n_k}\in A_k\) for all \(k\geq 1\text{.}\)
We now show \((x_{n_k})_{k=1}^\infty\) is Cauchy. Fix \(\varepsilon>0\text{.}\) Choose \(N\geq 1\) with \(\frac{1}{N}<\varepsilon\text{.}\) Fix \(k,l\in \mathbb{Z}\text{,}\) \(k,l\geq N\text{.}\) Then \(x_{n_k}\in A_k\subseteq A_n\) and \(x_{n_l}\in A_l\subseteq A_N\) (by condition (i)). So \(d(x_{n_k},x_{n_l})\leq \text{diam}(A_N)\leq \frac{1}{N}<\varepsilon\) (condition (ii)). So \((x_{n_k})_{k=1}^\infty\) is Cauchy.
(\(\impliedby\)) [wts every sequence has a Cauchy subsequence implies totally bounded]
Suppose \(X\) is not totally bounded. Then exists \(\varepsilon>0\) such that for all \(B_1,\dots,B_n\) with \(\text{diam}(B_i)<\varepsilon\) we have \(X\neq \cup_{i=1}^nB_i\text{.}\) Let \(x_i\in X\text{.}\) (note: \(X\neq \emptyset\) since \(\emptyset\) is totally bounded) Assume we've constructed \(x_1,\dots x_k\in X\) with \(d(x_i,x_j)\geq \varepsilon/2\) for all \(i,j=1,\dots,k\) with \(i\neq j\text{.}\) Since \(\text{diam}(B_{\frac{\varepsilon}{2}}(x_i))\leq \varepsilon\) for all \(i=1,\dots,k\) (triangle inequality) we have \(X\neq \cup_{i=1}^kB_{\frac{\varepsilon}{2}}(x_i)\) so exists \(x_{k+1}\in X\) with \(d(x_i,x_{k+1})\geq \frac{\varepsilon}{2}\text{.}\) So we've constructed a sequence \((x_n)_{n=1}^\infty \subseteq X\) with \(d(x_i,x_j)\geq \frac{\varepsilon}{2}\) for all \(i\neq j\) so \((x_n)_{n=1}^\infty\) has no Cauchy subsequence.
(\(\impliedby\)) holds for all metric spaces.
(\(\implies\)) If \(A\) is bounded, then every sequence \((a_n)_{n=2}^\infty \subseteq A\) is bounded, and so \((a_n)_{n=2}^\infty\) has a subsequence in \(\mathbb{C}^n\) by the Bolzano-Weierstrass Theorem (or by the Heine-Borel theorem applied to \(\overline{A}\)). So \((a_n)_{n=2}^\infty\) has a Cauchy subsequence.

Definition 4.65. Finite Intersection Property.

A collection of sets \((F_i)_{i\in I}\) has the finite intersection property if whenever \(J\subseteq I\) is finite, \(\cap_{j\in J}F_j\neq \emptyset\text{.}\)
  1. (1)\(\implies\)(2) already shown
  2. (2)\(\implies\)(3) S uppose \(X\) is totally bounded and complete. Also, suppose (3) fails and fix an open cover \((U_i)_{i\in I}\) of \(X\) with no finite subcover.
    Claim 1: there is a sequence of points \((y_n)_{n=1}^\infty\subseteq X\) such that for all \(n\geq 1,J\subseteq I\) finite, \(\cap_{k=1}^n\overline{B_{\frac{1}{k}}(y_k)}\not\subseteq\cup_{i\in J}U_i\text{.}\)
    We'll construct \((y_n)_{n=1}^\infty\) by induction on \(n\text{.}\) To construct \(y_1\text{:}\) Since \(X\) is totally bounded, there is a finite set \(X_1\subseteq X\) with \(X=\cup_{y\in X_1}B_1(y)\text{.}\) Then also, \(\cup_{y\in X_1}\overline{B_1(y)}=X\text{.}\) Suppose ftsoc that for all \(y\in X_1 \exists\) finite \(J_y\subseteq I\) with \(\overline{B_1(y)}\subseteq \cup_{i\in J_y}U_i\text{.}\) Then if \(J=\cup_{y\in X_1}J_y\subseteq I\) then \(J\) is finite and \(X=\cup_{i\in J}U_i\text{.}\) So exists \(y_1\in X_1\) such that \(\overline{B_1(y)}\) is not covered by finitely many \(U_i\text{.}\) Suppose \(y_1,\dots,y_n\) have been constructed so that \(\cap_{k=1}^n\overline{B_{\frac{1}{k}}(y_k)}\) is not covered by finitely many \(U_i\text{.}\) Since \(X\) is totally bounded, exists finite set \(X_{n+1}\subseteq X\) with \(X=\cup_{y\in X_{n+1}}\overline{B_{\frac{1}{n+1}}(y)}\text{.}\) Then \(\cap_{k=1}^n\overline{B_{\frac{1}{k}}(y_k)}=\cup_{y\in X_{n+1}}((\cap_{k=1}^n\overline{B_{\frac{1}{k}}(y_k)})\cap \overline{B_{\frac{1}{n+1}}(y)})\)
    Since \(\cup_{y\in X_{n+1}}((\cap_{k=1}^n\overline{B_{\frac{1}{k}}(y_k)})\cap \overline{B_{\frac{1}{n+1}}(y)})\) is not covered by finitely many \(U_i\) and \(X_{n+1}\) is finite, there is a \(y_{n+1}\in X_{n+1}\) so that \(\cap_{k=1}^{n+1}\overline{B_{\frac{1}{k}}(y_k)}\) is not covered by finitely many \(U_i\text{.}\)
    Claim 2: \((y_n)_{n=1}^\infty\) is Cauchy.
    Fix \(\varepsilon>0\text{.}\) Let \(N\geq 1\) be such that \(\frac{1}{N}<\frac{\varepsilon}{2}\text{.}\) Suppose \(n,m\geq N\text{.}\) Since \(\cap_{k=1}^{\max\{n,m\}}\overline{B_{\frac{1}{k}}(y_k)}\) is not covered by finitely many \(U_i\text{,}\) we have \(\cap_{k=1}^{\max\{n,m\}}\overline{B_{\frac{1}{k}}(y_k)}\) is not empty. In particular, \(\overline{B_{\frac{1}{n}}(y_n)}\cap \overline{B_{\frac{1}{m}}(y_m)}\text{.}\) Fix \(z\in\overline{B_{\frac{1}{n}}(y_n)}\cap \overline{B_{\frac{1}{m}}(y_m)}\text{.}\) Then \(d(y_n,y_m)\leq d(y_n,z)+d(z,y_m)\leq \frac{1}{n}+\frac{1}{m}<\varepsilon\text{.}\)
    Claim 3: Exists \(n\geq 1\text{,}\) \(i_0\in I\) so that \(\overline{B_{\frac{1}{n}}(y_n)}\subseteq U_{i_0}\text{.}\)
    Note: This implies \(\cap_{k=1}^n\overline{B_{\frac{1}{k}}(y_k)}\) is covered by finitely many \(U_i\text{.}\) This contradicts step 1, which will finish the proof.
    As \(X\) is complete (by (2)) and \((y_n)_{n=1}^\infty\) is Cauchy by claim 2, we can define \(y=\lim_{n\rightarrow\infty}y_n\text{.}\) Then \(y\in X=\cup_{i\in I}U_i\text{,}\) so exists \(i_0\in I\) with \(y\in U_{i_0}\text{.}\) Fix \(\varepsilon>0\) with \(B_\varepsilon(y)\subseteq U_{i_0}\text{.}\) Fix \(N\geq 1\) such that for all \(n\geq N,\) we have \(d(y_n,y)<\frac{\varepsilon}{2}\text{.}\) Then fix \(n\geq N\) with \(\frac{1}{n}<\frac{\varepsilon}{2}\text{.}\) We'll show that \(\overline{B_{\frac{1}{n}}(y_n)}\subseteq U_{i_0}\) as claimed. Fix \(z\in B_{\frac{1}{n}}(y_n)\text{.}\) Then \(d(z,y_n)<\frac{1}{n}\) and \(d(y_n,y)<\frac{\varepsilon}{2}\text{,}\) and so \(d(z,y)<\frac{1}{n}+\frac{\varepsilon}{2}(<\varepsilon)\text{.}\) This shows that \(B_{\frac{1}{n}(y_n)}\subseteq B_{\frac{1}{n}+\frac{\varepsilon}{2}}(y)\) and so \(\overline{B_{\frac{1}{n}(y_n)}}\subseteq \overline{B_{\frac{1}{n}+\frac{\varepsilon}{2}}(y)}\subseteq \{{z\in X}\,:\,{d(z,y)\leq \frac{1}{n}+\frac{\varepsilon}{2}}\}\subseteq B_{\varepsilon}(y)\subseteq U_{i_0}\text{.}\)
    thus (2)\(\implies\)(3)
  3. (3)\(\implies\)(4) (proved by contrapositive)
    Suppose (3) holds. To show (4) suppose \((F_i)_{i\in I}\) is a collection of closed sets with \(\cap_{i\in I}F_i= \emptyset\text{.}\) We want to show that there is a finite set \(J\subseteq I\) with \(\cap_{j\in J}F_j= \emptyset\text{.}\) Then \(X\setminus F_i\subseteq X\) is open for all \(i\in I\) and \(\cup_{i\in I}(X\setminus F_i)=X\setminus(\cap_{i\in I}F_i)=X\setminus\emptyset=X\text{.}\) So \((X\setminus F_i)_{i\in I}\) is an open cover of \(X\text{.}\) By (3), there is a finite set \(J\subseteq I\) with \(\cup_{i\in J}(X\setminus F_i)=X\text{.}\) Then \(X=\cup_{i\in J}(X\setminus F_i)=X\setminus(\cap_{i\in J}F_i)\) and so \(\cap_{i\in J}F_i=\emptyset\)
  4. Suppose \(S\subseteq X\) is an infinite set. Let \(\mathcal{S}=\{{T\subseteq S}\,:\,{T\text{ is finite}}\}\) and let \(F_T=\overline{S\setminus T}\subseteq X\) for \(T\in \mathcal{S}\text{.}\) We'll show \((F_T)_{T\in \mathcal{S}}\) has the finite intersection property. Suppose \(T_1,\dots,T_n\in\mathcal{S}\text{.}\) Then \(\cap_{i=1}^n F_{T_i}=\cap_{i=1}^n\overline{S\setminus T_i}\supseteq\cap_{i=1}^n{S\setminus T_i}=S\setminus(\cup_{i=1}^n T_i)\text{.}\) Since \(S\) is infinite and \(\cup_{i=1}^n T_i\) is finite, \(\cap_{i=1}^n F_{T_i}\neq\emptyset\text{.}\) We show If \(x\in\cap_{T\in \mathcal{S}}F_T\) then \(x\) is a cluster point for \(S\text{.}\) Suppose \(x\in\cap_{T\in \mathcal{S}}F_T\text{.}\) We need to show \(x\in \overline{S\setminus\{x\}}\text{.}\) If \(x\notin S\text{,}\) then \(x\in\cap_{T\in\mathcal{S}}F_T\subseteq F_\emptyset=\overline{S}\text{.}\) (\(\emptyset\in\mathcal{S}\)). As \(x\notin S,S\setminus\{{x}\}=S,\) so \(x\in \overline{S\setminus \{{x}\}}\text{.}\) If \(x\in S\text{,}\) then \(x\in\cap_{T\in\mathcal{S}}F_T\subseteq F_{\{{x}\}}=\overline{S\setminus\{{x}\}}\text{.}\) (\(\{{x}\}\in\mathcal{S}\)) By (a) and (4), \(\cap_{T\in\mathcal{S}}F_T\neq \emptyset\text{.}\) Then by (b) \(S\) has a cluster point. Hence (5) holds.
  5. (5)\(\implies\)(1) Assume (5) and \((x_n)_{n=1}^\infty\subseteq X\) is a sequence. If \((x_n)_{n=1}^\infty\) has a constant subsequence, then it has a convergent subsequence.
    Suppose \((x_n)_{n=1}^\infty\) has no constant subsequence. Therefore \(\{{x_n}\,:\,{n\geq 1}\}\subseteq X\) is infinite. By (5), \(\{{x_n}\,:\,{n\geq 1}\}\) has a cluster point \(x\in X\text{.}\) Note first that \(\exists N\geq 1\) such that \(x_n\neq x\,\forall n\geq N\) since otherwise there would be a subsequence \((x_{n_k})_{k=1}^\infty\) of \((x_n)_{n=1}^\infty\) such that \(x_{n_k}=x\) for all \(k\geq 1,\) but we've assumed \((x_n)_{n=1}^\infty\) has no constant subsequence. Note also that for all \(M\geq 1\text{,}\) \(x\in\overline{\{{x_{M+1},x_{M+2},\dots}\}\subseteq X}\text{.}\) Then since \(x\in\overline{\{{x_{N},x_{N+1},\dots}\}}\) exists \(n_1\geq N\) with \(d(x,x_{n_1})<1\text{.}\)
    Now since \(x\in\overline{\{{x_{n_1+1},x_{n_1+2},\dots}\}}\text{,}\) exists \(n_2\geq n_1+1\) with \(d(x,x_{n_2})<\frac{1}{2}\text{.}\) Continue inductively to produce \({n_{k+1}}\geq {n_k+1}\) with \(d(x,x_{n_{k+1}})<\frac{1}{k+1}\text{.}\) Then \((x_{n_k})_{k=1}^\infty\) is a subsequence of \((x_n)_{n=1}^\infty\) and \(x=\lim_{k\rightarrow\infty}x_{n_k}\text{.}\)