Subspaces of completely regular spaces are completely regular

See it in Lean

Axioms
ZFC only
Concerns
Completely regular

Statement

Let \(f : Y \to X\) be a map such that the open sets of \(Y\) are exactly the preimages \(f^{-1}(U)\) of the open sets \(U\) of \(X\); for instance the inclusion of a subspace. Then the closed sets of \(Y\) are exactly the preimages of the closed sets of \(X\), and \(f\) is continuous. If \(X\) is completely regular, then so is \(Y\).

Proof

Let \(F \subseteq Y\) be closed and \(y \notin F\). Then \(F = f^{-1}(C)\) with \(C\) closed in \(X\), and \(f(y) \notin C\). A continuous \(g : X \to [0, 1]\) with \(g(f(y)) = 0\) and \(g = 1\) on \(C\) gives the continuous function \(g \circ f\), which is \(0\) at \(y\) and \(1\) on \(F\). \(\blacksquare\)

Where it is used

Cited in proofs of other theorems