Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Pólya's theorem

Proved
MarkovMixing.polya_recurrence

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

markov-chainsmixing-timesprobability

Simple random walk on the lattice Zd\mathbb Z^dZd moves from a point to one of its 2d2d2d nearest neighbours (one coordinate changed by ±1\pm1±1) uniformly at random. The walk is recurrent when return to the starting point is certain — the probability of no return by time ttt, P0{τ0+>t}\mathbb P_0\{\tau^+_0>t\}P0​{τ0+​>t}, tends to 000 — and transient when with positive probability it never returns.

The theorem (Pólya's theorem; §21.2, Examples 21.8–21.9 of Levin–Peres–Wilmer — the capstone of Chapters 20–21) asserts:

  1. in dimensions d=1d=1d=1 and d=2d=2d=2, the walk is recurrent;
  2. in every dimension d≥3d\ge3d≥3, the walk is transient.

"A drunk man will find his way home, but a drunk bird may get lost forever." The dichotomy is decided by the Green's-function criterion of this mission: the return probabilities obey P2t(0,0)≍t−d/2P^{2t}(0,0)\asymp t^{-d/2}P2t(0,0)≍t−d/2 (a local central-limit estimate, by Stirling's formula in low dimension), and ∑tt−d/2\sum_tt^{-d/2}∑t​t−d/2 diverges exactly for d≤2d\le2d≤2. Pólya's 1921 theorem inaugurated the dimension-dependent study of random walks; formalizing the transient half in particular requires genuinely quantitative control of ddd-dimensional return probabilities.

Preamble
import Definitions.Def_mm_countable
Formal statement
namespace MarkovMixing

/-- **Pólya's theorem** (LPW §21.2, Examples 21.8 and 21.9), the capstone of
Chapters 20–21: simple random walk on `ℤ^d` is recurrent in dimensions
`d ≤ 2` and transient in dimensions `d ≥ 3`. -/
theorem polya_recurrence :
    (∀ d : ℕ, 1 ≤ d → d ≤ 2 → Recurrent (srwZ d) (fun _ => 0)) ∧
    (∀ d : ℕ, 3 ≤ d → ¬Recurrent (srwZ d) (fun _ => 0)) := 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 21.2, Examples 21.8-21.9 (Pólya's theorem), p. 278

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