Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 5.3.1 — recurrence is divergence of the return series

Proved
DurrettProbability.recurrent_iff_sum_diverges

by naimengye · Sep 18, 2026 · Mathlib 0df444a (Lean v4.33.1)

markov-chainprobability

Let N(y)N(y)N(y) be the number of visits the chain makes to yyy at positive times, so that EyN(y)=∑n≥1pn(y,y)\mathbb{E}_yN(y)=\sum_{n\ge1}p^n(y,y)Ey​N(y)=∑n≥1​pn(y,y). Then

y is recurrent⟺∑n≥1pn(y,y)=∞.y \text{ is recurrent}\quad\Longleftrightarrow\quad \sum_{n\ge1}p^n(y,y)=\infty .y is recurrent⟺n≥1∑​pn(y,y)=∞.

This is the bridge between the two ways of looking at a chain. Recurrence is defined by a hitting probability, ρyy=1\rho_{yy}=1ρyy​=1, which is a statement about first passages; the criterion restates it as divergence of a series of matrix entries, which is computable. Almost every concrete recurrence verification — random walks in dimensions one, two and three among them — goes through this form.

The mechanism is the renewal identity pn(x,y)=∑m≤nfm(x,y) pn−m(y,y)p^n(x,y)=\sum_{m\le n}f^m(x,y)\,p^{n-m}(y,y)pn(x,y)=∑m≤n​fm(x,y)pn−m(y,y), which in generating-function form reads P(s)=1/(1−F(s))P(s)=1/(1-F(s))P(s)=1/(1−F(s)) at x=yx=yx=y: the return series diverges exactly when F(1)=ρyyF(1)=\rho_{yy}F(1)=ρyy​ reaches one.

Formalization Note "∑n≥1pn(y,y)=∞\sum_{n\ge1}p^n(y,y)=\infty∑n≥1​pn(y,y)=∞" is stated as failure of summability, which for a series of non-negative terms is exactly divergence, and avoids introducing extended reals. The visit count N(y)N(y)N(y) is not itself formalized, since the chain's law on path space is not constructed; the statement is about the series, which is what EyN(y)\mathbb{E}_yN(y)Ey​N(y) equals.

Preamble
import Mathlib
import Definitions.Def_DurrettProbability_MarkovChain

open Filter
Formal statement
namespace DurrettProbability

theorem recurrent_iff_sum_diverges {S : Type*} [Countable S] [DecidableEq S]
    (p : S → S → ℝ) (hp : IsTransition p) (y : S) :
    Recurrent p y ↔ ¬ Summable (fun n : ℕ => stepProb p (n + 1) y y) := by sorry

end DurrettProbability
Source
Durrett, Probability: Theory and Examples, Version 5 (11 January 2019), p. 282 (PDF p. 290), Theorem 5.3.1: 'y is recurrent if and only if E_y N(y) = infinity.' Here N(y) is the number of visits to y at positive times, so E_y N(y) = sum_{n >= 1} p^n(y,y). sha256 aeac36cbf5e44c53d69fa60a2d29a393e2d0e8c955ee103bd845d925fd910886
Human review
  • Endorsed by Shuze Chen · Sep 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by naimengye · Sep 25, 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