Compactness is the topological form of finiteness. It is what makes continuous functions on attain their maxima, and, combined with the Hausdorff property, it turns continuous bijections into homeomorphisms. The Hausdorff property is a separation condition ensuring that distinct points can be told apart by open sets. This chapter proves the standard permanence properties and shows by counterexample where each hypothesis is needed.
Motivation
On every continuous real function is bounded and attains its bounds; on the function is continuous but unbounded; on the function is unbounded. The difference between these domains is not a metric property of the functions but a property of the domain, and it can be phrased using only open sets. The right phrasing is through open covers: a space is compact if whenever its points are covered by open sets, finitely many of those open sets already suffice.
Separation conditions matter because the real line has a feature that is easily taken for granted: two distinct points have disjoint neighborhoods. In spaces without it, limits need not be unique, compact sets need not be closed, and continuous bijections from compact spaces need not be homeomorphisms. The interplay of the two properties is the theme of the chapter.
Definitions
Definition 3.1.1
(Open cover and compactness)
An open cover of a space is a family of open sets with . A subcover is a subfamily that still covers . The space is compact if every open cover has a finite subcover. A subset is compact if it is compact in the subspace topology.
Concept lensStructural
Compactness through closed sets
Taking complements turns open covers into families of closed sets with empty intersection. A family of closed sets has the finite intersection property if every finite subfamily has nonempty intersection. Then is compact if and only if every family of closed subsets of with the finite intersection property has nonempty intersection. Indeed, covers exactly when the closed sets have empty intersection, and finitely many cover exactly when the corresponding finitely many have empty intersection; the two formulations are contrapositives of each other. The closed-set form is convenient when compactness is used to produce a point: the nested nonempty closed sets in meet in , whereas in the noncompact space the nested closed sets have the finite intersection property but empty intersection.
Compactness of subsets via ambient covers. A subset is compact if and only if for every family of open subsets of with there are finitely many indices with . (Open sets of are the sets with open in , and a cover of by such sets corresponds to a family of open sets of covering .)
Definition 3.1.2
(Hausdorff space)
A space is Hausdorff if for any distinct there exist disjoint open sets and . Every metric space is Hausdorff: take balls of radius .
Definition 3.1.3
(Closed map)
A function is closed if it sends closed sets to closed sets.
Theorem/proposition
Proposition 3.1.4
( is compact; and are not)
The interval is compact. The line is not compact, and neither is .
Proposition 3.1.5
(Closed subsets of compact spaces are compact)
A closed subset of a compact space is compact.
Proposition 3.1.6
(Continuous images of compact spaces are compact)
If is continuous and is compact, then is compact.
Proposition 3.1.7
(Compact subsets of Hausdorff spaces are closed)
In a Hausdorff space every compact subset is closed. More precisely, if is compact in a Hausdorff space and , then there are disjoint open sets and .
Lemma 3.1.8
(Tube lemma)
Let be a space, a compact space, , and an open set containing . Then there is an open in with .
Proposition 3.1.9
(Finite products of compact spaces are compact)
If and are compact, then is compact. By induction, a finite product of compact spaces is compact. In particular is compact.
Theorem 3.1.10
(Compact-to-Hausdorff maps are closed)
Let be continuous with compact and Hausdorff. Then is a closed map. Consequently, if is a bijection, then is a homeomorphism.
Remark on sequences. For metric spaces compactness is equivalent to sequential compactness (every sequence has a convergent subsequence). This equivalence is not asserted for arbitrary topological spaces, and neither implication is valid in general; the present chapter does not use sequences.
Proof sketch or proof idea
All proofs are given in full.
Proof
(A supremum argument; two covers without finite subcovers)
Let be an open cover of and let . Then , so is nonempty and bounded above, and exists with . Pick containing and with . There is with . Then is covered by finitely many members, and adding covers for every with . Hence . If , then contradicts . So , and then lies in , which says that itself is covered by finitely many members of .
The cover of has no finite subcover, since a finite subfamily has a largest and omits . The cover of has no finite subcover for the same reason.
Proof
(Add the complement to the cover)
Let be closed with compact, and let be a family of open sets of covering . Then is an open cover of . It has a finite subcover; discarding (which contains no point of ) leaves finitely many covering .
Proof
(Pull the cover back)
Let be a family of open sets of covering . Then is an open cover of , so finitely many cover . Then the cover : if then for some , so .
Proof
(Finitely many separations)
Let be compact, Hausdorff, and . For each choose disjoint open sets and . The sets cover , so finitely many cover . Put and ; is open as a finite intersection, and because for each . (If take and .) Hence each point of has an open neighborhood disjoint from , which says is open.
Proof
(Shrink to a finite intersection)
For each the point lies in the open set , so there is a basic open set with . The sets cover ; by compactness . Let , open and containing . If then for some and , so .
Counterexample mode
The tube lemma needs a compact factor
Claim: the tube lemma holds whether or not is compact. Take , and . The set is open, as the preimage of under the continuous map , and it contains . Suppose were open with . Then for some , so the point lies in ; but , so the point is not in . No tube fits. The proof breaks where finitely many were chosen: for any admissible lies in , so the intersection of all of them is , which is not open. Compactness of is what reduces this to a finite, hence open, intersection.
The finite-product proposition applies the tube lemma once for each point of , so the compactness of is used at every slice.
Proof
(Slices, tubes and finitely many tubes)
Let be an open cover of . Fix . The slice is homeomorphic to (via , continuous with continuous inverse the projection), hence compact. So finitely many members cover . Their union is open and contains , so the tube lemma gives an open with ; thus is covered by finitely many members of . The sets () cover , so finitely many do. Then is covered by finitely many members of . The statement for finite products follows by induction since . Finally is compact, as proved first.
Proof
(Closed sets go to compact sets, then to closed sets)
Let be closed. As a closed subset of a compact space, is compact; as a continuous image of a compact set, is compact in ; as a compact subset of the Hausdorff space , is closed. So is closed. If is a bijection, then for closed we have , which is closed, so is continuous (preimages of closed sets are closed iff preimages of open sets are open, by taking complements).
Proof X-ray
Why the two hypotheses meet
Compactness alone gives finite subcovers. Hausdorff separation alone separates two points. In the proof that a compact set is closed, separate the exterior point from each point of the compact set, then use compactness to keep only finitely many separations. The intersection of finitely many neighborhoods of the exterior point remains open. An infinite intersection would not be licensed by the topology axioms.
The continuous-bijection theorem then packages three steps: a closed subset of the compact domain is compact, its continuous image is compact, and the Hausdorff target makes that image closed. This proves the inverse is continuous. The two finite-space examples show why replacing that chain of reasoning by “a bijection has an inverse” loses the essential topological content.
Worked examples
Worked example 3.1.11
( versus )
The interval is compact and is not. Because compactness is preserved by homeomorphism (a homeomorphism is a continuous bijection whose inverse is continuous, and continuous images of compact spaces are compact, applied in both directions), no bounded open interval is homeomorphic to (the open cover has no finite subcover, so is not compact), and is not homeomorphic to any compact space. Concretely, the continuous-image proposition gives the extreme value theorem: if is continuous, is compact; compact subsets of are closed (they are compact subsets of a Hausdorff space) and bounded (cover by ), so attains a maximum and a minimum. The function on shows that the compactness hypothesis cannot be dropped.
Worked example 3.1.12
(A continuous bijection that is not a homeomorphism)
Define by . It is continuous and bijective. Its inverse is not continuous at : the points converge to , but . The failure is explained by the compact-to-Hausdorff theorem: the domain is not compact. Contrast the quotient map of the previous chapter, where the compact domain makes the induced bijection from a homeomorphism.
Worked example 3.1.13
(Non-Hausdorff counterexamples)
(a) Let with the discrete topology (compact, Hausdorff) and with the indiscrete topology (compact, not Hausdorff). The identity is a continuous bijection from a compact space, but its inverse is not continuous, since is open in but is not open in . Hausdorffness of the target cannot be dropped in the compact-to-Hausdorff theorem. (b) In the Sierpiński space with open sets , the set is finite, hence compact, but it is not closed because is not open. So without the Hausdorff hypothesis compact subsets need not be closed. (c) Give the cofinite topology. Any open cover of any subset contains a member , whose complement is finite, so finitely many further members cover the remaining finitely many points of ; thus every subset is compact. The interval is compact but not closed.
Worked example 3.1.14
(Closed and bounded does not imply compact)
Let be an infinite set with the discrete metric for . The whole space is closed and bounded, but the cover by singletons has no finite subcover. So the Heine–Borel characterization is a special property of Euclidean space (where a closed bounded set lies in a cube, compact by the finite-product proposition, and is then compact as a closed subset).
Common mistakes
Common mistake
(Some cover versus every cover)
To show compactness one must produce a finite subcover for an arbitrary open cover; to refute it, one exhibits a single cover with no finite subcover. Checking that one particular cover, such as for , has a finite subcover proves nothing.
Common mistake
(Compact subsets are closed only under a separation hypothesis)
In the Sierpiński space and in the cofinite line, compact sets need not be closed (see the non-Hausdorff counterexamples). For the same reason, the compact-to-Hausdorff theorem may be applied only after checking all three hypotheses: compact domain, Hausdorff target, continuous bijection. Each is used, and the examples and discrete-to-indiscrete show what fails when one is missing.
Common mistake
(Euclidean characterizations are not the definition)
“Closed and bounded” is a theorem about and is false in general metric spaces, as the infinite discrete metric space shows. Likewise, the equivalence of compactness with sequential compactness is a metric-space theorem and is not asserted here for general spaces.
Summary
A space is compact when every open cover has a finite subcover. Compactness passes to closed subsets, continuous images and finite products (the tube lemma is the key step). In a Hausdorff space compact sets are closed, and a continuous map from a compact space to a Hausdorff space is closed, so a continuous bijection between such spaces is a homeomorphism. The examples and the non-Hausdorff counterexamples show that each hypothesis is necessary.
Exercises
Quick check
(Let and be disjoint compact subsets of a Hausdorff space. Prove that they have disjoint open neighborhoods.)
Solution · Answer
Fix . By the separation statement for compact subsets of Hausdorff spaces, applied to the compact set and the point , there are disjoint open and . The sets cover , so finitely many cover . Set and . Then is open (finite intersection), is open, and since is disjoint from for every .
Quick check
(Show that is not compact and not homeomorphic to .)
Solution · Answer
The sets , , are open in and cover it; no finite subfamily covers, since a finite subfamily has a largest member . So is not compact. Because is compact and a homeomorphism preserves compactness (continuous images of compact spaces are compact; apply this to it and to its inverse), the two spaces are not homeomorphic.
Quick check
(Let be a nonempty compact space and continuous. Prove that attains a maximum.)
Solution · Answer
As a continuous image of a compact space, is a nonempty compact subset of . It is bounded: the cover of has a finite subcover, so . It is closed, being a compact subset of the Hausdorff space . A nonempty bounded set has a supremum , which lies in the closure of , so . Hence there is with .
Quick check
(Let be a continuous injection with compact and Hausdorff. Prove that is a homeomorphism onto its image.)
Solution · Answer
The image with the subspace topology is Hausdorff by the exercise on subspaces of Hausdorff spaces (first part), and is a continuous bijection from a compact space to a Hausdorff space (it is continuous into the subspace because for every open ). The compact-to-Hausdorff theorem gives that it is a homeomorphism.
Quick check
(Prove that a subspace of a Hausdorff space is Hausdorff, and that the union of two compact subsets of a space is compact.)
Solution · Answer
Let with Hausdorff and in . Choose disjoint open , in . Then and are disjoint, open in , and contain and respectively. For the second claim, let be compact and open sets of the ambient space covering . Finitely many cover and finitely many cover ; together, finitely many cover .