Discrete spaces are metrizable

If \(X\) is discrete, then it is metrizable.

See it in Lean

Axioms
ZFC only

Statement

Every discrete space is metrizable.

Proof

Let \(X\) be discrete, and define \(d(x, y) = 1\) for \(x \ne y\) and \(d(x, x) = 0\). This is a metric: it is symmetric and vanishes exactly when \(x = y\), and it satisfies \(d(x, z) \le d(x, y) + d(y, z)\), since if \(x \ne z\) then \(y\) differs from \(x\) or from \(z\), so the right-hand side is at least \(1\). For each \(x \in X\) the ball \(B(x, 1)\) is \(\{x\}\), so every singleton is open in the topology of \(d\), and therefore so is every subset of \(X\). The topology of \(d\) is thus the discrete topology. \(\blacksquare\)

Where it is used

Properties of spaces it gives

Cited on space pages