Harris ergodicity; geometric, uniform, and polynomial ergodicity
DefinitionMarkovErgodicityThe ergodicity notions of the mission, for a Markov kernel with invariant probability , all expressed through the total variation distance .
Harris ergodic: is an invariant probability measure of and for every starting point .
Convergence with rate , the source's eq. (3):
Geometrically ergodic: such a rate with for some and some .
Uniformly ergodic: the same with a constant function .
Polynomially ergodic of order with integrable constant: such a rate with and satisfying (the standing side condition of the source's Corollaries 1–2 and Theorem 9).
These are the hypotheses under which all chain-level central limit theorems of the mission are stated; the definitions are generic in the kernel and reusable.
Formalization Note Harris ergodicity is encoded by the total-variation characterization above; for a Markov kernel with an invariant probability this is equivalent to the classical definition (aperiodic, -irreducible, positive Harris recurrent), the "every " quantifier being exactly the Harris property.
import Definitions.Def_TotalVariationDist
import Definitions.Def_MarkovIterKernel
import Mathlib.Probability.Kernel.Invariance
import Mathlib.Analysis.SpecialFunctions.Pow.Real
import Mathlib.MeasureTheory.Integral.IntegrableOn
/-!
Harris ergodicity (via its total-variation characterization) and rates of
convergence: geometric, uniform, and polynomial ergodicity.
Source: Galin L. Jones, *On the Markov Chain Central Limit Theorem*,
Probability Surveys 1 (2004) 299-320 (arXiv math/0409112v2), §2:
eqs. (2) (Harris ergodic convergence) and (3) (rate `‖Pⁿ(x,·) - π‖ ≤ M(x)γ(n)`),
and the geometric / uniform / polynomial specializations of `γ`.
-/
open MeasureTheory ProbabilityTheory Filter
open scoped Topology
namespace MarkovChainCLT
/-- **Harris ergodicity**, encoded by its total-variation characterization: `π` is an
invariant probability measure of `P` and from **every** starting point `x` the
`n`-step distribution converges to `π` in total variation. For a Markov kernel this
is equivalent to the classical definition (aperiodic, `ψ`-irreducible, positive
Harris recurrent; Meyn-Tweedie 1993, Ch. 13): the `∀ x` quantifier is exactly what
upgrades almost-everywhere ergodicity to the Harris property. Use together with
`[IsMarkovKernel P]` and `[IsProbabilityMeasure π]`. -/
def HarrisErgodic {X : Type*} [MeasurableSpace X] (P : Kernel X X) (π : Measure X) :
Prop :=
Kernel.Invariant P π ∧
∀ x : X, Tendsto (fun n => tvDist ((iterKernel P n) x) π) atTop (𝓝 0)
/-- The chain has total-variation convergence rate `γ` with `x`-dependent constant
`M`: `‖Pⁿ(x, ·) - π‖ ≤ M(x) γ(n)` for all `x` and all `n ≥ 1` (Jones 2004 eq. (3)). -/
def ErgodicWithRate {X : Type*} [MeasurableSpace X] (P : Kernel X X) (π : Measure X)
(M : X → ℝ) (γ : ℕ → ℝ) : Prop :=
∀ x : X, ∀ n : ℕ, 1 ≤ n → tvDist ((iterKernel P n) x) π ≤ M x * γ n
/-- **Geometric ergodicity**: a total-variation rate `γ(n) = tⁿ` for some `t < 1`,
with a nonnegative `x`-dependent constant (Jones 2004, §2). -/
def GeometricallyErgodic {X : Type*} [MeasurableSpace X] (P : Kernel X X)
(π : Measure X) : Prop :=
∃ M : X → ℝ, ∃ t : ℝ, (∀ x, 0 ≤ M x) ∧ 0 ≤ t ∧ t < 1 ∧
ErgodicWithRate P π M (fun n => t ^ n)
/-- **Uniform ergodicity**: geometric ergodicity with a constant not depending on the
starting point (Jones 2004, §2). -/
def UniformlyErgodic {X : Type*} [MeasurableSpace X] (P : Kernel X X)
(π : Measure X) : Prop :=
∃ R t : ℝ, 0 ≤ R ∧ 0 ≤ t ∧ t < 1 ∧ ErgodicWithRate P π (fun _ => R) (fun n => t ^ n)
/-- **Polynomial ergodicity of order `m` with integrable constant**: a
total-variation rate `γ(n) = n^{-m}` whose `x`-dependent constant `M` satisfies
`E_π M < ∞` (Jones 2004, §2: polynomial ergodicity together with the standing
side condition `E_π M < ∞` used in Corollaries 1-2 and Theorem 9). -/
def PolynomiallyErgodicL1 {X : Type*} [MeasurableSpace X] (P : Kernel X X)
(π : Measure X) (m : ℝ) : Prop :=
∃ M : X → ℝ, (∀ x, 0 ≤ M x) ∧ Integrable M π ∧
ErgodicWithRate P π M (fun n => (n : ℝ) ^ (-m))
end MarkovChainCLT
Read-back
What the Lean code literally says, in plain math · claude-fable-5
HarrisErgodic — For a measurable type , a kernel from to (not assumed Markov), and a measure on (not assumed to be a probability measure): the conjunction of (i) is invariant for , meaning that the measure (the bind of with ) equals ; and (ii) for every point , the real sequence tends to as . Here is the -step kernel (identity kernel at , then one application of per successor step), and is the real supremum of over measurable sets , where the conversion of to sends to and the real supremum of an unbounded set is by convention.
ErgodicWithRate — For a measurable type , a kernel , a measure , a function , and a sequence (both completely unconstrained here — no sign, measurability, or integrability conditions): the proposition that for every and every natural number , , with and as unfolded in the previous paragraph (real supremum of absolute differences of converted measures, with and unbounded-supremum conventions). Nothing is required at .
GeometricallyErgodic — For measurable , kernel , measure : there exist a function and a real such that for every , , and for every and every , (with and as above). The function carries no measurability, boundedness, or integrability requirement — only pointwise nonnegativity.
UniformlyErgodic — For measurable , kernel , measure : there exist reals and with , , such that for every and every , — the same bound as geometric ergodicity but with the constant function .
PolynomiallyErgodicL1 — For measurable , kernel , measure , and a real parameter (completely unconstrained — may be zero or negative, in which case the rate does not decay): there exists with for every and Bochner-integrable with respect to (finite , with almost-everywhere strong measurability), such that for every and every , , where is the real power of the real cast of with real exponent (for this is the ordinary power), and , are as unfolded above.
Confirmed by the mission captain (proposal self-audit).