Compact Spaces and Open Covers
Can a space be "small" even if it contains infinitely many points? These points may spread across an unbounded set of directions. Compactness is the topological answer to this question. It is arguably the single most useful finiteness condition in all of analysis and geometry. The idea generalizes an elementary fact. A closed bounded interval behaves like a finite set for many purposes. Every sequence has a convergent subsequence. Every continuous function attains a maximum. Every open cover can be trimmed to finitely many pieces without losing coverage. This last property, phrased purely in terms of open sets, is the modern definition of compactness. It is the one that transports cleanly to arbitrary topological spaces. In such spaces, notions like "bounded" make no sense at all. The open-cover definition looks abstract at first. But it is exactly the right level of generality. It makes no reference to a metric, a norm, or even to sequences. Yet it recovers every classical theorem about closed bounded subsets of as a special case. This recovery is the content of the Heine-Borel Theorem. It also behaves beautifully under the basic operations of topology. Continuous images, closed subspaces, finite unions, and (with real effort) arbitrary products all preserve compactness. This robustness is why compactness, rather than boundedness or finiteness, is the concept that survives. It survives the passage from Euclidean space to general topological and even non-metrizable spaces. The strategy of this article is to build the definition from first principles. We will prove the core closure properties carefully. These include subspaces of compact spaces, continuous images, and — crucially — compact subsets of Hausdorff spaces are closed. We show exactly where each hypothesis is load-bearing. We do this by breaking the theorems when a hypothesis is dropped. Along the way we will connect open covers to the more familiar picture of "closed and bounded." We also lay the groundwork for the deeper results that follow: sequential compactness, the finite intersection property, and the Tychonoff theorem on infinite products. By the end you should be able to state the open-cover definition of compactness precisely. You should be able to prove the basic permanence properties from scratch. You should also be able to explain — with a concrete counterexample — why each hypothesis (such as the Hausdorff condition) cannot simply be dropped.
- Compactness means: every open cover has a finite subcover — a purely topological finiteness condition.
- It generalizes "closed and bounded," but is phrased with no reference to a metric or distance.
- Continuous images of compact spaces are compact (compactness is a topological, not metric, invariant).
- Closed subspaces of compact spaces are compact; the converse needs the Hausdorff axiom.
- In a Hausdorff space, compact subsets are automatically closed — a genuinely deep fact, not a tautology.
- Key idea: compactness lets you replace "infinitely many open sets" with "finitely many," turning infinite problems into finite ones.
Where this lives today
Compactness is the load-bearing finiteness hypothesis across mathematics and its applications. In real and functional analysis, it underlies the extraction of convergent subsequences (via Sequential Compactness) used in existence proofs for differential equations and in the calculus of variations. In differential geometry, compact manifolds have finite volume, finite fundamental groups in favorable cases, and support globally-defined extremal problems (geodesics realizing minimal distance, curvature bounds via Bonnet–Myers). In complex analysis, compactness of closed bounded regions underlies the maximum modulus principle's practical use and Montel's theorem on normal families. In algebraic topology and algebraic geometry, compact (or "proper") spaces allow intersection numbers and degrees to be well-defined finite quantities rather than divergent sums. In optimization and control theory, compactness of feasible regions is precisely the hypothesis that guarantees a continuous cost function attains a minimum — the abstract content of the corollary proved above. In computer science and logic, compactness of certain topological spaces of models (Stone spaces) underlies the model-theoretic compactness theorem for first-order logic, and finite-subcover arguments appear directly in proofs of correctness for covering-based algorithms. In physics, compact configuration or momentum spaces (such as compactified extra dimensions in string theory) rely on exactly the same open-cover finiteness to ensure well-posed path integrals and spectral decompositions.
Ask the tutor: Why does the Heine–Borel theorem fail for the closed unit ball in an infinite-dimensional normed space?
Let be a topological space. A collection of open subsets of is called an open cover of if
More generally, if , an open cover of is a collection of open subsets of with . A subcover of an open cover is a subcollection that is still an open cover. The space is compact if every open cover of admits a finite subcover: for every open cover of , there exist finitely many indices such that
A subset is compact if is compact when given the Subspace Topology inherited from .
Intuition
Think of an open cover as a collection of "flashlights," each illuminating some open region of the space, with every point of the space lit by at least one flashlight. Compactness says you can always find a finite set of flashlights that still lights up the whole space, no matter how the cover was chosen. This is a strong, non-obvious constraint: it must hold for every open cover, including deliberately adversarial ones designed to need infinitely many pieces. The classic non-example is the open interval . Cover it by the sets for . Each point of lies in some , so this is a genuine open cover, but no finite subcollection covers : a finite union of these sets is just the largest one, , which misses the points near . This single cover is the reason fails to be compact — it is "open at one end," and the open cover can chase that missing endpoint forever. Contrast this with : no matter how you cover it by open sets, the compactness of (proved via the Heine-Borel Theorem) guarantees a finite subcover always exists, precisely because contains both of its endpoints and has no "missing point" for an open cover to approach without ever reaching.
Let be topological spaces.
(a) Closed subspaces. If is compact and is closed, then is compact.
(b) Continuous images. If is compact and is continuous, then is compact.
(c) Compact subsets of Hausdorff spaces are closed. If is Hausdorff and is compact, then is closed in .
(d) Finite unions. If are each compact, then is compact.
Let be a topological space and . Then (with the subspace topology) is compact if and only if every cover of by sets open in has a finite subcover (using the definition of "open cover of " given above).
This lemma is used repeatedly below, so we prove it first, by unwinding definitions on both sides. () Suppose is compact in the subspace topology. Let be a cover of by open subsets of , so . By definition of the subspace topology, each is open in . Since , the collection is an open cover of the space . Because is compact, there are finitely many indices with
So is a finite subcover of by open subsets of . () Suppose every cover of by open subsets of has a finite subcover. Let be an open cover of the topological space (each open in ). By definition of the subspace topology, for each there is a set open in with . Then covers (since ), and each is open in . By hypothesis, finitely many cover . Then cover as well, since
So is a finite subcover, proving is compact.
∎We now prove the four parts of the theorem, using this lemma freely.
(a) Closed subspaces of compact spaces are compact. Technique: direct construction of a finite subcover, using closedness to patch the complement. Let be compact and closed. Let be a cover of by sets open in ; by Lemma: Compactness in the subspace topology it suffices to produce a finite subcover from this data. Since is closed, is open in . Adjoin it to the cover:
Every point of is either in (hence in some ) or in , so is an open cover of the whole space . Since is compact, there is a finite subcover
(the term may or may not actually be needed, but we may include it without loss of generality). Intersecting both sides with and using :
So , i.e. is a finite subcover of . By the lemma, is compact.
(b) Continuous images of compact spaces are compact. Technique: pull back the cover through , using continuity to guarantee preimages are open. Let be compact, continuous, and let be an open cover of by sets open in (by the lemma, this suffices). For each , since is continuous and is open in , the preimage is open in . Moreover
so is an open cover of . Since is compact, finitely many of these, say , cover :
Applying to both sides and using for any :
So is a finite subcover of . By the lemma, is compact.
(c) Compact subsets of Hausdorff spaces are closed. Technique: for each point outside , separate it from all of using Hausdorff-ness and compactness together; this is the first theorem where Hausdorff-ness is essential, not cosmetic. Let be Hausdorff and compact. We show is open, which shows is closed. Fix ; we produce an open neighborhood of disjoint from . For each , since and is Hausdorff, there exist disjoint open sets and (this is precisely the definition of the Hausdorff separation axiom), with . The collection is an open cover of (each lies in its own ), so by compactness of there is a finite subcover: there exist with
Let
This is a finite intersection of open sets, hence open, and it contains (since each ). We claim . Indeed, suppose . Since , we have for some . But also . So , a contradiction. Hence , so is an open neighborhood of entirely contained in . Since was arbitrary, every point of has an open neighborhood inside ; hence is open, i.e. is closed.
(d) Finite unions of compact sets are compact. Technique: split any cover of the union into covers of each piece, and combine the finitely many finite subcovers. Let each be compact, and let be an open cover (in ) of . For each fixed , the collection also covers (since ), so by compactness of there is a finite subset with
Let ; this is a finite union of finite sets, hence finite. Then
so is a finite subcover of . By the lemma, is compact.
∎If is compact and nonempty and is continuous, then attains a maximum and a minimum value on .
By part (b) of the theorem, is compact. By the Heine–Borel theorem (whose easy direction, "compact closed and bounded in ," follows directly from part (c) above together with a short boundedness argument covering by intervals ), is closed and bounded in . A nonempty bounded set of reals has a supremum and infimum , and both are limit points of (or equal to elements of directly); since is closed, . Hence there exist with and for all .
∎Worked examples
Example 1: A compactness argument with an infinite, asymmetric open cover. Let with the subspace topology from (this space is often called a "convergent sequence with its limit"). We verify directly, from the open-cover definition, that is compact — without invoking Heine–Borel, to illustrate the definition in action. Let be an arbitrary open cover of (open in , or equivalently in ; it does not matter by the Lemma). Since , some member of the cover contains ; call it . Because is open in and contains , there is with . Choose so large that ; then every point with lies in . So alone already covers and all but finitely many points of , namely it may miss only . For each of these finitely many remaining points (), choose some from the original cover containing it (such a set exists because covers all of ). Then
is a finite subcover. Since was an arbitrary open cover, is compact. Notice precisely where the limit point was used: it is exactly the presence of in the space that let one open set absorb infinitely many of the 's at once. If we deleted from , leaving , the same cover-construction as in the intuition section (using intervals around each that avoid all other points) would show is not compact — a discrete infinite set is never compact, since the cover by singletons (each open in the subspace topology on , since points of are isolated) has no finite subcover.
Example 2: Building a genuinely non-compact set and pinpointing the failing cover. Let , again with the subspace topology. We show is not compact by exhibiting one explicit open cover with no finite subcover — and we check carefully that the cover really is open in and really has no finite subcover, since sloppy verification here is the most common student error. Define, for ,
each an open subset of (a union of two open intervals), hence is open in . Note . Cover verification. Given any : if , then for every . If , then since we can choose large enough that (possible because as ), so . Hence covers . No finite subcover. Suppose, for contradiction, that finitely many sets (with ) covered . Since the intervals are nested increasing in , the union equals , whose intersection with is . But this misses every point with — and such points exist, e.g. , which satisfies so but . This contradicts the assumption that cover . Hence no finite subcollection of covers , so is not compact. Consistently with part (a) of the theorem: is not closed in (it is missing the limit point ), so this is not a counterexample to any theorem — it simply shows that "closed" really is doing work, matching the Heine–Borel picture that compact subsets of must be closed.
Theorem (c) states: if is Hausdorff and is compact, then is closed in . We show this genuinely requires the Hausdorff hypothesis, by constructing a non-Hausdorff space with a compact subset that is not closed. Let , but equip it with the cofinite topology: a set is declared open if either or is finite. One checks this is a genuine topology (arbitrary unions of cofinite sets are cofinite or empty, finite intersections of cofinite sets are cofinite, and are included), but is not Hausdorff: any two nonempty open sets have complements that are finite, so is finite, forcing (since is infinite). So no two nonempty open sets are disjoint, and in particular distinct points can never be separated by disjoint open sets. Now let , an infinite, non-closed subset (its complement is not cofinite, since itself is infinite and is infinite, so is not open; hence is not closed). Claim: is compact. Let be any open cover of by nonempty sets open in . Pick any one member of the cover. Since is open and nonempty in the cofinite topology, is finite, so is also finite — say it equals . For each , since the cover covers , choose some containing . Then
a finite subcover. Hence is compact — yet is not closed in . This is exactly what theorem (c) would forbid if were Hausdorff; the construction shows the theorem's hypothesis is not decorative. The mechanism of the original proof breaks down precisely at the separation step: to build the disjoint neighborhoods for and , we invoked the Hausdorff axiom, and in the cofinite topology no such disjoint pair exists at all.
Scope, edge cases & common traps
| Situation | What holds | What can fail |
|---|---|---|
| compact, closed | compact (always, no Hausdorff needed) | — |
| Hausdorff, compact | closed in | Fails without Hausdorff (cofinite topology example above) |
| continuous, compact | compact | need not be closed if is not Hausdorff, and need not be a closed map on all of if domain isn't compact |
| Finite unions | compact | Infinite unions of compact sets need not be compact (e.g. is closed unbounded, not compact) |
| Compact + Hausdorff | closed, and restricted to is "as good as" a closed bounded subset of would be | Compactness alone (no Hausdorff) can allow strange non-closed compact subsets |
| Subspace vs. ambient open sets | Lemma shows the two notions of "cover" coincide | Common error: checking only covers by sets open in while forgetting the equivalence needs subspace-topology unwinding |
The mathematician behind it
Origins · 1 minHeinrich Heine and Émile Borel and how this was discovered
The open-cover formulation of compactness crystallized gradually. Eduard Heine's 1872 work on uniform continuity implicitly used finite subcovering arguments for continuous functions on closed intervals. Émile Borel, in his 1895 doctoral work on complex function theory, proved that a countable open cover of a closed bounded interval has a finite subcover — the germ of the theorem that now bears both names. The full general topological definition — arbitrary (not just countable) open covers, on arbitrary topological spaces — was formulated later, in the early 20th century, notably in the work of Pavel Alexandrov and Pavel Urysohn, and was absorbed into the modern axiomatic framework of general topology built by Felix Hausdorff.
Why require a finite subcover instead of, say, a countable one?
Finiteness is what makes compactness a genuinely strong, useful condition, and it is what lets compactness interact so cleanly with algebraic and analytic constructions (finite sums, finite intersections, finite products of neighborhoods, as seen in the proof that compact subsets of Hausdorff spaces are closed). A "countably compact" condition — every countable open cover has a finite subcover — is strictly weaker in general topological spaces and coincides with compactness only under extra hypotheses like second countability. Finite subcovers are also what make compactness behave like an actual generalization of finiteness: many theorems about finite sets (max/min exist, finite unions of closed sets are closed) extend verbatim to compact spaces precisely because the cover-reduction argument bottoms out at a finite stage.
Is every closed and bounded subset of a metric space compact?
No — this is true in (Heine–Borel) but false in general metric spaces, especially infinite-dimensional ones. In an infinite-dimensional normed vector space, the closed unit ball is always closed and bounded but never compact; one can construct a sequence of unit vectors with no convergent subsequence (this follows from Riesz's lemma). The correct general statement is that compactness is equivalent to closed-and- bounded specifically in finite-dimensional normed spaces, which is one reason the open-cover definition, not "closed and bounded," is taken as the primary definition.
Does compactness depend on which ambient space we view inside?
No — this is one of compactness's most important structural features. Whether is compact depends only on the subspace topology on itself, not on any particular embedding into a larger space . The Lemma proved above shows the two ways of phrasing "open cover of " (covers by sets open in , versus covers by sets open in the ambient ) always agree in the relevant sense, confirming compactness is an intrinsic, not relative, property. This is why one can unambiguously say " is compact" without specifying an ambient space.
Why does the proof that compact subsets of Hausdorff spaces are closed need a finite intersection of neighborhoods?
The proof separates a fixed exterior point from each point individually, producing disjoint pairs for every — potentially infinitely many pairs. Compactness of reduces the covering to finitely many , and only then can we intersect the finitely many corresponding to get a single open set around still disjoint from all of . An infinite intersection of open sets need not be open, so this step would fail without the finite subcover; compactness is precisely what converts an infinite family of neighborhoods into a finite, hence still-open, intersection.
Can an infinite union of compact sets fail to be compact, even if each piece is compact?
Yes. Theorem part (d) only guarantees compactness for finite unions. The sets for are each compact, but their union is all of , which is unbounded and hence not compact (by Heine–Borel, or directly: the cover has no finite subcover of ). This shows compactness is a genuinely finite-additivity property, unlike, say, closedness under arbitrary intersections.
How does compactness relate to sequential compactness?
Sequential compactness (every sequence has a convergent subsequence) is a related but logically distinct notion, covered in depth under Sequential Compactness. For metric spaces the two notions coincide, but in general topological spaces neither implies the other without extra hypotheses (e.g. second countability or metrizability). The open-cover definition given here is the one that generalizes correctly to all topological spaces, including those where sequences are too weak a tool to detect convergence (non-first-countable spaces), which is part of why it — rather than a sequence-based definition — is taken as primary.