Corollary (inner product space is separable iff has orthonormal basis)

Let $X$ be an inner product space.

$X$ is separable iff $X$ has an orthonormal basis.

Proof