Compactness — Heine-Borel and Bolzano-Weierstrass
Compactness is a topological property generalizing "closed and bounded." For subsets of , the Heine–Borel theorem says compact = closed and bounded, while the Bolzano–Weierstrass theorem says every bounded sequence has a convergent subsequence. These results are the cornerstone of real analysis, guaranteeing maxima, uniform continuity, and the convergence machinery used throughout calculus, optimization, and differential equations. Named for Eduard Heine, Émile Borel, Bernard Bolzano, and Karl Weierstrass (1817–1895).
Compactness is finiteness in disguise. A compact set is one where any attempt to cover it with infinitely many open pieces always over-covers — finitely many already suffice. Equivalently, no sequence can "escape" — there is always a cluster point inside. This bridges the local (open sets, neighborhoods) and the global (the whole set), letting analysis trade unbounded processes for finite, manageable ones.
Formal Statement
Let be a metric space (or any topological space) and . 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 cover element. A finite subcover is a finite subcollection with
Derivation hint: choose finitely many indices that still cover . is compact if every open cover of has a finite subcover. Here is an arbitrary (possibly uncountable) index set.
is bounded if it fits inside some ball:
Derivation hint: is any radius enclosing ; equivalently . is closed if it contains all its limit points: whenever and , then . is sequentially compact if every sequence in has a subsequence converging to some limit :
Derivation hint: extract indices so the resulting subsequence has a limit inside .
A subset is compact if and only if it is closed and bounded.
Derivation hint: the forward direction holds in any metric space; the converse uses the completeness and finite-dimensionality of .
Every bounded sequence in has a convergent subsequence. Consequently, a subset is compact iff it is sequentially compact. In a general metric space:
Derivation hint: in metric spaces the three notions coincide; "totally bounded" replaces "bounded" once you leave .
Why It Holds / Derivation
We show every bounded real sequence has a convergent subsequence.
Step 1. Since is bounded, all terms lie in an interval of length .
Step 2. Bisect into two halves. At least one half contains for infinitely many indices ; call it , of length .
Step 3. Repeat. Inductively obtain nested intervals
Derivation hint: each bisection halves the length and keeps the half containing infinitely many terms. each containing infinitely many terms of the sequence.
Step 4. By the Nested Interval Property (a form of completeness of ),
Derivation hint: lengths and the intervals are nested, so the intersection is a single point . is a single point.
Step 5. Build the subsequence greedily: choose with ; having chosen , pick with (possible because holds infinitely many terms). Then , so . For , apply the result coordinate-by-coordinate: extract a subsequence convergent in coordinate 1, then a further subsequence convergent in coordinate 2, and so on through coordinate .
∎(⇒) Compact ⟹ closed and bounded. Bounded: The balls form an open cover of . A finite subcover is contained in the largest ball , so is bounded. Closed: Suppose . For each let . The balls cover ; take a finite subcover . Set . Then misses all those balls, hence misses , so is not a limit point. Thus the complement of is open and is closed.
(⇐) Closed and bounded ⟹ compact (for ).
Step 1 — the box is compact. First show a closed box is compact, by contradiction. Suppose is an open cover of with no finite subcover. Bisect each edge to split into sub-boxes. At least one sub-box has no finite subcover. Iterate to get nested boxes
Derivation hint: each step halves the diameter; "no finite subcover" passes to at least one child by pigeonhole. none admitting a finite subcover.
Step 2. By completeness, for a single point . Since covers , some contains , and being open, for some .
Step 3. For large, and , so . Then alone is a finite subcover of — contradicting its choice. Hence is compact.
Step 4 — closed subset of compact is compact. Let be closed and bounded; then for some box. Given an open cover of , add the open set to get an open cover of . Extract a finite subcover; discarding leaves finitely many elements of covering .
∎Weierstrass, the "father of modern analysis," made rigor the law of calculus. Working largely from lecture notes (he published little), he supplied the – definitions that tamed limits, constructed the famous everywhere-continuous nowhere-differentiable function, and proved that a continuous function on a closed bounded interval attains its maximum and minimum — the Extreme Value Theorem, a direct child of compactness. The Bolzano–Weierstrass theorem bears his name because he rediscovered and disseminated, with full rigor, the cluster-point principle that Bolzano had stated decades earlier in relative obscurity.
Building Intuition
Think of compactness as "no room to run and no place to leak."
- Bounded stops a sequence from running to infinity.
- Closed stops a sequence from leaking out through a missing boundary point.
Remove either and points can escape. The open interval is bounded but not closed: the sequence tries to converge to , but has leaked out. The set is closed but not bounded: the sequence runs away. Only when both walls are up does every sequence get cornered into a cluster point that stays inside. The open-cover view says the same thing dually: if you try to tile a compact set with infinitely many small open patches, you always waste effort — finitely many already overlap to cover it. Non-compact sets defeat this: cover by for ; no finite subfamily reaches the points near .
Worked Examples
Given: .
Step 1 — bounded: Every satisfies , so works in equation [3]. ✔
Step 2 — closed: The map is continuous, and is the preimage of the closed set , hence closed. If and , then , so . ✔
Step 3 — apply Heine–Borel [5]: Closed and bounded in compact.
(Contrast: the open ball is bounded but not closed, hence not compact — the sequence converges to the boundary point open ball.)
Given: the bounded sequence , , all lying in .
Goal: confirm Bolzano–Weierstrass produces a convergent subsequence and estimate a limit.
Step 1 — boundedness: , so the sequence lives in the compact set . By [6] a convergent subsequence exists.
Step 2 — bisection in action: Split at . Computing terms: . Infinitely many terms accumulate near (whenever is close to a multiple of ).
Step 3 — identify a cluster point: Because is equidistributed (Weyl), the values are dense in ; in particular some subsequence . Indices like (good rational approximations to multiples of ) give ever closer to .
Common Misconceptions
"Closed and bounded always means compact." This is only true in finite-dimensional normed spaces. In an infinite-dimensional space (e.g. or ) the closed unit ball is closed and bounded but not compact. The standard basis vectors satisfy and for , so no subsequence is Cauchy — sequential compactness fails. Heine–Borel is a privilege of .
"Compactness is a property of the set alone." Compactness depends on the subspace topology but is intrinsic: a set is compact or not regardless of ambient space. However, closed and bounded are not intrinsic in the same way — is closed in itself yet not compact. Always check compactness via covers or sequences, not via "closed" applied to the wrong ambient space.
In a general metric space, bounded ≠ totally bounded. Take an infinite set with the discrete metric for . Then has diameter (bounded) and is closed and complete. But the cover by singleton balls has no finite subcover when is infinite. So is bounded and complete yet not compact — it fails to be totally bounded. This shows why [6] upgrades "bounded" to "totally bounded" outside .
Connections
Compactness is the engine behind several pillars of analysis. Via Continuity, it gives the Extreme Value Theorem (continuous image of a compact set is compact, hence attains max/min) and Heine–Cantor uniform continuity. It underlies Uniform Convergence through Dini's theorem and the Arzelà–Ascoli criterion, which characterizes compact sets of functions via equicontinuity. In Metric Spaces it equals "complete + totally bounded"; in general Topological Spaces it is defined purely by open covers, splitting from sequential compactness. It feeds Connectedness (both are "global" topological invariants preserved by continuous maps) and supports Completeness of the Real Numbers, since the Nested Interval Property used in the proofs is itself a completeness axiom.
Real-World Applications
Historical Development
Subtleties & Limits
Several boundaries of compactness reveal deep structure rather than unsolved problems, but they remain conceptually subtle:
- Compactness vs. sequential compactness diverge in general topological spaces. There exist compact spaces (e.g. , the product of continuum-many copies of ) that are not sequentially compact, and sequentially compact spaces that are not compact (e.g. the first uncountable ordinal ). Only for metric spaces do the two coincide.
- Tychonoff's theorem and the Axiom of Choice. The statement "every product of compact spaces is compact" is equivalent to the Axiom of Choice (Kelley, 1950). Restricting to Hausdorff factors weakens it to the (strictly weaker) Boolean Prime Ideal theorem. Thus the strength of compactness in infinite products is entangled with the foundations of set theory.
- Characterizing compact sets in function spaces is delicate and ongoing in applications: the Arzelà–Ascoli (equicontinuity) and Kolmogorov–Riesz (in ) criteria solve special cases, but identifying compact subsets of more exotic spaces drives current functional analysis.
See Also
Metric Spaces · Completeness of the Real Numbers · Connectedness · Uniform Convergence · Extreme Value Theorem · Topological Spaces · Arzelà–Ascoli Theorem · Tychonoff's Theorem