Countable completely regular spaces are zero-dimensional

If \(X\) is countable and completely regular, then it is zero-dimensional.

See it in Lean

Axioms
ZFC only

Statement

Every countable, completely regular space is zero-dimensional.

Proof

Let \(X\) be countable and completely regular, let \(W\) be open and \(x \in W\). By complete regularity there is a continuous \(f : X \to [0, 1]\) with \(f(x) = 0\) and \(f = 1\) on the closed set \(X \setminus W\). The image \(f(X)\) is countable, so some \(r\) with \(0 < r < 1\) is not a value of \(f\). Then \[U = f^{-1}([0, r)) = f^{-1}([0, r])\] is open, as the preimage of a set open in \([0, 1]\), and closed, as the preimage of a closed set. It contains \(x\), and it is disjoint from \(X \setminus W\), where \(f = 1 > r\), so \(x \in U \subseteq W\). \(\blacksquare\)

Where it is used

Properties of spaces it gives