Compactness and the Heine-Borel Theorem
Compactness is a topological property that generalizes "closed and bounded." The Heine–Borel Theorem states that a subset of is compact if and only if it is closed and bounded. Applies throughout real analysis, topology, and optimization wherever existence of maxima, uniform continuity, or convergent subsequences is needed. Named after Eduard Heine (who used the underlying idea c. 1872) and Émile Borel (who proved the covering form in 1895).
Compactness is finiteness in disguise. It says you can always replace "infinitely many open sets covering " with "finitely many of them." This single trick lets local information (defined patchwise on the cover) be glued into global, uniform information. Heine–Borel identifies exactly which subsets of Euclidean space enjoy this trick: precisely the closed and bounded ones.
Formal Statement
Let be a subset of a topological space . A collection of open sets is an open cover of if
Derivation hint: This is the defining inclusion — every point of lies in at least one . A finite subcover is a finite subcollection that still covers:
Derivation hint: Restrict the index set to a finite subset while preserving the covering inclusion. Here is the ambient space, the subset under study, an arbitrary (possibly uncountable) index set, and each an open set of .
A subset is compact if every open cover of has a finite subcover. Symbolically,
Derivation hint: Universally quantify over covers, existentially over finite subcollections — this is the literal reading of the definition.
A set in a metric space is bounded if it lies inside some ball:
Derivation hint: One reference point and one finite radius enclose the whole set. It is totally bounded if for every it can be covered by finitely many -balls:
Derivation hint: Total boundedness strengthens boundedness by demanding finite covers at every scale , not just one large ball.
Let with the standard Euclidean metric. The following are equivalent: 1. is compact (every open cover has a finite subcover); 2. is sequentially compact (every sequence in has a subsequence converging to a point of ); 3. is closed and bounded; 4. is complete and totally bounded.
Derivation hint: The headline equivalence (1) ⇔ (3) is the classical Heine–Borel statement; the other equivalences hold in any metric space and the dimensional finiteness of is what links them to "closed and bounded."
The equivalence (3) ⇔ compactness is special to (and finite-dimensional normed spaces). In a general metric space, "closed and bounded" does not imply compact. The correct general equivalence is complete + totally bounded, statement (4).
Why It Holds
We prove the harder direction of [6] for .
Step 1 — Reduce to a closed box. Since is bounded, for some closed cube
Derivation hint: Boundedness [4] places in a ball, which sits inside a cube of side . It suffices to show is compact: a closed subset of a compact set is compact (a cover of together with the open set covers ; extract a finite subcover and discard ).
Step 2 — Bisection / nested boxes. Suppose, for contradiction, that some open cover of has no finite subcover. Bisect into congruent subcubes by halving each side. If all pieces admitted finite subcovers, their union would too. Hence at least one subcube has no finite subcover. Iterate to obtain nested cubes
Derivation hint: Each bisection halves the side length, hence halves the diameter; the diameter tends to .
Step 3 — Nested interval / completeness. Each is a nonempty compact box, and the diameters shrink to . By completeness of (Cantor's nested-set property),
Derivation hint: A decreasing sequence of nonempty closed sets with diameter in a complete space has a single common point.
Step 4 — Contradiction. Since covers , some contains ; as is open there is with . Choose so large that . Then , so alone is a finite subcover of — contradicting that had no finite subcover. Hence (and therefore ) is compact.
∎Bounded. Fix and cover by the expanding balls . A finite subcover has a largest radius , so : is bounded, satisfying [4].
Closed. Let . For each , set ; the balls cover . Extract a finite subcover , and let . Then is disjoint from every , hence disjoint from . So is open and is closed.
∎French mathematician who, in his 1894 thesis and 1895 paper, proved that a countable open cover of a closed bounded interval has a finite subcover — the first explicit "covering" statement. The result was later extended to arbitrary (uncountable) covers by Lebesgue, Schoenflies, and others. Borel went on to found modern measure theory (Borel sets, Borel measure) and made early contributions to probability and game theory. The "Heine" half of the name honors Eduard Heine, who in 1872 used the underlying compactness idea to prove that continuous functions on closed intervals are uniformly continuous.
Building Intuition
Think of an open cover as a fleet of overlapping "spotlights," each illuminating an open region. Compactness says: no matter how you arrange infinitely many spotlights to light up , you can switch off all but finitely many and still keep fully lit. A set fails compactness when it can "escape to the boundary or to infinity" — either by leaking out through a missing endpoint (not closed) or stretching off forever (not bounded). The bisection proof is a "divide and conquer": if no finite team of spotlights works, keep cutting the region in half, always keeping a troublesome piece; these pieces zoom in on a single point , but the one spotlight covering floods a whole neighborhood — large enough to swallow a tiny piece. Contradiction.
Worked Examples
Given. Decide whether each set is compact: (a) , (b) , (c) .
Steps.
- (a) is closed (contains both endpoints) and bounded (lies in ). By Heine–Borel [6], compact.
- (b) is bounded but not closed — the point is a limit point not in . Explicit escaping cover: . Any finite subcollection has a largest , covering only , missing points near . No finite subcover ⟹ not compact.
- (c) is bounded (in ) and closed (its only limit point is included). Given any cover, one set contains , hence all but finitely many ; cover the remaining finitely many points with one set each. Finite subcover exists.
Answer.
Given. on the closed disk . Show attains a maximum and find it.
Steps.
- is closed and bounded in , hence compact by [6]. Since is continuous, the Extreme Value Theorem guarantees a max and min are attained on .
- Interior critical points: , inside . There .
- Boundary : substitute , so for . Maximize : , giving . Check endpoints: .
Answer.
Compactness is exactly what licenses the assertion that these extrema exist before we compute them.
Common Misconceptions
"Closed and bounded means compact, always." False outside finite-dimensional spaces. The correct general characterization is complete + totally bounded [5]. In closed ⇒ complete and bounded ⇒ totally bounded, which is why the simpler criterion works there — but this implication "bounded ⇒ totally bounded" fails in infinite dimensions.
"Compactness = bounded." Boundedness alone is never enough: is bounded but not compact. And closedness alone is never enough: is closed but not compact. You need both in .
Let be the space of square-summable real sequences with , and let be its closed unit ball. Consider the standard basis vectors (the in position ). Each , so , and for ,
Derivation hint: The two unit entries sit in different coordinates, so the difference has two nonzero components each equal to . No subsequence of is Cauchy (all pairwise distances are ), so none converges. Thus is closed and bounded yet not sequentially compact, hence not compact. This shows Heine–Borel genuinely uses finite dimension. (In fact, Riesz's theorem: a normed space has compact closed unit ball iff it is finite-dimensional.)
Connections
Compactness threads through the whole of analysis. Via Sequential Compactness and the Bolzano–Weierstrass Theorem, it guarantees convergent subsequences. It underwrites the Extreme Value Theorem (continuous functions on compact sets attain extrema) and the Uniform Continuity Theorem (continuous on compact ⇒ uniformly continuous). The metric characterization "complete + totally bounded" links it to Completeness of Metric Spaces and Cauchy Sequences. Topologically it generalizes to Tychonoff's Theorem for products and interacts with Connectedness (continuous images of compact connected sets are compact and connected). The failure in infinite dimensions motivates Weak Topologies and Banach–Alaoglu Theorem, the right substitute in functional analysis.
Real-World Applications
Historical Development
Subtleties & Limits
Compactness has subtle set-theoretic and infinite-dimensional dependencies that remain pedagogically and foundationally delicate:
- Choice dependence. Tychonoff's theorem (arbitrary products of compacts are compact) is equivalent to the Axiom of Choice. Even the equivalence of "compact" and "sequentially compact" can fail in general topological spaces and depends on countable choice in some metric arguments. Determining the precise choice strength of various compactness statements is the domain of reverse mathematics; many such calibrations are ongoing research.
- Infinite-dimensional substitutes. Since norm-compactness is too strong in function spaces, one replaces it with weak and weak-\* compactness (Banach–Alaoglu, Eberlein–Šmulian). Characterizing which sets are weakly compact, and how compactness interacts with reflexivity, drives modern functional analysis.
- Quantitative compactness. Replacing the qualitative finite-subcover property with quantitative measures (entropy numbers, Kolmogorov widths, metric entropy of totally bounded sets) is central to approximation theory and statistical learning; sharp entropy estimates for many natural classes remain open.
See Also
Bolzano–Weierstrass Theorem · Sequential Compactness · Connectedness · Completeness of Metric Spaces · Total Boundedness · Tychonoff's Theorem · Extreme Value Theorem · Riesz's Lemma