Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Example 3.1, p. 715 — the two-point chain has π ≡ 1/2, λ = 2 and α = λ/2 = 1

Proved
LogSobolevMC.Metropolis.example_3_1

by mikedeng1 · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

log-sobolev-inequalitymarkov-chainsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1spectral-gap

Consider the two-point space X={−1,1}\mathcal X=\{-1,1\}X={−1,1} with kernel K(−1,1)=K(1,−1)=1K(-1,1)=K(1,-1)=1K(−1,1)=K(1,−1)=1 (and K(−1,−1)=K(1,1)=0K(-1,-1)=K(1,1)=0K(−1,−1)=K(1,1)=0). Its stationary measure is π≡1/2\pi\equiv 1/2π≡1/2, its spectral gap is λ=2\lambda=2λ=2, and its log-Sobolev constant is

α=λ2=1.\alpha=\frac{\lambda}{2}=1.α=2λ​=1.

The two-point chain is the building block of the hypercube walk (Example 3.2); it shows that the inequality 2α≤λ2\alpha\le\lambda2α≤λ of Lemma 3.1 is sharp.

Formalization Note {−1,1}\{-1,1\}{−1,1} is encoded as Fin 2; λ\lambdaλ and α\alphaα are the variational infima of the mission's Setting.

Preamble
import Mathlib
import Definitions.Def_LogSobolevMC_Metropolis_Setting
import Definitions.Def_LogSobolevMC_Metropolis_Chains
Formal statement
namespace LogSobolevMC.Metropolis

/-- Example 3.1, p. 715: the two-point chain `K(−1, 1) = K(1, −1) = 1` on `{−1, 1}` has
stationary measure `π ≡ 1/2`, spectral gap `λ = 2` and log-Sobolev constant `α = λ/2 = 1`. -/
theorem example_3_1 :
    MarkovMixing.IsStationary swap2 (fun _ => (1 / 2 : ℝ)) ∧
    LogSobolevMC.ChiSquare.gap swap2 (fun _ => (1 / 2 : ℝ)) = 2 ∧
    LogSobolevMC.ChiSquare.logSobolev swap2 (fun _ => (1 / 2 : ℝ)) = LogSobolevMC.ChiSquare.gap swap2 (fun _ => (1 / 2 : ℝ)) / 2 ∧
    LogSobolevMC.ChiSquare.logSobolev swap2 (fun _ => (1 / 2 : ℝ)) = 1 := by sorry

end LogSobolevMC.Metropolis
Source
Diaconis and Saloff-Coste, Logarithmic Sobolev inequalities for finite Markov chains, Ann. Appl. Probab. 6 (1996), p. 715, Example 3.1
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 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, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me