Theorem 12.3 -- mixing is at most relaxation times a log factor
ProvedMarkovMixing.relaxation_upper_aperiodicLet be a Markov chain on a finite state space that is irreducible (from any state, any other state is reachable in some number of steps), aperiodic (the return times to each state have greatest common divisor ), and reversible with respect to its stationary distribution , meaning the detailed balance equations hold for all states .
Call a real number an eigenvalue of if some function that is not identically zero satisfies , where . Every eigenvalue of a transition matrix lies in , and is always one of them. Let
be the largest modulus of an eigenvalue other than . The absolute spectral gap is and the relaxation time is . For an irreducible aperiodic chain , so is a finite number — this is exactly what aperiodicity buys: a periodic chain has as an eigenvalue, hence and no finite relaxation time.
Two more quantities. The total variation distance between two probability distributions on is , the largest discrepancy they assign to any event. Writing for the worst-case distance from stationarity after steps, the mixing time is the first time this drops to :
Finally is the smallest stationary weight.
The theorem (Levin–Peres–Wilmer, Theorem 12.3) asserts that for every tolerance ,
In words: mixing costs at most a factor more than relaxation, so a bound on the spectral gap immediately yields a bound on the mixing time. The additive absorbs the rounding of the real-valued right-hand side to an integer time. The companion result, Theorem 12.4, supplies the matching lower bound , so for reversible chains the mixing time is pinned between and .
A note on the aperiodicity hypothesis. Levin–Peres–Wilmer state Theorem 12.3 for a reversible irreducible chain, reading in : for a periodic chain , the right-hand side is , and the inequality asserts nothing. Division is total in Lean, where evaluates to , so that empty case would instead collapse the bound to the false claim — simple random walk on the path is reversible and irreducible with . Aperiodicity is therefore hypothesized: it is precisely the condition under which the book's right-hand side is finite, and it is the hypothesis the companion Theorem 12.4 already carries.
import Definitions.Def_mm_spectral import Mathlib.Analysis.SpecialFunctions.Log.Basic
namespace MarkovMixing
/-- **Theorem 12.3** (LPW): for a reversible irreducible chain,
`t_mix(ε) ≤ log(1/(ε π_min)) · t_rel + 1`.
LPW state this for a reversible irreducible chain, reading `t_rel = 1/γ⋆` in
`(0, ∞]`: when the chain is periodic `λ⋆ = 1`, the right-hand side is `+∞` and
the inequality has no content. Real division in Lean is total (`0⁻¹ = 0`), so
that vacuous case would instead *collapse* the bound to `t_mix(ε) ≤ 1`, which
is false — simple random walk on the path `0-1-2-3` has `t_mix(3/5) = 2`.
Aperiodicity is therefore hypothesized, exactly the condition under which the
book's `t_rel` is finite (Lemma 12.1(iii) gives `γ⋆ > 0`), matching the
companion lower bound `relaxation_lower` (Theorem 12.4). -/
theorem relaxation_upper_aperiodic {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 π) (hrev : DetailedBalance P π)
(ε : ℝ) (hε : 0 < ε) (hε1 : ε < 1) :
(mixingTime P π ε : ℝ) ≤
Real.log (1 / (ε * ⨅ x : V, π x)) * relaxationTime P + 1 := by
sorry
end MarkovMixing