Separable Spaces
Statement
A topological space is separable if it contains a countable dense subset :
The real line is separable: is countable and dense in (between any two reals lies a rational). By contrast, an uncountable discrete space (every singleton open) is not separable: any dense set must contain every point.
Visualization
Dense rational approximation to arbitrary reals:
Real line ℝ:
...─────[0]─────[0.3]──[0.33]─[0.333]──···──[1/3]──[0.5]─────[1]─────...
│ │ │ │
3/10 33/100 333/1000 exact ← rationals approaching 1/3
Dense subset D = ℚ:
Every open interval (a, b) ⊆ ℝ contains a rational:
a < p/q < b for some integers p, q (Archimedean property)
a p/q b
──────────────────(──────────•──────────)──────────────▶
↑ ↑
any open ball contains a rational
Non-separable example (co-countable topology comparison):
| Space | Dense subset | Countable? | Separable? |
|---|---|---|---|
| (standard) | yes | yes | |
| (discrete) | itself | no | no |
| yes | yes | ||
| (bounded sequences) | none countable | no | no |
Proof Sketch
is separable:
- Countability: is countable — it bijects with , which is countable.
- Density: For any and , we need a rational in .
- By the Archimedean property, pick with . Then is rational and within of .
- Hence is dense, so and is separable.
General principle: a metrizable separable space has a countable basis, hence is second-countable (the converse direction requires metric structure).
Connections
- Heine–Borel TheoremHeine–Borel TheoremIn ℝⁿ, a subset is compact if and only if it is closed and boundedRead more → — compact metric spaces are separable (a compact metric space has a finite -net for every , yielding a countable dense set).
- Baire Category TheoremBaire Category TheoremIn a complete metric space, the intersection of countably many dense open sets is denseRead more → — in a complete metric space, separability is equivalent to second-countability via
IsSeparable.secondCountableTopology. - Bolzano–Weierstrass TheoremBolzano–Weierstrass TheoremEvery bounded sequence in ℝⁿ has a convergent subsequenceRead more → — a separable metric space satisfies a sequential compactness criterion: bounded sequences have convergent subsequences (Bolzano–Weierstrass gives this for ).
Lean4 Proof
import Mathlib.Topology.Bases
import Mathlib.Topology.Algebra.Order.Archimedean
/-- **ℝ is separable**: the rationals are countable and dense in ℝ.
Mathlib's `Rat.denseRange_cast` gives density of ℚ → ℝ;
`SeparableSpace` bundles the countable dense-subset witness. -/
theorem real_isSeparable : SeparableSpace ℝ := inferInstanceReferenced by
- Second-Countable SpacesTopology