Prove2Me
Navigate
MissionsFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Ising on the cycle: nlog⁡nn\log nnlogn mixing at every temperature

Proved
MarkovMixing.ising_cycle

by Shuze Chen · Aug 22, 2026 · Mathlib c5ea003 (Lean v4.30.0)

markov-chainsmixing-timesprobability

The Ising model on the nnn-cycle puts spins ±1\pm1±1 on Zn\mathbb Z_nZn​ (each residue adjacent to its two neighbours) with Gibbs distribution π(σ)∝exp⁡(β∑{v,w}∈Eσ(v)σ(w))\pi(\sigma)\propto\exp\bigl(\beta\sum_{\{v,w\}\in E}\sigma(v)\sigma(w)\bigr)π(σ)∝exp(β∑{v,w}∈E​σ(v)σ(w)) at inverse temperature β>0\beta>0β>0, and its Glauber dynamics re-samples a uniformly chosen site from the conditional distribution. For a tolerance ε\varepsilonε, the mixing time tmix(ε)t_{\mathrm{mix}}(\varepsilon)tmix​(ε) is the first ttt with max⁡σ∥Pt(σ,⋅)−π∥TV≤ε\max_\sigma\|P^t(\sigma,\cdot)-\pi\|_{TV}\le\varepsilonmaxσ​∥Pt(σ,⋅)−π∥TV​≤ε, where ∥μ−ν∥TV=max⁡A∣μ(A)−ν(A)∣\|\mu-\nu\|_{TV}=\max_A|\mu(A)-\nu(A)|∥μ−ν∥TV​=maxA​∣μ(A)−ν(A)∣. Set

cO(β)=1−tanh⁡(2β),c_O(\beta)=1-\tanh(2\beta),cO​(β)=1−tanh(2β),

which is positive for every β\betaβ.

The theorem (Theorem 15.4 of Levin–Peres–Wilmer) asserts: for any fixed 0<ε<10<\varepsilon<10<ε<1 and any margin δ>0\delta>0δ>0 there is an NNN such that for all n≥Nn\ge Nn≥N,

(1−δ) nlog⁡n2 cO(β)  ≤  tmix(ε)  ≤  (1+δ) nlog⁡ncO(β).\frac{(1-\delta)\,n\log n}{2\,c_O(\beta)}\;\le\;t_{\mathrm{mix}}(\varepsilon)\;\le\;\frac{(1+\delta)\,n\log n}{c_O(\beta)}.2cO​(β)(1−δ)nlogn​≤tmix​(ε)≤cO​(β)(1+δ)nlogn​.

On the cycle the dynamics mixes in nlog⁡nn\log nnlogn steps at every temperature — no phase transition in one dimension, in sharp contrast to the complete graph of the companion theorems. The upper bound is the even-degree case of the high-temperature theorem (every vertex of the cycle has degree 222, so the condition (Δ/2)tanh⁡(2β)=tanh⁡(2β)<1(\Delta/2)\tanh(2\beta)=\tanh(2\beta)<1(Δ/2)tanh(2β)=tanh(2β)<1 always holds); the lower bound runs Wilson's method (Mission VII) with a Fourier-mode eigenfunction.

Preamble
import Definitions.Def_mm_ising
import Mathlib.Analysis.SpecialFunctions.Log.Basic
Formal statement
namespace MarkovMixing

/-- **Theorem 15.4** (LPW): for the Glauber dynamics of the Ising model on
the `n`-cycle at any `β > 0`, with `c_O(β) = 1 − tanh(2β)`, the mixing time
is `n log n` up to constants:
`(1+o(1)) n log n/(2c_O) ≤ t_mix(ε) ≤ (1+o(1)) n log n/c_O`. -/
theorem ising_cycle (β : ℝ) (hβ : 0 < β) (ε : ℝ) (hε : 0 < ε) (hε1 : ε < 1)
    (δ : ℝ) (hδ : 0 < δ) :
    ∃ N : ℕ, ∀ n : ℕ, N ≤ n → ∀ inst : NeZero n,
      (mixingTime (glauber (isingDist (cycleGraph n) β))
          (isingDist (cycleGraph n) β) ε : ℝ) ≤
        (1 + δ) * n * Real.log n / (1 - Real.tanh (2 * β)) ∧
      (1 - δ) * n * Real.log n / (2 * (1 - Real.tanh (2 * β))) ≤
        (mixingTime (glauber (isingDist (cycleGraph n) β))
          (isingDist (cycleGraph n) β) ε : ℝ) := 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 15.3, Theorem 15.4, Eq. (15.10), p. 204
Read-back

What the Lean code literally says, in plain math · claude-fable-5

Read-back: ising_cycle

Hypotheses. Reals β,ε,δ\beta, \varepsilon, \deltaβ,ε,δ with β>0\beta > 0β>0, 0<ε<10 < \varepsilon < 10<ε<1, and δ>0\delta > 0δ>0.

Objects. For n∈Nn \in \mathbb{N}n∈N, Cn=cycleGraph(n)C_n = \mathrm{cycleGraph}(n)Cn​=cycleGraph(n) is the graph on Z/n\mathbb{Z}/nZ/n in which distinct x,yx, yx,y are adjacent iff y=x+1y = x+1y=x+1 or x=y+1x = y+1x=y+1 (the nnn-cycle for n≥3n \ge 3n≥3; a single edge for n=2n = 2n=2; edgeless for n=1n = 1n=1). μn\mu_nμn​ is the Ising measure on configurations σ:Z/n→{±1}\sigma : \mathbb{Z}/n \to \{\pm1\}σ:Z/n→{±1}, proportional to exp⁡(β∑{v,w}∈E(Cn)sσ(v)sσ(w))\exp\big(\beta\sum_{\{v,w\}\in E(C_n)} s_\sigma(v)s_\sigma(w)\big)exp(β∑{v,w}∈E(Cn​)​sσ​(v)sσ​(w)) (the code's half-weighted ordered double sum), and Pn=glauber(μn)P_n = \mathrm{glauber}(\mu_n)Pn​=glauber(μn​) is the heat-bath single-site chain: pick a uniform vertex of Z/n\mathbb{Z}/nZ/n and resample its spin from μn\mu_nμn​ given the rest. The mixing time is

tmix(n)(ε)  =  inf⁡{t∈N  :  sup⁡σ dTV((Pnt)σ,⋅, μn)≤ε},t_{\mathrm{mix}}^{(n)}(\varepsilon) \;=\; \inf\Big\{t \in \mathbb{N} \;:\; \sup_{\sigma}\, d_{TV}\big((P_n^t)_{\sigma,\cdot},\, \mu_n\big) \le \varepsilon\Big\},tmix(n)​(ε)=inf{t∈N:σsup​dTV​((Pnt​)σ,⋅​,μn​)≤ε},

with dTV(μ′,ν′)=sup⁡A∣μ′(A)−ν′(A)∣d_{TV}(\mu',\nu') = \sup_A |\mu'(A) - \nu'(A)|dTV​(μ′,ν′)=supA​∣μ′(A)−ν′(A)∣ over subsets AAA of configurations, and the N\mathbb{N}N-infimum junk convention that an empty set gives 000.

The claim. There exists a threshold N∈NN \in \mathbb{N}N∈N such that for every n≥Nn \ge Nn≥N and every witness that n≠0n \ne 0n=0 (the statement quantifies over NeZero n instances, so for n=0n = 0n=0 the inner claim is vacuously true and in effect the assertion concerns all n≥max⁡(N,1)n \ge \max(N,1)n≥max(N,1)), both of the following hold, where the mixing time is cast to a real:

tmix(n)(ε)  ≤  (1+δ) nlog⁡n1−tanh⁡(2β),t_{\mathrm{mix}}^{(n)}(\varepsilon) \;\le\; \frac{(1+\delta)\, n \log n}{1 - \tanh(2\beta)},tmix(n)​(ε)≤1−tanh(2β)(1+δ)nlogn​,

and

(1−δ) nlog⁡n2 (1−tanh⁡(2β))  ≤  tmix(n)(ε).\frac{(1-\delta)\, n \log n}{2\,\big(1 - \tanh(2\beta)\big)} \;\le\; t_{\mathrm{mix}}^{(n)}(\varepsilon).2(1−tanh(2β))(1−δ)nlogn​≤tmix(n)​(ε).

Points worth noting exactly as stated: the same ε\varepsilonε-mixing time (at the given ε\varepsilonε, not at 1/41/41/4) appears in both bounds; the upper and lower expressions differ by the factor (1+δ)(1+\delta)(1+δ) versus (1−δ)/2(1-\delta)/2(1−δ)/2 — the lower bound carries an extra 222 in the denominator; log⁡\loglog is the real natural logarithm; 1−tanh⁡(2β)>01 - \tanh(2\beta) > 01−tanh(2β)>0 automatically since β>0\beta > 0β>0; and if δ≥1\delta \ge 1δ≥1 the lower bound's numerator is ≤0\le 0≤0, making that conjunct trivially satisfiable. The quantifier order is ∃N, ∀n≥N\exists N,\ \forall n \ge N∃N, ∀n≥N: a single threshold must work for all larger nnn, but NNN may depend on β,ε,δ\beta, \varepsilon, \deltaβ,ε,δ.

Human review
  • Endorsed by Community (Bot) · Aug 22, 2026

  • Endorsed by Shuze Chen · Aug 22, 2026

    Confirmed by the mission captain (proposal self-audit).

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.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me