16.2 Dense subspaces of \(L_2\)
In this section \(\mu \) is a measure on a finite-dimensional real normed space \(E\), and the complex-valued \(L_2(\mu )\) is the Hilbert space of square-integrable functions \(E \to \mathbb {C}\) modulo \(\mu \)-null sets, with \(\langle f, g \rangle _{L_2(\mu )} = \int \overline f g \, d\mu \). A continuous linear operator into a Hilbert space has dense range if and only if the orthogonal complement of its range is \(\{ 0\} \) (Lemma 16.1).
Let \(E\) be a finite-dimensional real normed space, \(\mu \) a locally finite Borel measure on \(E\) and \(U \subseteq E\) open with \(\mu (E \setminus U) = 0\).
Let \(1 \leq p \leq \infty \) and \(F\) a real Banach space. If \(f \in L_p(\mu ; F)\) satisfies \(\int \psi f \, d\mu = 0\) for every smooth \(\psi : E \to \mathbb {R}\) with compact support in \(U\), then \(f = 0\).
Let \(T : Y \to L_2(\mu )\) be a continuous linear operator from a complex topological vector space \(Y\) into the complex-valued \(L_2(\mu )\). If the range of \(T\) contains, up to \(\mu \)-null sets, every smooth \(\psi : E \to \mathbb {R}\) with compact support in \(U\), then \(T\) has dense range.
Since \(\mu \) is locally finite and \(p \geq 1\), \(f\) is locally integrable (Mathlib’s MemLp.locallyIntegrable), and the fundamental lemma of the calculus of variations (Mathlib’s IsOpen.ae_eq_zero_of_integral_contDiff_smul_eq_zero) gives \(f = 0\) almost everywhere on \(U\), hence \(\mu \)-almost everywhere. If a complex-valued \(f \in L_2(\mu )\) is orthogonal to the range of \(T\), then \(\int \psi f \, d\mu = \langle \psi , f \rangle _{L_2(\mu )} = 0\) for every such \(\psi \), since \(\psi \) is real, so \(f = 0\) by the first part with \(p = 2\) and \(F = \mathbb {C}\), and Lemma 16.1 applies.