Boltzmann's hypothesis
A litre of gas contains about molecules. Nobody can follow them, yet pressure and temperature are perfectly reproducible. In the 1870s Ludwig Boltzmann proposed an explanation: a measuring instrument records a time average of some quantity along the system's trajectory, and if the trajectory wanders through its whole energy surface, spending time in each region in proportion to its volume, then the time average equals the space average over the energy surface — which can be computed. He called such systems ergodic. Whether real gases are ergodic is still not settled, but the question created a branch of mathematics.
Ergodic theory studies transformations of a space that preserve a probability measure , and asks about the statistics of orbits . Its first theorems (Poincaré 1890; Birkhoff and von Neumann 1931–32) say that almost every orbit returns arbitrarily close to where it started, and that for ergodic systems time averages equal space averages almost everywhere. Its examples range from rotations of a circle to the continued fraction expansion of a random real number, whose digits are about of the time — a fact Gauss knew in 1812 and that the ergodic theorem explains.
Time averages, space averages and indecomposability
Take and an orbit. The time average is ; the space average is . Two things can make them differ.
- The space can decompose into invariant pieces. A rotation of the circle by of a turn moves each point around a 5-point orbit; the time average only sees those 5 points. If with both pieces invariant and of positive measure, orbits starting in never visit . Ergodicity rules this out: every invariant set has measure or .
- Even in an ergodic system, exceptional orbits exist: the fixed point of the doubling map spends all its time in . The ergodic theorem promises equality only for almost every starting point.
A finer property is mixing: , which says the event "in at time " becomes independent of "in at time " — the system forgets its past. Stirring two liquids mixes them; rotating them does not. An irrational rotation is ergodic (every orbit is dense and equidistributed) but never mixing (it is rigid: a set moves around without spreading). The doubling map is mixing: it stretches every interval by a factor each step and wraps it around.
Measure-preserving systems
Definition— measure-preserving system
A measure-preserving system consists of a probability space and a measurable map with for every . Equivalently for all . The Koopman operator is then an isometry of each .
Definition— ergodic, mixing
is ergodic if every measurable with (up to a null set) has . It is (strongly) mixing if as for all measurable .
Definition— Birkhoff sums and averages
For , the Birkhoff sums are and the Birkhoff averages .
Definition— the standard examples
On with Lebesgue measure : the rotation and the doubling map . On with the product of measures: the Bernoulli shift . On : the Gauss map for , , with the Gauss measure .
The Gauss map generates continued fractions: if with digits , then and , so — the digits are read off along the orbit, just as the doubling map reads off binary digits: . Through the binary expansion, on and on are isomorphic measure-preserving systems.
Invariant measures in practice
Example— Rotations and the doubling map preserve Lebesgue measure
It suffices to check intervals, since they generate the Borel σ-algebra and form a π-system (two measures agreeing on a π-system that generates the σ-algebra agree everywhere). is an interval (or two pieces wrapping around ) of the same length. : two intervals of half the length. Note that the doubling map is two-to-one, and invariance is about preimages: has twice the measure of .
Example— The Gauss measure is invariant
exactly when for , so (up to the point ). Since ,
Both products telescope: and . The product is , so . As the intervals form a generating π-system, preserves . (Lebesgue measure is not invariant: .)
Example— Recurrence without finiteness fails
The translation preserves Lebesgue measure on , and no point of ever returns. The finiteness of is essential in Poincaré's theorem below.
Recurrence and ergodicity
Theorem— Poincaré recurrence theorem (1890)
Let be measure-preserving with , and . Then almost every point of returns to infinitely often: .
Proof
Let , the points of that never return; is measurable. The sets are pairwise disjoint: if with , then and , so returns to , contradicting . They all have measure , so , forcing .
If returns only finitely often, let be the last time with ; then , so . Hence the set of such lies in , a countable union of null sets.
∎
Zermelo (1896) objected that recurrence contradicts the irreversible approach to equilibrium of Boltzmann's gas. The resolution is quantitative: recurrence times for macroscopic systems are astronomically longer than the age of the universe.
Theorem— Proposition (characterisations of ergodicity)
For a measure-preserving the following are equivalent: (i) is ergodic; (ii) every measurable with a.e. is a.e. constant; (iii) the same for .
Proof
(ii) ⇒ (iii) is trivial, and (iii) ⇒ (i) by applying (iii) to for invariant : a constant indicator is a.e. or a.e. . (i) ⇒ (ii): for each , the set is invariant up to a null set, so it has measure or . The function is non-increasing, so it jumps from to at some , and a.e.; is finite because is real-valued.
∎
Theorem— Theorem (rotations)
is ergodic if and only if is irrational. It is never mixing.
Proof
Let with . Comparing Fourier coefficients, . If is irrational, for , so for and is a.e. constant: is ergodic by the proposition. If , the non-constant function is invariant.
For mixing, take . Then is a half-circle shifted by , and , where is the distance from to the nearest integer. By Dirichlet's approximation theorem there are infinitely many with , so along those the overlap tends to . (For rational the overlap is periodic in .)
∎
Theorem— Theorem (the doubling map is mixing)
The doubling map is mixing, hence ergodic. More generally, mixing implies ergodicity.
Proof
Let be any interval and a dyadic interval . For , consists of one interval of length inside each dyadic interval of level . is the union of of these, so exactly for all . Finite disjoint unions of dyadic intervals approximate every Borel set in measure, and a standard argument extends to all Borel .
If is mixing and , then , so .
∎
The same cylinder computation shows that every Bernoulli shift is mixing: for cylinder sets depending on coordinates in a finite window, and depend on disjoint coordinates once is large, so they are independent. The Gauss map is mixing too (indeed exponentially mixing), but the proof needs distortion estimates for the branches of (Einsiedler–Ward, Ch. 3).
The ergodic theorems
Theorem— Mean ergodic theorem (von Neumann, 1932)
Let be a linear operator on a Hilbert space with , and the orthogonal projection onto . Then in norm for every . For a measure-preserving and on : in , and if is ergodic, .
Proof
Step 1: iff . If , then , because . The converse is symmetric.
Step 2: , where (the coboundaries). A vector is orthogonal to iff for all , iff , iff by Step 1. So , and .
Step 3: averages. On every average equals . On the sum telescopes: , of norm at most . The averaging operators have norm , so for every as well: given , choose with ; then for large . Writing gives .
For , the invariant vectors are the invariant functions; if is ergodic they are the constants, and the projection onto constants is .
∎
Theorem— Maximal ergodic theorem (Hopf; Garsia's proof, 1965)
Let preserve , , and . Then .
Proof
For , (with ). On we have , so there. Integrating over , and using off , , and invariance of :
∎
Theorem— Pointwise ergodic theorem (Birkhoff, 1931)
Let preserve the probability measure and . Then converges for -almost every , to an invariant integrable function with . If is ergodic, a.e.:
Proof
We prove the ergodic case; the general case runs the same argument on invariant sets. Let . Since , we have , so for each real the set is invariant and .
Suppose and . Put . At every some , i.e. , so for large . These sets increase with to a set of full measure, so by the maximal ergodic theorem and dominated convergence, , a contradiction. Hence for every rational , i.e. a.e. Applying this to gives a.e., so almost everywhere.
∎
For the Bernoulli shift and , Birkhoff's theorem is the strong law of large numbers for fair coin tosses; via the doubling map it is Borel's theorem (1909) that almost every number is normal in base . The theorem says nothing about any particular point: (a fixed point of ) and are exceptional for suitable , and nobody knows whether or is normal in base .
Equidistribution and continued fractions
Weyl's theorem. For irrational , the sequence is equidistributed: for every interval — for every starting point, not just almost every one. Proof: for with , is a geometric series bounded by ; by linearity averages of trigonometric polynomials converge to their integrals at every point; by Weierstrass approximation (Fejér) so do averages of continuous functions, and squeezing an interval's indicator between continuous functions finishes the proof. A system with this "every point" behaviour is uniquely ergodic: is its only invariant probability measure.
Continued fraction digits. The Gauss map is ergodic for , which is equivalent to Lebesgue measure (its density lies between and ), so "-almost every" means "Lebesgue-almost every". Apply Birkhoff to : for almost every the digit appears with frequency
the Gauss–Kuzmin law: ones, twos, threes. Applied to (integrable for ), it gives Khinchin's theorem (1935) that the geometric mean tends almost everywhere to a constant . Quadratic irrationals, such as the golden ratio , are exceptional: their digits are eventually periodic.
Entropy. Are the Bernoulli shifts with probabilities and isomorphic? Both are mixing; von Neumann's spectral invariants cannot tell them apart. Kolmogorov (1958) and Sinai (1959) introduced the entropy , an isomorphism invariant measuring the exponential rate at which a system generates information: and respectively, so they are not isomorphic; rotations have entropy and the doubling map entropy . Ornstein (1970) proved the converse for Bernoulli shifts: equal entropy implies isomorphism.
Ergodic theory in Lean and Mathlib
The pigeonhole form of recurrence, proved from scratch: the sets , , all have measure , so if two of them meet:
/-- **Recurrence by pigeonhole.** Let `f` preserve a finite measure `μ` and let `μ(s) > 0`. Then
some point of `s` returns to `s`. Proof: choose `N` with `N · μ(s) > μ(X)`. The sets
`s, f⁻¹s, …, f^{-(N-1)}s` all have measure `μ(s)`, so their measures add up to more than
`μ(X)`, and two of them meet (Mathlib's measure-theoretic pigeonhole principle
`exists_nonempty_inter_of_measure_univ_lt_sum_measure`). If `y ∈ f^{-i}s ∩ f^{-j}s` with
`i < j`, then `x = fⁱ(y) ∈ s` and `f^{j-i}(x) = fʲ(y) ∈ s`. -/
theorem recurrence_pigeonhole {α : Type*} [MeasurableSpace α] {μ : Measure α}
[IsFiniteMeasure μ] {f : α → α} (hf : MeasurePreserving f μ μ) {s : Set α}
(hs : MeasurableSet s) (hpos : μ s ≠ 0) : ∃ x ∈ s, ∃ k, 0 < k ∧ f^[k] x ∈ s := by
obtain ⟨N, hN⟩ := ENNReal.exists_nat_mul_gt hpos (measure_ne_top μ univ)
have hmeas : ∀ i ∈ Finset.range N, NullMeasurableSet (f^[i] ⁻¹' s) μ :=
fun i _ => ((hf.iterate i).measurable hs).nullMeasurableSet
have hsum : ∑ i ∈ Finset.range N, μ (f^[i] ⁻¹' s) = N * μ s := by
rw [Finset.sum_congr rfl fun i _ => (hf.iterate i).measure_preimage hs.nullMeasurableSet]
simp
obtain ⟨i, -, j, -, hij, y, hyi, hyj⟩ :=
exists_nonempty_inter_of_measure_univ_lt_sum_measure μ hmeas (hsum ▸ hN)
rcases lt_or_gt_of_ne hij with h | h
· refine ⟨f^[i] y, hyi, j - i, Nat.sub_pos_of_lt h, ?_⟩
rw [← Function.iterate_add_apply, Nat.sub_add_cancel h.le]
exact hyj
· refine ⟨f^[j] y, hyj, i - j, Nat.sub_pos_of_lt h, ?_⟩
rw [← Function.iterate_add_apply, Nat.sub_add_cancel h.le]
exact hyiMathlib's Poincaré recurrence theorem, for conservative maps (every finite measure-preserving map is conservative):
/-- **Poincaré recurrence theorem.** If `f` preserves a finite measure and `s` is measurable,
then almost every point of `s` returns to `s` infinitely often. A measure-preserving map of a
finite measure space is conservative (`MeasurePreserving.conservative`), and Mathlib proves
recurrence for conservative maps (`Conservative.ae_mem_imp_frequently_image_mem`). -/
theorem poincare_recurrence {α : Type*} [MeasurableSpace α] {μ : Measure α} [IsFiniteMeasure μ]
{f : α → α} (hf : MeasurePreserving f μ μ) {s : Set α} (hs : NullMeasurableSet s μ) :
∀ᵐ x ∂μ, x ∈ s → ∃ᶠ n in atTop, f^[n] x ∈ s :=
hf.conservative.ae_mem_imp_frequently_image_mem hsThe telescoping step at the heart of the mean ergodic theorem, and the vanishing of time averages of bounded coboundaries, proved here; then von Neumann's theorem as Mathlib states it, for a contraction of a Hilbert space:
/-- **Birkhoff sums of a coboundary telescope.** If `g = h ∘ f − h`, then
`g(x) + g(f x) + ⋯ + g(f^{n−1} x) = h(fⁿ x) − h(x)`. By induction on `n`, using Mathlib's
`birkhoffSum_succ_apply`. -/
theorem birkhoff_sum_coboundary {α : Type*} (f : α → α) (h : α → ℝ) (n : ℕ) (x : α) :
birkhoffSum f (fun y => h (f y) - h y) n x = h (f^[n] x) - h x := by
induction n with
| zero => simp
| succ n ih =>
rw [birkhoffSum_succ_apply, ih, Function.iterate_succ_apply']
ring/-- **Time averages of a bounded coboundary vanish.** If `|h| ≤ C`, the Birkhoff averages of
`h ∘ f − h` are at most `2C/n` in absolute value, so they tend to `0` at every point. In von
Neumann's proof of the mean ergodic theorem, `L²` splits into invariant functions (where averages
are constant) and the closure of such coboundaries (where averages tend to `0`). -/
theorem coboundary_average_tendsto_zero {α : Type*} (f : α → α) (h : α → ℝ) {C : ℝ}
(hC : ∀ y, |h y| ≤ C) (x : α) :
Tendsto (fun n => birkhoffAverage ℝ f (fun y => h (f y) - h y) n x) atTop (𝓝 0) := by
have hlim : Tendsto (fun n : ℕ => 2 * C / n) atTop (𝓝 0) :=
tendsto_const_nhds.div_atTop tendsto_natCast_atTop_atTop
refine squeeze_zero_norm (fun n => ?_) hlim
rw [birkhoffAverage, birkhoff_sum_coboundary, smul_eq_mul, norm_mul, norm_inv,
Real.norm_natCast, Real.norm_eq_abs, inv_mul_eq_div]
gcongr
calc |h (f^[n] x) - h x| ≤ |h (f^[n] x)| + |h x| := abs_sub _ _
_ ≤ C + C := add_le_add (hC _) (hC _)
_ = 2 * C := by ring/-- **Von Neumann's mean ergodic theorem.** For a contraction `U` (`‖U‖ ≤ 1`) of a Hilbert space —
for instance the Koopman operator `φ ↦ φ ∘ T` of a measure-preserving `T` on `L²(μ)` — the
averages `(1/N) ∑_{n<N} Uⁿ x` converge in norm to the orthogonal projection of `x` onto the
subspace of `U`-invariant vectors. This is Mathlib's
`ContinuousLinearMap.tendsto_birkhoffAverage_orthogonalProjection`. -/
theorem mean_ergodic {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E]
(U : E →L[ℝ] E) (hU : ‖U‖ ≤ 1) (x : E) :
Tendsto (birkhoffAverage ℝ U _root_.id · x) atTop
(𝓝 ((U.eqLocus (1 : E →L[ℝ] E)).orthogonalProjectionOnto x)) :=
U.tendsto_birkhoffAverage_orthogonalProjection hU xOn the circle AddCircle T with Haar measure, Mathlib proves ergodicity of for and characterises ergodic rotations; for the criterion becomes " is irrational":
/-- **The doubling map `x ↦ 2x mod 1` is ergodic** for Lebesgue (Haar) measure on the circle
`ℝ/Tℤ`. Mathlib proves this for `x ↦ n • x` with `n ≥ 2` (`AddCircle.ergodic_nsmul`), via
Lebesgue's density theorem. -/
theorem doubling_ergodic (T : ℝ) [Fact (0 < T)] : Ergodic fun y : AddCircle T => 2 • y :=
AddCircle.ergodic_nsmul (by norm_num)/-- **A rotation of the circle `ℝ/ℤ` by `α` is ergodic iff `α` is irrational.** Mathlib shows that
a rotation is ergodic iff the angle has infinite additive order (`AddCircle.ergodic_add_left`),
iff its multiples are dense (`AddCircle.denseRange_zsmul_iff`), iff `α` is irrational
(`AddCircle.denseRange_zsmul_coe_iff`). -/
theorem rotation_ergodic_iff (α : ℝ) :
Ergodic (fun y : AddCircle (1 : ℝ) => (α : AddCircle (1 : ℝ)) + y) ↔ Irrational α := by
rw [AddCircle.ergodic_add_left, ← AddCircle.denseRange_zsmul_iff,
AddCircle.denseRange_zsmul_coe_iff, div_one]Not formalised (here or, as far as we know, in Mathlib): Birkhoff's pointwise ergodic theorem and the maximal ergodic theorem, mixing and its consequences, the Gauss map and Gauss measure (we verify invariance by the telescoping argument above and numerically below), entropy, and Weyl equidistribution in the form stated here. Mathlib proves ergodicity of the doubling map with Lebesgue's density theorem rather than through mixing.
Following orbits on a computer
The experiment follows orbits of four systems. For the golden rotation the time spent in approaches , while the rotation by gives different answers from different starting points; the exact overlaps show the failure of mixing. The doubling map is a cautionary tale: in floating point, reaches after steps, because each step shifts out one of the binary digits a double stores — the computed orbit is not typical. With exact arithmetic on a random binary expansion, the orbit spends half its time in , as Birkhoff predicts. Finally, the continued fraction digits of random numbers (exact rational arithmetic) follow the Gauss–Kuzmin law, and the telescoping product confirms .
"""Time averages versus space averages in four systems.
1. Rotation by the golden ratio: the fraction of time an orbit spends in
[0, 1/4) tends to 1/4 (Weyl), but the overlaps mu(A & R^-n A) keep
returning near 1/2, so the rotation is not mixing. A rational rotation is
not ergodic: the time average depends on the starting point.
2. The doubling map in floating point collapses to 0 (each step discards a
binary digit), while exact arithmetic on random binary digits behaves
typically: Birkhoff for the doubling map is the law of large numbers.
3. The Gauss map x -> {1/x}: continued fraction digits of random numbers
follow the Gauss-Kuzmin law log2(1 + 1/(k(k + 2))), and the Gauss measure
is invariant (checked by a telescoping partial product).
"""
import math
import random
from fractions import Fraction
GOLDEN = (math.sqrt(5) - 1) / 2
def rotation_average(alpha, x0, n, a=0.0, b=0.25):
"""Fraction of x0, x0 + alpha, ..., (n - 1 terms) mod 1 lying in [a, b)."""
count, x = 0, x0 % 1.0
for _ in range(n):
if a <= x < b:
count += 1
x = (x + alpha) % 1.0
return count / n
def rotation_overlap(alpha, n):
"""Lebesgue measure of A & R^-n A for A = [0, 1/2) and R(x) = x + alpha:
1/2 - ||n alpha||, with ||t|| the distance from t to the nearest integer."""
t = n * alpha
return 0.5 - abs(t - round(t))
def float_doubling_steps(x, limit=200):
"""Number of steps until the floating-point doubling orbit of x hits 0."""
for k in range(limit):
if x == 0:
return k
x = (2 * x) % 1.0
return limit
def exact_doubling_frequency(bits):
"""Exact doubling orbit of x = 0.b1 b2 b3 ... (binary): the fraction of
the first len(bits) iterates lying in [0, 1/2)."""
n = len(bits)
x = Fraction(int("".join(map(str, bits)), 2), 2 ** n)
hits = 0
for _ in range(n):
hits += x < Fraction(1, 2)
x = 2 * x - int(2 * x)
return hits / n
def continued_fraction_digits(x, count):
"""The first `count` continued fraction digits a1, a2, ... of x in (0, 1),
obtained by iterating the Gauss map exactly."""
digits = []
for _ in range(count):
if x == 0:
break
a = int(1 / x)
digits.append(a)
x = 1 / x - a
return digits
def gauss_kuzmin(k):
"""Gauss measure of {x : a1(x) = k} = log2(1 + 1/(k (k + 2)))."""
return math.log2(1 + 1 / (k * (k + 2)))
def gauss_preimage_measure(t, terms):
"""Gauss measure of T^-1 [0, t) = union of [1/(n + t), 1/n), via the partial
product prod (n + 1)(n + t) / (n (n + 1 + t)) over n <= terms."""
product = 1.0
for n in range(1, terms + 1):
product *= (n + 1) * (n + t) / (n * (n + 1 + t))
return math.log2(product)
def main():
print("1. Rotations: fraction of time in A = [0, 1/4)")
for n in [100, 10_000, 100_000]:
avg = rotation_average(GOLDEN, 0.0, n)
print(f" golden, N = {n:>6}: {avg:.5f} (space average 0.25)")
print(" rotation by 2/5, from x0 = 0 and x0 = 0.3:",
rotation_average(0.4, 0.0, 1000), rotation_average(0.4, 0.3, 1000))
print(" golden overlaps mu(A & R^-n A), A = [0, 1/2), for n = 1, 4, 55, 89:")
print(" ", [round(rotation_overlap(GOLDEN, n), 4) for n in [1, 4, 55, 89]],
"- no limit 1/4: not mixing")
print()
print("2. Doubling map")
print(f" float orbit of 0.1 reaches 0 after {float_doubling_steps(0.1)} steps")
rng = random.Random(2024)
bits = [rng.randrange(2) for _ in range(4000)]
print(f" exact orbit of 4000 random bits: time in [0, 1/2) ="
f" {exact_doubling_frequency(bits):.4f}")
print(" (space average 0.5; the orbit reads off the binary digits)")
print()
print("3. Gauss map: continued fraction digits of 20 random numbers")
digits = []
for _ in range(20):
x = Fraction(rng.getrandbits(3000), 2 ** 3000)
digits += continued_fraction_digits(x, 400)
total = len(digits)
print(f" {total} digits; k: observed frequency vs Gauss-Kuzmin")
for k in [1, 2, 3, 4, 10]:
observed = digits.count(k) / total
print(f" k = {k:>2}: {observed:.4f} vs {gauss_kuzmin(k):.4f}")
print(" Gauss measure of T^-1[0, 0.3) vs [0, 0.3):",
f"{gauss_preimage_measure(0.3, 10_000):.5f} vs {math.log2(1.3):.5f}")
print()
print("Epistemic status: numerical and statistical evidence from finite")
print("orbits and seeded random samples (the overlaps and the Gauss product")
print("are exact formulas, evaluated in floating point). Birkhoff's theorem,")
print("non-mixing of rotations and invariance of the Gauss measure are the")
print("lesson's theorems; the floating-point collapse shows that a computed")
print("orbit need not be a typical orbit.")
if __name__ == "__main__":
main()Each line is evidence from finitely many points: a typical orbit cannot be certified by computation, and random samples carry statistical error (here about for the bit frequency). The theorems above are what turn these observations into statements about almost every point.
Cobwebs of chaotic maps
The Gauss map : each step of the cobweb produces the next continued fraction digit (). Try starting points near (the golden ratio's fractional part, a fixed point with all digits ) and elsewhere, and compare how long orbits linger near , where the digits are large.
The Gauss map
Feed each output back in: xₖ₊₁ = f(xₖ). The cobweb diagram shows where the orbit goes.
Iterates xₖ against k
- y = f(x)
- y = x
- cobweb path
Last iterates: x8 = 1, x9 = 0, x10 = 0
The orbit reaches a value where f is undefined.
Fixed points in view (numerical): x* = 0.002 (repelling: |f′(x*)| > 1); x* = 0.004 (repelling: |f′(x*)| > 1); x* = 0.005 (repelling: |f′(x*)| > 1); x* = 0.008 (repelling: |f′(x*)| > 1); x* = 0.01 (repelling: |f′(x*)| > 1); x* = 0.0125 (repelling: |f′(x*)| > 1); x* = 0.02 (repelling: |f′(x*)| > 1); x* = 0.025 (repelling: |f′(x*)| > 1); x* = 0.037 (repelling: |f′(x*)| > 1); x* = 0.0399 (repelling: |f′(x*)| > 1); x* = 0.0499 (repelling: |f′(x*)| > 1); x* = 0.0525 (repelling: |f′(x*)| > 1)
Based on 3,000 iterations in floating-point arithmetic: numerical evidence, not proof.
The doubling map is mixing, and the cobweb wanders all over the square. The widget computes in floating point: with above about , the orbit of collapses to the fixed point , a failure of the computer, not of the map.
The doubling map in floating point
Feed each output back in: xₖ₊₁ = f(xₖ). The cobweb diagram shows where the orbit goes.
Iterates xₖ against k
- y = f(x)
- y = x
- cobweb path
Last iterates: x58 = 0, x59 = 0, x60 = 0
The orbit appears to settle at a fixed point x* ≈ 0.
Fixed points in view (numerical): x* = 0 (repelling: |f′(x*)| > 1)
Based on 3,000 iterations in floating-point arithmetic: numerical evidence, not proof.
Exercises
1. Ergodic theory
Warm-upHumanWhich maps of preserve Lebesgue measure (that is, for all Borel )? Select all that apply.
2. Ergodic theory
Warm-upHumanIterate the Gauss map on until you reach , recording the digits . What is the sum of the digits?
3. Ergodic theory
CoreHumanThe translation on preserves Lebesgue measure, yet no point of ever returns to . Which hypothesis of the Poincaré recurrence theorem fails?
4. Ergodic theory
CoreHumanWhich of these measure-preserving maps of is ergodic but not mixing?
5. Ergodic theory
CoreHumanThe doubling map is ergodic for Lebesgue measure. Let . Which statement is correct?
6. Ergodic theory
Warm-upFormalWhich Lean statement formalises "rotation of the circle by is ergodic exactly when is irrational"? (AddCircle (1 : ℝ) is with Haar measure, and Ergodic f includes measure preservation.)
7. Ergodic theory
StretchHumanIn the proof of von Neumann's mean ergodic theorem, why do the averages tend to for ?
8. Ergodic theory
CoreComputationalWrite cf_digits(p, q) returning the list of continued fraction digits of the rational (with ), by iterating the Gauss map with exact integer arithmetic (Euclid's algorithm). Then digit_frequency(digits, k) should return the fraction of the digits equal to k.
Common misconceptions
Misconception
"Ergodic means every orbit is dense and equidistributed." The ergodic theorem holds for almost every point. The doubling map is ergodic (even mixing), yet it has a fixed point , periodic orbits at every rational with odd denominator, and orbits whose closure is a Cantor set. "Every orbit equidistributed" is unique ergodicity, a much stronger property that irrational rotations have and the doubling map lacks.
Misconception
"Ergodicity implies mixing." Irrational rotations are ergodic but not mixing: the overlap for a half-circle keeps returning near . Mixing implies ergodicity, not conversely; in between lies weak mixing (convergence in density), which an irrational rotation also fails because its Koopman operator has eigenfunctions .
Misconception
"Invariance means ." The definition uses preimages, . For the two-to-one doubling map, has measure , but has measure , as it should.
Misconception
"A computer simulation shows what typical orbits do." Floating-point orbits of the doubling map all end at within about steps. Shadowing lemmas guarantee, for some hyperbolic systems, that a computed pseudo-orbit stays close to some true orbit — but not that this orbit is typical for the invariant measure. Numerical ergodic averages are evidence, never proof.
Many ways of seeing
Number theory— From Weyl to Szemerédi
Equidistribution modulo is ergodic theory of rotations: Weyl (1916) proved that , and more generally for any polynomial with an irrational non-constant coefficient, is equidistributed — Furstenberg later reproved the polynomial case by showing that skew products are uniquely ergodic. Furstenberg (1977) proved Szemerédi's theorem — every set of integers of positive upper density contains arbitrarily long arithmetic progressions — by a multiple recurrence theorem: for measure-preserving and , for some ; the case is Poincaré recurrence. Ideas from this circle fed into Green and Tao's theorem (2004) that the primes contain arbitrarily long progressions; see additive combinatorics. And Lindenstrauss, with Einsiedler and Katok (2006), proved that the exceptional set in Littlewood's conjecture has Hausdorff dimension zero, using measure rigidity for actions of ; the full conjecture is open.
Probability— Stationary processes and the law of large numbers
A measure-preserving system and a function define a stationary process : its joint distributions are invariant under time shift. Conversely every stationary process is of this form, on the space of its sample paths with the shift. Birkhoff's theorem is then the strong law of large numbers for stationary processes, without any independence: converges almost surely, to when the process is ergodic. Independent identically distributed sequences are Bernoulli shifts; stationary Markov chains are Markov shifts, ergodic exactly when the chain is irreducible, and mixing when it is also aperiodic — the convergence theorem for Markov chains is a mixing statement.
Topology— Topological dynamics and invariant measures
For a continuous map of a compact metric space, invariant measures always exist (Krylov–Bogolyubov, 1937): any weak-* limit of the averages is invariant, by Banach–Alaoglu. The invariant probability measures form a compact convex set whose extreme points are exactly the ergodic ones, so every invariant measure is an average of ergodic ones (ergodic decomposition). Topological notions shadow measure-theoretic ones: minimality (every orbit dense) versus ergodicity, unique ergodicity (one invariant measure, then averages of continuous functions converge at every point), topological entropy versus measure entropy, linked by the variational principle (Goodwyn, Dinaburg, Goodman, 1969–71). See dynamical systems.
Geometry— Geodesic flows and homogeneous dynamics
On a compact surface of negative curvature, the geodesic flow — moving along geodesics at unit speed on the unit tangent bundle — preserves Liouville measure and is ergodic (Hopf, 1939, for constant curvature and some variable curvature; Anosov, 1967, in general), indeed mixing and Bernoulli. Negative curvature makes nearby geodesics diverge exponentially, exactly like the stretching of the doubling map; the Gauss map is a cross-section of the geodesic flow on the modular surface (Artin 1924; Series 1985). Homogeneous dynamics studies flows on spaces : Ratner's theorems (1991) on unipotent flows, Margulis's proof of the Oppenheim conjecture (1987) on values of indefinite quadratic forms at integer points, and Eskin, Mirzakhani and Mohammadi's work (2015) on -orbit closures in moduli spaces of translation surfaces show how invariant measures encode arithmetic and geometric information. See Riemannian geometry.
Physics— Is a gas ergodic?
Boltzmann's hypothesis motivated the subject, but its truth for realistic systems is subtle. Kolmogorov–Arnold–Moser (KAM) theory (1954–63) shows that small perturbations of integrable Hamiltonian systems keep a set of positive measure of invariant tori, so such systems are not ergodic on their energy surfaces. On the other side, Sinai (1970) proved ergodicity of dispersing billiards, and Simányi proved ergodicity of hard-ball systems in many cases, as models of a gas. Physicists often sidestep the question: for macroscopic observables, which are sums over many particles, typicality and concentration of measure explain why time averages look like phase averages without full ergodicity. The mathematics is a theorem about measure-preserving maps; its application to gases remains partly heuristic.
History and context
- Carl Friedrich Gauss (letter to Laplace, 1812) stated the limiting distribution of continued fraction digits; Rodion Kuzmin (1928) and Paul Lévy (1929) proved it with error estimates; Aleksandr Khinchin (1935) proved his geometric mean theorem.
- Ludwig Boltzmann formulated the ergodic hypothesis (1870s–1880s); Henri Poincaré (1890) proved recurrence in his prize memoir on the three-body problem; Ernst Zermelo (1896) raised the recurrence paradox. Émile Borel (1909) proved that almost all numbers are normal; Hermann Weyl (1916) proved equidistribution.
- John von Neumann (1932) and George David Birkhoff (1931) proved the mean and pointwise ergodic theorems; Eberhard Hopf developed the theory and proved the maximal ergodic theorem and ergodicity of geodesic flows; Bernard Koopman introduced the operator named after him (1931); Shizuo Kakutani and Vladimir Rokhlin developed the structure theory of measure-preserving maps.
- Andrey Kolmogorov (1958) and Yakov Sinai (1959) introduced entropy; Dmitri Anosov (1967) proved ergodicity of geodesic flows in negative curvature; Donald Ornstein (1970) classified Bernoulli shifts.
- Hillel Furstenberg (1977) connected ergodic theory with combinatorics; Grigory Margulis, S. G. Dani and Marina Ratner built homogeneous dynamics; Elon Lindenstrauss proved arithmetic quantum unique ergodicity (2006); Maryam Mirzakhani, with Alex Eskin and Amir Mohammadi, proved rigidity theorems in Teichmüller dynamics.
Further reading
- Peter Walters, An Introduction to Ergodic Theory (1982) — the classical graduate text: ergodicity, mixing, entropy, topological dynamics.
- Manfred Einsiedler and Thomas Ward, Ergodic Theory with a View towards Number Theory (2011) — the ergodic theorems, continued fractions and the Gauss map, Furstenberg's theorem, and homogeneous dynamics.
- Karl Petersen, Ergodic Theory (1983) — thorough on the ergodic theorems, including Garsia's proof.
- Hillel Furstenberg, Recurrence in Ergodic Theory and Combinatorial Number Theory (1981) — multiple recurrence and Szemerédi's theorem.
- Anatole Katok and Boris Hasselblatt, Introduction to the Modern Theory of Dynamical Systems (1995) — ergodic theory within smooth dynamics.
- A. Ya. Khinchin, Continued Fractions (1935; English translation 1964) — the metric theory of continued fractions from its creator.