Is every Hilbert space separable?

The space $l^2(\mathbb R)$ is another example of a non-separable Hilbert space: It consists of all functions $f:\mathbb R\to\mathbb R$ such that $f(x)\ne0$ only for countable many $x$, and $$ \sum_{x\in \mathbb R}f(x)^2 <\infty. $$ It is easy to see that this is a Hilbert space, the crucial argument is that the countable union of countable sets is countable.

The functions $f_y$ defined by $$ f_y(x) = \begin{cases} 1 &\text{ if } x=y\\ 0 & \text{ else}\end{cases} $$ are an uncountable set of elements with distance $\sqrt2$, hence $l^2(\mathbb R)$ is uncountable.


The set of almost periodic functions with the inner product $$\langle f, g \rangle = \lim_{N \to \infty} \frac{1}{2N} \int_{-N}^N f(x) \overline{g(x)}dx$$ has an uncountable orthonormal family $\{e^{i \omega x}\}_{\omega \in \mathbb{R}}$. Its completion is a non-separable Hilbert space.