I would like to show, out of curiosity really, that Weierstrass-Stone Thm fails when the underlying space is not compact. Specifically, I think that $C_b(\Bbb R), $ the space of bounded continuous functions on $\Bbb R $ should suffice.
To this purpose, I recall from my grad student days that $\ell^\infty $ is not separable and from it, it is not too complicated to show that, for instance, $D=\{f:[1, \infty) \mapsto C\} $ where $f $ continuous and bounded is also not separable.
At this point, the only difference with the statement of the Weierstrass-Stone Thm is that my $D$ is not separable in $C_B(\Bbb R) $ instead of dense. But, my thinking is that if I can find an algebra of functions that separates points in $C_b(\Bbb R), $ then I should be in business..
Unfortunately, I cannot see how to close the argument or find an example that clearly shows that W-S. Theorem fails on non-compacts.
Any help would be appreciated.
Maurice
Take $A$ the algebra of continuous functions with compact support. It forms an algebra that satisfies the conditions of Stone-Weierstass theorem. Its closure for the uniform norm is the set of continuous functions which vanish at infinity.