# Separable space

In mathematics a topological space is called separable if it contains a countable, dense subset; that is, there exists a sequence $\{x_{n}\}_{n=1}^{\infty }$ of elements of the space such that every nonempty open subset of the space contains at least one element of the sequence.

Like the other axioms of countability, separability is a "limitation on size", not necessarily in terms of cardinality (though, in the presence of the Hausdorff axiom, this does turn out to be the case; see below) but in a more subtle topological sense. In particular, every continuous function on a separable space whose image is a subset of a Hausdorff space is determined by its values on the countable dense subset.

Contrast separability with the related notion of second countability, which is in general stronger but equivalent on the class of metrizable spaces.

## First examples

Any topological space which is itself finite or countably infinite is separable, for the whole space is a countable dense subset of itself. An important example of an uncountable separable space is the real line, in which the rational numbers form a countable dense subset. Similarly the set of all vectors $(r_{1},\ldots ,r_{n})\in \mathbb {R} ^{n}$ in which $r_{i}$ is rational for all i is a countable dense subset of $\mathbb {R} ^{n}$ ; so for every $n$ the $n$ -dimensional Euclidean space is separable.

A simple example of a space which is not separable is a discrete space of uncountable cardinality.

Further examples are given below.

## Separability versus second countability

Any second-countable space is separable: if $\{U_{n}\}$ is a countable base, choosing any $x_{n}\in U_{n}$ from the non-empty $U_{n}$ gives a countable dense subset. Conversely, a metrizable space is separable if and only if it is second countable, which is the case if and only if it is Lindelöf.

To further compare these two properties:

• An arbitrary subspace of a second countable space is second countable; subspaces of separable spaces need not be separable (see below).
• Any continuous image of a separable space is separable Template:Harv.; even a quotient of a second countable space need not be second countable.
• A product of at most continuum many separable spaces is separable. A countable product of second countable spaces is second countable, but an uncountable product of second countable spaces need not even be first countable.

## Cardinality

The property of separability does not in and of itself give any limitations on the cardinality of a topological space: any set endowed with the trivial topology is separable, as well as second countable, quasi-compact, and connected. The "trouble" with the trivial topology is its poor separation properties: its Kolmogorov quotient is the one-point space.

A first countable, separable Hausdorff space (in particular, a separable metric space) has at most the continuum cardinality ${\mathfrak {c}}$ . In such a space, closure is determined by limits of sequences and any convergent sequence has at most one limit, so there is a surjective map from the set of convergent sequences with values in the countable dense subset to the points of $X$ .

The product of at most continuum many separable spaces is a separable space Template:Harv. In particular the space $\mathbb {R} ^{\mathbb {R} }$ of all functions from the real line to itself, endowed with the product topology, is a separable Hausdorff space of cardinality $2^{\mathfrak {c}}$ . More generally, if $\kappa$ is any infinite cardinal, then a product of at most $2^{\kappa }$ spaces with dense subsets of size at most $\kappa$ has itself a dense subset of size at most $\kappa$ (Hewitt–Marczewski–Pondiczery theorem).

## Constructive mathematics

Separability is especially important in numerical analysis and constructive mathematics, since many theorems that can be proved for nonseparable spaces have constructive proofs only for separable spaces. Such constructive proofs can be turned into algorithms for use in numerical analysis, and they are the only sorts of proofs acceptable in constructive analysis. A famous example of a theorem of this sort is the Hahn–Banach theorem.

## Properties

• A subspace of a separable space need not be separable (see the Sorgenfrey plane and the Moore plane), but every open subspace of a separable space is separable, Template:Harv. Also every subspace of a separable metric space is separable.
• In fact, every topological space is a subspace of a separable space of the same cardinality. A construction adding at most countably many points is given in Template:Harv; if the space was a Hausdorff space then the space constructed which it embeds into is also a Hausdorff space.
• The set of all real-valued continuous functions on a separable space has a cardinality less than or equal to c. This follows since such functions are determined by their values on dense subsets.
• From the above property, one can deduce the following: If X is a separable space having an uncountable closed discrete subspace, then X cannot be normal. This shows that the Sorgenfrey plane is not normal.
• For a compact Hausdorff space X, the following are equivalent:
(i) X is second countable.
(ii) The space ${\mathcal {C}}(X,\mathbb {R} )$ of continuous real-valued functions on X with the supremum norm is separable.
(iii) X is metrizable.

### Embedding separable metric spaces

For nonseparable spaces: