Section 4.5 -- standard mixing-time inequalities
ProvedMarkovMixing.mixing_time_epsLet be an irreducible, aperiodic Markov chain on a finite state space with stationary distribution . Write for the distribution at time started at , for the total variation distance, and
for the worst-case distance to stationarity. For a tolerance , the mixing time is the first time this distance drops to ,
The theorem asserts, for any tolerance , the two standard consequences of submultiplicativity (displays (4.34)–(4.36) of Levin–Peres–Wilmer). First, running the chain for blocks of length shrinks the distance geometrically:
Second, mixing to any tolerance costs only logarithmically many standard mixing times:
This is why the convention is harmless: any other tolerance changes the mixing time by at most a logarithmic factor.
import Definitions.Def_mm_mixing import Mathlib.Analysis.SpecialFunctions.Log.Base
namespace MarkovMixing
/-- **§4.5, Eqs. (4.34)–(4.36)** (LPW): for an irreducible aperiodic chain,
`d(ℓ · t_mix(ε)) ≤ (2ε)^ℓ`, and consequently
`t_mix(ε) ≤ ⌈log₂ ε⁻¹⌉ · t_mix`. -/
theorem mixing_time_eps {V : Type*} [Fintype V] [DecidableEq V] [Nonempty V]
(P : Matrix V V ℝ) (hP : IsStochastic P) (hirr : Irreducible P)
(hap : Aperiodic P) (π : V → ℝ) (hπ : IsStationary P π)
(ε : ℝ) (hε : 0 < ε) (hε1 : ε ≤ 1) :
(∀ ℓ : ℕ, distStationary P π (ℓ * mixingTime P π ε) ≤ (2 * ε) ^ ℓ) ∧
mixingTime P π ε ≤ ⌈Real.logb 2 ε⁻¹⌉₊ * tMix P π := by
sorry
end MarkovMixing
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Let be a finite, nonempty set and let be a matrix of real numbers that is stochastic, meaning every entry satisfies and every row sums to ( for each ). Assume is irreducible in the sense that for every ordered pair of states there exists a natural number with (note is allowed, so for this condition is automatic since is the identity). Assume is aperiodic in the following custom sense: for every state , the quantity equals , where is the set of return times of ; here the supremum is taken in , with the convention that the supremum of an unbounded or empty-bounded situation is the junk value (in particular, if the divisor set is all of and , so the aperiodicity hypothesis forces every state to have at least one return time). Let be stationary for , meaning is a probability distribution ( for all and ) and the row vector satisfies . Finally, let be a real number with .
Define the total-variation-style distance between two functions as
the supremum over all (finite) subsets of of the absolute difference of the masses of (note this is the sup of , without the factor sometimes used for total variation). Define the distance-to-stationarity at time as
the worst case over starting states of the distance between row of and . Define the mixing time at level as
an infimum over natural numbers, with the convention that the infimum of the empty set is — so if never drops to or below, is , not . Write for the mixing time at the fixed level .
Under all these hypotheses, the theorem asserts the conjunction of two claims:
- For every natural number ,
where is the product of natural numbers. (For this reads ; note the base of the exponential is , not , and may be as large as since is only assumed , in which case the bound grows with .)
where is the ceiling taken as a natural number (any nonpositive real value is clamped to ). In particular, when the right-hand side is and the claim becomes ; and here is the real base-2 logarithm, which takes the junk value at .
Confirmed by the mission captain (proposal self-audit).