Continuous image of a compact space Created 2026-09-24 Updated 2026-10-14
Let be topological spaces, let be compact, and let be a continuous map. Then its image is compact with the subspace topology inherited from . More generally, a continuous map sends every compact subset to a compact subset , by applying the same statement to its restriction to . Neither nor needs to be Hausdorff.[ref]
For example, the polynomial function sends the compact closed interval onto . The open intervals and give an open cover of the image. Their inverse images in the domain are
Both are open sets in the subspace topology of , even though neither is an open set in the ambient real line. They cover the domain, so the corresponding two target open sets cover the image.
Matching colors identify the target open sets and their inverse images. Filled endpoints are included and hollow endpoints excluded. This particular open cover illustrates the mechanism; compactness requires a finite subcover for every open cover.
For the general proof, write an arbitrary open cover of as with each an open set in . By continuity, the inverse images form an open cover of . Its compactness provides indices such that
This gives the required finite subcover of . The argument uses inverse images because continuous maps need not send open sets to open sets. For the empty set, the empty selection suffices.
The image of a compact Hausdorff space under a continuous map need not itself be Hausdorff. Take with the discrete topology and with the Sierpiński space topology . The identity map is a continuous bijection, since the inverse image of every target open set is an open set in . Its image is compact, but the two points of have no disjoint open neighborhoods. If the target is Hausdorff, its subspace topology does make Hausdorff, and the compact subset of a Hausdorff space theorem also makes closed in .
The practical payoff is existence: the extreme value theorem uses the compact image of a nonempty compact space under a real-valued continuous function to obtain an attained minimum and maximum. When is also a bijection onto a Hausdorff target, the compact-to-Hausdorff continuous bijection theorem supplies continuity of its inverse without a separate formula.
Every subset of a cofinite topological space is a compact subset. To see the finite reduction directly, take an open cover of a nonempty by open sets of and choose one member containing a point of . Since has finite complement, the set is finite. Choose a covering member for each of those remaining points. Those members together with are a finite subcover. The empty set is already compact.
Equivalently, the subspace topology on is itself cofinite: for finite , the trace of is . The argument applies again inside . A concrete open cover of needs only the two members and when these labels are distinct: each fills the other's single gap.
On , the subset of even integers is compact but not closed, because it is infinite and proper. A compact subset of a Hausdorff space is guaranteed to be closed, whereas compactness without the Hausdorff space assumption does not suffice. Changing the topology changes compactness: the same infinite set with its discrete topology has the singleton open cover, which has no finite subcover. The finite-exception argument is special to finite complements; in the cocountable topology, compact subsets of a cocountable space must instead be finite.
A Hausdorff space is a topological space in which any two distinct points have disjoint open neighborhoods. Let be a compact subset of a Hausdorff space and . For each , choose disjoint open neighborhoods of and of . The cover , so compactness gives a finite subcover . Their paired intersection is an open neighborhood of disjoint from . Thus every point of its complement has an open neighborhood in the complement, proving every compact subset of a Hausdorff space is closed. The empty set case is immediate.
In the cocountable topology on an uncountable set, any two nonempty open sets intersect: their combined complements are countable and cannot exhaust . Thus the space is not Hausdorff.
Nevertheless every compact subset is closed here. In fact only finite subsets are compact. To prove this, suppose is infinite and choose distinct points . The open sets
form an increasing open cover of , and hence of . Any finite selection is contained in for its largest index , which misses . So is not compact. Finite sets are compact in any topological space, and in this cocountable topology they are closed because their complements are open. This proves the claimed behavior of compact subsets of a cocountable space.
For every , the Hausdorff condition gives disjoint open neighbourhoods of and of . The form an open cover of , so choose a finite subcover . Put
Then are open sets, and . If a point belonged to , it would belong to some and to , contrary to their choice. Thus
The finiteness matters: a finite intersection of open sets is open. This is separation of a point and a compact set. If , use , .
Every consequently has an open neighbourhood contained in . The complement is open, so a compact subset of a Hausdorff space is closed.
The conclusion can fail without the Hausdorff condition. Take the two-point set with the indiscrete topology . The singleton is compact, since one member of any open cover suffices. It is not closed, because its complement is not open. The two points cannot have disjoint open neighbourhoods, so this example is indeed not Hausdorff.
Write . Each is closed in , by the compact subset of a Hausdorff space theorem. Therefore is closed, and is compact because is compact. The nonempty finite intersections give the finite intersection property, so part (a)(ii) also yields .
Suppose were not connected. Part (c) would give disjoint open sets containing in their union and each meeting . Let
This is a closed subset of the compact space , and . Apply the contrapositive of the finite intersection characterization of compactness to the family of closed sets . Some finite subfamily has empty intersection. Since every finite intersection of just the is nonempty, that subfamily must include . Thus for some finite ,
But and meets both and . Therefore and are nonempty disjoint relatively open sets covering , contradicting its assumed connectedness. This proves
This is connectedness of an intersection from connected finite intersections. If , its intersection is ; the stated hypothesis for the finite set already makes nonempty and connected, so that case is included.
Suppose were compact. By the compact subset of a Hausdorff space theorem, it would be closed in , hence closed in . The singleton is also closed in the Hausdorff space : each other point has an open neighbourhood avoiding .
Consequently both and are clopen in . They are disjoint, nonempty, and cover , giving a separation of a topological space in contradiction to the connectedness of . Thus is not compact.