Open, Closed and Compact Sets (the Heine-Borel Theorem)
Compactness is the single most useful finiteness property in analysis: it lets an argument that only works for finitely many objects extend to infinitely many. Continuous functions attain their maximum on compact sets, uniform continuity holds there automatically, and whole classes of existence theorems (the Extreme Value Theorem, among others) reduce to this one idea. This chapter defines compactness via open covers — the definition that generalises beyond — proves its equivalence with sequential compactness in metric spaces, and proves the Heine-Borel theorem characterising compact subsets of (and, by the same coordinatewise pattern, ) concretely as the closed and bounded ones.
Have to hand: open and closed sets, limit points and sequences in a metric space (Chapter 2), and the Archimedean property and nested interval property (Chapter 1) — the bisection argument of Section 3 reuses the latter directly.
Why open covers, and not just "closed and bounded"? "Closed and bounded" is a consequence of compactness in , true by the Heine-Borel theorem — but it is specific to . In general metric (and later topological) spaces, closed and bounded sets can fail to be compact. The open-cover definition is what actually generalises, which is why it is taken as primary.
1. Open Covers and Compactness
Definition. An open cover of is a collection of open sets with . A subcover is a subcollection that still covers .
is compact if every open cover of has a finite subcover.
Worked example — a non-compact set via a bad cover. Let and consider the open cover , . Every lies in some (take with , by the Archimedean property), so this is indeed a cover. But any finite subcollection equals where (the largest index gives the largest interval, since grows as grows), and misses . No finite subcover exists, so this particular cover already shows is not compact.
Key distinction. To prove a set is not compact, exhibiting one open cover with no finite subcover suffices (as above). To prove a set is compact, you must handle every possible open cover — which is why direct open-cover arguments are hard, and why the sequential and Heine-Borel characterisations below are so valuable.
2. Sequential Compactness
Definition. is sequentially compact if every sequence in has a subsequence converging to a point of .
A subsequence of is a sequence where is a strictly increasing sequence of indices; it keeps infinitely many of the original terms, in order, discarding the rest.
Theorem. In a metric space, is compact if and only if is sequentially compact.
Proof sketch (compact sequentially compact). Suppose is compact and is a sequence in with no subsequence converging in . Then for every , some ball contains for only finitely many (otherwise a subsequence could be extracted converging to ). The collection is an open cover of ; by compactness finitely many balls cover . But each contains only finitely many terms of , so their union contains only finitely many terms in total — contradicting that all lie in this union.
Proof (sequentially compact compact). This direction needs two lemmas; neither is the bisection argument of Section 3 (that argument only produces Bolzano–Weierstrass in and does not by itself yield a finite subcover in a general metric space).
Lemma A (totally bounded). If is sequentially compact, then for every , is covered by finitely many balls of radius . Proof. If not, some admits no finite cover by -balls. Pick arbitrarily; having chosen , the balls do not cover (else they would be a finite subcover), so pick outside all of them. The resulting sequence satisfies for all , so no subsequence is Cauchy, hence none converges — contradicting sequential compactness.
Lemma B (Lebesgue number). If is sequentially compact and is an open cover of , there exists such that every subset of of diameter less than lies entirely inside some single . Proof. If not, for each there is with contained in no single ; pick . By sequential compactness, some subsequence . Since covers , for some , and openness gives for some . For large enough that and : any satisfies , so — contradicting that lies in no single .
Main argument. Let be any open cover of , and let be a Lebesgue number for it (Lemma B). By Lemma A with , is covered by finitely many balls . Each set has diameter at most , so by the defining property of it lies inside some single . Then is a finite subcover of .
This equivalence is why, in practice, compactness in is almost always checked via sequences rather than open covers directly.
3. The Bolzano–Weierstrass Theorem
Theorem (Bolzano–Weierstrass). Every bounded sequence in has a convergent subsequence.
Proof. Let be bounded, so for all , some . Bisect into two closed halves; at least one half contains for infinitely many (if both contained only finitely many, the whole interval would too, contradicting that every appears). Call this half , and pick an index with . Bisect again; again one half contains infinitely many of the remaining terms. Call it , and pick with (possible since contains infinitely many terms, so some index beyond works). Repeating indefinitely gives nested closed intervals with , and indices with .
By the Nested Interval Property (Chapter 1), for a single point . Since and has length , by the Archimedean property, so .
This is the engine behind the Heine-Borel theorem and reappears constantly: whenever a sequence is merely known to be bounded, Bolzano–Weierstrass upgrades that to "has a convergent subsequence," which is often exactly what an existence proof needs.
4. The Heine-Borel Theorem
Theorem (Heine-Borel, in ). is compact if and only if is closed and bounded.
Proof. () Suppose is compact. Bounded: the cover of (hence of ) has a finite subcover, which (being a finite collection of these nested intervals) equals some single ; so is bounded. Closed: suppose . For each , let ; the balls cover (each lies in its own ball), so finitely many cover . Let ; one checks is disjoint from each (since , so points within of cannot be within of ), hence disjoint from . So is open, i.e. is closed.
() Suppose is closed and bounded. By Section 2, it suffices to show is sequentially compact. Let be a sequence in . Since is bounded, Bolzano–Weierstrass gives a subsequence for some . Since is closed and is a sequence in converging to , the sequential characterisation of closed sets (Chapter 2) gives . So every sequence in has a subsequence converging to a point of : is sequentially compact, hence compact.
Scope warning. Heine-Borel as stated is specific to (and, with the same proof pattern applied coordinatewise, to ). In a general metric space, closed and bounded does not imply compact — this is explored in the exercises, and is the reason the open-cover definition, not "closed and bounded," is taken as the primary meaning of compactness.
Worked example. is compact: it is closed (finite union of the closed set and the closed singleton ) and bounded (contained in ), so Heine-Borel applies. By contrast is bounded but not closed (missing limit points ), consistent with the explicit failure of compactness shown in Section 1.
5. Compactness, Closedness and Subsets
Theorem. (i) A compact subset of a metric space is closed. (ii) A closed subset of a compact set is compact.
Proof sketch. (i) is the "closed" half of the Heine-Borel proof above, which did not in fact use boundedness of itself — it only used compactness of , so it holds in any metric space. (ii) Let be closed with compact, and let be an open cover of . Adding the open set to this collection covers all of (every point of is either in , covered by some , or outside , covered by ). Compactness of gives a finite subcover of , hence of ; discard from it if present (it contributes nothing to covering ), leaving a finite subcover of drawn from the .
Common Exam Pitfalls
- Treating "closed and bounded compact" as universal. It is a theorem specific to (Heine-Borel); do not quote it in a general metric space without justification.
- Proving compactness by checking only one open cover. Compactness requires every open cover to have a finite subcover; checking one well-chosen cover only ever disproves compactness, never proves it.
- Confusing "finite subcover" with "finitely many points." A finite subcover is a finite subcollection of the given open sets that still covers — not a statement that itself is a finite set.
- Forgetting the indices in a subsequence must be strictly increasing. requires ; reusing or reordering indices does not define a valid subsequence.
- Omitting boundedness or closedness when citing Heine-Borel. Both hypotheses are necessary: is bounded but not closed (not compact); is closed but not bounded (not compact).
- Believing every bounded sequence converges. Bolzano–Weierstrass only guarantees a convergent subsequence; e.g. is bounded, does not converge, but has convergent subsequences and .
Summary
- Open cover: a collection of open sets whose union contains ; compact means every open cover has a finite subcover.
- Exhibiting one open cover with no finite subcover suffices to prove non-compactness; proving compactness directly requires handling all covers.
- Sequentially compact: every sequence has a subsequence converging within ; equivalent to compactness in any metric space.
- Bolzano–Weierstrass: every bounded sequence in has a convergent subsequence, proved by repeated bisection and the Nested Interval Property.
- Heine-Borel (in / ): is compact is closed and bounded — specific to , not a general metric-space fact.
- A compact subset of any metric space is closed; a closed subset of a compact set is itself compact.