Prove2Me
Navigate
MissionsFormalpediaUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Propositions 2.12 and 2.14 -- random walks on finite groups

Open
MarkovMixing.group_walk_uniform_stationary

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

markov-chainsmixing-timesprobability

The random walk on a finite group GGG with increment distribution μ\muμ (step from aaa to hahaha with probability μ(h)\mu(h)μ(h)) is a Markov chain for which the uniform distribution on GGG is stationary; and if μ\muμ is symmetric (μ(g−1)=μ(g)\mu(g^{-1})=\mu(g)μ(g−1)=μ(g)), the walk is reversible with respect to the uniform distribution.

Preamble
import Definitions.Def_mm_basic
Formal statement
namespace MarkovMixing

/-- **Propositions 2.12 and 2.14** (LPW): the random walk on a finite group
with increment distribution `μ` is a Markov chain for which the uniform
distribution is stationary; if `μ` is symmetric (`μ(g) = μ(g⁻¹)`), the walk is
moreover reversible. -/
theorem group_walk_uniform_stationary {G : Type*} [Group G] [Fintype G]
    [DecidableEq G] (μ : G → ℝ) (hμ : IsDist μ) :
    IsStochastic (groupWalk μ) ∧
    IsStationary (groupWalk μ) (uniformDist G) ∧
    ((∀ g : G, μ g⁻¹ = μ g) → DetailedBalance (groupWalk μ) (uniformDist G)) := 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 2.6, Propositions 2.12 and 2.14, pp. 28-29
Read-back

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

Let GGG be a group that is also a finite type (with decidable equality), and let μ:G→R\mu : G \to \mathbb{R}μ:G→R be a real-valued function on GGG satisfying the hypothesis that μ\muμ is a distribution, meaning: μ(x)≥0\mu(x) \ge 0μ(x)≥0 for every x∈Gx \in Gx∈G, and ∑x∈Gμ(x)=1\sum_{x \in G} \mu(x) = 1∑x∈G​μ(x)=1. Define the G×GG \times GG×G real matrix PPP (the "group walk" of μ\muμ) entrywise by

P(a,b)=μ(b⋅a−1)for all a,b∈G,P(a, b) = \mu(b \cdot a^{-1}) \quad \text{for all } a, b \in G,P(a,b)=μ(b⋅a−1)for all a,b∈G,

and let π:G→R\pi : G \to \mathbb{R}π:G→R be the constant function π(x)=∣G∣−1\pi(x) = |G|^{-1}π(x)=∣G∣−1, where ∣G∣|G|∣G∣ is the cardinality of GGG (note that a group is necessarily nonempty, so ∣G∣≥1|G| \ge 1∣G∣≥1). The theorem asserts the conjunction of three claims. (1) PPP is stochastic: every entry satisfies P(x,y)≥0P(x,y) \ge 0P(x,y)≥0, and every row sums to one, i.e. ∑y∈GP(x,y)=1\sum_{y \in G} P(x, y) = 1∑y∈G​P(x,y)=1 for each x∈Gx \in Gx∈G. (2) π\piπ is stationary for PPP, which by the definition used here comprises two parts: π\piπ is itself a distribution (π(x)≥0\pi(x) \ge 0π(x)≥0 for all xxx and ∑x∈Gπ(x)=1\sum_{x \in G} \pi(x) = 1∑x∈G​π(x)=1), and the row-vector–matrix product πP\pi PπP equals π\piπ, i.e.

∑x∈Gπ(x) P(x,y)=π(y)for every y∈G.\sum_{x \in G} \pi(x)\, P(x, y) = \pi(y) \quad \text{for every } y \in G.x∈G∑​π(x)P(x,y)=π(y)for every y∈G.

(3) If additionally μ(g−1)=μ(g)\mu(g^{-1}) = \mu(g)μ(g−1)=μ(g) for every g∈Gg \in Gg∈G, then PPP satisfies detailed balance with respect to π\piπ, meaning

π(x) P(x,y)=π(y) P(y,x)for all x,y∈G.\pi(x)\, P(x, y) = \pi(y)\, P(y, x) \quad \text{for all } x, y \in G.π(x)P(x,y)=π(y)P(y,x)for all x,y∈G.

Only part (3) is conditional on the symmetry hypothesis μ(g−1)=μ(g)\mu(g^{-1}) = \mu(g)μ(g−1)=μ(g); parts (1) and (2) are asserted for every distribution μ\muμ on GGG. The group need not be abelian, and nothing beyond nonnegativity and total mass one is assumed of μ\muμ (in particular μ\muμ may vanish on generators or be concentrated at the identity, in which case PPP is the corresponding — possibly reducible — transition matrix; the theorem asserts nothing about irreducibility, aperiodicity, or uniqueness of the stationary distribution).

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 contributeLaunch a missionPropose a formalization projectFAQ

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 works
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me