I have two problems, one of which depends on the other.
(1) I want to prove, cleanly (without too much heavy-weight machinery) that, for some (see (2)) set $\Omega \subseteq \mathbb{R}^n$, the space $C^\infty_0(\Omega) := \{f\in C^\infty(\Omega)~|~\text{supp}(f) \text{ is compact in } \Omega \}$ is dense in $L^2(\Omega)$.
(2) My first question depends on the second in the following sense: what is the most general/"largest" collection of subsets $\Omega \subseteq \mathbb{R}^n$ for which $\overline{C^\infty_0(\Omega)}=L^2(\Omega)$?
My intuition for (1) is to approximate the smooth, compactly-supported functions with compactly-supported step functions. Then, since $L^2(\Omega)$ is the space of square-integrable functions, and the Lebesgue integral of a function is defined as the limit of the integrals of a sequence of step functions, for any $f \in L^2(\Omega)$ we can find such a sequence that approximates $f$ in the $L^2$-norm. Using that the compactly-supported step functions are at least $L^2$-dense in the square-integrable step functions, the claim should follow. Is my reasoning correct? Have I omitted any necessary details?
I have no real idea how to approach (2), though logically such a collection ought to include at least the collection of Lebesgue-measurable sets.
Thanks in advance! :-)
In advance: I don't have enough reputation to comment. This will not be a full answer.
I've worked through the density problem in a German professor's lecture notes.
You might actually get enough information out of them without really understanding German, since she relies heavily on symbolic notation. It's also proven for general $L^p$-spaces (except for $L^\infty$, of course).
These are the lecture notes: http://www.minet.uni-jena.de/~haroske/ha-1/ha-1_2.pdf
Look at page 46 ff.. There may be references to her first part of these notes, which you can get at http://www.minet.uni-jena.de/~haroske/ha-1/ha-1_2.pdf.
There are very few German words really, hardly a sentence, so any online dictionary might serve you well enough. The proof is quite elementary, you only need some knowledge about the Lebesgue integral as far as I remember.