Continuous images of compact spaces are compact

See it in Lean

Axioms
ZFC only
Concerns
Compact

Statement

If \(f : X \to Y\) is a continuous surjection and \(X\) is compact, then \(Y\) is compact.

Proof

Let \(\mathcal{V}\) be an open cover of \(Y\). The sets \(f^{-1}(V)\), \(V \in \mathcal{V}\), form an open cover of \(X\), so finitely many of them, \(f^{-1}(V_1), \dots, f^{-1}(V_k)\), cover \(X\). Since \(f\) is surjective, \(V_1, \dots, V_k\) cover \(Y\). \(\blacksquare\)

Hence the image of a compact set under a continuous map is compact: if \(f : X \to Y\) is continuous and \(K \subseteq X\) is compact, the restriction of \(f\) is a continuous surjection from \(K\) onto \(f(K)\), both with their subspace topologies, so \(f(K)\) is compact as a space, that is, as a subset of \(Y\).

Where it is used

Cited on space pages

Cited in proofs of other theorems