Theorem (Lusin)

Let $E$ be a compact metric space and $μ$ be a finite Borel measure.

For any measurable function $f: E\to \C$ and $ε>0$, there exists a continuous function $g: E\to \C$ such that $\|g\|_\infty \leq \|f\|_\infty$ and $$ \begin{align*} μ(\sb{x\in E}{f(x)\neq g(x)}) < ε. \end{align*} $$

Moreover if $f|_K \equiv 0$ on some closed set $K\subseteq E$, then $g$ can be chosen such that $g|_K \equiv 0$.

Proof