I am studying $L^p$ spaces and I ve found this exercise I could not solve.
Let $f$ $L^p(\mathbb{R}^n), 1 \le p < \infty$ then $\|f(x + h) - f(x)\|_{L^p} \to 0 \Leftarrow |h| \to 0.$
It supposed to be easy since the continuos functions with compact support are dense in $L^p(\mathbb{R}^n)$ but I don't how to use this to conclude the result.
I tried to do:
Given $f \in L^p(\mathbb{R}^n)$ there existis a sequence $(f_n) \in \mathcal{C}_c(\mathbb{R}^n)$ such that $\|f_n - f\|_{L^p} \to 0 \Leftarrow n\to \infty.$
$\|f(x + h) - f(x)\|_{L^p} \le \|f(x+h)-f_n(x)\|_{L^P} + \|f(x) - f_n(x)\|_{L^p}.$
So, I can work with the second right term, but I have no idea what to do with the first.
Thanks