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).

A subset of a metric space is compact if every open cover of admits a finite subcover. This abstract definition is equivalent, in , to the concrete condition that is closed and bounded (Heine–Borel), and to sequential compactness — every sequence in has a subsequence converging to a point of (Bolzano–Weierstrass). Compactness matters because it turns "infinite" problems into "finite" ones: it forces continuous functions to attain extrema, makes them uniformly continuous, and ensures that local information glued together stays controllable. The surprising fact is that the seemingly modest open-cover definition is exactly the right abstraction — in general topological spaces it diverges from "closed and bounded," and the Heine–Borel equivalence is a special privilege of finite-dimensional normed spaces.

The Core Insight

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

Open Cover and Compactness

Let be a metric space (or any topological space) and . A collection of open sets is an open cover of if

1
⟳this is the defining inclusion — every point of lies in at least one cover element.

A finite subcover is a finite subcollection with

2
⟳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.

Boundedness, Closedness, Sequential Compactness

is bounded if it fits inside some ball:
3
⟳ 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 :
4
⟳extract indices so the resulting subsequence has a limit inside .

Heine–Borel

A subset is compact if and only if it is closed and bounded.

5
⟳the forward direction holds in any metric space; the converse uses the completeness and finite-dimensionality of .

Bolzano–Weierstrass

Every bounded sequence in has a convergent subsequence. Consequently, a subset is compact iff it is sequentially compact. In a general metric space:

6
⟳in metric spaces the three notions coincide; "totally bounded" replaces "bounded" once you leave .

Why It Holds / Derivation

Bolzano–Weierstrass in $\mathbb{R}$ via bisection

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
7
⟳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 ),
8
⟳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 .

Heine–Borel, both directions

(⇒) 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
9
⟳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 .

Bisection argument: nested boxes shrink onto a single point, trapped inside one cover element $U$

Q0 Q1 Q2 p U ⊇ B(p,ε) Boxes shrink: diam(Qk) → 0, eventually Qk ⊂ U

Karl Weierstrass | 1815–1897

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

The closed unit ball in $\mathbb{R}^3$ is compact

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.)

Extracting a convergent subsequence numerically

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.

Total boundedness is essential, not mere boundedness

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

  1. Optimization (Weierstrass Extreme Value Theorem): A continuous objective on a compact feasible region attains its global minimum — the existence guarantee behind every well-posed nonlinear program, e.g. minimizing energy of a constrained mechanical system on a closed bounded configuration set.
  2. Numerical analysis: Convergence of fixed-point and subdivision algorithms relies on Bolzano–Weierstrass to extract convergent iterates from bounded sequences (e.g. bisection root-finding, branch-and-bound).
  3. Differential equations (Peano existence theorem): Compactness via Arzelà–Ascoli proves existence of solutions to with continuous , by extracting a convergent subsequence of approximate (Euler) solutions.
  4. Control theory (Pontryagin maximum principle): Compactness of admissible control sets ensures optimal controls exist.
  5. Economics (existence of equilibria): Brouwer/Kakutani fixed-point theorems, used to prove existence of Nash and Walrasian equilibria, require compact convex strategy/price simplices.
  6. Spectral theory & quantum mechanics: Compact operators (limits of finite-rank operators) have discrete spectra accumulating only at — the mathematical reason atomic energy levels are quantized and countable.
  7. Computer graphics & geometry: Compactness of closed bounded surfaces guarantees finite triangulations and that ray–surface intersection searches terminate.

Historical Development

  • 1817 — Bernard Bolzano states and proves a version of the intermediate value theorem, implicitly using the least-upper-bound property and the cluster-point principle now called Bolzano–Weierstrass.
  • 1865–1880s — Karl Weierstrass, in Berlin lectures, rigorously establishes that bounded sequences have convergent subsequences and that continuous functions on closed intervals attain extrema, popularizing – rigor.
  • 1872 — Eduard Heine publishes results on uniform continuity, using the covering idea for closed bounded intervals (the seed of Heine–Borel).
  • 1894–1895 — Émile Borel proves that a countable open cover of a closed bounded interval has a finite subcover, in his thesis on measure and function theory.
  • 1900s — Henri Lebesgue and Pierre Cousin extend Borel's covering theorem to arbitrary (uncountable) covers; the result becomes the modern Heine–Borel theorem.
  • 1906 — Maurice Fréchet introduces metric spaces and the general notion of compactness (compacité), framing sequential compactness abstractly.
  • 1914 — Felix Hausdorff systematizes topological spaces; the open-cover definition of compactness gains its general home.
  • 1923–1929 — Pavel Alexandrov and Pavel Urysohn develop bicompactness (today's "compactness") and prove key theorems (e.g. compactness via filters/nets later by Cartan, Bourbaki).
  • 1930 — Andrey Tychonoff proves arbitrary products of compact spaces are compact (Tychonoff's theorem), the deepest general result, equivalent to the Axiom of Choice.

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

Before this

Where this leads