14.2 Dyadic cubes and the Lebesgue differentiation theorem
The Calderón–Zygmund decomposition stops at dyadic cubes of every size, so the cubes come in all integer levels; the dyadic cells of Definition 23.59 are the cubes of natural level. In this section \(V\) is a finite-dimensional real inner product space of dimension \(n\) with Lebesgue measure \(|\cdot |\), \((b_i)_{i=1}^n\) is a fixed orthonormal basis of \(V\), the basis of the dyadic grid, \(x_i = \langle b_i, x \rangle \) are the coordinates of \(x \in V\), and for a measure \(\mu \) and a set \(Q\), \(F_Q = \mu (Q)^{-1} \int _Q F \, d\mu \) is the average of \(F\) over \(Q\) (with \(\mu = |\cdot |\) on \(V\); as in Mathlib, \(F_Q = 0\) when \(\mu (Q)\) is \(0\) or \(\infty \)).
For \(k \in \mathbb {Z}\) and \(m \in \mathbb {Z}^n\) the dyadic cube of level \(k\) and index \(m\) is \(Q_{k,m} = \{ x \in V : \lfloor 2^k x_i \rfloor = m_i \text{ for all } i\} \), with centre \(c_{k,m} = \sum _i (m_i + 1/2) 2^{-k} b_i\). Every \(x\) lies in the cube \(Q_k(x)\) of level \(k\) with index \((\lfloor 2^k x_i \rfloor )_i\). For every \(k \in \mathbb {Z}\) and every \(m \in \mathbb {Z}^n\) the cube \(Q_{k,m}\) is measurable.
The map \(x \mapsto (x_i)_{i=1}^n\) is a continuous linear bijection of \(V\) onto \(\mathbb {R}^n\), where \(\mathbb {R}^n\) carries the norm \(\max _i |y_i|\), and it carries Lebesgue measure on \(V\) to Lebesgue measure on \(\mathbb {R}^n\); its inverse carries Lebesgue measure on \(\mathbb {R}^n\) to Lebesgue measure on \(V\).
It is the coordinate map of the orthonormal basis \((b_i)\), a linear isometry onto the Euclidean space \(\mathbb {R}^n\), followed by the identity of \(\mathbb {R}^n\) with the maximum norm; both are linear bijections of finite-dimensional spaces, hence continuous. The coordinates of an orthonormal basis preserve Lebesgue measure, and Lebesgue measure on \(\mathbb {R}^n\) does not depend on the norm.
Let \(k \in \mathbb {Z}\) and \(m \in \mathbb {Z}^n\).
For every \(y \in V\) every coordinate of \(y\) is at most \(\| y\| \) in modulus.
For every \(x \in V\), the \(i\)-th coordinate of \(x - c_{k,m}\) is \((2^k x_i - m_i - 1/2) 2^{-k}\).
For every \(x \in Q_{k,m}\), every coordinate of \(x - c_{k,m}\) is at most \(2^{-k}/2\) in modulus, and \(\| x - c_{k,m}\| \leq n 2^{-k}\).
The cube is the box
\[ Q_{k,m} = \{ x \in V : m_i 2^{-k} \leq x_i {\lt} (m_i + 1) 2^{-k} \text{ for all } i\} . \]\(B(c_{k,m}, 2^{-k}/2) \subseteq Q_{k,m} \subseteq \bar B(c_{k,m}, n 2^{-k})\) and \(|Q_{k,m}| = 2^{-kn}\).
The cubes of level \(k\) are pairwise disjoint and cover \(V\).
A coordinate of \(y\) is the inner product with a unit vector, so it is at most \(\| y\| \) by the Cauchy–Schwarz inequality. The \(i\)-th coordinate of \(x - c_{k,m}\) is \(x_i - (m_i + 1/2) 2^{-k} = (2^k x_i - m_i - 1/2) 2^{-k}\). On \(Q_{k,m}\), \(\lfloor 2^k x_i \rfloor = m_i\) gives \(m_i \leq 2^k x_i {\lt} m_i + 1\), hence \(|2^k x_i - m_i - 1/2| \leq 1/2\), and every coordinate of \(x - c_{k,m}\) is at most \(2^{-k}/2\) in modulus. Summing over the \(n\) coordinates in the orthonormal basis gives \(\| x - c_{k,m}\| \leq \sum _i |x_i - (c_{k,m})_i| \leq n 2^{-k}\). A point of the ball has coordinates within less than \(2^{-k}/2\) of \((m_i + 1/2) 2^{-k}\), so \(\lfloor 2^k x_i \rfloor = m_i\). The description as a set of inequalities is \(\lfloor t \rfloor = m_i \iff m_i \leq t {\lt} m_i + 1\); in the coordinates of the basis the cube is therefore the box \(\prod _i [m_i 2^{-k}, (m_i + 1) 2^{-k})\), and the coordinate map \(V \to \mathbb {R}^n\) preserves the volume (Lemma 14.13).
For \(m \in \mathbb {Z}^n\) let \(\hat m = (\lfloor m_i / 2 \rfloor )_i\), and let \(m^{(l)}\) be the result of \(l\) applications of \(m \mapsto \hat m\). Let \(k \in \mathbb {Z}\) and \(l \in \mathbb {N}\).
For every \(m \in \mathbb {Z}^n\),
\[ Q_{k+1,m} \subseteq Q_{k,\hat m}, \qquad |Q_{k,\hat m}| = 2^n |Q_{k+1,m}|, \qquad Q_{k+l,m} \subseteq Q_{k,m^{(l)}}. \]For all \(m, m' \in \mathbb {Z}^n\), \(|Q_{k-l,m'}| = 2^{ln} |Q_{k,m}|\).
For every \(x \in V\), the index of \(Q_{k-l}(x)\) is \(p^{(l)}\), where \(p = (\lfloor 2^k x_i \rfloor )_i\) is the index of \(Q_k(x)\).
For every integer \(k' \geq k\) and all \(m, m' \in \mathbb {Z}^n\), either \(Q_{k',m'} \subseteq Q_{k,m}\) or \(Q_{k',m'} \cap Q_{k,m} = \emptyset \).
For real \(t\), \(\lfloor 2^k t \rfloor = \lfloor 2^{k+1} t / 2 \rfloor = \lfloor \lfloor 2^{k+1} t \rfloor / 2 \rfloor \), which gives the first inclusion; the volumes are those of Lemma 14.14, and the third inclusion follows by induction on \(l\). For \(k \leq k'\) the cube \(Q_{k',m'}\) lies in the cube of level \(k\) with index \(m'^{(k'-k)}\), which is \(Q_{k,m}\) or disjoint from it.
Let \((X, \mu )\) be a measure space.
For all sets \(Q \subseteq B \subseteq X\) with \(\mu (Q) {\gt} 0\) and \(\mu (B) {\lt} \infty \), every \(F : X \to \mathbb {R}\) integrable on \(B\) and every \(c \in \mathbb {R}\),
\[ |F_Q - c| \leq \frac{\mu (B)}{\mu (Q)} \, (|F - c|)_B . \]Let \(Q \subseteq X\), and let \(G : X \to [0, \infty ]\) be almost everywhere measurable on \(Q\) with \(\int _Q G \, d\mu {\lt} \infty \). Then the average \(G_Q\) equals the average over \(Q\) of the real function equal to \(G\) where \(G {\lt} \infty \) and to \(0\) elsewhere.
\(F_Q - c = \mu (Q)^{-1} \int _Q (F - c) \, d\mu \), and \(\int _Q |F - c| \, d\mu \leq \int _B |F - c| \, d\mu \). In the second statement \(G\) is finite almost everywhere on \(Q\), so both functions have the same integral over \(Q\) (Mathlib’s toReal_setLAverage).
Let \(Q_k(x)\) be the dyadic cube of level \(k\) that contains \(x\) (Definition 14.12).
For every locally integrable \(F : V \to \mathbb {R}\) and almost every \(x \in V\),
\[ F_{Q_k(x)} \to F(x) \qquad (k \to \infty , \ k \in \mathbb {N}) . \]Let \(G : V \to [0, \infty ]\) be almost everywhere measurable with \(\int G {\lt} \infty \), and let \(t \in [0, \infty ]\). Then almost every \(x \in V\) with \(G_{Q_k(x)} \leq t\) for all \(k \in \mathbb {N}\) satisfies \(G(x) \leq t\).
Let \(w_k\) be the centre of \(Q_k(x)\) and \(\delta _k = (n + 1) 2^{-k}\). By Lemma 14.14, \(Q_k(x)\) lies in the closed ball \(\bar B_k = \bar B(w_k, \delta _k)\), which contains \(x\), and \(|\bar B_k| = (n + 1)^n |B(0,1)| \, |Q_k(x)|\). By Lemma 14.16,
Lebesgue measure is doubling, and Mathlib’s Lebesgue differentiation theorem for doubling measures (IsUnifLocDoublingMeasure.ae_tendsto_average_norm_sub) shows that the right side tends to \(0\) at almost every \(x\), since the radii \(\delta _k\) tend to \(0\). For \(G\) apply this to the integrable real function \(F\) equal to \(G\) where \(G {\lt} \infty \) and to \(0\) elsewhere; \(G\) is finite almost everywhere, so the averages of \(F\) over the cubes are those of \(G\) (Lemma 14.16), and the bound \(t\) passes to the limit.