Alessandro Palliccia

Real and Functional Analysis

Lebesgue measure, the Cantor set and the Cantor function

1,892 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, and studies three examples on the real line.

Lebesgue measure

Definition 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}\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\}

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 2. (i) The intersection of two rectangles, when it is not empty, is again a rectangle, as in Figure 1.

(ii) For every rectangle of F,\mathcal{F}, as in Figure 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 1. An instance with N=2:{N = 2{:}} two rectangles and their intersection, hatched, which is again a rectangle.

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

Definition 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 18 of the previous post, to λ∗.\lambda^*. Indeed, λ∗\lambda^* is an outer measure by Theorem 14 of the previous post, applied to F∪{∅}{\mathcal{F} \cup \{\emptyset\}} with ∣∅∣:=0,{|\emptyset| := 0,} and adding ∅\emptyset to F\mathcal{F} does not change the infimum of Definition 1. 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 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,
(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 10 of the previous post.

AEK

Figure 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 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 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.

Details. The rectangle R1R_1 contains the points xx of ∂R\partial R whose coordinates satisfy x1=a1{x_1 = a_1} and ai<xi<bi{a_i < x_i < b_i} for i≥2.{i \ge 2.} With (ai−ε,bi+ε){(a_i - \varepsilon, b_i + \varepsilon)} in place of (ai,bi){(a_i, b_i)} for i≥2,{i \ge 2,} as drawn in Figure 4, it contains every point of ∂R\partial R with x1=a1.{x_1 = a_1.} For 0<ε≤1{0 < \varepsilon \le 1} its volume is then at most C(R) ε{C(R) \, \varepsilon} with C(R):=2(b1−a1+2)⋯(bN−aN+2).{C(R) := 2 (b_1 - a_1 + 2) \cdots (b_N - a_N + 2).} The boundary ∂R\partial R is the union of the 2N2N faces {x∈R‾:xi=ai}{\{ x \in \overline{R} : x_i = a_i \}} and {x∈R‾:xi=bi},{\{ x \in \overline{R} : x_i = b_i \},} for i=1,…,N,{i = 1, \dots, N,} and each of them lies in such a rectangle, so λ∗(∂R)≤2NC(R) ε{\lambda^*(\partial R) \le 2N C(R) \, \varepsilon} for every such ε\varepsilon and λ∗(∂R)=0.{\lambda^*(\partial R) = 0.}

A set of outer measure zero is λ∗\lambda^*-measurable by Step 1 of part (iii) in the proof of Theorem 18 of the previous post, so ∂R∈L(RN){\partial R \in \mathcal{L}(\mathbb{R}^N)} and λ(∂R)=0.{\lambda(\partial R) = 0.} The set {x0}\{x_0\} lies in the boundary of a rectangle with a corner at x0,{x_0,} so λ∗({x0})=0{\lambda^*(\{x_0\}) = 0} by monotonicity, and {x0}∈L(RN){\{x_0\} \in \mathcal{L}(\mathbb{R}^N)} in the same way. A countable set is a countable union of points, so its measure is 00 by Proposition 7 of the previous post, and QN\mathbb{Q}^N is countable by Example 4 and Proposition 9 (ii) of the first post.

(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 5, hence λ∗(E)=λ∗(x0+E).{\lambda^*(E) = \lambda^*(x_0 + E).}

Ex0 + E

Figure 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.}

Details. The map R↦x0+R{R \mapsto x_0 + R} is a bijection of F\mathcal{F} onto itself, with inverse R↦−x0+R,{R \mapsto -x_0 + R,} and (Rm){(R_m)} covers a set SS if and only if (x0+Rm){(x_0 + R_m)} covers x0+S.{x_0 + S.} Hence the two infima of Definition 1 coincide, and λ∗(x0+S)=λ∗(S){\lambda^*(x_0 + S) = \lambda^*(S)} for every S⊂RN.{S \subset \mathbb{R}^N.} If E∈L(RN){E \in \mathcal{L}(\mathbb{R}^N)} and Z⊂RN,{Z \subset \mathbb{R}^N,} this equality for the sets (−x0+Z)∩E{(-x_0 + Z) \cap E} and (−x0+Z)∖E{(-x_0 + Z) \setminus E} gives

λ∗(Z∩(x0+E))+λ∗(Z∖(x0+E))=λ∗((−x0+Z)∩E)+λ∗((−x0+Z)∖E)=λ∗(−x0+Z)=λ∗(Z),\begin{aligned} &\lambda^*\big( Z \cap (x_0 + E) \big) + \lambda^*\big( Z \setminus (x_0 + E) \big) \\ &\quad = \lambda^*\big( (-x_0 + Z) \cap E \big) + \lambda^*\big( (-x_0 + Z) \setminus E \big) \\ &\quad = \lambda^*(-x_0 + Z) = \lambda^*(Z), \end{aligned}

where the second equality is the λ∗\lambda^*-measurability of E.E. Hence x0+E∈L(RN){x_0 + E \in \mathcal{L}(\mathbb{R}^N)} and λ(x0+E)=λ∗(E)=λ(E).{\lambda(x_0 + E) = \lambda^*(E) = \lambda(E).}

(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 28 of the first post, the claim gives F⊂L(RN),{\mathcal{F} \subset \mathcal{L}(\mathbb{R}^N),} and the result on the generation of σ\sigma-algebras, Theorem 26 (ii) of the first post, 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 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.

Without loss of generality λ∗(Z)<+∞.{\lambda^*(Z) < +\infty.} Indeed, the inequality to prove holds when λ∗(Z)=+∞,{\lambda^*(Z) = +\infty,} and when λ∗(Z)<+∞{\lambda^*(Z) < +\infty} such a sequence exists because λ∗(Z)\lambda^*(Z) is an infimum. The opposite inequality holds for every ZZ by Remark 17 of the previous post.

R1R2R3RZ

Figure 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.

Define Qm:=Rm∩R,{Q_m := R_m \cap R,} an open rectangle or the empty set by Remark 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),{(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}

Indeed, the first inequality follows from the two inclusions above and the σ\sigma-subadditivity of λ∗,{\lambda^*,} since λ∗(Qm)≤∣Qm∣{\lambda^*(Q_m) \le |Q_m|} and λ∗(Tm)≤∣Tm∣.{\lambda^*(T_m) \le |T_m|.} The latter holds by σ\sigma-subadditivity, as each piece of Tm,{T_m,} a product of intervals with ends pi<qi,{p_i < q_i,} lies in the open rectangle (p1−δ,q1+δ)×⋯×(pN−δ,qN+δ){(p_1 - \delta, q_1 + \delta) \times \dots \times (p_N - \delta, q_N + \delta)} for every δ>0.{\delta > 0.} 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.

Details. Open sets belong to L(RN)\mathcal{L}(\mathbb{R}^N) by the inclusion proved in (3), and λ(E)≤λ(A){\lambda(E) \le \lambda(A)} for every open A⊃E{A \supset E} by monotonicity, so λ(E)\lambda(E) is at most the infimum in (i). Conversely, for every sequence (Rm)(R_m) as above, the open set A:=⋃mRm{A := \bigcup_m R_m} contains EE and satisfies λ(A)≤∑m∣Rm∣,{\lambda(A) \le \sum_m |R_m|,} by σ\sigma-subadditivity and λ∗(Rm)≤∣Rm∣.{\lambda^*(R_m) \le |R_m|.} Taking the infimum over these sequences, the infimum in (i) is at most λ∗(E)=λ(E).{\lambda^*(E) = \lambda(E).}

(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.} In detail, the sets Ek∈L(RN){E_k \in \mathcal{L}(\mathbb{R}^N)} increase to E,{E,} so λ(Ek)→λ(E){\lambda(E_k) \to \lambda(E)} by Proposition 6 (i) of the previous post, and the compact subsets of EkE_k are compact subsets of E,{E,} whose measures are at most λ(E).{\lambda(E).}

Since EE is bounded, E‾\overline{E} is closed and bounded, hence compact by the Heine–Borel theorem, Theorem 15 of the first post. 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 7.

EUK

Figure 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}

Indeed, KK is closed and contained in the compact set E‾,{\overline{E},} hence compact by Lemma 20 (iii) of the first post. The first inequality holds because E‾⊂K∪U,{\overline{E} \subset K \cup U,} and the equality is Remark 5 (ii) of the previous post, since the bounded set E‾\overline{E} has finite measure. 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}}.} Indeed, λ(F1)\lambda(F_1) and λ(F2)\lambda(F_2) lie between λ(E)−1/m{\lambda(E) - 1/m} and λ(E)+1/m{\lambda(E) + 1/m} for every m,{m,} so both equal λ(E),{\lambda(E),} and λ(F2∖F1)=λ(F2)−λ(F1){\lambda(F_2 \setminus F_1) = \lambda(F_2) - \lambda(F_1)} by Remark 5 (ii) of the previous post. 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 10 of the previous post. ■\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.

Cantor set

Definition 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 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 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 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 9.

T0T1T2T3T4T501101

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

Figure 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).}

Details. Start from T0=[0,1].{T_0 = [0, 1].} For each term of f∈2N{f \in 2^{\mathbb{N}}} in turn, the removal of the middle third splits the current interval into two, and the term keeps the left one if it is 00 and the right one if it is 1.{1.} The first kk terms choose in this way one interval of Tk,{T_k,} and these closed intervals are nested, with lengths 1/3k{1/3^k} that tend to 0.{0.} Hence they have exactly one common point ϕ(f),{\phi(f),} which lies in every TkT_k and so in T.{T.} Two sequences that first differ at the term of index jj choose disjoint intervals of Tj+1,{T_{j+1},} so ϕ\phi is injective. Then #2N≤#T,{\#2^{\mathbb{N}} \le \#T,} and #T=#R{\#T = \#\mathbb{R}} by the Cantor–Bernstein theorem, Remark 2 (ii) of the first post, together with Proposition 9 (i) and Proposition 8 (i) of the first post.

(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. Indeed, TT is then compact by the Heine–Borel theorem, Theorem 15 of the first post.

(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.

In detail, the first equality is Proposition 6 (ii) of the previous post, which applies because Tk+1⊂Tk{T_{k+1} \subset T_k} and λ(T0)=1.{\lambda(T_0) = 1.} The second holds because the intervals of TkT_k are pairwise disjoint, each of measure 1/3k1/3^k by (1) and (3) of Theorem 4.

(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 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, as in Figure 10,

λ(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}
m = 0m = 1α1 − α01

Figure 10. The lengths 2α/2m+2{2\alpha/2^{m+2}} of the intervals that form A,{A,} placed end to end along a segment of length 1,{1,} with the lengths for m≥14{m \ge 14} drawn as one piece. Together they measure α,{\alpha,} marked below, and the rest of the segment measures 1−α.{1 - \alpha.} The slider sets α.\alpha.

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}

Indeed, Remark 5 (ii) of the previous post applies to [0,1]∩A⊂[0,1],{[0, 1] \cap A \subset [0, 1],} with λ([0,1])=1,{\lambda([0, 1]) = 1,} and λ([0,1]∩A)≤λ(A)≤α.{\lambda([0, 1] \cap A) \le \lambda(A) \le \alpha.} Hence there exist sets without interior and with positive measure.

Cantor function

Example 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 11 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 11. 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<+∞,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,

and vmv_m converges uniformly to a limit, which we call v.v. Indeed, for k>m{k > m} and x∈[0,1]{x \in [0, 1]} we have ∣vk(x)−vm(x)∣≤Mm+1+⋯+Mk,{|v_k(x) - v_m(x)| \le M_{m+1} + \dots + M_k,} and the tails of a convergent series tend to 0,{0,} so (vm)(v_m) is uniformly Cauchy. 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 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.}