Lemmas 13.11 and 13.12 -- the variational characterization of the gap
ProvedMarkovMixing.dirichlet_gapLet be an irreducible Markov chain on a finite state space with at least two states, reversible with respect to its stationary distribution (detailed balance: ). Among the eigenvalues of — the real admitting a nonzero with — let be the largest eigenvalue different from , and let be the spectral gap. For functions write for the mean, for the squared -norm, and
for the Dirichlet form — the average squared local variation of along the chain's transitions.
The theorem (Lemmas 13.11 and 13.12 of Levin–Peres–Wilmer) asserts:
- the spectral gap is the minimal Dirichlet energy over centred unit-norm functions: ;
- the infimum is attained by some such (an eigenfunction for ).
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.
import Definitions.Def_mm_spectral
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
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Let be a finite nonempty type (with decidable equality) containing at least two elements (), and let be a real matrix that is stochastic (every entry and every row sums to one, ) and irreducible in the sense that for all states there exists a natural number with (the exponent is allowed, and since is the identity the condition is automatic for ). Let be a stationary distribution — for all , , and as a row vector — and assume detailed balance: for all . Define the spectral gap , where is the supremum of the set of real numbers that admit a nonzero real function with (pointwise, for all ); by the real-supremum convention this supremum is if the set of such eigenvalues is empty or unbounded above. Define also, for , the mean , the -weighted inner product , and the Dirichlet form
The theorem asserts the conjunction of two claims. First, the spectral gap equals the infimum of the Dirichlet form over normalized mean-zero functions:
where the infimum is the real-valued infimum of the set of attained values , which by convention equals if that set were empty (i.e. if no function satisfied both constraints — note the normalization can fail to be satisfiable only in degenerate situations, e.g. it forces to charge some point) or unbounded below. Second, the infimum is attained: there exists a function with and such that exactly. No aperiodicity assumption is made, and both claims are equalities (not merely inequalities in one direction).
Confirmed by the mission captain (proposal self-audit).