Lebesgue Differentiation Theorem

lean4-proofanalysisvisualizationmeasure-theory
limr01Br(x)Br(x)fdμ=f(x) a.e.\lim_{r \to 0} \frac{1}{|B_r(x)|} \int_{B_r(x)} f \, d\mu = f(x) \text{ a.e.}

The Lebesgue Differentiation Theorem says that for a locally integrable function, averaging over smaller and smaller balls recovers the function's value at almost every point. It is the rigorous foundation for thinking of f(x)f(x) as an "infinitesimal average."

Statement

Let μ\mu be a locally finite Borel measure on Rn\mathbb{R}^n and fLloc1(μ)f \in L^1_{\mathrm{loc}}(\mu). Then for μ\mu-almost every xx:

limr0+1μ(Br(x))Br(x)f(y)dμ(y)=f(x).\lim_{r \to 0^+} \frac{1}{\mu(B_r(x))} \int_{B_r(x)} f(y)\,d\mu(y) = f(x).

In particular, almost every point is a Lebesgue density point for ff.

Visualization

Example: f=1[0,1/2]f = \mathbf{1}_{[0,1/2]} on R\mathbb{R}, Lebesgue measure.

At each point xx, compute the average of ff over (r,x+r)(-r, x+r) (symmetric ball of radius rr centred at xx) as r0r \to 0.

xxsmall-rr average 12rxrx+rf\frac{1}{2r}\int_{x-r}^{x+r} flimit (r0r \to 0)f(x)f(x)
1/41/412r2r=1\frac{1}{2r} \cdot 2r = 1 (entire ball [0,1/2]\subset [0,1/2])1111
3/43/412r0=0\frac{1}{2r} \cdot 0 = 0 (entire ball (1/2,1)\subset (1/2,1))0000
1/21/212rr=1/2\frac{1}{2r} \cdot r = 1/2 (half the ball)1/21/2discontinuity

At x=1/2x = 1/2 the average is always 1/21/2 regardless of rr, not f(1/2)=1f(1/2) = 1. This is the single exceptional point predicted by the theorem — a set of measure zero.

Ball averaging at x=1/4x = 1/4:

f = 1  |######### |           (indicator of [0,1/2])
       |    |     |
       0  x-r  x  x+r   1/2   1
             Ball: entirely inside [0,1/2]
             Average = 1 → f(x) = 1

Ball averaging at x=1/2x = 1/2 (boundary):

f = 1  |#####|               
f = 0  |     |#####          
       0    x-r  x  x+r
             Half inside, half outside [0,1/2]
             Average = 1/2 for all r — exceptional point

Proof Sketch

  1. The key tool is the Vitali covering theorem / Besicovitch covering theorem: any family of balls satisfying a bounded overlap condition admits a subcollection covering a.e. every point.

  2. Use the covering theorem to show the Hardy-Littlewood maximal operator Mf(x)=supr>01μ(Br(x))Br(x)fdμMf(x) = \sup_{r > 0} \frac{1}{\mu(B_r(x))} \int_{B_r(x)} |f| \, d\mu is weak-(1,1)(1,1) bounded.

  3. Approximate ff in L1L^1 by continuous functions gg (which satisfy the conclusion trivially by continuity). For fgf - g small in L1L^1, the maximal inequality controls the exceptional set where averages diverge from fgf - g.

  4. Conclude by a density argument: the set of xx where averages fail to converge has measure zero.

Connections

The theorem is the continuous analogue of Cauchy CriterionCauchy Criterionε>0  N:  m,nN    aman<ε\forall\varepsilon>0\;\exists N:\; m,n \geq N \implies |a_m - a_n| < \varepsilonA sequence converges if and only if its terms eventually become arbitrarily close to each other — no candidate limit requiredRead more →: both characterise when a sequence (or family of averages) must converge. The differentiation theorem also gives the Radon-Nikodym theorem a differentiation interpretation: if νμ\nu \ll \mu, then dν/dμ(x)=limr0ν(Br(x))/μ(Br(x))d\nu/d\mu(x) = \lim_{r \to 0} \nu(B_r(x))/\mu(B_r(x)) a.e. — connecting it directly to Absolutely Continuous FunctionsAbsolutely Continuous FunctionsF(x)=F(a)+axf(t)dt    F absolutely continuousF(x) = F(a) + \int_a^x f(t) \, dt \iff F \text{ absolutely continuous}A function is absolutely continuous iff it is the integral of its derivative — the bridge between differentiation and Lebesgue integrationRead more →. Besicovitch's covering lemma is the same geometric tool underlying Hausdorff DimensionHausdorff Dimensiond=logNlog(1/r)d = \frac{\log N}{\log (1/r)}Measuring the fractional dimension of self-similar setsRead more → estimates.

Lean4 Proof

import Mathlib.MeasureTheory.Covering.Besicovitch

open MeasureTheory Besicovitch

/-- Lebesgue differentiation theorem: for a measurable set s, the density
    μ(s ∩ B(x,r)) / μ(B(x,r)) converges a.e. to the indicator of s as r → 0. -/
theorem lebesgue_density {β : Type*} [MetricSpace β] [MeasurableSpace β]
    [BorelSpace β] [SecondCountableTopology β] [HasBesicovitchCovering β]
    {μ : Measure β} [IsLocallyFiniteMeasure μ]
    {s : Set β} (hs : MeasurableSet s) :
    ᵐ x ∂μ,
      Filter.Tendsto (fun r => μ (s ∩ closedBall x r) / μ (closedBall x r))
        (nhdsWithin 0 (Set.Ioi 0))
        (nhds (s.indicator 1 x)) :=
  Besicovitch.ae_tendsto_measure_inter_div_of_measurableSet μ hs