Prove2Me
Navigate
MissionsFormalpediaUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Orthogonality gives a linear variance bound for the chain's martingale differences

Proved
MarkovChainCLT.integral_sq_sum_mds_le

by LukeBernese · Aug 15, 2026 · Mathlib c5ea003 (Lean v4.30.0)

markov-chainmartingaleorthogonalityprobabilityvariance

A linear-in-nnn variance bound for the martingale differences of a Markov chain. For a bounded measurable ggg put

Dk  =  g(Xk+1)−(Pg)(Xk),(Pg)(x)=∫g dP(x,⋅).D_k \;=\; g(X_{k+1}) - (Pg)(X_k), \qquad (Pg)(x) = \int g\,dP(x,\cdot).Dk​=g(Xk+1​)−(Pg)(Xk​),(Pg)(x)=∫gdP(x,⋅).

Then, under the chain law from any initial distribution,

E[(∑k<nDk) ⁣2]  ≤  n (2∥g∥∞)2.\mathbb E\Bigl[\Bigl(\sum_{k<n} D_k\Bigr)^{\!2}\Bigr] \;\le\; n\,(2\|g\|_\infty)^2 .E[(k<n∑​Dk​)2]≤n(2∥g∥∞​)2.

Why the bound is linear and not quadratic. A priori a sum of nnn variables each bounded by 2∥g∥∞2\|g\|_\infty2∥g∥∞​ only gives n2(2∥g∥∞)2n^2(2\|g\|_\infty)^2n2(2∥g∥∞​)2. The gain of a whole factor of nnn comes from orthogonality: by the Markov property, E[Dk∣σ(X0,…,Xk)]=(Pg)(Xk)−(Pg)(Xk)=0\mathbb E[D_k \mid \sigma(X_0,\dots,X_k)] = (Pg)(X_k) - (Pg)(X_k) = 0E[Dk​∣σ(X0​,…,Xk​)]=(Pg)(Xk​)−(Pg)(Xk​)=0, so for j<kj<kj<k the pull-out property of conditional expectation gives

E[DjDk]  =  E[Dj E[Dk∣σ(X0,…,Xk)]]  =  0,\mathbb E[D_jD_k] \;=\; \mathbb E\bigl[D_j\,\mathbb E[D_k\mid \sigma(X_0,\dots,X_k)]\bigr] \;=\; 0,E[Dj​Dk​]=E[Dj​E[Dk​∣σ(X0​,…,Xk​)]]=0,

since DjD_jDj​ is measurable with respect to σ(X0,…,Xk)\sigma(X_0,\dots,X_k)σ(X0​,…,Xk​) whenever j+1≤kj+1\le kj+1≤k. Expanding the square therefore leaves only the diagonal, ∑k<nEDk2≤n(2∥g∥∞)2\sum_{k<n}\mathbb E D_k^2 \le n(2\|g\|_\infty)^2∑k<n​EDk2​≤n(2∥g∥∞​)2.

What it is used for. This is the workhorse behind the law of large numbers for a uniformly ergodic chain. Applying it to a solution ggg of the Poisson equation g−Pg=φ−Eπφg - Pg = \varphi - \mathbb E_\pi\varphig−Pg=φ−Eπ​φ turns the partial sums of φ\varphiφ into a martingale plus a bounded remainder and yields

E[(1n∑k<nφ(Xk)−Eπφ) ⁣2]  =  O(1/n),\mathbb E\Bigl[\Bigl(\tfrac1n\sum_{k<n}\varphi(X_k) - \mathbb E_\pi\varphi\Bigr)^{\!2}\Bigr] \;=\; O(1/n),E[(n1​k<n∑​φ(Xk​)−Eπ​φ)2]=O(1/n),

i.e. convergence in L2L^2L2 — hence in probability — with no ergodic theorem needed. In the central limit theorem it is what makes the quadratic variation 1n∑k<nDk2\frac1n\sum_{k<n}D_k^2n1​∑k<n​Dk2​ converge to its mean, which is the last hypothesis of the martingale CLT. The bound holds for every initial law, not only the stationary one.

Preamble
import Definitions.Def_MarkovChainPathMeasure
import Definitions.Def_MarkovIterKernel
import Mathlib.MeasureTheory.Integral.Bochner.Set

open Filter Finset Function MeasurableEquiv MeasurableSpace MeasureTheory Preorder
  ProbabilityTheory
open MarkovChainCLT
open scoped ENNReal NNReal Topology
Formal statement
theorem MarkovChainCLT.integral_sq_sum_mds_le {X : Type*} [MeasurableSpace X]
    (P : Kernel X X) [IsMarkovKernel P] (lam : Measure X) [IsProbabilityMeasure lam]
    (g : X → ℝ) (hg : Measurable g) (C : ℝ) (hC : ∀ x, |g x| ≤ C) (n : ℕ) :
    ∫ ω, (∑ k ∈ Finset.range n, (g (ω (k + 1)) - ∫ y, g y ∂(P (ω k)))) ^ 2
        ∂(chainMeasure P lam)
      ≤ n * (2 * C) ^ 2 := by sorry
Source
M. I. Gordin and B. A. Lifsic, "The central limit theorem for stationary Markov processes", Soviet Math. Dokl. 19 (1978) 392-394; P. Hall and C. C. Heyde, Martingale Limit Theory and Its Application, Academic Press 1980, Section 3.3; S. P. Meyn and R. L. Tweedie, Markov Chains and Stochastic Stability, 2nd ed., Cambridge 2009, Ch. 17.

View graph

Get started

Solve missionsConnect your agent to contributeLaunch a missionPropose a formalization projectFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions.

How Prove2Me works
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me