Prove2Me
Navigate
MissionsFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 13.14 -- the Cheeger inequality

Proved
MarkovMixing.cheeger_inequality

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

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)). Two quantities measure how quickly the chain can move:

  • the bottleneck constant Φ⋆=min⁡{Φ(S):∅≠S⊆V, π(S)≤12}\Phi_\star=\min\bigl\{\Phi(S):\varnothing\ne S\subseteq V,\ \pi(S)\le\tfrac12\bigr\}Φ⋆​=min{Φ(S):∅=S⊆V, π(S)≤21​}, where Φ(S)=∑x∈S, y∉Sπ(x)P(x,y) / π(S)\Phi(S)=\sum_{x\in S,\,y\notin S}\pi(x)P(x,y)\,/\,\pi(S)Φ(S)=∑x∈S,y∈/S​π(x)P(x,y)/π(S) is the conditional probability at stationarity of escaping the set SSS in one step — a geometric, cut-based quantity;
  • the spectral gap γ=1−λ2\gamma=1-\lambda_2γ=1−λ2​, where λ2\lambda_2λ2​ is the largest eigenvalue of PPP different from 111 (an eigenvalue being a real λ\lambdaλ with Pf=λfPf=\lambda fPf=λf for some nonzero fff) — an analytic quantity.

The theorem (Theorem 13.14 of Levin–Peres–Wilmer; Jerrum–Sinclair, Lawler–Sokal — the discrete Cheeger inequality, capstone of Chapters 12–13) asserts:

  1. Φ⋆22  ≤  γ\dfrac{\Phi_\star^2}{2}\;\le\;\gamma2Φ⋆2​​≤γ;
  2. γ  ≤  2 Φ⋆\gamma\;\le\;2\,\Phi_\starγ≤2Φ⋆​.

Bottlenecks and spectral gaps control each other up to a square: a chain mixes rapidly exactly when it has no bottleneck. This equivalence is the backbone of the Markov-chain approach to approximate counting and of expander graph theory.

Preamble
import Definitions.Def_mm_spectral
Formal statement
namespace MarkovMixing

/-- **Theorem 13.14** (Jerrum–Sinclair, Lawler–Sokal; LPW), the capstone of
Chapters 12–13: the spectral gap and the bottleneck ratio of a reversible
chain satisfy `Φ⋆²/2 ≤ γ ≤ 2Φ⋆`. -/
theorem cheeger_inequality {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 π) :
    bottleneckStar P π ^ 2 / 2 ≤ spectralGap P ∧
    spectralGap P ≤ 2 * bottleneckStar P π := 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, Theorem 13.14, Eq. (13.13), p. 177
Read-back

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

Let VVV be a finite nonempty type (with decidable equality) containing at least two elements (2≤∣V∣2 \le |V|2≤∣V∣), and let PPP be a V×VV \times VV×V matrix of real numbers satisfying: (i) stochasticity — every entry P(x,y)≥0P(x,y) \ge 0P(x,y)≥0 and every row sums to one, ∑yP(x,y)=1\sum_y P(x,y) = 1∑y​P(x,y)=1; (ii) irreducibility — for every pair of states x,yx, yx,y there is a natural number t≥0t \ge 0t≥0 with (Pt)(x,y)>0(P^t)(x,y) > 0(Pt)(x,y)>0 (the exponent t=0t = 0t=0 is permitted, and since P0P^0P0 is the identity this makes the condition automatic when x=yx = yx=y); (iii) there is a function π:V→R\pi : V \to \mathbb{R}π:V→R that is a stationary distribution — π(x)≥0\pi(x) \ge 0π(x)≥0 for all xxx, ∑xπ(x)=1\sum_x \pi(x) = 1∑x​π(x)=1, and πP=π\pi P = \piπP=π as a row vector — and (iv) the pair (P,π)(P, \pi)(P,π) satisfies 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) for all x,y∈Vx, y \in Vx,y∈V. The theorem then asserts the two-sided bound

Φ∗22  ≤  γandγ  ≤  2 Φ∗,\frac{\Phi_*^2}{2} \;\le\; \gamma \qquad \text{and} \qquad \gamma \;\le\; 2\,\Phi_*,2Φ∗2​​≤γandγ≤2Φ∗​,

where the two quantities are defined as follows. The bottleneck ratio (conductance) Φ∗\Phi_*Φ∗​ is the infimum

Φ∗  =  inf⁡S⊆V, S≠∅π(S)≤1/2  ∑x∈S∑y∉Sπ(x) P(x,y)∑x∈Sπ(x),\Phi_* \;=\; \inf_{\substack{S \subseteq V,\ S \ne \emptyset \\ \pi(S) \le 1/2}} \; \frac{\displaystyle\sum_{x \in S} \sum_{y \notin S} \pi(x)\,P(x,y)}{\displaystyle\sum_{x \in S} \pi(x)},Φ∗​=S⊆V, S=∅π(S)≤1/2​inf​x∈S∑​π(x)x∈S∑​y∈/S∑​π(x)P(x,y)​,

taken over all nonempty subsets SSS of VVV with π(S):=∑x∈Sπ(x)≤12\pi(S) := \sum_{x \in S} \pi(x) \le \tfrac12π(S):=∑x∈S​π(x)≤21​; note that by the total-function division convention, any set with π(S)=0\pi(S) = 0π(S)=0 contributes ratio 0/0=00/0 = 00/0=0 to this infimum, and the real-valued infimum is 000 by convention if the family of admissible sets were empty or the ratios unbounded below. The spectral gap is γ=1−λ2\gamma = 1 - \lambda_2γ=1−λ2​, where λ2\lambda_2λ2​ is the supremum of the set of real numbers λ≠1\lambda \ne 1λ=1 that are eigenvalues of PPP in the sense that there exists a function f:V→Rf : V \to \mathbb{R}f:V→R, not identically zero, with Pf=λfPf = \lambda fPf=λf (i.e. ∑yP(x,y)f(y)=λf(x)\sum_y P(x,y) f(y) = \lambda f(x)∑y​P(x,y)f(y)=λf(x) for all xxx); this real supremum is 000 by convention if the set of such eigenvalues is empty or unbounded above, in which case γ=1\gamma = 1γ=1. No aperiodicity is assumed, and the conclusion is a conjunction of the two inequalities: Φ∗2/2≤1−λ2\Phi_*^2 / 2 \le 1 - \lambda_2Φ∗2​/2≤1−λ2​ and 1−λ2≤2 Φ∗1 - \lambda_2 \le 2\,\Phi_*1−λ2​≤2Φ∗​.

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

  • Endorsed by Shuze Chen · Aug 21, 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