If a product is separable and its second factor is nonempty, its first factor is separable

If \(X \times Y\) is separable and \(Y\) is nonempty, then \(X\) is separable.

See it in Lean

Axioms
ZFC only
Construction
Binary product

Statement

If \(X \times Y\) is separable and \(Y\) is nonempty, then \(X\) is separable.

Proof

Let \(D\) be a countable dense subset of \(X \times Y\) and let \(\pi : X \times Y \to X\) be the projection. The set \(\pi(D)\) is countable. We show that it is dense. Let \(U\) be a nonempty open subset of \(X\). Since \(Y\) is nonempty, \(U \times Y\) is a nonempty open subset of \(X \times Y\), so it contains a point \(d\) of \(D\), and then \(\pi(d) \in U \cap \pi(D)\). \(\blacksquare\)

The hypothesis that \(Y\) is nonempty is needed: \(X \times \emptyset\) is empty, and so separable, whatever \(X\) is.

Where it is used

Examples it describes

Used to work out the properties of the example for 21 of the combinations that occur in Connectedness and disconnectedness:

The 21 examples

Properties of spaces it gives