Is the space of piecewise continuous functions on $[0,1]$ complete in $L^2[0,1]$?

This is false. Let $C$ be a 'fat' Cantor set of positive measure. Since $C$ is closed we can find continuous functions $f_n$ with values in $[0,1]$ such that $f_n \to I_C$ pointwise. By Bounded Convergence Theorem $f_n \to I_C$ in $L^{2}[0,1]$. But $I_C$ is not piecewise continuous.


If you now that $C[0,1]$ is dense in $L^2(0,1)$, there is another simple approach: Since $PC[0,1]$ contains $C[0,1]$, the closure of $PC[0,1]$ is $L^2(0,1)$. From $PC[0,1] \ne L^2(\Omega)$, this implies that $PC[0,1]$ is not closed. Thus, $PC[0,1]$ cannot be complete.


If $P[0,1]$ were not dense in $L^2[0,1]$, then there would exist $f\in L^2[0,1]$, $f\ne 0$, such that $\langle f, \chi_{[0,a]}\rangle = 0$ for all $0 \le a \le 1$. But that would imply that $\int_0^a f(t)dt=0$ for all $a$. By the Lebesgue Differentiation Theorem, $\frac{d}{da}\int_0^1 f(t)dt=f(a)$ a.e., which would imply that $f=0$ in $L^2[0,1]$ and give a contradiction. Therefore $P[0,1]$ is dense in $L^2$.