I would like to prove that the almost-everywhere constant functions, and the functions whose integral is 0 are closed subspaces of $L^2(0,1)$. It's readily seen that they are subspaces. I'm finding some difficulties trying to show that they are closed.
For example, with the constants:
I take a convergent sequence of almost-everywhere constant functions $f_n$. It converges to a function $y$. I know that for each $\epsilon>0$ i can find a $n_\epsilon$ such that for $n>n_\epsilon$ I have
$\int\limits_{0}^{1}|f_n(x)-y(x)|^2 dx<\epsilon$
Well It's obvious that $y$ is a constant a.e. but how can I show it formally? Same problem for the convergent sequences of functions $u_n$ such that $\int\limits_{0}^{1}u_n(x)dx=0.$
Any help is appreciated.