Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemmas 13.11 and 13.12 -- the variational characterization of the gap

Proved
MarkovMixing.dirichlet_gap

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

markov-chainsmixing-timesprobability

Let PPP be an irreducible Markov chain on a finite state space VVV with at least two states, reversible with respect to its stationary distribution π\piπ (detailed balance: π(x)P(x,y)=π(y)P(y,x)\pi(x)P(x,y)=\pi(y)P(y,x)π(x)P(x,y)=π(y)P(y,x)). Among the eigenvalues of PPP — the real λ\lambdaλ admitting a nonzero fff with Pf=λfPf=\lambda fPf=λf — let λ2\lambda_2λ2​ be the largest eigenvalue different from 111, and let γ=1−λ2\gamma=1-\lambda_2γ=1−λ2​ be the spectral gap. For functions f:V→Rf:V\to\mathbb Rf:V→R write Eπ(f)=∑xf(x)π(x)\mathbb E_\pi(f)=\sum_xf(x)\pi(x)Eπ​(f)=∑x​f(x)π(x) for the mean, ⟨f,f⟩π=∑xf(x)2π(x)\langle f,f\rangle_\pi=\sum_xf(x)^2\pi(x)⟨f,f⟩π​=∑x​f(x)2π(x) for the squared ℓ2(π)\ell^2(\pi)ℓ2(π)-norm, and

E(f)=12∑x,y[f(x)−f(y)]2 π(x)P(x,y)\mathcal E(f)=\frac12\sum_{x,y}\bigl[f(x)-f(y)\bigr]^2\,\pi(x)P(x,y)E(f)=21​x,y∑​[f(x)−f(y)]2π(x)P(x,y)

for the Dirichlet form — the average squared local variation of fff along the chain's transitions.

The theorem (Lemmas 13.11 and 13.12 of Levin–Peres–Wilmer) asserts:

  1. the spectral gap is the minimal Dirichlet energy over centred unit-norm functions: γ=inf⁡{E(f)  :  Eπ(f)=0, ⟨f,f⟩π=1}\gamma=\inf\bigl\{\mathcal E(f)\;:\;\mathbb E_\pi(f)=0,\ \langle f,f\rangle_\pi=1\bigr\}γ=inf{E(f):Eπ​(f)=0, ⟨f,f⟩π​=1};
  2. the infimum is attained by some such fff (an eigenfunction for λ2\lambda_2λ2​).

This variational characterization lets one bound the gap from above by exhibiting any single test function, and from below by functional inequalities — the mechanism driving the Cheeger inequality and the comparison method of this mission.

Preamble
import Definitions.Def_mm_spectral
Formal statement
namespace MarkovMixing

/-- **Lemmas 13.11 and 13.12** (LPW): the spectral gap of a reversible chain
is the minimal Dirichlet energy over functions of mean zero and unit
`ℓ²(π)`-norm, and the minimum is attained. -/
theorem dirichlet_gap {V : Type*} [Fintype V] [DecidableEq V] [Nonempty V]
    (hV : 2 ≤ Fintype.card V) (P : Matrix V V ℝ) (hP : IsStochastic P) (hirr : Irreducible P)
    (π : V → ℝ) (hπ : IsStationary P π) (hrev : DetailedBalance P π) :
    spectralGap P =
      sInf {e : ℝ | ∃ f : V → ℝ, distExp π f = 0 ∧ innerPi π f f = 1 ∧
        e = dirichletForm P π f} ∧
    ∃ f : V → ℝ, distExp π f = 0 ∧ innerPi π f f = 1 ∧
      spectralGap P = dirichletForm P π f := 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 13.3, Lemmas 13.11-13.12, pp. 175-176
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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me