20

How do I prove that a metric space is separable iff it is second countable?

Heisenberg
  • 3,227

2 Answers2

34

HINT: One direction is pretty trivial; I’ll leave it to you, at least for now. The harder direction is to prove that a separable metric space is second countable. Suppose that $\langle X,d\rangle$ is a separable metric space. Then $X$ has a countable dense subset $D$. The set $\Bbb Q$ of rational numbers is countable, so

$$\mathscr{B}=\{B(x,r):x\in D\text{ and }0<r\in\Bbb Q\}$$

is a countable family of open balls in $X$. (Here $B(x,r)=\{y\in X:d(x,y)<r\}$ is the open ball of radius $r$ centred at $x$.) Show that $\mathscr{B}$ is a base for the metric topology on $X$. In other words, show that if $U$ is a non-empty open set in $X$, and $x\in U$, then $x\in B\subseteq U$ for some $B\in\mathscr{B}$. You will find it helpful to note that there is some $\epsilon>0$ such that $B(x,\epsilon)\subseteq U$; thus, you need only show that there is some $B(y,r)\in\mathscr{B}$ such that $x\in B(y,r)\subseteq B(x,\epsilon)$. The triangle inequality will be helpful.

Brian M. Scott
  • 616,228
  • Why do you say that $x\in U$, then $x\in B \subseteq U$. I think it is better to say that if $U$ is a non-empty open set in $X$, then exist $B\subseteq U$ for some $B\in \mathcal{B}$. – Schrödinger's Cat Oct 23 '16 at 03:53
  • @Schrödinger'sCat: It isn't enough to say that $B\in\mathscr{B}$; it's crucial that $x\in B$ as well. What I wrote specifies both requirements efficiently and understandably. – Brian M. Scott Oct 23 '16 at 09:55
  • The basis you defined, is it that since every element of $D$ enumerable, you're basically indexing by $\mathbb{Q}$, or is this kinda isomorphic to $\mathbb{N} \times \mathbb{Q}$? – INQUISITOR Oct 04 '20 at 17:30
  • @user439126: I’ve indexed $\mathscr{B}$ by $D\times\Bbb Q^+$; $D$ and $\Bbb Q^+$ are both countable, and the Cartesian product of two countable sets is countable. – Brian M. Scott Oct 04 '20 at 17:37
  • Got it, thank you – INQUISITOR Oct 04 '20 at 17:40
  • @user439126: You’re welcome. – Brian M. Scott Oct 04 '20 at 17:41
7

For one implication you have a countable base of your space. Take a point in every element of the base. Since every open set is union of elements of the base, every open sets contains one of the choosen points...

Conversely, if you have a countable dense set, consider the family of all open balls with rational radius centered in your set. This family is countable, and it is easy to show that it is a base.