Birkhoff's pointwise ergodic theorem: almost everywhere
OpenBirkhoff1931.tendsto_birkhoffAverage_condExpThis is Birkhoff's pointwise ergodic theorem, in the probabilistic form that identifies the almost-everywhere limit as a conditional expectation.
Let be a probability space and let be a measure-preserving map: is measurable and for every . Let
be the -algebra of -invariant sets. For a real-valued integrable function , write for the conditional expectation of given , and for let
be the -th Birkhoff (time) average of along the orbit of . Then for -almost every ,
This is the fundamental theorem of ergodic theory: time averages along almost every orbit converge, and the limit is the space average of over the invariant -algebra. When is ergodic, every invariant set has measure or , so the limit is the constant almost everywhere. Applied to the shift map of a stationary sequence of random variables, it yields the strong law of large numbers for stationary sequences, and in particular Kolmogorov's strong law for i.i.d. sequences. Mathlib contains the von Neumann mean ergodic theorem ( convergence) but not this pointwise result.
Formalization Note The average is Mathlib's birkhoffAverage ℝ T f n, which equals and takes the junk value at ; this does not affect the limit. The invariant -algebra is MeasurableSpace.invariants T, consisting of the measurable sets with exactly. Some texts (e.g. Durrett) call a set invariant when up to a -null set; for a measure-preserving every such set agrees with a strictly invariant set up to a null set, so both choices give the same conditional expectation -almost everywhere. The conditional expectation is MeasureTheory.condExp, and the hypothesis is Integrable f μ. Only the almost-everywhere convergence is stated: the convergence in , which Durrett's Theorem 6.2.1 also asserts, is not part of this statement, and neither is the ergodic special case.
import Mathlib
namespace Birkhoff1931
open MeasureTheory Filter Topology
/-- **Birkhoff's pointwise ergodic theorem** (Walters, *An Introduction to Ergodic Theory*,
Theorem 1.14; Einsiedler–Ward, *Ergodic Theory with a view towards Number Theory*, Theorem 2.30;
in this conditional-expectation form, the almost-sure part of Durrett, *Probability: Theory and
Examples*, 5th ed., Theorem 6.2.1). Let `μ` be a probability measure on `X`, `T : X → X` a
measure-preserving map and `f ∈ L¹(μ)`. Then for `μ`-almost every `x` the Birkhoff averages
`(1/n) ∑_{k<n} f (T^[k] x)` converge to `μ[f | invariants T] x`, the conditional expectation of
`f` onto the σ-algebra of `T`-invariant sets. -/
theorem tendsto_birkhoffAverage_condExp {X : Type*} [MeasurableSpace X] (μ : Measure X)
[IsProbabilityMeasure μ] (T : X → X) (hT : MeasurePreserving T μ μ) (f : X → ℝ)
(hf : Integrable f μ) :
∀ᵐ x ∂μ, Tendsto (fun n : ℕ => birkhoffAverage ℝ T f n x) atTop
(𝓝 (condExp (MeasurableSpace.invariants T) μ f x)) := by
sorry
end Birkhoff1931