Continuous Image of Compact is Compact
Statement
If is a continuous function between topological spaces and is compact, then the image is compact:
Visualization
Concrete example: , .
Domain [-1, 1]: Image f([-1,1]) = [0, 1]:
-1 -0.5 0 0.5 1 0 0.5 1
|─────────────────────────| → |────────────────────|
compact (closed, bounded) compact (closed, bounded)
f(-1) = 1 ────────────────────────────────────────→ 1
f(-0.5) = 0.25 ──────────────────────────→ 0.25
f(0) = 0 ──────────────────────────→ 0
f(0.5) = 0.25 ───────────────────────→ 0.25
f(1) = 1 ──────────────────────────────────────────→ 1
Why compactness is preserved:
| Property | Domain | Image |
|---|---|---|
| Closed | Yes | Yes |
| Bounded | Yes (fits in ) | Yes (fits in ) |
| Compact (Heine–Borel) | Yes | Yes |
| Any open cover has finite subcover | Yes | Yes |
Proof idea via open covers: Suppose is an open cover of . Then is an open cover of (by continuity, each is open; since maps into , these preimages cover ). Compact admits a finite subcover . Then covers .
Proof Sketch
-
Let be an open cover of : .
-
Since is continuous, each is open in .
-
We have .
-
So is an open cover of . By compactness of , there is a finite subcover: .
-
Applying : .
-
Therefore is compact.
Connections
- Heine–Borel TheoremHeine–Borel TheoremIn ℝⁿ, a subset is compact if and only if it is closed and boundedRead more → — in , compactness equals closed and bounded; the theorem above combined with Heine–Borel shows that continuous images of closed bounded sets are closed and bounded — in particular, continuous functions on compact sets attain their extreme values.
- Intermediate Value TheoremIntermediate Value TheoremA continuous function on a closed interval hits every value between its endpointsRead more → — the IVT is an immediate corollary: is compact and connected; continuous images of connected sets are connected; connected subsets of are intervals; so is an interval containing and .
- Compact Subset of Hausdorff is ClosedCompact Subset of Hausdorff is ClosedIn a Hausdorff space every compact subset is closed, generalising the Heine–Borel direction compact implies closedRead more → — the image is compact; if is Hausdorff, then is also closed. Together these give: continuous maps from compact spaces to Hausdorff spaces are closed maps.
- Tychonoff's TheoremTychonoff's TheoremAn arbitrary product of compact spaces is compact in the product topologyRead more → — the product of compact spaces is compact; combined with continuous images being compact, any continuous map from the product into another space preserves compactness on products.
Lean4 Proof
import Mathlib.Topology.Compactness.Compact
/-- The continuous image of a compact set is compact. -/
theorem continuous_image_of_compact
{X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
{f : X → Y} {s : Set X} (hs : IsCompact s) (hf : Continuous f) :
IsCompact (f '' s) :=
hs.image hf