Glauber dynamics on proper colorings mixes in for
ProvedMarkovMixing.glauber_colorings_mixingLet be a graph on vertices with maximum degree , and fix a number of colors . A -coloring of the vertices is proper when adjacent vertices receive distinct colors, and the Glauber dynamics on proper colorings picks a uniform vertex and re-samples its color from the uniform distribution on the colorings that agree with the current one elsewhere — that is, uniformly among the colors legal at that vertex. Its stationary distribution is uniform over proper colorings. For a tolerance , the mixing time is the first with , where is the total variation distance.
The theorem (Theorem 14.8 of Levin–Peres–Wilmer, the capstone of Chapter 14) asserts: if , then for every ,
With a bit more than twice as many colors as the maximum degree, the dynamics mixes in order steps. This is the flagship application of path coupling: colorings differing at one vertex are coupled by matching their proposed recolorings, and the single-edge contraction rate falls out of counting the disagreeing proposals.
import Definitions.Def_mm_transport import Mathlib.Analysis.SpecialFunctions.Log.Basic
namespace MarkovMixing
/-- **Theorem 14.8** (LPW), the capstone of Chapter 14: for the Glauber
dynamics on proper `q`-colorings of a graph with `n` vertices and maximum
degree `Δ`, if `q > 2Δ`, then
`t_mix(ε) ≤ ⌈((q−Δ)/(q−2Δ)) n (log n − log ε)⌉`. -/
theorem glauber_colorings_mixing {Vv : Type*} [Fintype Vv] [DecidableEq Vv]
[Nonempty Vv] (G : SimpleGraph Vv) [DecidableRel G.Adj] (q : ℕ)
(hq : 2 * G.maxDegree < q) (ε : ℝ) (hε : 0 < ε) (hε1 : ε < 1) :
(mixingTime (coloringGlauber G q)
(uniformDist {c : Vv → Fin q // IsProperColoring G c}) ε : ℝ) ≤
⌈((q : ℝ) - G.maxDegree) / ((q : ℝ) - 2 * G.maxDegree) *
(Fintype.card Vv) *
(Real.log (Fintype.card Vv) - Real.log ε)⌉₊ := by
sorry
end MarkovMixingRead-back
What the Lean code literally says, in plain math · claude-fable-5
Read-back: glauber_colorings_mixing
Let be a finite, nonempty type with decidable equality, a simple graph on with decidable adjacency, and a natural number satisfying , where denotes 's maximum vertex degree. Let be a real number with . Write and let be the set of proper -colorings of — maps with for every adjacent pair — and .
The Markov chain in question is the matrix indexed by obtained by restricting to proper colorings the Glauber matrix for the weight that assigns to each proper coloring and to each improper one. Concretely, for proper colorings ,
the denominator summing over all colorings (proper or not) that agree with away from — i.e., pick a uniformly random vertex and resample its color proportionally to the uniform-on-proper weight among colorings differing only there (Lean's total division makes a zero-denominator summand equal to ; the rows of are copied from the full-space Glauber matrix without renormalization after restriction).
The theorem asserts a single inequality:
where the left side (cast from to ) is the least natural such that
i.e. the mixing time of to the uniform distribution on (constant , with if ) under the total-variation-style distance without a factor ; and is the ceiling into , clamping negative reals to . In the bound, , , and are natural numbers cast to , the subtractions and are real subtractions (no truncation; both are positive under ), and is the real logarithm ( for ; when ).
Junk/edge behavior the statement's meaning rests on: the mixing time is a natural-number infimum that equals if no time achieves distance ; if is empty (), the suprema over the empty index type are , so the mixing time is and the inequality trivializes. Nothing in the statement asserts that is stochastic, irreducible, or that the uniform distribution is stationary for it — only the mixing-time inequality is claimed.
Confirmed by the mission captain (proposal self-audit).