Metrizable Spaces
Statement
A topological space is metrizable if there exists a metric such that equals the metric topology (open balls form a basis):
Urysohn Metrization Theorem: A regular Hausdorff () second-countable topological space is metrizable.
In Mathlib, MetrizableSpace X extends PseudoMetrizableSpace X (admits a compatible pseudometric) with T0Space X. Every metrizable space is (Hausdorff) and regular.
Visualization
as a metrizable space — Euclidean metric induces the standard topology:
ℝ² with Euclidean metric d(x,y) = √((x₁-y₁)² + (x₂-y₂)²):
y₂
│ r
│ ╭──────╮
│ / p \ Open ball B_r(p) = {x : d(x,p) < r}
│ \ /
│ ╰──────╯
└──────────────────── y₁
Standard topology basis: {B_r(p) : p ∈ ℚ², r ∈ ℚ₊} ← countable
Finite products of metrizable spaces are metrizable:
d_prod((x,y),(x',y')) = max(d_X(x,x'), d_Y(y,y')) or √(d_X² + d_Y²)
Which spaces are metrizable?
| Space | Metrizable? | Witness |
|---|---|---|
| yes | Euclidean metric | |
| (Hilbert cube) | yes | <span class="math-inline" data-latex="\sum 2^{-n} |
| (uncountable product) | no | not first-countable |
| Discrete uncountable | yes | |
| Co-finite topology on | no | not Hausdorff |
Proof Sketch
Urysohn Metrization (sketch):
- Separation: is regular () and second-countable; by Urysohn's lemma, for each pair of disjoint closed sets there exists a continuous with , .
- Countable separating family: second-countability yields countably many such functions that separate points.
- Embedding: define by . This is a topological embedding (continuous, injective, open onto image).
- Hilbert cube is metrizable: carries the metric , which is compatible with the product topology.
- Subspace metric: pull the Hilbert cube metric back through to get a compatible metric on .
Connections
- Second-Countable SpacesSecond-Countable SpacesA topological space is second-countable if its topology has a countable basisRead more → — second-countability is the key hypothesis in Urysohn metrization; without it regularity alone does not suffice.
- Regular SpaceRegular SpaceA topological space is regular if a closed set and a disjoint point can be separated by open neighborhoodsRead more → — the axiom (regular + ) is the other hypothesis; together with second-countability it characterizes metrizable spaces among spaces.
- Urysohn's LemmaUrysohn's LemmaIn a normal space, disjoint closed sets can be separated by a continuous functionRead more → — the core tool in the metrization proof: normal spaces admit continuous real-valued separation functions.
- Tychonoff's TheoremTychonoff's TheoremAn arbitrary product of compact spaces is compact in the product topologyRead more → — the Hilbert cube is compact by Tychonoff; Urysohn metrization embeds second-countable regular spaces into it.
Lean4 Proof
import Mathlib.Topology.Metrizable.Basic
import Mathlib.Topology.MetricSpace.ProperSpace
/-- Every pseudometric space is pseudo-metrizable — direct instance. -/
instance {X : Type*} [PseudoMetricSpace X] : PseudoMetrizableSpace X :=
inferInstance
/-- **ℝ is metrizable** (T0 + pseudo-metrizable). -/
theorem real_metrizable : MetrizableSpace ℝ := inferInstance
/-- Products of metrizable spaces are metrizable. -/
theorem prod_metrizable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
[MetrizableSpace X] [MetrizableSpace Y] : MetrizableSpace (X × Y) :=
inferInstanceReferenced by
- Regular SpaceTopology