I want to show that $W_0^{1,2}(a,b)$ is the closure of $C_c^{\infty}(a,b)$ by proving that for every $u \in W_0^{1,2}(a,b) ~\exists~ (u_n)_{n \in \mathbb{N}} \in C_c^{\infty}(a,b)$ so that $||u_n - u||_{W_0^{1,2}}$ converges to $0$.
But every explanation of $W_0^{1,2}$ just defines it as the closure of $C_c^{\infty}$. Does anyone know how to actually show this if the definition of $W_0^{1,2}(a,b)$ includes all functions of $W^{1,2}(a,b)$ with $f(a)=f(b)=0$?