Let
- $X$ be a metric space,
- $\mathcal C_b(X)$ the space of real-valued bounded continuous functions,
- $\mathcal C_0(X)$ the space of real-valued continuous functions that vanish at infinity, and
- $\mathcal C_c(X)$ the space of real-valued continuous functions with compact supports.
Then $\mathcal C_b(X)$ and $\mathcal C_0(X)$ are real Banach space with supremum norm $\|\cdot\|_\infty$. It's mentioned here that "if $E$ is locally compact and separable, then $\mathcal C_0 (E)$ is separable". Now I would like to prove a somehow reverse direction, i.e.,
Theorem: If $X$ is locally compact and $\mathcal C_c (X)$ is separable, then $X$ is separable.
Could you have a check on my below attempt?
Proof: Because $\mathcal C_0(X)$ is the closure of $\mathcal C_c(X)$ in $\mathcal C_b(X)$, it suffices to show that
If $X$ is locally compact and $\mathcal C_0 (X)$ is separable, then $X$ is separable.
Let $\mathcal M(X)$ the space of finite signed Radon measures on $X$. Let $[\cdot]$ be the total variation norm on $\mathcal M(X)$. We define a map $$ f:X \to \mathcal M(X), x \mapsto \delta_x. $$
Notice that $f(X)$ is a subset of the closed unit ball of $\mathcal M (X)$. Let $E := \mathcal C_0 (X)$. By Riesz–Markov–Kakutani theorem, $(\mathcal M(X), [\cdot])$ is isometrically isomorphic to $E^*$ though a canonical map $\Phi:\mathcal M(X) \to E^*$. Let $B$ be the closed unit ball of $E^*$. Clearly, $\Phi \circ f (X) \subset B$.
By Banach-Alaoglu's theorem, $B$ is compact in the weak$^*$ topology $\sigma(E^*, E)$. Because $E$ is separable, the subspace topology $\sigma_B(E^*, E)$ that $\sigma(E^*, E)$ induces on $B$ is metrizable. It follows that $\sigma_B(E^*, E)$ is compact metrizable and thus separable.
If one proves that $\Phi \circ f$ is a homeomorphism from $X$ (together with metric topology) onto $\Phi \circ f(X)$ (together with its subspace topology induced by $\sigma_B(E^*, E)$), It would follow that $X$ is separable.