Post · 3 min read· pp. 105–107

Continuous Functions, Discontinuous Supremum

A function f:R→Rf:\mathbb{R}\to\mathbb{R} is said to be continuous if the preimage of any open set is open. Analogously, we might say that a function is measurable if the preimage of a measurable set is measurable. This is a generalization of the more standard defintions of a measurable function: "f:R→Rf:\mathbb{R}\to\mathbb{R} is measurable if for any a∈Ra\in\mathbb{R} the set f−1((a,∞))={x∈R:f(x)>a}f^{-1}((a,\infty))=\{x\in\mathbb{R}:f(x)>a\} is measurable," or equivalently, "ff is measurable if the preimage of a Borel set is an open set."

It's not hard to show that if {fn:R→R}\{f_n:\mathbb{R}\to\mathbb{R}\} is a sequence of measurable functions, then sup⁡nfn\sup_n f_n, inf⁡nfn\inf_n f_n, lim sup⁡nfn\limsup_n f_n and lim inf⁡nfn\liminf_n f_n are also measurable functions*. But here the analogy between continuity and measurability breaks down. It is not true that if each fnf_n is a continuous function, then sup⁡nfn\sup_n f_n, inf⁡nfn\inf_n f_n, lim sup⁡nfn\limsup_n f_n and lim inf⁡nfn\liminf_n f_n are continuous as well.

Below is a counterexample (which is not as bad as it looks!) - we have a sequence of functions {fn:[0,1]→[0,1]}\{f_n:[0,1]\to[0,1]\}, each of which is continuous, yet sup⁡nfn\sup_n f_n is not!

(Counter)Example

Fix x∈[0,1]x\in [0,1]. For each n∈Nn\in\mathbb{N} define

I know this looks like a hot mess! But it's not bad at all. The graph of each fnf_n consists of the four lines which connect (0,0)(0,0), (1/(n+1),0)(1/(n+1),0), ((2n+1)/(2n(n+1)),1)((2n+1)/(2n(n+1)),1), (1/n,0)(1/n,0) and (1,0)(1,0), in that order. Or to put it simply,

  • fnf_n forms a triangle centered at 2n+12n(n+1)\frac{2n+1}{2n(n+1)} and has a base of width 1n(n+1)\frac{1}{n(n+1)}
  • the right base point of fn+1f_{n+1} equals the left base point of fnf_n
  • fn(0)=0f_n(0)=0 for all nn

Here's what the first 3 functions look like:

Let x∈[0,1]x\in[0,1]. Clearly each fnf_n is continuous. We claim g(x)=sup⁡{fn(x)}g(x)=\sup\{f_n(x)\} is not. Indeed, for each k∈Nk\in\mathbb{N} let

xk=2k+12k(k+1)x_k=\frac{2k+1}{2k(k+1)}
(the value of xx when fnf_n is at its peak) and observe that lim⁡k→∞xk=0\displaystyle{ \lim_{k\to\infty} x_k=0}. Assuming to the contrary that g(x)g(x) is continuous, we must have  
lim⁡k→∞g(xk)=g(0).\lim_{k\to\infty}g(x_k)=g(0).
 On the right hand side, we have g(0)=sup⁡n{fn(0)}=0g(0)=\sup_n\{f_n(0)\}=0 since fn(0)=0f_n(0)=0 for all nn. But on the left hand side, for a fixed k∈Nk\in\mathbb{N}, we see that g(xk)=sup⁡{fn(xk)}=1g(x_k)=\sup\{f_n(x_k)\}=1 since  \begin{align*}  f_n(x_k)=\begin{cases} 1, &\text{if n=kn=k}\  0, &\text{if n≠k.n\neq k.}  \end{cases}  \end{align*} This implies that  
1=lim⁡k→∞g(xk)=g(0)=01= \lim_{k\to\infty}g(x_k)=g(0)=0
 which is, of course, a contradiction.

‍

Footnotes:

 * Here's the proof that sup⁡nfn\sup_n f_n and lim sup⁡nfn\limsup_n f_n are measurable: Fix a∈Ra\in\mathbb{R} and let g=sup⁡fng=\sup f_n (i.e. for a fixed x∈Rx\in \mathbb{R}, g(x)=sup⁡n{fn(x)}g(x)=\sup_n\{f_n(x)\}). We claim

g−1((a,∞])=⋃n=1∞fn−1((a,∞]).g^{-1}((a,\infty])=\bigcup_{n=1}^\infty f_n^{-1}((a,\infty]).
If this is true, then indeed the function gg is measurable since we can express  g−1((a,∞])g^{-1}((a,\infty]) as a countable union of measurable sets. To prove the claim, notice that x∈g−1((a,∞])x\in g^{-1}((a,\infty]) if and only if g(x)>ag(x)>a if and only if sup⁡n{fn(x)}>a\sup_n\{f_n(x)\}>a if and only if fn(x)>af_n(x)>a for some nn. And this last bit is true if and only if x∈⋃n=1∞fn−1((a,∞])x\in \bigcup_{n=1}^\infty f_n^{-1}((a,\infty]).

   To see that lim sup⁡fn\limsup f_n is measurable, suppose we have proved that, for any measurable fnf_n, the function inf⁡fn\inf f_n is measurable (the proof is very similar to the previous paragraph). Write

lim sup⁡fn=inf⁡n≥1sup⁡k≥nfk\limsup f_n=\inf_{n\geq1}\sup_{k\geq n}f_k
and let gn=sup⁡k≥nfkg_n=\sup_{k\geq n}f_k. By above, we know each gng_n is a measurable function, and so by assumption inf⁡ngn\inf_n g_n -- and hence lim sup⁡fn\limsup f_n -- is measurable.

By letting h=inf⁡fnh=\inf f_n and claiming h−1([∞,a))=⋃n=1∞fn−1([−∞,a))h^{-1}([\infty,a))=\bigcup_{n=1}^\infty f_n^{-1}([-\infty,a)), one can use similar techniques to show that inf⁡fn\inf f_n and lim inf⁡fn\liminf f_n are measurable.