Section 7.1.1 -- the counting bound
ProvedMarkovMixing.counting_lower_boundLet be an irreducible, aperiodic Markov chain on a finite state space whose stationary distribution is uniform. Let
be the maximal number of states reachable from a single state in one step. For a tolerance , the mixing time is the first with , where is the total variation distance.
The theorem (the counting bound, §7.1.1, display (7.2) of Levin–Peres–Wilmer) asserts: for every ,
The reason: in steps the chain can reach at most states, and until is comparable to the time- distribution misses most of a uniform target. In particular chains with bounded branching need at least steps to mix.
import Definitions.Def_mm_lower import Mathlib.Analysis.SpecialFunctions.Log.Basic
namespace MarkovMixing
/-- **§7.1.1, Eq. (7.2)** (LPW), the counting bound: for a chain with uniform
stationary distribution, `t_mix(ε) ≥ log(|Ω|(1−ε)) / log Δ`, where `Δ` is
the maximal number of states accessible in one step. -/
theorem counting_lower_bound {V : Type*} [Fintype V] [DecidableEq V] [Nonempty V]
(P : Matrix V V ℝ) (hP : IsStochastic P) (hirr : Irreducible P)
(hap : Aperiodic P) (hπ : IsStationary P (uniformDist V))
(ε : ℝ) (hε : 0 < ε) (hε1 : ε < 1) :
Real.log ((Fintype.card V : ℝ) * (1 - ε)) / Real.log (maxOutDegree P) ≤
(mixingTime P (uniformDist V) ε : ℝ) := by
sorry
end MarkovMixing
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Read-back: counting_lower_bound
Let be a finite, nonempty type with decidable equality, and let be a real matrix subject to the following hypotheses.
- Stochastic: every entry satisfies and every row sums to : for all .
- Irreducible (as defined in this bundle): for every ordered pair of states there exists a natural number with . (Since is allowed and , the condition is automatic when ; it is a genuine reachability requirement only for .)
- Aperiodic (as defined in this bundle): for every state , the period of equals , where the period is defined as the supremum (in , with the convention that the supremum of an unbounded or empty-bounded set is ) of the set of natural numbers that divide every with .
- Uniform stationarity: the uniform function (where is the cardinality of ) is a probability distribution ( for all and ) and is invariant under acting on row vectors: .
- is a real number with (both inequalities strict).
Define , the maximum over states of the number of states with a strictly positive transition entry (a natural number). Define the mixing time
where is the supremum over all subsets of the discrepancy of masses (the standard total-variation distance, without an extra factor of ), is the -th row of the -th matrix power, and the minimum is taken with the convention that it equals if no such exists.
The theorem then asserts the inequality of real numbers
where is the real natural logarithm and the natural numbers , , and are cast to reals. Conventions that silently shape the claim: real division by zero yields , so if (giving ; note that stochasticity with nonempty forces ) the left-hand side is and the statement reduces to , which is automatic; likewise of a nonpositive argument is by Mathlib convention, and the left-hand side may be negative (e.g. when ), again making the inequality weak in those regimes. The bound is non-strict (), and it bounds the mixing time at accuracy from below by .
Confirmed by the mission captain (proposal self-audit).