Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Glauber dynamics on proper colorings mixes in O(nlog⁡n)O(n\log n)O(nlogn) for q>2Δq>2\Deltaq>2Δ

Proved
MarkovMixing.glauber_colorings_mixing

by Shuze Chen · Aug 22, 2026 · Mathlib 0df444a (Lean v4.33.1)

markov-chainsmixing-timesprobability

Let GGG be a graph on nnn vertices with maximum degree Δ\DeltaΔ, and fix a number of colors qqq. A qqq-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 ε\varepsilonε, the mixing time tmix(ε)t_{\mathrm{mix}}(\varepsilon)tmix​(ε) is the first ttt with max⁡x∥Pt(x,⋅)−π∥TV≤ε\max_x\|P^t(x,\cdot)-\pi\|_{TV}\le\varepsilonmaxx​∥Pt(x,⋅)−π∥TV​≤ε, where ∥μ−ν∥TV=max⁡A∣μ(A)−ν(A)∣\|\mu-\nu\|_{TV}=\max_A|\mu(A)-\nu(A)|∥μ−ν∥TV​=maxA​∣μ(A)−ν(A)∣ is the total variation distance.

The theorem (Theorem 14.8 of Levin–Peres–Wilmer, the capstone of Chapter 14) asserts: if q>2Δq>2\Deltaq>2Δ, then for every 0<ε<10<\varepsilon<10<ε<1,

tmix(ε)  ≤  ⌈q−Δq−2Δ  n (log⁡n−log⁡ε)⌉.t_{\mathrm{mix}}(\varepsilon)\;\le\;\Bigl\lceil\frac{q-\Delta}{q-2\Delta}\;n\,\bigl(\log n-\log\varepsilon\bigr)\Bigr\rceil.tmix​(ε)≤⌈q−2Δq−Δ​n(logn−logε)⌉.

With a bit more than twice as many colors as the maximum degree, the dynamics mixes in order nlog⁡nn\log nnlogn 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 (q−2Δ)/(n(q−Δ))(q-2\Delta)/\bigl(n(q-\Delta)\bigr)(q−2Δ)/(n(q−Δ)) falls out of counting the disagreeing proposals.

Preamble
import Definitions.Def_mm_transport
import Mathlib.Analysis.SpecialFunctions.Log.Basic
Formal statement
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 MarkovMixing
Source
D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, AMS 2009, https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf, Section 14.3, Theorem 14.8, Eq. (14.17), p. 193

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me