Theorem 5.5 -- the lazy walk on the torus mixes in order
ProvedMarkovMixing.torus_mixingThe -dimensional discrete torus is the graph whose vertices are the -tuples of residues mod , two vertices being adjacent when they agree in all coordinates but one and differ by there. The lazy random walk on it stays put with probability and otherwise moves to a uniformly chosen neighbour; its stationary distribution is uniform. For a tolerance , the mixing time is the first time at which , where is the total variation distance.
The theorem (Theorem 5.5 of Levin–Peres–Wilmer) asserts: for every dimension there is a constant , depending only on , such that for every side length and every tolerance ,
The walk on the torus mixes in order steps, uniformly in the side length — proved in the book by a coordinatewise coupling.
import Definitions.Def_mm_coupling import Mathlib.Analysis.SpecialFunctions.Log.Base
namespace MarkovMixing
/-- **Theorem 5.5** (LPW): the lazy random walk on the `d`-dimensional torus
`ℤ_n^d` satisfies `t_mix(ε) ≤ c(d) n² log₂(ε⁻¹)` for a constant `c(d)`
depending only on the dimension `d`. -/
theorem torus_mixing (d : ℕ) (hd : 0 < d) :
∃ c : ℝ, 0 < c ∧ ∀ (n : ℕ) [NeZero n], 2 ≤ n → ∀ ε : ℝ, 0 < ε → ε ≤ 1 / 2 →
(mixingTime (lazy (graphWalk (torusGraph d n)))
(uniformDist (Fin d → ZMod n)) ε : ℝ) ≤
c * n ^ 2 * Real.logb 2 ε⁻¹ := by
sorry
end MarkovMixing
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Fix a natural number with (the dimension; it is a hypothesis, so is excluded). The theorem asserts: there exists a real constant — a single constant that may depend on but must work uniformly in everything quantified after it — such that for every natural number that is nonzero (a typeclass hypothesis) and satisfies , and for every real with , the following inequality holds. The state space is the -dimensional discrete torus: the set of functions (so states). Its graph structure declares exactly when and there is a coordinate with for all and or in (note that for the two options coincide, so each vertex has exactly neighbors rather than ). The simple random walk matrix on this graph has when and otherwise, and the chain considered is its lazy version . The target distribution is the uniform distribution assigning mass to every state. Total-variation distance is defined as , the supremum over all subsets of the state space, and the worst-case distance to at time is , where is row of the -th matrix power. The mixing time is
with the convention that the infimum of an empty set of naturals is — so if no time ever achieved , the left-hand side would be and the inequality would hold trivially; note also that this definition takes the infimum, not a least element, and does not by itself assert that at the infimum, nor that is monotone. The asserted inequality is
where the natural number is cast to a real, means the real cast of squared (the bound grows with but is independent of the dimension exponent — there is no , , or factor on the right beyond what is absorbed into ), and is the base- logarithm of , which is under the hypothesis . Nothing further is asserted: the order of quantifiers is , so may not depend on or , and the claim is only an upper bound (), with no matching lower bound.
Confirmed by the mission captain (proposal self-audit).