Let $\Omega \subseteq \mathbb R^N$ be open and $\varphi$ be a simple function defined on $\Omega$ which vanishes outside a set of finite Lebesgue measure. Then given $\varepsilon \gt 0$ there exists a continuous function $g \in C_c (\Omega)$ with compact support contained in $\Omega$ such that $g = \varphi$ except possibly on a set whose Lebesgue measure is less than $\varepsilon$ and $\|g\|_{\infty} \leq \|\varphi\|_{\infty}.$
This is clearly Lusin's theorem except the last part. Can we somehow manage to find a continuous function which has the same property but it is bounded above by the measurable function we have started with? Any suggestion in this regard would be warmly appreciated.
Thanks for your time.
I wouldn't call that Lusin's theorem (and I don't think that is the common way of stating Lusin's theorem) but rather than $C_c$ is dense in $L^1.$ (In fact, $C_c^\infty$ is dense in $L^p$ for all $p.$) The proof of that post is a Tietze-Urysohn style proof as I was suggesting. If you already have denseness of $C_c$ in $L^1,$ then bounding is easy as the answer below shows.
– William M. May 17 '23 at 21:04