Alessandro Palliccia

Real and Functional Analysis

Lebesgue measure, the Cantor set and the Cantor function

1,186 words,

The lecture constructs the Lebesgue measure on RN\mathbb{R}^N from the volumes of rectangles, through Carathéodory’s construction of the previous post.

Lebesgue measure

Definition 3.1 (Lebesgue outer measure). Let NN be a positive integer. In RN\mathbb{R}^N consider the family of open rectangles

F={open rectangles in RN}={∏i=1N(ai,bi):ai,bi∈R, ai<bi}\begin{aligned} \mathcal{F} &= \{ \text{open rectangles in } \mathbb{R}^N \} \\ &= \Big\{ \prod_{i=1}^{N} (a_i, b_i) : a_i, b_i \in \mathbb{R}, \ a_i < b_i \Big\} \end{aligned}

and the function f ⁣:F→[0,+∞]{f \colon \mathcal{F} \to [0, +\infty]} given by

f(∏i=1N(ai,bi))=∏i=1N(bi−ai)=:∣∏i=1N(ai,bi)∣.f\Big( \prod_{i=1}^{N} (a_i, b_i) \Big) = \prod_{i=1}^{N} (b_i - a_i) =: \Big| \prod_{i=1}^{N} (a_i, b_i) \Big|.

The Lebesgue outer measure, denoted λ∗\lambda^* or λN∗,{\lambda^*_N,} is the function λ∗ ⁣:P(RN)→[0,+∞]{\lambda^* \colon \mathcal{P}(\mathbb{R}^N) \to [0, +\infty]} given by

λ∗(E)=inf⁡{∑m=0∞∣Rm∣:(Rm)⊂F, E⊂⋃m=0∞Rm}.\lambda^*(E) = \inf \Big\{ \sum_{m=0}^{\infty} |R_m| : (R_m) \subset \mathcal{F}, \ E \subset \bigcup_{m=0}^{\infty} R_m \Big\}.

Remark 3.2. (i) The intersection of two rectangles, when it is not empty, is again a rectangle, as in Figure 3.1.

(ii) For every rectangle of F,\mathcal{F}, as in Figure 3.2,

λ∗(∏i=1N(ai,bi))=∏i=1N(bi−ai).\lambda^*\Big( \prod_{i=1}^{N} (a_i, b_i) \Big) = \prod_{i=1}^{N} (b_i - a_i).

Figure 3.1. An instance with N=2:{N = 2{:}} two rectangles and their intersection, hatched.

Figure 3.2. An instance with N=2:{N = 2{:}} a rectangle, and four rectangles of F\mathcal{F} whose union contains it.

Definition 3.3 (Lebesgue measure). The Lebesgue measure on RN,{\mathbb{R}^N,} denoted λ\lambda or λN,{\lambda_N,} is the measure obtained by applying Carathéodory’s theorem, Theorem 2.18, to λ∗.\lambda^*. In particular, (RN,L(RN),λ){(\mathbb{R}^N, \mathcal{L}(\mathbb{R}^N), \lambda)} is a complete measure space, where

L(RN)={λ∗-measurable sets},λ=λ∗∣L(RN).\mathcal{L}(\mathbb{R}^N) = \{ \lambda^*\text{-measurable sets} \}, \qquad \lambda = \lambda^*|_{\mathcal{L}(\mathbb{R}^N)}.

Properties of Lebesgue measure

Theorem 3.4 (Properties of Lebesgue measure). Consider the measure space (RN,L(RN),λ).{(\mathbb{R}^N, \mathcal{L}(\mathbb{R}^N), \lambda).}
(1) Let R∈F{R \in \mathcal{F}} and x0∈RN.{x_0 \in \mathbb{R}^N.} Then ∂R\partial R and {x0}\{x_0\} belong to L(RN),{\mathcal{L}(\mathbb{R}^N),} and λ(∂R)=λ({x0})=0.{\lambda(\partial R) = \lambda(\{x_0\}) = 0.} In particular, every countable subset of RN\mathbb{R}^N has measure 0,{0,} and λ(QN)=0.{\lambda(\mathbb{Q}^N) = 0.}
(2) For every E∈L(RN){E \in \mathcal{L}(\mathbb{R}^N)} and every x0∈RN,{x_0 \in \mathbb{R}^N,} the set x0+E:={y+x0:y∈E}{x_0 + E := \{ y + x_0 : y \in E \}} belongs to L(RN)\mathcal{L}(\mathbb{R}^N) and λ(x0+E)=λ(E):{\lambda(x_0 + E) = \lambda(E){:}} λ\lambda is invariant with respect to translations.

(3) B(RN)⊊L(RN)⊊P(RN).{\mathcal{B}(\mathbb{R}^N) \subsetneq \mathcal{L}(\mathbb{R}^N) \subsetneq \mathcal{P}(\mathbb{R}^N).} Moreover,

λ(∏i=1N(ai,bi))=∏i=1N(bi−ai),\lambda\Big( \prod_{i=1}^{N} (a_i, b_i) \Big) = \prod_{i=1}^{N} (b_i - a_i),

and if N=1,{N = 1,} then λ((a1,b1))=b1−a1.{\lambda((a_1, b_1)) = b_1 - a_1.}

(4) (Borel regularity) If E∈L(RN),{E \in \mathcal{L}(\mathbb{R}^N),} then, as in Figure 3.3,
(i) λ(E)=inf⁡{λ(A):A open, E⊂A};{\lambda(E) = \inf \{ \lambda(A) : A \text{ open}, \ E \subset A \};}
(ii) λ(E)=sup⁡{λ(K):K compact, K⊂E}.{\lambda(E) = \sup \{ \lambda(K) : K \text{ compact}, \ K \subset E \}.}
In particular, L(RN)=B(RN)‾,{\mathcal{L}(\mathbb{R}^N) = \overline{\mathcal{B}(\mathbb{R}^N)},} the σ\sigma-algebra of the completion of (RN,B(RN),λ){(\mathbb{R}^N, \mathcal{B}(\mathbb{R}^N), \lambda)} given by Theorem 2.10.

AEK

Figure 3.3. Borel regularity: a set E,{E,} an open set A⊃E{A \supset E} and a compact set K⊂E.{K \subset E.} The arrows point from AA and from KK towards E.E.

Proof (sketch). The proofs of (1), (2) and (4) (i) are sketches, and of (3) only the inclusion B(RN)⊂L(RN){\mathcal{B}(\mathbb{R}^N) \subset \mathcal{L}(\mathbb{R}^N)} is proved. (1) We show that λ∗(∂R)=0.{\lambda^*(\partial R) = 0.} Write R=(a1,b1)×⋯×(aN,bN).{R = (a_1, b_1) \times \dots \times (a_N, b_N).} For ε>0{\varepsilon > 0} let, as in Figure 3.4,

R1=(a1−ε,a1+ε)×∏i=2N(ai,bi),∣R1∣=2ε⋅∏i=2N(bi−ai)≤C(R) ε,\begin{aligned} R_1 &= (a_1 - \varepsilon, a_1 + \varepsilon) \times \prod_{i=2}^{N} (a_i, b_i), \\ |R_1| &= 2\varepsilon \cdot \prod_{i=2}^{N} (b_i - a_i) \le C(R) \, \varepsilon, \end{aligned}

where C(R)C(R) is a constant that depends only on R.R.

RR1R2∂R

Figure 3.4. An instance with N=2:{N = 2{:}} the rectangle R,{R,} its boundary ∂R,{\partial R,} and the rectangles R1R_1 and R2R_2 around its left and right edges, drawn with second factor (a2−ε,b2+ε),{(a_2 - \varepsilon, b_2 + \varepsilon),} between the two rectangles at distance ε\varepsilon outside and inside R.R. The slider sets ε.\varepsilon.

(2) This follows from f(R)=f(x0+R){f(R) = f(x_0 + R)} for every R∈F.{R \in \mathcal{F}.} Translating by x0x_0 a sequence of rectangles that covers EE gives a sequence that covers x0+E,{x_0 + E,} as in Figure 3.5, hence λ∗(E)=λ∗(x0+E).{\lambda^*(E) = \lambda^*(x_0 + E).}

Ex0 + E

Figure 3.5. An instance with N=2:{N = 2{:}} a set EE covered by two rectangles, and the set x0+E{x_0 + E} covered by the same rectangles translated by x0.{x_0.}

(3) We claim that every rectangle R∈F{R \in \mathcal{F}} belongs to L(RN).{\mathcal{L}(\mathbb{R}^N).} The claim implies the inclusion, because B(RN)=σ0(F){\mathcal{B}(\mathbb{R}^N) = \sigma_0(\mathcal{F})} by Remark 1.28, the claim gives F⊂L(RN),{\mathcal{F} \subset \mathcal{L}(\mathbb{R}^N),} and the result on the generation of σ\sigma-algebras, Theorem 1.26 (ii), gives σ0(F)⊂L(RN).{\sigma_0(\mathcal{F}) \subset \mathcal{L}(\mathbb{R}^N).}

To prove the claim, let R∈F.{R \in \mathcal{F}.} We need to prove that RR is λ∗{\lambda^*}-measurable, that is, that for every Z⊂RN{Z \subset \mathbb{R}^N}

λ∗(Z)≥λ∗(R∩Z)+λ∗(Z∖R).\lambda^*(Z) \ge \lambda^*(R \cap Z) + \lambda^*(Z \setminus R).

Fix ε>0{\varepsilon > 0} and let (Rm)⊂F{(R_m) \subset \mathcal{F}} be such that, as in Figure 3.6,

Z⊂⋃m=0∞Rmandλ∗(Z)≥∑m=0∞∣Rm∣−ε.Z \subset \bigcup_{m=0}^{\infty} R_m \qquad \text{and} \qquad \lambda^*(Z) \ge \sum_{m=0}^{\infty} |R_m| - \varepsilon.
R1R2R3RZ

Figure 3.6. An instance with N=2:{N = 2{:}} a set ZZ covered by rectangles R1,{R_1,} R2R_2 and R3R_3 of a sequence (Rm),{(R_m),} and the rectangle R.R.

Without loss of generality λ∗(Z)<+∞.{\lambda^*(Z) < +\infty.} Define Qm:=Rm∩R,{Q_m := R_m \cap R,} an open rectangle or the empty set by Remark 3.2 (i), and Tm:=Rm∖R‾,{T_m := R_m \setminus \overline{R},} an open set. The set TmT_m is a finite union of rectangles, and λ∗(Tm)=∣Tm∣,{\lambda^*(T_m) = |T_m|,} where ∣Tm∣|T_m| is the sum of their volumes. In detail, the hyperplanes that contain the faces of RR cut RmR_m into at most 3N3^N pairwise disjoint rectangles, products of intervals that need not be open, whose volumes add up to ∣Rm∣.{|R_m|.} The set TmT_m is the union of all of them except Rm∩R‾,{R_m \cap \overline{R},} which has the volume of Qm,{Q_m,} so ∣Qm∣+∣Tm∣=∣Rm∣.{|Q_m| + |T_m| = |R_m|.}

The sets QmQ_m and TmT_m satisfy

⋃mQm=⋃m(Rm∩R)=(⋃mRm)∩R⊃Z∩R,⋃mTm=⋃m(Rm∖R‾)=(⋃mRm)∖R‾⊃Z∖R‾=(Z∖R)∖∂R.\begin{aligned} \bigcup_m Q_m &= \bigcup_m (R_m \cap R) = \Big( \bigcup_m R_m \Big) \cap R \supset Z \cap R, \\ \bigcup_m T_m &= \bigcup_m (R_m \setminus \overline{R}) = \Big( \bigcup_m R_m \Big) \setminus \overline{R} \\ &\supset Z \setminus \overline{R} = (Z \setminus R) \setminus \partial R. \end{aligned}

Since ∂R∈L(RN){\partial R \in \mathcal{L}(\mathbb{R}^N)} by (1), the set ∂R\partial R is λ∗{\lambda^*}-measurable. Applied to Z∖R,{Z \setminus R,} this gives the first equality below, and the second holds because λ∗((Z∖R)∩∂R)≤λ∗(∂R)=0{\lambda^*((Z \setminus R) \cap \partial R) \le \lambda^*(\partial R) = 0} by (1):

λ∗(Z∩R)+λ∗(Z∖R)=λ∗(Z∩R)+λ∗((Z∖R)∖∂R)+λ∗((Z∖R)∩∂R)=λ∗(Z∩R)+λ∗((Z∖R)∖∂R)≤∑m∣Qm∣+∑m∣Tm∣=∑m(∣Qm∣+∣Tm∣)=∑m∣Rm∣≤λ∗(Z)+ε.\begin{aligned} \lambda^*(Z \cap R) + \lambda^*(Z \setminus R) &= \lambda^*(Z \cap R) + \lambda^*\big( (Z \setminus R) \setminus \partial R \big) \\ &\quad + \lambda^*\big( (Z \setminus R) \cap \partial R \big) \\ &= \lambda^*(Z \cap R) + \lambda^*\big( (Z \setminus R) \setminus \partial R \big) \\ &\le \sum_m |Q_m| + \sum_m |T_m| \\ &= \sum_m \big( |Q_m| + |T_m| \big) = \sum_m |R_m| \\ &\le \lambda^*(Z) + \varepsilon. \end{aligned}

Since ε>0{\varepsilon > 0} is arbitrary, letting ε→0{\varepsilon \to 0} gives the claimed inequality.

(4) (i) Let E∈L(RN).{E \in \mathcal{L}(\mathbb{R}^N).} Then

λ(E)=λ∗(E)=inf⁡{∑m=0∞∣Rm∣:(Rm)⊂F, E⊂⋃m=0∞Rm}.\lambda(E) = \lambda^*(E) = \inf \Big\{ \sum_{m=0}^{\infty} |R_m| : (R_m) \subset \mathcal{F}, \ E \subset \bigcup_{m=0}^{\infty} R_m \Big\}.

Every RmR_m is open, so ⋃mRm\bigcup_m R_m is open, and λ∗(⋃mRm)≤∑m∣Rm∣.{\lambda^*(\bigcup_m R_m) \le \sum_m |R_m|.} Now λ∗(E)≤λ∗(⋃mRm)≤∑m∣Rm∣,{\lambda^*(E) \le \lambda^*(\bigcup_m R_m) \le \sum_m |R_m|,} and taking the infimum gives the equality.

(ii) Without loss of generality, EE is bounded: if EE is unbounded, consider Ek:=E∩Bk(0),{E_k := E \cap B_k(0),} apply (ii) to EkE_k and let k→∞.{k \to \infty.} Since EE is bounded, E‾\overline{E} is closed and bounded, hence compact by the Heine–Borel theorem, Theorem 1.15. Also E‾∖E∈L(RN),{\overline{E} \setminus E \in \mathcal{L}(\mathbb{R}^N),} because E‾∈B(RN)⊂L(RN){\overline{E} \in \mathcal{B}(\mathbb{R}^N) \subset \mathcal{L}(\mathbb{R}^N)} and E∈L(RN).{E \in \mathcal{L}(\mathbb{R}^N).} By (i), for every ε>0{\varepsilon > 0} there exists an open set UU such that E‾∖E⊂U{\overline{E} \setminus E \subset U} and λ(U)≤λ(E‾∖E)+ε,{\lambda(U) \le \lambda(\overline{E} \setminus E) + \varepsilon,} as in Figure 3.7.

EUK

Figure 3.7. An instance: EE is an open ellipse, so E‾∖E{\overline{E} \setminus E} is its boundary. The open set U,{U,} hatched, contains E‾∖E,{\overline{E} \setminus E,} and K=E‾∖U{K = \overline{E} \setminus U} is shaded.

Choose K:=E‾∖U,{K := \overline{E} \setminus U,} which is compact. Then K=E‾∖U⊂E‾∖(E‾∖E)=E{K = \overline{E} \setminus U \subset \overline{E} \setminus (\overline{E} \setminus E) = E} and

λ(K)≥λ(E‾)−λ(U)≥λ(E‾)−λ(E‾∖E)−ε=λ(E)−ε.\begin{aligned} \lambda(K) &\ge \lambda(\overline{E}) - \lambda(U) \\ &\ge \lambda(\overline{E}) - \lambda(\overline{E} \setminus E) - \varepsilon \\ &= \lambda(E) - \varepsilon. \end{aligned}

Hence λ(K)≤λ(E)≤λ(K)+ε{\lambda(K) \le \lambda(E) \le \lambda(K) + \varepsilon} for every ε>0,{\varepsilon > 0,} and letting ε→0{\varepsilon \to 0} gives the conclusion.

Moreover, it remains to prove L(RN)=B(RN)‾.{\mathcal{L}(\mathbb{R}^N) = \overline{\mathcal{B}(\mathbb{R}^N)}.} Write L\mathcal{L} and B\mathcal{B} for L(RN)\mathcal{L}(\mathbb{R}^N) and B(RN),{\mathcal{B}(\mathbb{R}^N),} and recall that

B‾={E⊂RN:there exist F1,F2∈B such that F1⊂E⊂F2 and λ(F2∖F1)=0}.\overline{\mathcal{B}} = \{ E \subset \mathbb{R}^N : \text{there exist } F_1, F_2 \in \mathcal{B} \text{ such that } F_1 \subset E \subset F_2 \text{ and } \lambda(F_2 \setminus F_1) = 0 \}.

First, B‾⊂L:{\overline{\mathcal{B}} \subset \mathcal{L}{:}} B‾\overline{\mathcal{B}} is complete and B⊂L,{\mathcal{B} \subset \mathcal{L},} and L\mathcal{L} is complete too. In detail, let E∈B‾{E \in \overline{\mathcal{B}}} with F1F_1 and F2F_2 as above. Then E∖F1⊂F2∖F1,{E \setminus F_1 \subset F_2 \setminus F_1,} a set of measure zero of B⊂L,{\mathcal{B} \subset \mathcal{L},} so E∖F1∈L{E \setminus F_1 \in \mathcal{L}} because L\mathcal{L} is complete, and EE is the union of F1F_1 and E∖F1.{E \setminus F_1.}

Now take E∈L,{E \in \mathcal{L},} first with λ(E)<+∞.{\lambda(E) < +\infty.} By (i), for every m≥1{m \ge 1} there exists an open set Am⊃E{A_m \supset E} with λ(Am)≤λ(E)+1/m.{\lambda(A_m) \le \lambda(E) + 1/m.} By (ii), for every m≥1{m \ge 1} there exists a compact set Km⊂E{K_m \subset E} with λ(Km)≥λ(E)−1/m.{\lambda(K_m) \ge \lambda(E) - 1/m.} Consider

F1:=⋃mKm∈B,F2:=⋂mAm∈B.F_1 := \bigcup_m K_m \in \mathcal{B}, \qquad F_2 := \bigcap_m A_m \in \mathcal{B}.

Then λ(F1)=λ(F2){\lambda(F_1) = \lambda(F_2)} and F1⊂E⊂F2.{F_1 \subset E \subset F_2.} Hence λ(F2∖F1)=0{\lambda(F_2 \setminus F_1) = 0} and E∈B‾.{E \in \overline{\mathcal{B}}.} If λ(E)=+∞,{\lambda(E) = +\infty,} the bounded sets E∩Bk(0){E \cap B_k(0)} have finite measure and belong to B‾,{\overline{\mathcal{B}},} hence so does their union E,{E,} because B‾\overline{\mathcal{B}} is a σ\sigma-algebra by Theorem 2.10. ■\blacksquare

Examples

The examples live on the real line, with N=1{N = 1} and the Lebesgue measure λ=λ1{\lambda = \lambda_1} of Definition 3.3.

Cantor set

Definition 3.5 (Cantor set). Consider

T0=[0,1],T1=[0,13]∪[23,1],T2=[0,19]∪[29,13]∪[23,79]∪[89,1],\begin{aligned} T_0 &= [0, 1], \\ T_1 &= \Big[ 0, \frac{1}{3} \Big] \cup \Big[ \frac{2}{3}, 1 \Big], \\ T_2 &= \Big[ 0, \frac{1}{9} \Big] \cup \Big[ \frac{2}{9}, \frac{1}{3} \Big] \cup \Big[ \frac{2}{3}, \frac{7}{9} \Big] \cup \Big[ \frac{8}{9}, 1 \Big], \end{aligned}

as in Figure 3.8. In general, for k≥1{k \ge 1} one defines

Tk=⋃m=12kImk,T_k = \bigcup_{m=1}^{2^k} I_m^k,

where each ImkI_m^k is a closed interval obtained from Tk−1,{T_{k-1},} the union of the 2k−12^{k-1} intervals Imk−1,{I_m^{k-1},} by removing the open middle third of each Imk−1.{I_m^{k-1}.} Then ∣Imk∣=1/3k{|I_m^k| = 1/3^k} for every mm and k,{k,} and Tk+1⊂Tk{T_{k+1} \subset T_k} for every k.k. The Cantor set is

T=⋂k=0∞Tk.T = \bigcap_{k=0}^{\infty} T_k.
T0T1T2T3T4T5T601/32/311/92/97/98/9T2: 4 closed intervals of length 1/9

Figure 3.8. The sets T0,T1,…,T6.{T_0, T_1, \dots, T_6.} The slider sets kk and highlights Tk,{T_k,} the union of 2k2^k closed intervals of length 1/3k;{1/3^k;} the sets after it are faint.

Theorem 3.6 (Properties of the Cantor set). (1) #T=#R.{\#T = \#\mathbb{R}.}
(2) TT is compact.
(3) λ(T)=0.{\lambda(T) = 0.}
(4) int⁡(T)=∅.{\operatorname{int}(T) = \emptyset.}
In particular, TT is uncountable and λ(T)=0.{\lambda(T) = 0.}

Proof (sketch). Only the proof of (1) is a sketch. (1) Since T⊂R,{T \subset \mathbb{R},} #T≤#R.{\#T \le \#\mathbb{R}.} It remains to show that #T≥#R=#P(N)=#2N,{\#T \ge \#\mathbb{R} = \#\mathcal{P}(\mathbb{N}) = \#2^{\mathbb{N}},} where 2N2^{\mathbb{N}} is the set of the functions f ⁣:N→{0,1},{f \colon \mathbb{N} \to \{0, 1\},} that is, of the sequences with values 00 or 1.1. The idea is an injective map ϕ ⁣:2N→T:{\phi \colon 2^{\mathbb{N}} \to T{:}} a sequence such as (0,1,1,0,1,1,1,0,0,… ){(0, 1, 1, 0, 1, 1, 1, 0, 0, \dots)} is sent to a point of TT by reading 00 as left and 11 as right, as in Figure 3.9.

T0T1T2T3T4T501101

(0, 1, 1, 0, 1, …)

Figure 3.9. The first five terms of a sequence of 2N,{2^{\mathbb{N}},} set by the buttons, choose an interval of each of T1,…,T5:{T_1, \dots, T_5{:}} 00 the left one and 11 the right one. At the start they are the terms of (0,1,1,0,1,… ).{(0, 1, 1, 0, 1, \dots).}

(2) Since T⊂[0,1],{T \subset [0, 1],} TT is bounded. Moreover,

R∖T=R∖⋂kTk=⋃k(R∖Tk),\mathbb{R} \setminus T = \mathbb{R} \setminus \bigcap_k T_k = \bigcup_k (\mathbb{R} \setminus T_k),

where each R∖Tk{\mathbb{R} \setminus T_k} is open because TkT_k is closed. Hence R∖T{\mathbb{R} \setminus T} is open, so TT is closed.

(3) Since T=⋂kTk{T = \bigcap_k T_k} and TkT_k is the union of 2k2^k intervals, each of length 1/3k,{1/3^k,}

λ(T)=lim⁡k→∞λ(Tk)=lim⁡k→∞2k 13k=0.\lambda(T) = \lim_{k \to \infty} \lambda(T_k) = \lim_{k \to \infty} 2^k \, \frac{1}{3^k} = 0.

(4) Suppose, by contradiction, that int⁡(T)≠∅.{\operatorname{int}(T) \neq \emptyset.} Then there exists a nonempty interval (a,b)⊂T,{(a, b) \subset T,} and λ(T)≥b−a>0,{\lambda(T) \ge b - a > 0,} against (3). ■\blacksquare

The unit interval minus a fat Q\mathbb{Q}

Example 3.7. Take α∈(0,1){\alpha \in (0, 1)} and write Q∩[0,1]={qm:m∈N}.{\mathbb{Q} \cap [0, 1] = \{ q_m : m \in \mathbb{N} \}.} Consider

A:=⋃m=0∞(qm−α2m+2, qm+α2m+2).A := \bigcup_{m=0}^{\infty} \Big( q_m - \frac{\alpha}{2^{m+2}}, \ q_m + \frac{\alpha}{2^{m+2}} \Big).

The set AA is open, and

λ(A)≤∑m=0∞λ((qm−α2m+2, qm+α2m+2))=∑m=0∞2 α2m+2=α2∑m=0∞12m=α.\begin{aligned} \lambda(A) &\le \sum_{m=0}^{\infty} \lambda\Big( \Big( q_m - \frac{\alpha}{2^{m+2}}, \ q_m + \frac{\alpha}{2^{m+2}} \Big) \Big) \\ &= \sum_{m=0}^{\infty} 2 \, \frac{\alpha}{2^{m+2}} = \frac{\alpha}{2} \sum_{m=0}^{\infty} \frac{1}{2^m} = \alpha. \end{aligned}

Let K:=[0,1]∖A,{K := [0, 1] \setminus A,} which is compact. The interior of KK is empty: otherwise there exists a nonempty interval (a,b)⊂K,{(a, b) \subset K,} hence a rational qm0∈(a,b)⊂K,{q_{m_0} \in (a, b) \subset K,} but K∩Q=∅.{K \cap \mathbb{Q} = \emptyset.} Moreover,

λ(K)=λ([0,1]∖A)=λ([0,1])−λ([0,1]∩A)≥1−α>0.\begin{aligned} \lambda(K) &= \lambda([0, 1] \setminus A) = \lambda([0, 1]) - \lambda([0, 1] \cap A) \\ &\ge 1 - \alpha > 0. \end{aligned}

Hence there exist sets without interior and with positive measure.

Cantor function

Example 3.8 (Cantor function). The Cantor function, also called the Cantor–Vitali function, comes from an inductive construction. Let v0 ⁣:[0,1]→R{v_0 \colon [0, 1] \to \mathbb{R}} be v0(x)=x.{v_0(x) = x.} The functions v1,v2 ⁣:[0,1]→R{v_1, v_2 \colon [0, 1] \to \mathbb{R}} of Figure 3.10 are nondecreasing and continuous, with v1(0)=v2(0)=0{v_1(0) = v_2(0) = 0} and v1(1)=v2(1)=1.{v_1(1) = v_2(1) = 1.} In general, for m≥1,{m \ge 1,}

vm(x)={12 vm−1(3x)if x∈[0,13],12if x∈[13,23],12+12 vm−1(3x−2)if x∈[23,1].v_m(x) = \begin{cases} \dfrac{1}{2} \, v_{m-1}(3x) & \text{if } x \in \big[ 0, \frac{1}{3} \big], \\[6pt] \dfrac{1}{2} & \text{if } x \in \big[ \frac{1}{3}, \frac{2}{3} \big], \\[6pt] \dfrac{1}{2} + \dfrac{1}{2} \, v_{m-1}(3x - 2) & \text{if } x \in \big[ \frac{2}{3}, 1 \big]. \end{cases}
1/32/311/92/97/98/91/210vm

Figure 3.10. The graph of vmv_m for the mm set by the slider, and, for m≥1{m \ge 1} and thinner, the graph of vm−1.{v_{m-1}.} For m≥2{m \ge 2} the dashed lines mark x=7/9{x = 7/9} and x=8/9.{x = 8/9.}

We claim that there exists a continuous function v ⁣:[0,1]→R{v \colon [0, 1] \to \mathbb{R}} such that vm→v{v_m \to v} uniformly on [0,1].{[0, 1].} For m≥1{m \ge 1} let

Mm:=sup⁡x∈[0,1]∣vm(x)−vm−1(x)∣.M_m := \sup_{x \in [0, 1]} |v_m(x) - v_{m-1}(x)|.

Let m≥2.{m \ge 2.} (i) If x∈[0,13],{x \in [0, \frac{1}{3}],} then

∣vm(x)−vm−1(x)∣=∣12vm−1(3x)−12vm−2(3x)∣=12∣vm−1(3x)−vm−2(3x)∣≤12Mm−1.\begin{aligned} &|v_m(x) - v_{m-1}(x)| \\ &\quad = \Big| \frac{1}{2} v_{m-1}(3x) - \frac{1}{2} v_{m-2}(3x) \Big| \\ &\quad = \frac{1}{2} |v_{m-1}(3x) - v_{m-2}(3x)| \le \frac{1}{2} M_{m-1}. \end{aligned}

(ii) If x∈[13,23],{x \in [\frac{1}{3}, \frac{2}{3}],} then ∣vm(x)−vm−1(x)∣=0.{|v_m(x) - v_{m-1}(x)| = 0.} (iii) If x∈[23,1],{x \in [\frac{2}{3}, 1],} the analogous estimate gives ∣vm(x)−vm−1(x)∣≤12Mm−1.{|v_m(x) - v_{m-1}(x)| \le \frac{1}{2} M_{m-1}.} Hence

Mm≤12Mm−1≤122Mm−2≤⋯≤12m−1M1⟹∑m=1∞Mm<+∞,\begin{aligned} &M_m \le \frac{1}{2} M_{m-1} \le \frac{1}{2^2} M_{m-2} \le \dots \le \frac{1}{2^{m-1}} M_1 \\ &\quad \Longrightarrow \quad \sum_{m=1}^{\infty} M_m < +\infty, \end{aligned}

and vmv_m converges uniformly to a limit, which we call v.v. By induction on mm every vmv_m is nondecreasing and continuous, with vm(0)=0{v_m(0) = 0} and vm(1)=1,{v_m(1) = 1,} so the uniform limit vv is continuous and nondecreasing.

On each interval (a,b)⊂[0,1]∖T,{(a, b) \subset [0, 1] \setminus T,} where TT is the Cantor set of Definition 3.5, the function vv is constant, so v′v' exists and v′=0{v' = 0} on [0,1]∖T.{[0, 1] \setminus T.} Moreover, v(0)=lim⁡mvm(0)=0{v(0) = \lim_m v_m(0) = 0} and v(1)=lim⁡mvm(1)=1.{v(1) = \lim_m v_m(1) = 1.} In the end, vv is a continuous nondecreasing function that passes from 00 to 11 on [0,1],{[0, 1],} such that v′v' exists and v′=0{v' = 0} on the set A:=[0,1]∖T,{A := [0, 1] \setminus T,} and λ(A)=1−λ(T)=1−0=1.{\lambda(A) = 1 - \lambda(T) = 1 - 0 = 1.}