Proof (Lp(Rd) is separable)
Let $f\in L^p(\R^d)$ and let $ε>0$. We find some $g\in L^p(\R^d)$ such that $\|f - g\|_p < ε$. We will show that the possible $g$'s come from a countable set that is independent of $f$, $ε$.
Let $h\in C_c(\R^d)$ with $\|f - h\|_p < ε/2$. Then $h$ is uniformly continuous, so for all $η>0$, there exists $δ$ such that $|x-y|<δ$ implies $|h(x) - h(y)| < η$.
Let $n$ be large enough such that $\op{diam}([0, 1/n)^d) < δ$. Then cover $\R^d$ with translates of $[0, 1/n)^d$. Let $g$ be function that is constant on each cube in that cover such that $$ \begin{align*} |g(x) - f(x)| < η \quad \text{for all }x \end{align*} $$ and $g$ takes only rational values, and if $h$ vanishes on a cube, then so does $g$. Then $$ \begin{align*} \|f - g\|_p \leq \|f - h\|_p + \|h - g\|_p \leq ε/2 + η \cdot C \end{align*} $$ where $C$ depends on $h$. This is less than $ε$ if $η$ is small enough.
The possible functions that may arise as $g$:
-
Choose $n$
-
Choose a finite subset of countably many cube
-
Choose finitely many rationals
So there are only countably many $g$.