Continuous images of separable spaces are separable

See it in Lean

Axioms
ZFC only
Concerns
Separable

Statement

If \(X\) is separable and \(f : X \to Y\) is continuous with dense image, then \(Y\) is separable.

Proof

Let \(D \subseteq X\) be countable and dense. Then \(f(D)\) is countable. By continuity, \(f(X) = f(\overline{D}) \subseteq \overline{f(D)}\), so \(\overline{f(D)}\) contains \(f(X)\) and hence contains \(\overline{f(X)} = Y\). Thus \(f(D)\) is dense in \(Y\). \(\blacksquare\)

Where it is used

Cited on space pages

Cited in proofs of other theorems