Let $I$ be an open bounded interval of $\mathbb R$. I have recently proved in this thread that the injection $W^{1,p}(I) \subset L^q(I)$ is compact for all $1\le p \leq q<\infty$.
We fix $1\le r < p <\infty$. We have the injection $L^p (I) \subset L^r (I)$ is continuous. Combining this with the above result, we get that the injection $W^{1,p}(I) \subset L^q(I)$ is compact for any $p, q \in [1, \infty)$. This is quite surprising to me when I look at Rellich-Kondrachov theorem.
Could you confirm if my above reasoning is fine?