Tutorials › Measure Theory › Dyadic Simple Approximants for Nonnegative Functions

Simple Functions and Approximation · Tutorial 208 of 798

Dyadic Simple Approximants for Nonnegative Functions

Learn how dyadic quantization and a finite range cutoff produce measurable simple functions that approach a nonnegative measurable function.

Intermediate 9 min read

What You'll Learn

  • Define the dyadic level-and-range approximant for an extended nonnegative measurable function
  • Write its level sets using measurable inverse images, with endpoints assigned precisely
  • Explain why the approximant is a finite-valued measurable simple function
  • Verify that the approximants increase pointwise to the original function
  • Calculate dyadic approximants for bounded and unbounded examples
  • Recognize why quantization without a range cutoff may fail to be simple

Quantize the Values and Cut Off the Range

A nonnegative measurable function may take infinitely many values, or even the value \(+\infty\), so it is not itself necessarily a simple function. A dyadic approximant replaces its values by multiples of \(2^{-n}\) and caps those values at \(n\). The grid becomes finer as \(n\) increases, while the cap moves outward. These two operations together give a finite-valued function at each stage, even when the original function is unbounded.

Throughout, let \((X,\mathcal{M},\mu)\) be any measure space; it need not be finite, sigma-finite, or complete. Let \(f:X\to[0,\infty]\) be an extended-real-valued measurable function. All the pointwise equalities and inequalities below hold everywhere on \(X\). We use the floor \(\lfloor r\rfloor\), the greatest integer less than or equal to the finite real number \(r\).

Definition: For each integer \(n\ge1\), define the dyadic level-and-range approximant \(s_n:X\to[0,\infty)\) by $$ s_n(x)= \begin{cases} 2^{-n}\lfloor 2^n f(x)\rfloor,& f(x)<n,\\ n,& f(x)\ge n. \end{cases} $$ In particular, \(s_n(x)=n\) when \(f(x)=+\infty\). Equivalently, quantize to the grid \(2^{-n}\mathbb{Z}\) below \(n\), and use the cap \(n\) at and above \(n\).

The cap is part of the construction, not an optional convention: it limits the range to finitely many values. The level sets specify exactly which grid value is assigned. For \(k=0,\ldots,n2^n-1\), set $$ E_{n,k}=\left\{x\in X:\frac{k}{2^n}\le f(x)<\frac{k+1}{2^n}\right\}, $$ and set \(E_{n,*}=\{x\in X:f(x)\ge n\}\). The lower endpoint is included and the upper endpoint is excluded; thus a value exactly on a grid boundary belongs to the interval starting at that boundary.

These sets are measurable. Indeed, for \(a\le b\), the set \(\{a\le f<b\}\) is \(\{f\ge a\}\setminus\{f\ge b\}\), and the level sets of an extended-real-valued measurable function are measurable. Also \(\{f\ge n\}\in\mathcal{M}\). The sets \(E_{n,k}\) and \(E_{n,*}\) are pairwise disjoint and cover \(X\): every value in \([0,n)\) lies in exactly one of the half-open grid intervals, and every value in \([n,\infty]\) lies in the cap set. Consequently, $$ s_n=\sum_{k=0}^{n2^n-1}\frac{k}{2^n}\chi_{E_{n,k}}+n\chi_{E_{n,*}}. $$ This finite sum exhibits \(s_n\) as a measurable simple function. Some of its level sets may be empty; that does not affect the finite-valued property.

Basic Properties of the Approximants

Proposition: For every \(n\ge1\), the function \(s_n\) is a measurable simple function and \(0\le s_n\le f\) everywhere. If \(f(x)<n\), then \(0\le f(x)-s_n(x)<2^{-n}\).

Proof. The level sets in the displayed representation are measurable and form a finite partition of \(X\), so that representation makes \(s_n\) a measurable simple function. If \(f(x)<n\), the defining property of the floor gives $$ \lfloor 2^n f(x)\rfloor\le 2^n f(x)<\lfloor 2^n f(x)\rfloor+1. $$ Multiplying by \(2^{-n}>0\) yields \(s_n(x)\le f(x)<s_n(x)+2^{-n}\), which gives both the lower bound and the strict error bound. If \(f(x)\ge n\), including the case \(f(x)=+\infty\), then \(s_n(x)=n\le f(x)\) and \(s_n(x)\ge0\). Thus the asserted bounds hold at every point. \(\square\)

Proposition: The sequence \((s_n)\) is increasing pointwise and converges pointwise to \(f\), with \(+\infty\) allowed as a limit.

Proof. Fix \(x\in X\) and write \(t=f(x)\). If \(t=+\infty\), then \(s_n(x)=n\) for every \(n\), so the sequence increases to \(+\infty\). Suppose next that \(t<+\infty\). If \(t<n\), then the cap does not apply at either index \(n\) or \(n+1\). Since \(2^{n+1}t=2(2^nt)\), the floor identity $$ \lfloor 2^{n+1}t\rfloor=2\lfloor 2^nt\rfloor+r,\qquad r\in\{0,1\}, $$ shows that \(s_{n+1}(x)\ge s_n(x)\). If \(t\ge n\), then \(s_n(x)=n\). When \(n\le t<n+1\), quantization at level \(n+1\) gives \(s_{n+1}(x)\ge n\); when \(t\ge n+1\), the cap gives \(s_{n+1}(x)=n+1\). Hence the sequence is increasing in this case as well.

For convergence, fix finite \(t\). For every integer \(n>t\), the cap does not apply, and the floor estimate already proved gives \(0\le t-s_n(x)<2^{-n}\). Given any \(\varepsilon>0\), choose \(N\) so large that \(2^{-N}<\varepsilon\) and \(N>t\). For \(n\ge N\), we have \(0\le t-s_n(x)<2^{-n}\le2^{-N}<\varepsilon\), so \(s_n(x)\to t\). The infinite case was established at the start. Thus \(s_n(x)\uparrow f(x)\) for every \(x\in X\). \(\square\)

These are pointwise statements about simple functions; they do not require an integral or any assumption on the size of \(\mu(X)\). The construction supplies a specific sequence, rather than a claim that every nonnegative measurable function has such an approximation. The general approximation result is a separate theorem.

Worked Calculations

Worked Example: A Bounded Function on the Unit Interval

Take \(X=[0,1]\), \(\mathcal{M}\) the Lebesgue sigma-algebra, \(\mu=m\), and \(f(x)=x\). This is a real-valued measurable function. Compute \(s_2\).

Here \(2^2=4\) and the cap is \(2\). Since \(0\le x\le1<2\), the cap set \(E_{2,*}=\{x\in[0,1]:x\ge2\}\) is empty. For \(k=0,1,2,3\), the level sets are the corresponding quarter-intervals. The fourth grid interval \([1,5/4)\) intersects the domain only at \(x=1\). Thus $$ s_2(x)= 0\chi_{[0,1/4)}(x) +\frac14\chi_{[1/4,1/2)}(x) +\frac12\chi_{[1/2,3/4)}(x) +\frac34\chi_{[3/4,1)}(x) +1\chi_{\{1\}}(x). $$ The coefficient at \(x=1\) is \(1\), since \(\lfloor4\cdot1\rfloor/4=1\); the endpoint is not lost by using half-open intervals.

Check: At \(x=3/8\), \(4x=3/2\), so \(\lfloor4x\rfloor=1\) and \(s_2(3/8)=1/4\). At \(x=1\), the formula gives \(s_2(1)=1\), agreeing with the definition. In both cases \(0\le x-s_2(x)<1/4\), as the proposition requires.

Worked Example: Exact Grid Values in a Bounded Step Function

On \(X=[0,1]\) with Lebesgue measure, define \(A=[0,1/3)\), \(B=[1/3,1]\), and let \(f=3/8\) on \(A\) and \(f=7/8\) on \(B\). These sets are measurable, disjoint, and cover \(X\). Compute \(s_1\).

The grid spacing is \(2^{-1}=1/2\), and the cap is \(1\). On \(A\), \(0\le3/8<1/2\), so \(A=E_{1,0}\) and the assigned value is \(0\). On \(B\), \(1/2\le7/8<1\), so \(B=E_{1,1}\) and the assigned value is \(1/2\). Neither set meets the cap \(\{f\ge1\}\). Therefore $$ s_1=0\chi_A+\frac12\chi_B. $$ The endpoint \(x=1/3\) belongs to \(B\), so \(s_1(1/3)=1/2\), not \(0\).

Check: On \(A\), \(f-s_1=3/8-0=3/8<1/2\). On \(B\), \(f-s_1=7/8-1/2=3/8<1/2\). The same error occurs on both pieces, and it is strictly less than the grid spacing.

Worked Example: An Unbounded Function on the Half-Line

Take \(X=[0,\infty)\) with its Lebesgue sigma-algebra and Lebesgue measure \(m\), and let \(f(x)=x\). The function is nonnegative and measurable but unbounded. Compute \(s_2\).

For \(k=0,\ldots,7\), the level set is \(E_{2,k}=[k/4,(k+1)/4)\). The cap set is \(E_{2,*}=[2,\infty)\). In full, $$ s_2=\sum_{k=0}^{7}\frac{k}{4}\chi_{[k/4,(k+1)/4)}+2\chi_{[2,\infty)}. $$ This is a simple function with at most nine values, despite \(f\) being unbounded. For example, \(x=13/8\) belongs to \([6/4,7/4)\), so \(s_2(13/8)=6/4=3/2\). At \(x=2\), the level interval \([2,9/4)\) is not among the uncapped intervals; \(x=2\) belongs to the cap and \(s_2(2)=2\).

Check: At \(13/8\), the error is \(13/8-3/2=13/8-12/8=1/8<1/4\). At \(2\), the error is \(2-2=0\). For all \(x\ge2\), the value of the approximant is the finite number \(2\), while the pointwise limit as \(n\) increases is \(x\), as shown by the proposition.

Why the Cutoff Matters

A common mistake is to quantize without truncating and then call the result a simple function. For instance, on \([0,\infty)\), consider the incorrect proposed approximant \(r_1(x)=\lfloor2x\rfloor/2\). It takes the values \(0,1/2,1,3/2,\ldots\) on infinitely many nonempty intervals, so its range is infinite. It is not a simple function under the finite-valued definition.

The correction is to use the cap: \(s_1(x)=\lfloor2x\rfloor/2\) for \(x<1\), and \(s_1(x)=1\) for \(x\ge1\). This function has only the possible values \(0,1/2,1\). The cutoff does not interfere with convergence at a fixed finite \(x\): once \(n>x\), the cap no longer applies there, and the quantization error is less than \(2^{-n}\). At a point where \(f(x)=+\infty\), the approximant instead equals \(n\) at stage \(n\) and tends to \(+\infty\).

Another endpoint error is to use overlapping or incomplete bins. The convention \([k/2^n,(k+1)/2^n)\) assigns every finite value below \(n\) to exactly one bin, including values exactly on grid boundaries. The separate set \(\{f\ge n\}\) then handles the cutoff boundary and all larger values. Keeping both conventions explicit makes the level sets a measurable partition and the resulting formula unambiguous.

Check Your Understanding

For each question, specify how the grid endpoints and cap are handled.

  1. For \(f(x)=x\) on \([0,1]\), compute \(s_1\), including its value at \(x=1\).
  2. For \(f(x)=2\) on a measurable space \((X,\mathcal{M},\mu)\), write the level sets and values of \(s_1\).
  3. Explain why \(\{k/2^n\le f<(k+1)/2^n\}\) is measurable when \(f:X\to[0,\infty]\) is measurable.
  4. For \(f(x)=x\) on \([0,\infty)\), identify the cap set in \(s_3\) and state the approximant's value there.
  5. Why does quantizing an unbounded function without a cutoff generally fail to produce a simple function?