Skip to content
The Lumenary
First-year graduateGraduate 140 min

Ergodic theory

When does following one orbit for a long time tell you the average over all of space? Measure-preserving dynamics, from Boltzmann's gas to the digits of continued fractions.

Formally verified · 7 LeanComputationally tested · 1 PythonAI-drafted · awaiting human reviewMathematically reviewed: Awaiting human review
MotivationH

Boltzmann's hypothesis

A litre of gas contains about 102210^{22} 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 TT of a space XX that preserve a probability measure μ\mu, and asks about the statistics of orbits x,Tx,T2x,…x, Tx, T^2x, \ldots. 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 11 about 41.5%41.5\% of the time — a fact Gauss knew in 1812 and that the ergodic theorem explains.

IntuitionH

Time averages, space averages and indecomposability

Take f:X→Rf : X \to \R and an orbit. The time average is lim⁡N→∞1N∑n=0N−1f(Tnx)\lim_{N \to \infty} \frac1N \sum_{n=0}^{N-1} f(T^n x); the space average is ∫f dμ\int f \, d\mu. Two things can make them differ.

  • The space can decompose into invariant pieces. A rotation of the circle by 25\frac25 of a turn moves each point around a 5-point orbit; the time average only sees those 5 points. If X=A∪BX = A \cup B with both pieces invariant and of positive measure, orbits starting in AA never visit BB. Ergodicity rules this out: every invariant set has measure 00 or 11.
  • Even in an ergodic system, exceptional orbits exist: the fixed point 00 of the doubling map x↦2x mod 1x \mapsto 2x \bmod 1 spends all its time in [0,12)[0, \frac12). The ergodic theorem promises equality only for almost every starting point.

A finer property is mixing: μ(T−nA∩B)→μ(A)μ(B)\mu(T^{-n}A \cap B) \to \mu(A)\mu(B), which says the event "in AA at time nn" becomes independent of "in BB at time 00" — 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 22 each step and wraps it around.

DefinitionsH

Measure-preserving systems

Definition— measure-preserving system

A measure-preserving system (X,B,μ,T)(X, \mathcal B, \mu, T) consists of a probability space and a measurable map T:X→XT : X \to X with μ(T−1A)=μ(A)\mu(T^{-1}A) = \mu(A) for every A∈BA \in \mathcal B. Equivalently ∫f∘T dμ=∫f dμ\int f \circ T \, d\mu = \int f \, d\mu for all f∈L1(μ)f \in L^1(\mu). The Koopman operator UTf=f∘TU_T f = f \circ T is then an isometry of each Lp(μ)L^p(\mu).

Definition— ergodic, mixing

TT is ergodic if every measurable AA with T−1A=AT^{-1}A = A (up to a null set) has μ(A)∈{0,1}\mu(A) \in \{0, 1\}. It is (strongly) mixing if μ(T−nA∩B)→μ(A)μ(B)\mu(T^{-n}A \cap B) \to \mu(A)\mu(B) as n→∞n \to \infty for all measurable A,BA, B.

Definition— Birkhoff sums and averages

For f:X→Rf : X \to \R, the Birkhoff sums are SNf(x)=∑n=0N−1f(Tnx)S_N f(x) = \sum_{n=0}^{N-1} f(T^n x) and the Birkhoff averages ANf=1NSNfA_N f = \frac1N S_N f.

Definition— the standard examples

On T=[0,1)\mathbb T = [0, 1) with Lebesgue measure λ\lambda: the rotation Rα(x)=x+α mod 1R_\alpha(x) = x + \alpha \bmod 1 and the doubling map D(x)=2x mod 1D(x) = 2x \bmod 1. On {0,1}N\{0, 1\}^\N with the product of (12,12)(\frac12, \frac12) measures: the Bernoulli shift σ(x0,x1,…)=(x1,x2,…)\sigma(x_0, x_1, \ldots) = (x_1, x_2, \ldots). On [0,1)[0, 1): the Gauss map G(x)={1/x}=1/x−⌊1/x⌋G(x) = \{1/x\} = 1/x - \lfloor 1/x \rfloor for x≠0x \ne 0, G(0)=0G(0) = 0, with the Gauss measure dγ=1log⁡2dx1+xd\gamma = \frac{1}{\log 2} \frac{dx}{1 + x}.

The Gauss map generates continued fractions: if x=1a1+1a2+⋯x = \cfrac{1}{a_1 + \cfrac{1}{a_2 + \cdots}} with digits ai≥1a_i \ge 1, then a1=⌊1/x⌋a_1 = \lfloor 1/x \rfloor and G(x)=[0;a2,a3,…]G(x) = [0; a_2, a_3, \ldots], so an+1(x)=a1(Gnx)a_{n+1}(x) = a_1(G^n x) — the digits are read off along the orbit, just as the doubling map reads off binary digits: D(0.b1b2b3…)=0.b2b3…D(0.b_1 b_2 b_3\ldots) = 0.b_2 b_3 \ldots. Through the binary expansion, DD on (T,λ)(\mathbb T, \lambda) and σ\sigma on {0,1}N\{0, 1\}^\N are isomorphic measure-preserving systems.

Worked examplesH

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). Rα−1[a,b)R_\alpha^{-1}[a, b) is an interval (or two pieces wrapping around 11) of the same length. D−1[a,b)=[a2,b2)∪[a+12,b+12)D^{-1}[a, b) = [\frac a2, \frac b2) \cup [\frac{a+1}2, \frac{b+1}2): two intervals of half the length. Note that the doubling map is two-to-one, and invariance is about preimages: D[0,12)=[0,1)D[0, \frac12) = [0, 1) has twice the measure of [0,12)[0, \frac12).

Example— The Gauss measure is invariant

G(x)<tG(x) < t exactly when 1x−n<t\frac1x - n < t for n=⌊1/x⌋n = \lfloor 1/x \rfloor, so G−1[0,t)=⋃n≥1(1n+t,1n]G^{-1}[0, t) = \bigcup_{n \ge 1} \big(\frac{1}{n + t}, \frac1n\big] (up to the point 00). Since γ([a,b])=log⁡21+b1+a\gamma([a, b]) = \log_2 \frac{1 + b}{1 + a},

γ(G−1[0,t))=∑n=1∞log⁡21+1n1+1n+t=lim⁡M→∞log⁡2∏n=1Mn+1n⋅n+tn+1+t.\gamma\big(G^{-1}[0, t)\big) = \sum_{n=1}^\infty \log_2 \frac{1 + \frac1n}{1 + \frac{1}{n + t}} = \lim_{M \to \infty} \log_2 \prod_{n=1}^{M} \frac{n + 1}{n} \cdot \frac{n + t}{n + 1 + t}.

Both products telescope: ∏n≤Mn+1n=M+1\prod_{n \le M} \frac{n+1}{n} = M + 1 and ∏n≤Mn+tn+1+t=1+tM+1+t\prod_{n \le M} \frac{n + t}{n + 1 + t} = \frac{1 + t}{M + 1 + t}. The product is (M+1)(1+t)M+1+t→1+t\frac{(M+1)(1+t)}{M+1+t} \to 1 + t, so γ(G−1[0,t))=log⁡2(1+t)=γ([0,t))\gamma(G^{-1}[0, t)) = \log_2(1 + t) = \gamma([0, t)). As the intervals [0,t)[0, t) form a generating π-system, GG preserves γ\gamma. (Lebesgue measure is not invariant: λ(G−1[0,12))=∑n(1n−1n+1/2)=2−2log⁡2≈0.614≠12\lambda(G^{-1}[0, \frac12)) = \sum_n \big(\frac1n - \frac{1}{n + 1/2}\big) = 2 - 2\log 2 \approx 0.614 \ne \frac12.)

Example— Recurrence without finiteness fails

The translation x↦x+1x \mapsto x + 1 preserves Lebesgue measure on R\R, and no point of [0,1)[0, 1) ever returns. The finiteness of μ\mu is essential in Poincaré's theorem below.

ProofH

Recurrence and ergodicity

Theorem— Poincaré recurrence theorem (1890)

Let (X,B,μ,T)(X, \mathcal B, \mu, T) be measure-preserving with μ(X)<∞\mu(X) < \infty, and A∈BA \in \mathcal B. Then almost every point of AA returns to AA infinitely often: μ({x∈A:Tnx∈A for only finitely many n})=0\mu\big(\{x \in A : T^n x \in A \text{ for only finitely many } n\}\big) = 0.

Proof

Let B={x∈A:Tnx∉A for all n≥1}B = \{x \in A : T^n x \notin A \text{ for all } n \ge 1\}, the points of AA that never return; B=A∖⋃n≥1T−nAB = A \setminus \bigcup_{n \ge 1} T^{-n}A is measurable. The sets B,T−1B,T−2B,…B, T^{-1}B, T^{-2}B, \ldots are pairwise disjoint: if x∈T−mB∩T−nBx \in T^{-m}B \cap T^{-n}B with m<nm < n, then y=Tmx∈By = T^m x \in B and Tn−my=Tnx∈B⊆AT^{n-m} y = T^n x \in B \subseteq A, so yy returns to AA, contradicting y∈By \in B. They all have measure μ(B)\mu(B), so ∑n≥0μ(B)=μ(⋃nT−nB)≤μ(X)<∞\sum_{n \ge 0} \mu(B) = \mu\big(\bigcup_n T^{-n}B\big) \le \mu(X) < \infty, forcing μ(B)=0\mu(B) = 0.

If x∈Ax \in A returns only finitely often, let k≥0k \ge 0 be the last time with Tkx∈AT^k x \in A; then Tkx∈BT^k x \in B, so x∈T−kBx \in T^{-k}B. Hence the set of such xx lies in ⋃k≥0T−kB\bigcup_{k \ge 0} T^{-k}B, 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 TT the following are equivalent: (i) TT is ergodic; (ii) every measurable ff with f∘T=ff \circ T = f a.e. is a.e. constant; (iii) the same for f∈L2(μ)f \in L^2(\mu).

Proof

(ii) ⇒ (iii) is trivial, and (iii) ⇒ (i) by applying (iii) to f=1Af = \mathbf 1_A for invariant AA: a constant indicator is a.e. 00 or a.e. 11. (i) ⇒ (ii): for each tt, the set {f>t}\{f > t\} is invariant up to a null set, so it has measure 00 or 11. The function t↦μ({f>t})t \mapsto \mu(\{f > t\}) is non-increasing, so it jumps from 11 to 00 at some c∈[−∞,∞]c \in [-\infty, \infty], and f=cf = c a.e.; cc is finite because ff is real-valued.

∎

Theorem— Theorem (rotations)

RαR_\alpha is ergodic if and only if α\alpha is irrational. It is never mixing.

Proof

Let f∈L2(T)f \in L^2(\mathbb T) with f∘Rα=ff \circ R_\alpha = f. Comparing Fourier coefficients, f∘Rα^(n)=e2πinαf^(n)=f^(n)\widehat{f \circ R_\alpha}(n) = e^{2\pi i n\alpha} \hat f(n) = \hat f(n). If α\alpha is irrational, e2πinα≠1e^{2\pi i n\alpha} \ne 1 for n≠0n \ne 0, so f^(n)=0\hat f(n) = 0 for n≠0n \ne 0 and ff is a.e. constant: RαR_\alpha is ergodic by the proposition. If α=p/q\alpha = p/q, the non-constant function e2πiqxe^{2\pi i q x} is invariant.

For mixing, take A=[0,12)A = [0, \frac12). Then Rα−nAR_\alpha^{-n}A is a half-circle shifted by nαn\alpha, and λ(A∩Rα−nA)=12−∥nα∥\lambda(A \cap R_\alpha^{-n}A) = \frac12 - \|n\alpha\|, where ∥t∥\|t\| is the distance from tt to the nearest integer. By Dirichlet's approximation theorem there are infinitely many nn with ∥nα∥<1/n\|n\alpha\| < 1/n, so along those nn the overlap tends to 12≠14=λ(A)2\frac12 \ne \frac14 = \lambda(A)^2. (For rational α\alpha the overlap is periodic in nn.)

∎

Theorem— Theorem (the doubling map is mixing)

The doubling map is mixing, hence ergodic. More generally, mixing implies ergodicity.

Proof

Let A=[a,b)A = [a, b) be any interval and BB a dyadic interval [j2−ℓ,(j+1)2−ℓ)[j 2^{-\ell}, (j+1) 2^{-\ell}). For n≥ℓn \ge \ell, D−nA=⋃m=02n−1[m+a2n,m+b2n)D^{-n}A = \bigcup_{m=0}^{2^n - 1} \big[\frac{m + a}{2^n}, \frac{m + b}{2^n}\big) consists of one interval of length 2−nλ(A)2^{-n}\lambda(A) inside each dyadic interval of level nn. BB is the union of 2n−ℓ=2nλ(B)2^{n-\ell} = 2^n \lambda(B) of these, so λ(D−nA∩B)=λ(A)λ(B)\lambda(D^{-n}A \cap B) = \lambda(A)\lambda(B) exactly for all n≥ℓn \ge \ell. Finite disjoint unions of dyadic intervals approximate every Borel set in measure, and a standard ε/3\varepsilon/3 argument extends λ(D−nA∩B)→λ(A)λ(B)\lambda(D^{-n}A \cap B) \to \lambda(A)\lambda(B) to all Borel A,BA, B.

If TT is mixing and T−1A=AT^{-1}A = A, then μ(A)=μ(T−nA∩A)→μ(A)2\mu(A) = \mu(T^{-n}A \cap A) \to \mu(A)^2, so μ(A)∈{0,1}\mu(A) \in \{0, 1\}.

∎

The same cylinder computation shows that every Bernoulli shift is mixing: for cylinder sets depending on coordinates in a finite window, σ−nA\sigma^{-n}A and BB depend on disjoint coordinates once nn 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 GG (Einsiedler–Ward, Ch. 3).

ProofH

The ergodic theorems

Theorem— Mean ergodic theorem (von Neumann, 1932)

Let UU be a linear operator on a Hilbert space HH with ∥U∥≤1\|U\| \le 1, and PP the orthogonal projection onto Inv={h:Uh=h}\mathrm{Inv} = \{h : Uh = h\}. Then 1N∑n=0N−1Unh→Ph\frac1N \sum_{n=0}^{N-1} U^n h \to Ph in norm for every h∈Hh \in H. For a measure-preserving TT and U=UTU = U_T on L2(μ)L^2(\mu): ANf→PfA_N f \to Pf in L2L^2, and if TT is ergodic, Pf=∫f dμPf = \int f \, d\mu.

Proof

Step 1: Uh=hUh = h iff U∗h=hU^*h = h. If Uh=hUh = h, then ∥U∗h−h∥2=∥U∗h∥2−2Re⁡⟨U∗h,h⟩+∥h∥2=∥U∗h∥2−2Re⁡⟨h,Uh⟩+∥h∥2=∥U∗h∥2−∥h∥2≤0\|U^*h - h\|^2 = \|U^*h\|^2 - 2\operatorname{Re}\langle U^* h, h \rangle + \|h\|^2 = \|U^*h\|^2 - 2\operatorname{Re}\langle h, Uh \rangle + \|h\|^2 = \|U^*h\|^2 - \|h\|^2 \le 0, because ∥U∗∥=∥U∥≤1\|U^*\| = \|U\| \le 1. The converse is symmetric.

Step 2: H=Inv⊕C‾H = \mathrm{Inv} \oplus \overline{C}, where C={Ug−g:g∈H}C = \{Ug - g : g \in H\} (the coboundaries). A vector hh is orthogonal to CC iff ⟨U∗h−h,g⟩=⟨h,Ug−g⟩=0\langle U^*h - h, g \rangle = \langle h, Ug - g \rangle = 0 for all gg, iff U∗h=hU^*h = h, iff h∈Invh \in \mathrm{Inv} by Step 1. So C⊥=InvC^\perp = \mathrm{Inv}, and C‾=Inv⊥\overline C = \mathrm{Inv}^\perp.

Step 3: averages. On Inv\mathrm{Inv} every average equals hh. On CC the sum telescopes: 1N∑n<NUn(Ug−g)=1N(UNg−g)\frac1N \sum_{n < N} U^n (Ug - g) = \frac1N (U^N g - g), of norm at most 2N∥g∥\frac2N \|g\|. The averaging operators MN=1N∑n<NUn\mathcal M_N = \frac1N\sum_{n < N} U^n have norm ≤1\le 1, so MNk→0\mathcal M_N k \to 0 for every k∈C‾k \in \overline C as well: given ε\varepsilon, choose c∈Cc \in C with ∥k−c∥<ε\|k - c\| < \varepsilon; then ∥MNk∥≤ε+∥MNc∥<2ε\|\mathcal M_N k\| \le \varepsilon + \|\mathcal M_N c\| < 2\varepsilon for large NN. Writing h=Ph+(h−Ph)h = Ph + (h - Ph) gives MNh→Ph\mathcal M_N h \to Ph.

For UTU_T, the invariant vectors are the invariant functions; if TT is ergodic they are the constants, and the projection onto constants is f↦∫f dμf \mapsto \int f \, d\mu.

∎

Theorem— Maximal ergodic theorem (Hopf; Garsia's proof, 1965)

Let TT preserve μ\mu, f∈L1(μ)f \in L^1(\mu), and MN=max⁡(0,S1f,…,SNf)M_N = \max(0, S_1 f, \ldots, S_N f). Then ∫{MN>0}f dμ≥0\int_{\{M_N > 0\}} f \, d\mu \ge 0.

Proof

For 1≤n≤N1 \le n \le N, Snf=f+(Sn−1f)∘T≤f+MN∘TS_n f = f + (S_{n-1} f) \circ T \le f + M_N \circ T (with S0f=0S_0 f = 0). On E={MN>0}E = \{M_N > 0\} we have MN=max⁡1≤n≤NSnfM_N = \max_{1 \le n \le N} S_n f, so MN≤f+MN∘TM_N \le f + M_N \circ T there. Integrating over EE, and using MN=0M_N = 0 off EE, MN∘T≥0M_N \circ T \ge 0, and invariance of μ\mu:

∫Ef≥∫EMN−∫EMN∘T≥∫XMN−∫XMN∘T=0.\int_E f \ge \int_E M_N - \int_E M_N \circ T \ge \int_X M_N - \int_X M_N \circ T = 0.

∎

Theorem— Pointwise ergodic theorem (Birkhoff, 1931)

Let TT preserve the probability measure μ\mu and f∈L1(μ)f \in L^1(\mu). Then ANf(x)A_N f(x) converges for μ\mu-almost every xx, to an invariant integrable function f∗f^* with ∫f∗=∫f\int f^* = \int f. If TT is ergodic, f∗=∫f dμf^* = \int f \, d\mu a.e.:

lim⁡N→∞1N∑n=0N−1f(Tnx)=∫Xf dμfor μ-a.e. x.\lim_{N \to \infty} \frac1N \sum_{n=0}^{N-1} f(T^n x) = \int_X f \, d\mu \quad \text{for } \mu\text{-a.e. } x.

Proof

We prove the ergodic case; the general case runs the same argument on invariant sets. Let fˉ=lim sup⁡NANf\bar f = \limsup_N A_N f. Since ANf(Tx)=N+1NAN+1f(x)−f(x)NA_N f(Tx) = \frac{N+1}{N} A_{N+1} f(x) - \frac{f(x)}{N}, we have fˉ∘T=fˉ\bar f \circ T = \bar f, so for each real aa the set Ea={fˉ>a}E_a = \{\bar f > a\} is invariant and μ(Ea)∈{0,1}\mu(E_a) \in \{0, 1\}.

Suppose a>∫fa > \int f and μ(Ea)=1\mu(E_a) = 1. Put g=f−ag = f - a. At every x∈Eax \in E_a some Anf(x)>aA_n f(x) > a, i.e. Sng(x)>0S_n g(x) > 0, so x∈{MN(g)>0}x \in \{M_N(g) > 0\} for large NN. These sets increase with NN to a set of full measure, so by the maximal ergodic theorem and dominated convergence, 0≤∫{MN(g)>0}g→∫g=∫f−a<00 \le \int_{\{M_N(g) > 0\}} g \to \int g = \int f - a < 0, a contradiction. Hence μ(Ea)=0\mu(E_a) = 0 for every rational a>∫fa > \int f, i.e. lim sup⁡ANf≤∫f\limsup A_N f \le \int f a.e. Applying this to −f-f gives lim inf⁡ANf≥∫f\liminf A_N f \ge \int f a.e., so ANf→∫fA_N f \to \int f almost everywhere.

∎

For the Bernoulli shift and f(x)=x0f(x) = x_0, 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 22. The theorem says nothing about any particular point: 00 (a fixed point of DD) and 13=0.0101…2\frac13 = 0.0101\ldots_2 are exceptional for suitable ff, and nobody knows whether 2\sqrt 2 or π\pi is normal in base 22.

ExplanationH

Equidistribution and continued fractions

Weyl's theorem. For irrational α\alpha, the sequence nα mod 1n\alpha \bmod 1 is equidistributed: 1N#{n<N:nα mod 1∈[a,b)}→b−a\frac1N \#\{n < N : n\alpha \bmod 1 \in [a, b)\} \to b - a for every interval — for every starting point, not just almost every one. Proof: for f(x)=e2πikxf(x) = e^{2\pi i k x} with k≠0k \ne 0, 1N∑n<Ne2πik(x+nα)\frac1N \sum_{n < N} e^{2\pi i k (x + n\alpha)} is a geometric series bounded by 2N∣1−e2πikα∣→0\frac{2}{N |1 - e^{2\pi i k\alpha}|} \to 0; 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: λ\lambda is its only invariant probability measure.

Continued fraction digits. The Gauss map is ergodic for γ\gamma, which is equivalent to Lebesgue measure (its density lies between 12log⁡2\frac{1}{2\log 2} and 1log⁡2\frac{1}{\log 2}), so "γ\gamma-almost every" means "Lebesgue-almost every". Apply Birkhoff to f=1{a1=k}=1(1/(k+1),1/k]f = \mathbf 1_{\{a_1 = k\}} = \mathbf 1_{(1/(k+1), 1/k]}: for almost every x∈[0,1)x \in [0, 1) the digit kk appears with frequency

γ((1k+1,1k])=log⁡21+1/k1+1/(k+1)=log⁡2(1+1k(k+2)),\gamma\Big(\Big(\tfrac{1}{k+1}, \tfrac1k\Big]\Big) = \log_2 \frac{1 + 1/k}{1 + 1/(k+1)} = \log_2\Big(1 + \frac{1}{k(k+2)}\Big),

the Gauss–Kuzmin law: 41.5%41.5\% ones, 17.0%17.0\% twos, 9.3%9.3\% threes. Applied to f=log⁡a1f = \log a_1 (integrable for γ\gamma), it gives Khinchin's theorem (1935) that the geometric mean (a1⋯an)1/n(a_1 \cdots a_n)^{1/n} tends almost everywhere to a constant K≈2.685K \approx 2.685. Quadratic irrationals, such as the golden ratio [0;1,1,1,…][0; 1, 1, 1, \ldots], are exceptional: their digits are eventually periodic.

Entropy. Are the Bernoulli shifts with probabilities (12,12)(\frac12, \frac12) and (13,13,13)(\frac13, \frac13, \frac13) isomorphic? Both are mixing; von Neumann's spectral invariants cannot tell them apart. Kolmogorov (1958) and Sinai (1959) introduced the entropy h(T)h(T), an isomorphism invariant measuring the exponential rate at which a system generates information: h=log⁡2h = \log 2 and log⁡3\log 3 respectively, so they are not isomorphic; rotations have entropy 00 and the doubling map entropy log⁡2\log 2. Ornstein (1970) proved the converse for Bernoulli shifts: equal entropy implies isomorphism.

Formal mathematicsF

Ergodic theory in Lean and Mathlib

The pigeonhole form of recurrence, proved from scratch: the sets T−iAT^{-i}A, i<Ni < N, all have measure μ(A)\mu(A), so if Nμ(A)>μ(X)N\mu(A) > \mu(X) two of them meet:

recurrence_pigeonholeLean 4Proved here from basic factsFormally verified
/-- **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 hyi
Axioms used: propext, Classical.choice, Quot.soundformal/Lumenary/ErgodicTheory.leanTry it in the Lean web editor

Mathlib's Poincaré recurrence theorem, for conservative maps (every finite measure-preserving map is conservative):

poincare_recurrenceLean 4Applies a library theoremFormally verified
/-- **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 hs
Axioms used: propext, Classical.choice, Quot.soundformal/Lumenary/ErgodicTheory.leanTry it in the Lean web editor

The 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_sum_coboundaryLean 4Proved here from basic factsFormally verified
/-- **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
Axioms used: propext, Classical.choice, Quot.soundformal/Lumenary/ErgodicTheory.leanTry it in the Lean web editor
coboundary_average_tendsto_zeroLean 4Proved here from basic factsFormally verified
/-- **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
Axioms used: propext, Classical.choice, Quot.soundformal/Lumenary/ErgodicTheory.leanTry it in the Lean web editor
mean_ergodicLean 4Applies a library theoremFormally verified
/-- **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 x
Axioms used: propext, Classical.choice, Quot.soundformal/Lumenary/ErgodicTheory.leanTry it in the Lean web editor

On the circle AddCircle T =R/TZ= \R / T\Z with Haar measure, Mathlib proves ergodicity of x↦nxx \mapsto n x for n≥2n \ge 2 and characterises ergodic rotations; for T=1T = 1 the criterion becomes "α\alpha is irrational":

doubling_ergodicLean 4Applies a library theoremFormally verified
/-- **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)
Axioms used: propext, Classical.choice, Quot.soundformal/Lumenary/ErgodicTheory.leanTry it in the Lean web editor
rotation_ergodic_iffLean 4Applies a library theoremFormally verified
/-- **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]
Axioms used: propext, Classical.choice, Quot.soundformal/Lumenary/ErgodicTheory.leanTry it in the Lean web editor

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.

ComputationC

Following orbits on a computer

The experiment follows orbits of four systems. For the golden rotation the time spent in [0,14)[0, \frac14) approaches 14\frac14, while the rotation by 25\frac25 gives different answers from different starting points; the exact overlaps λ(A∩R−nA)=12−∥nα∥\lambda(A \cap R^{-n}A) = \frac12 - \|n\alpha\| show the failure of mixing. The doubling map is a cautionary tale: in floating point, 0.10.1 reaches 00 after 5555 steps, because each step shifts out one of the 5353 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 [0,12)[0, \frac12), as Birkhoff predicts. Finally, the continued fraction digits of 2020 random numbers (exact rational arithmetic) follow the Gauss–Kuzmin law, and the telescoping product confirms γ(G−1[0,0.3))=log⁡21.3\gamma(G^{-1}[0, 0.3)) = \log_2 1.3.

Birkhoff averages: rotations, doubling and continued fractionsPythonNumerical approximationExact computationStatistical evidenceComputationally tested
"""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()
Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.

Each line is evidence from finitely many points: a typical orbit cannot be certified by computation, and random samples carry statistical error (here about ±0.008\pm 0.008 for the bit frequency). The theorems above are what turn these observations into statements about almost every point.

Explore

Cobwebs of chaotic maps

The Gauss map x↦1/x−⌊1/x⌋x \mapsto 1/x - \lfloor 1/x \rfloor: each step of the cobweb produces the next continued fraction digit (an+1=⌊1/xn⌋a_{n+1} = \lfloor 1/x_n \rfloor). Try starting points near 0.6180.618 (the golden ratio's fractional part, a fixed point with all digits 11) and elsewhere, and compare how long orbits linger near 00, where the digits are large.

The Gauss map

Feed each output back in: xₖ₊₁ = f(xₖ). The cobweb diagram shows where the orbit goes.

f(x) =
x₀

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 x↦2x mod 1x \mapsto 2x \bmod 1 is mixing, and the cobweb wanders all over the square. The widget computes in floating point: with NN above about 5555, the orbit of 0.10.1 collapses to the fixed point 00, 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.

f(x) =
x₀

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

Exercises

1. Ergodic theory

Warm-upHuman

Which maps of [0,1)[0, 1) preserve Lebesgue measure λ\lambda (that is, λ(T−1A)=λ(A)\lambda(T^{-1}A) = \lambda(A) for all Borel AA)? Select all that apply.

Choose all that apply

2. Ergodic theory

Warm-upHuman

Iterate the Gauss map G(x)=1/x−⌊1/x⌋G(x) = 1/x - \lfloor 1/x \rfloor on x0=730x_0 = \frac{7}{30} until you reach 00, recording the digits an+1=⌊1/xn⌋a_{n+1} = \lfloor 1/x_n \rfloor. What is the sum of the digits?

3. Ergodic theory

CoreHuman

The translation T(x)=x+1T(x) = x + 1 on R\R preserves Lebesgue measure, yet no point of [0,1)[0, 1) ever returns to [0,1)[0, 1). Which hypothesis of the Poincaré recurrence theorem fails?

Choose one

4. Ergodic theory

CoreHuman

Which of these measure-preserving maps of ([0,1),λ)([0, 1), \lambda) is ergodic but not mixing?

Choose one

5. Ergodic theory

CoreHuman

The doubling map DD is ergodic for Lebesgue measure. Let f=1[0,1/2)f = \mathbf 1_{[0, 1/2)}. Which statement is correct?

Choose one

6. Ergodic theory

Warm-upFormal

Which Lean statement formalises "rotation of the circle R/Z\R/\Z by α\alpha is ergodic exactly when α\alpha is irrational"? (AddCircle (1 : ℝ) is R/Z\R/\Z with Haar measure, and Ergodic f includes measure preservation.)

Choose one

7. Ergodic theory

StretchHuman

In the proof of von Neumann's mean ergodic theorem, why do the averages 1N∑n<NUnh\frac1N\sum_{n<N} U^n h tend to 00 for h=Ug−gh = Ug - g?

Choose one

8. Ergodic theory

CoreComputational

Write cf_digits(p, q) returning the list of continued fraction digits [a1,a2,…][a_1, a_2, \ldots] of the rational p/q∈(0,1)p/q \in (0, 1) (with 0<p<q0 < p < q), 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.

Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.
Common misconceptionsH

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 00, 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 λ(A∩R−nA)=12−∥nα∥\lambda(A \cap R^{-n}A) = \frac12 - \|n\alpha\| for a half-circle AA keeps returning near 12\frac12. 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 e2πikxe^{2\pi i k x}.

Misconception

"Invariance means μ(T(A))=μ(A)\mu(T(A)) = \mu(A)." The definition uses preimages, μ(T−1A)=μ(A)\mu(T^{-1}A) = \mu(A). For the two-to-one doubling map, D([0,12))=[0,1)D([0, \frac12)) = [0, 1) has measure 11, but D−1([0,12))=[0,14)∪[12,34)D^{-1}([0, \frac12)) = [0, \frac14) \cup [\frac12, \frac34) has measure 12\frac12, as it should.

Misconception

"A computer simulation shows what typical orbits do." Floating-point orbits of the doubling map all end at 00 within about 5555 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.

ViewpointsH

Many ways of seeing

Number theory— From Weyl to Szemerédi

Equidistribution modulo 11 is ergodic theory of rotations: Weyl (1916) proved that nαn\alpha, and more generally p(n)p(n) for any polynomial with an irrational non-constant coefficient, is equidistributed — Furstenberg later reproved the polynomial case by showing that skew products (x,y)↦(x+α,y+x)(x, y) \mapsto (x + \alpha, y + x) 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 TT and μ(A)>0\mu(A) > 0, μ(A∩T−nA∩⋯∩T−knA)>0\mu(A \cap T^{-n}A \cap \cdots \cap T^{-kn}A) > 0 for some n≥1n \ge 1; the case k=1k = 1 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 lim inf⁡nn∥nα∥∥nβ∥=0\liminf_n n\|n\alpha\|\|n\beta\| = 0 has Hausdorff dimension zero, using measure rigidity for actions of Z2\Z^2; the full conjecture is open.

Probability— Stationary processes and the law of large numbers

A measure-preserving system and a function ff define a stationary process Xn=f∘TnX_n = f \circ T^n: 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: 1N∑Xn\frac1N\sum X_n converges almost surely, to E[X0]\mathbb E[X_0] 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 TT of a compact metric space, invariant measures always exist (Krylov–Bogolyubov, 1937): any weak-* limit of the averages 1N∑n<NδTnx\frac1N\sum_{n < N}\delta_{T^n x} 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 htop(T)=sup⁡μhμ(T)h_{\mathrm{top}}(T) = \sup_\mu h_\mu(T) (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 SL2(Z)\HSL_2(\Z) \backslash \mathbb H (Artin 1924; Series 1985). Homogeneous dynamics studies flows on spaces Γ\G\Gamma \backslash G: 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 SL2(R)SL_2(\R)-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 & global context

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

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.