From Simple Approximation to Continuity
A bounded measurable function can be uniformly approximated by finite-valued measurable functions. Each such approximation is constant on finitely many measurable level sets, but that fact alone does not make it continuous: the level sets can meet along boundaries where the function jumps. The useful extra step is to replace each level set by a compact subset, losing only a small amount of measure. On the compact pieces, the finitely many values are separated, and continuity follows. Intersecting the resulting compact sets over all approximation stages gives a set where the original function is continuous.
We work in \((\mathbb{R},\mathcal{L},m)\), where \(m\) is Lebesgue measure. The ambient measure space is not finite; we assume the measurable set \(E\in\mathcal{L}\) has \(m(E)<\infty\). The function \(f:E\to\mathbb{R}\) is real-valued, bounded, and measurable with respect to the relative Lebesgue sigma-algebra on \(E\). Continuity on a subset of \(E\) means continuity for its relative topology.
The measure-theoretic input is the regularity of Lebesgue measure: if \(A\in\mathcal{L}\) has finite measure and \(\eta>0\), there is a compact \(C\subseteq A\) with \(m(A\setminus C)<\eta\). We use this standard regularity theorem without reproving it here. Since every level set used below is a measurable subset of \(E\), it has finite measure and the theorem applies.
Proof by Simple Approximation
Proof. The empty-set case is covered in the theorem statement, so suppose \(E\ne\varnothing\). Choose \(M<\infty\) such that \(|f(x)|\le M\) for every \(x\in E\). For each integer \(n\ge1\), define the finite-valued function \(\varphi_n(x)=2^{-n}\lfloor 2^n f(x)\rfloor\). Because \(f\) is measurable and the floor function has measurable level sets, \(\varphi_n\) is measurable. Boundedness of \(f\) implies that \(\varphi_n\) takes only finitely many values. The defining property of the floor gives, at every \(x\in E\),
In particular, \(\varphi_n\to f\) uniformly on \(E\). Write the nonempty level sets of \(\varphi_n\) as \(A_{n,1},\ldots,A_{n,J_n}\). Since these sets partition the nonempty set \(E\), \(J_n\) is a positive finite integer. They are measurable, pairwise disjoint, and each has finite measure.
For this \(n\), apply regularity to each \(A_{n,j}\), choosing a compact set \(C_{n,j}\subseteq A_{n,j}\) such that \(m(A_{n,j}\setminus C_{n,j})<\varepsilon/(2^{n+1}J_n)\). Set \(F_n=\bigcup_{j=1}^{J_n}C_{n,j}\). This is a finite union of compact sets, hence compact, and \(F_n\subseteq E\). Additivity over the disjoint level sets and the chosen bounds give
The restriction \(\varphi_n|_{F_n}\) is continuous. Indeed, it is constant on each \(C_{n,j}\). Any two distinct sets among this finite collection are disjoint compact subsets of \(\mathbb{R}\), so their distance is positive. If there is more than one nonempty compact piece, the minimum of the finitely many pairwise distances is positive. Consequently, each piece is open as well as closed relative to \(F_n\), and a function constant on each piece is continuous on \(F_n\). If there is only one piece, the restriction is constant and therefore continuous.
Now put \(K=\bigcap_{n=1}^{\infty}F_n\). The set \(K\) is closed in the compact set \(F_1\), since every \(F_n\) is closed in \(\mathbb{R}\); hence \(K\) is compact. Also \(K\subseteq E\). By countable subadditivity,
For every \(n\), \(K\subseteq F_n\), so \(\varphi_n|_K\) is continuous. The estimate \(0\le f-\varphi_n<2^{-n}\) holds on \(K\), and therefore the continuous functions \(\varphi_n|_K\) converge uniformly to \(f|_K\). To verify the continuity conclusion directly, let \(x\in K\) and \(\eta>0\). Choose \(n\) with \(2^{-n}<\eta/3\). Continuity of \(\varphi_n|_K\) at \(x\) gives a relative neighborhood of \(x\) in \(K\) on which \(|\varphi_n(y)-\varphi_n(x)|<\eta/3\). For every \(y\) in that neighborhood,
Thus \(f|_K\) is continuous. The construction also covers the possibility \(K=\varnothing\): the measure estimate still holds, and the restriction to the empty set is continuous. This proves the theorem. \(\square\)
Worked Examples of the Construction
Worked Example: A Three-Valued Function with Jumps
Let \(E=[0,1]\), with Lebesgue measure, and define \(f(x)=0\) on \([0,1/3]\), \(f(x)=1\) on \((1/3,2/3]\), and \(f(x)=2\) on \((2/3,1]\). For the specific compact set \(K=[0,7/24]\cup[9/24,15/24]\cup[17/24,1]\), check its measure and the continuity of \(f|_K\).
The first interval lies in \([0,1/3]\), since \(7/24<8/24=1/3\). The second lies in \((1/3,2/3]\), since \(8/24<9/24\) and \(15/24<16/24=2/3\). The last lies in \((2/3,1]\), since \(17/24>16/24\). Thus \(f\) is constant on each of the three compact pieces. Their lengths are \(7/24\), \(15/24-9/24=6/24\), and \(1-17/24=7/24\). Hence
The pieces are separated by gaps of length \(2/24=1/12\), so each piece is relatively open in \(K\). Since \(f\) is constant on each piece, it is continuous on \(K\). Check: the two omitted gaps each have measure \(1/12\), so their total measure is \(1/12+1/12=1/6\), agreeing with the complement calculation.
Worked Example: One Stage of Quantization for the Identity
Take \(E=[0,1]\) and \(f(x)=x\). At level \(n=2\), the quantized approximation is \(\varphi_2(x)=\lfloor4x\rfloor/4\) for \(0\le x<1\), with \(\varphi_2(1)=1\). Select compact subsets inside its level sets and compute the retained measure.
For \(k=0,1,2,3\), the level set with value \(k/4\) contains \([k/4,(k+1)/4)\). Choose the compact interval \(C_k=[k/4+1/32,(k+1)/4-1/32]\). Its endpoints lie strictly inside that level interval: the left endpoint exceeds \(k/4\), and the right endpoint is less than \((k+1)/4\). Each interval has length \((k+1)/4-1/32-(k/4+1/32)=1/4-1/16=3/16\). Also choose the compact singleton \(\{1\}\) from the level set at \(1\). The set \(F=C_0\cup C_1\cup C_2\cup C_3\cup\{1\}\) is compact. The intervals are disjoint, and the singleton has measure zero, so
The approximation error is less than \(1/4\) on \([0,1)\), because \(0\le x-\lfloor4x\rfloor/4<1/4\), and it is zero at \(x=1\). On \(F\), \(\varphi_2\) is constant on each separated compact piece. This is one approximation stage; it does not by itself establish continuity of \(f\) on \(F\). The theorem uses compact pieces at every stage and their intersection, where the errors tend uniformly to zero. Check: the four intervals have total length \(4(3/16)=12/16=3/4\), leaving \(1/4\) of \([0,1]\) outside them, apart from the measure-zero singleton.
Worked Example: Removing a Single Discontinuity
On \(E=[0,1]\), let \(f(0)=1\) and \(f(x)=x\) for \(0<x\le1\). For \(\varepsilon=1/8\), take \(K=[1/10,1]\) and verify the two conclusions.
The function is bounded and measurable: it differs from the continuous identity function at just one measurable point. The set \(K\) is compact and contained in \(E\). On \(K\), every point is positive, so \(f(x)=x\); consequently \(f|_K\) is continuous. The removed set is \([0,1/10)\), whose Lebesgue measure is \(1/10\). Since \(1/10<1/8\), we have \(m(E\setminus K)<\varepsilon\). Check: \(m(K)=1-1/10=9/10\), so \(m(E\setminus K)=1-9/10=1/10\), as computed.
A Common Pitfall: Levelwise Constancy Is Not Enough
Consider the measurable simple function \(s\) on \([0,1]\) defined by \(s(x)=0\) for \(0\le x\le1/2\) and \(s(x)=1\) for \(1/2<x\le1\). A tempting but incorrect argument says that \(s\) is continuous because it is constant on each of its two level sets. For a concrete test, let \(x_j=1/2-1/j\) for integers \(j\ge3\). Then \(x_j\to1/2\), but \(s(x_j)=0\) for every \(j\), whereas \(s(1/2)=0\); from the left there is no failure. From the right, let \(y_j=1/2+1/j\), also for \(j\ge3\). Then \(y_j\to1/2\), \(s(y_j)=1\), and \(s(1/2)=0\), so \(s\) is discontinuous at \(1/2\). Constancy on each level set does not control how different level sets meet.
The correction is to use compact subsets that stay away from the boundary between the level sets. For instance, \(K=[0,1/2-1/10]\cup[1/2+1/10,1]\) is compact; the restriction of \(s\) to each separated component is constant and hence continuous. The removed interval has measure \(1/5\), computed from its length \(1/10+1/10=1/5\). The general proof repeats this compact selection for every simple approximation, assigns a summable measure budget to all stages, and then uses uniform convergence on the intersection. It does not claim that the original function is continuous on all of \(E\), or even on an arbitrary compact subset of \(E\).
The method matters because it turns measurable information into continuity after discarding a set of controlled measure. The key ingredients are distinct: uniform quantization controls the values of the function; regularity supplies compact pieces; summability controls the total measure lost; and the uniform-limit argument transfers continuity from the approximants to \(f\). No assumption that \(E\) itself is compact or bounded is needed, only measurability and \(m(E)<\infty\).
Check Your Understanding
Use the proof and examples to check how each hypothesis and construction is used.
- Why does boundedness of \(f\) ensure that each quantized function \(\varphi_n\) has finite range?
- In the proof, why is \(J_n\) positive, and what separate case is needed if \(E=\varnothing\)?
- Explain why two disjoint compact subsets of \(\mathbb{R}\) have positive distance, and how that fact gives continuity of \(\varphi_n|_{F_n}\).
- For the three-valued function example, calculate the measure of the two omitted gaps separately and add them.
- Why does continuity of each \(\varphi_n\) on \(K\), together with uniform convergence there, imply continuity of \(f|_K\)? State the error estimate used in the proof.