Characterisations of compactness
Statement
Let \((X,d)\) be a metric space. Then \(X\) is compact — every open cover of \(X\) admits a finite subcover — if and only if \(X\) is sequentially compact — every sequence \((x_n)_{n\in\mathbb{N}}\) in \(X\) has a subsequence converging to a point of \(X\). The equivalence holds for \(X\) itself and, by restricting the metric, for any subset \(K\subseteq X\) (with the subspace metric) taken with its induced topology.
Why it matters
Compactness is defined topologically (via open covers) and makes sense in any topological space, but that definition is awkward to verify directly. Sequential compactness is defined analytically (via subsequences) and is exactly the tool used throughout analysis: Bolzano–Weierstrass, existence of extrema of continuous functions, Arzelà–Ascoli-type arguments, and convergence proofs all proceed by extracting convergent subsequences. This theorem certifies that in the metric setting — where almost all of undergraduate analysis lives — these two completely different-looking notions are interchangeable, so one may freely use whichever is more convenient in a given argument.
The result is also a cautionary tale: it is special to metric (indeed metrizable) spaces. In general topological spaces the two notions diverge, and conflating them is a classic source of error once one moves to function spaces with non-metrizable topologies (e.g. weak-\(*\) topologies on infinite-dimensional duals restricted to non-separable settings).
Hypotheses
Proof
We prove both implications. Throughout, \(B(x,r)=\{y\in X: d(x,y)\lt r\}\) denotes the open ball.
Result
Reading. In a metric space, "every open cover has a finite subcover" and "every sequence has a convergent subsequence" describe exactly the same phenomenon. The forward direction is a direct diagonal/contrapositive argument; the reverse direction routes through two auxiliary metric facts — total boundedness and the Lebesgue number lemma — both of which genuinely use the metric, not just the topology.
Scope. Valid for any metric space, hence for any metrizable topological space (transport the metric along a homeomorphism). It also applies verbatim to subspaces \(K\subseteq X\) with the induced metric. It does not extend to general topological spaces, where compactness, sequential compactness, and countable compactness are three genuinely distinct properties.
Corollaries & converses
- Bolzano–Weierstrass theorem for \(\mathbb{R}^n\): closed bounded subsets of \(\mathbb{R}^n\) are compact (via Heine–Borel) and hence, by this theorem, sequentially compact — every bounded sequence has a convergent subsequence.
- A metric space is compact iff it is complete and totally bounded (combine step 4 with the standard fact that sequentially compact spaces are complete: every Cauchy sequence has a convergent subsequence and hence converges).
- Compact metric spaces are separable and second countable (finite \(1/n\)-nets for each \(n\) union to a countable dense set), which is what licenses restricting attention to countable subcovers in some treatments.
- Continuous images of compact metric spaces are compact, and (using sequential compactness directly) continuous real-valued functions on them attain their supremum and infimum — the extreme value theorem.
- Converse: both directions proved above are genuine "iff" statements — there is no separate converse to check; the theorem already asserts logical equivalence, established independently in each direction (steps 1–3 and steps 4–8).
Fails without
- Dropping "metric" (general topology, forward direction fails): the space \(\{0,1\}^{[0,1]}\) with the product topology is compact (Tychonoff) but not sequentially compact — the sequence of functions \(f_n(t) = \) the \(n\)-th binary digit of \(t\) has no pointwise-convergent subsequence, because any candidate subsequence can be shown (via a diagonal/pigeonhole argument on a suitable uncountable set of coordinates) to fail to converge at some coordinate.
- Dropping "metric" (general topology, reverse direction fails): the space of countable ordinals \([0,\omega_1)\) with the order topology is sequentially compact (every sequence is eventually bounded below some countable ordinal, which has compact closure) but not compact — the cover by initial segments \([0,\alpha)\) for \(\alpha\lt\omega_1\) has no finite subcover, since a finite union of initial segments is again an initial segment bounded below \(\omega_1\).
- Dropping total boundedness alone (step 4) while keeping the space merely complete: the closed unit ball of \(\ell^2\) with its norm metric is complete but not totally bounded (the standard basis vectors \(e_n\) satisfy \(d(e_i,e_j)=\sqrt2\) for \(i\ne j\), admitting no finite \(1\)-net), so it is neither compact nor sequentially compact — confirming that total boundedness is not automatic even for complete metric spaces, and genuinely does the work in step 4.
Common errors
- Assuming "closed and bounded" implies compact in an arbitrary metric space — this is Heine–Borel, special to \(\mathbb{R}^n\) (finite dimension); in \(\ell^2\) the closed unit ball is closed and bounded but not compact, as shown above.
- Proving only the easy direction (compact \(\implies\) sequentially compact via step 1–3) and believing the converse is "obviously similar" — the reverse direction is strictly harder and requires total boundedness plus the Lebesgue number lemma; there is no short symmetric argument.
- Misstating the Lebesgue number lemma as "every open set in the cover has radius at least \(\delta\)" rather than "every ball of radius \(\delta\) is contained in some member of the cover" — these are different statements, and only the latter is true and useful.
- Forgetting that a subsequence of a Cauchy sequence converging forces the whole sequence to converge (not just the subsequence) when concluding completeness from sequential compactness — this step needs its own short triangle-inequality argument, silently skipped by many students.
- Conflating "sequentially compact" with "every sequence converges" — it only guarantees a convergent subsequence exists, not that the original sequence converges (e.g. \((-1)^n\) in \([-1,1]\) does not converge but has convergent subsequences).
Discussion
The theorem is one of the clearest instances in analysis of two conceptually different definitions of the same idea turning out to coincide under an extra structural hypothesis (metrizability). Historically, sequential compactness (via Bolzano–Weierstrass-style arguments) predates the modern open-cover definition of compactness, which emerged from the general topology developed by Fréchet, Hausdorff, and Alexandroff in the early twentieth century as topologists sought a notion robust enough to survive without a metric. The open-cover definition turned out to be the "right" one for category-theoretic and topological purposes (it is preserved by continuous images, behaves well with products via Tychonoff, and needs no metric), while sequential compactness remained the practically useful one for analysts, since most classical arguments (extracting a convergent subsequence of approximating functions, minimising sequences, etc.) are literally sequence-based.
The proof structure reveals why metrizability is exactly the right hypothesis: total boundedness (step 4) and the Lebesgue number lemma (step 5) both manufacture, from a merely sequential hypothesis, control over arbitrarily small balls uniformly across the whole space — and "ball" only makes sense once a metric is present. Without a metric there is no notion of ball radius to make these arguments go through, and indeed both directions of the equivalence can fail, as the \(\{0,1\}^{[0,1]}\) and \([0,\omega_1)\) examples above show independently.
A more refined statement subsumes this theorem: in a metric space, compact, sequentially compact, countably compact, and complete-plus-totally-bounded are all equivalent — a chain of four mutually implying conditions, of which this theorem supplies one edge (and, via completeness, effectively the whole cycle once one notes sequentially compact \(\implies\) complete is immediate from Cauchy subsequences converging). This full equivalence is sometimes packaged as "in metric spaces, compactness has no exotic variants," in deliberate contrast to general topology where at least four inequivalent compactness-type properties coexist (compact, countably compact, sequentially compact, pseudocompact).
Common misconception: students sometimes believe compactness is "basically the same as closed and bounded" as a matter of definition rather than a theorem (Heine–Borel) special to \(\mathbb{R}^n\); the present theorem is frequently — and wrongly — assumed to make this automatic in any metric space, when in fact total boundedness (not mere boundedness) is the correct metric-space generalisation, and the \(\ell^2\) unit ball counterexample shows bounded plus closed plus complete is still not enough.
Worked examples
Reading. Rather than exhibiting a finite subcover for an arbitrary open cover of \(K\) by hand (annoying, because a cover element containing \(0\) must absorb all but finitely many of the \(1/n\)), we used the theorem to transfer the easy sequential check into the compactness conclusion.
Reading. A single badly-behaved sequence, with no need to construct any open cover explicitly, certifies non-compactness via the contrapositive direction of the theorem — illustrating why the sequential criterion is often the practically easier one to check.
Problems
- Prove directly (without citing this theorem) that \([0,1]\) is sequentially compact, using the Bolzano–Weierstrass theorem for bounded sequences in \(\mathbb{R}\).
Solution
Let \((x_n)\) be a sequence in \([0,1]\). It is bounded (by \(0\) and \(1\)), so by the Bolzano–Weierstrass theorem it has a convergent subsequence \(x_{n_k}\to L\) for some \(L\in\mathbb{R}\). Since \([0,1]\) is closed in \(\mathbb{R}\) and \(x_{n_k}\in[0,1]\) for all \(k\), the limit \(L\) also lies in \([0,1]\) (limits of sequences in a closed set stay in the set). Hence every sequence in \([0,1]\) has a subsequence converging to a point of \([0,1]\): \([0,1]\) is sequentially compact. - Using the theorem, deduce that \([0,1]\) is compact from the previous problem, then explain why this gives an independent proof of Heine–Borel for the interval \([0,1]\) (without invoking Heine–Borel itself).
Solution
By problem 1, \([0,1]\) is sequentially compact. The theorem (sequentially compact \(\implies\) compact, steps 4–8 of the proof) then gives directly that \([0,1]\) is compact in the open-cover sense. This is independent of Heine–Borel because the only inputs used were the Bolzano–Weierstrass theorem (a statement about \(\mathbb{R}\)) and the general metric-space machinery of total boundedness and the Lebesgue number lemma — Heine–Borel itself (closed+bounded \(\iff\) compact in \(\mathbb{R}^n\)) was never invoked; indeed this argument can be used to prove the "closed and bounded \(\implies\) compact" half of Heine–Borel in \(\mathbb{R}^n\) via generalising problem 1 to boxes. - Let \((X,d)\) be a metric space and \(K_1\supseteq K_2\supseteq K_3\supseteq\cdots\) a decreasing chain of nonempty compact subsets. Using sequential compactness, prove \(\bigcap_{n=1}^\infty K_n \ne \emptyset\) (Cantor's intersection property).
Solution
Pick \(x_n\in K_n\) for each \(n\) (possible since each \(K_n\) is nonempty). Since \(K_1\) is compact, it is sequentially compact by the theorem, and as \(x_n\in K_1\) for all \(n\), there is a subsequence \(x_{n_k}\to x^*\) with \(x^*\in K_1\) (limits in a compact, hence closed, set stay inside it — compact subsets of metric spaces are closed). Fix any \(m\); for all \(n_k\ge m\) we have \(x_{n_k}\in K_{n_k}\subseteq K_m\) since the chain is decreasing, so the tail of the subsequence lies in \(K_m\); as \(K_m\) is compact hence closed, the limit \(x^*\) also lies in \(K_m\). Since \(m\) was arbitrary, \(x^*\in\bigcap_{n=1}^\infty K_n\), so the intersection is nonempty. - Give an explicit open cover of \((0,1]\) that has no finite subcover, confirming the conclusion of Worked Example 2 directly from the open-cover definition.
Solution
Take \(\mathcal{U}=\{U_n : n\in\mathbb{N}\}\) with \(U_n=(1/n,\,2)\), each an open subset of \(\mathbb{R}\) intersected with \((0,1]\) to give open sets in the subspace \((0,1]\) (or simply note \(U_n\cap(0,1]=(1/n,1]\) is open in the subspace topology). For any \(x\in(0,1]\), choose \(n\gt 1/x\), so \(x\in U_n\); thus \(\mathcal{U}\) covers \((0,1]\). Given any finite subfamily \(U_{n_1},\dots,U_{n_k}\), let \(N=\max(n_1,\dots,n_k)\); the union of the subfamily equals \(U_N=(1/N,1]\) (the largest of the sets, since they are nested increasing), which excludes the point \(1/(N+1)\in(0,1]\). Hence no finite subfamily covers \((0,1]\), matching the non-compactness established via sequences. - Let \((X,d)\) be a metric space. Prove that if \(X\) is compact then \(X\) is complete (every Cauchy sequence converges), using the theorem together with the standard fact that a Cauchy sequence with a convergent subsequence converges to the same limit.
Solution
Let \((x_n)\) be a Cauchy sequence in \(X\). Since \(X\) is compact, by the theorem \(X\) is sequentially compact, so \((x_n)\) has a subsequence \(x_{n_k}\to L\) for some \(L\in X\). We claim \(x_n\to L\). Let \(\varepsilon\gt0\); since \((x_n)\) is Cauchy, choose \(N\) so that \(d(x_n,x_m)\lt\varepsilon/2\) for all \(n,m\ge N\); since \(x_{n_k}\to L\), choose \(k\) with \(n_k\ge N\) and \(d(x_{n_k},L)\lt\varepsilon/2\). Then for any \(n\ge N\), \(d(x_n,L)\le d(x_n,x_{n_k})+d(x_{n_k},L)\lt\varepsilon/2+\varepsilon/2=\varepsilon\) by the triangle inequality. Hence \(x_n\to L\), so every Cauchy sequence in \(X\) converges: \(X\) is complete.