Prove2Me
Navigate
MissionsFormalpediaUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 1.13 -- expected hitting times of an irreducible chain are finite

Open
MarkovMixing.summable_hitting_tails

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

markov-chainsmixing-timesprobability

For an irreducible chain and any states x,zx,zx,z, the expected first hitting time Ex(τz+)\mathbb{E}_x(\tau_z^+)Ex​(τz+​) is finite. Formally: the tail probabilities Px{τz+>t}\mathbb{P}_x\{\tau_z^+>t\}Px​{τz+​>t}, expressed as finite sums of trajectory weights, form a summable family in ttt -- their sum being the expectation by the tail-sum formula EY=∑t≥0P{Y>t}\mathbb{E}Y=\sum_{t\ge0}\mathbb{P}\{Y>t\}EY=∑t≥0​P{Y>t}.

Preamble
import Definitions.Def_mm_path
Formal statement
namespace MarkovMixing

/-- **Lemma 1.13** (LPW): for an irreducible chain, `E_x(τ⁺_z) < ∞` for all
states `x, z` — formalized as summability of the tail probabilities
`P_x{τ⁺_z > t}`, whose sum is the expectation. -/
theorem summable_hitting_tails {V : Type*} [Fintype V] [DecidableEq V]
    (P : Matrix V V ℝ) (hP : IsStochastic P) (hirr : Irreducible P) (x z : V) :
    Summable (fun t : ℕ => avoidTailProb P x z t) := 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 1.5.2, Lemma 1.13, p. 11
Read-back

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

Let VVV be an arbitrary finite type (with decidable equality), and let PPP be a V×VV \times VV×V matrix of real numbers that is assumed stochastic — meaning every entry satisfies 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 — and irreducible in the following sense: for every pair of states x,y∈Vx, y \in Vx,y∈V there exists a natural number t≥0t \ge 0t≥0 (with t=0t = 0t=0 allowed, where P0P^0P0 is the identity matrix) such that the (x,y)(x,y)(x,y) entry of the matrix power PtP^tPt is strictly positive. Fix two states x,z∈Vx, z \in Vx,z∈V (which forces VVV to be nonempty; x=zx = zx=z is allowed). For each t∈Nt \in \mathbb{N}t∈N define the real number

at  =  ∑ω:{0,1,…,t}→V1[ ω(0)=x  ∧  ω(i)≠z for all 1≤i≤t ]⋅∏i=0t−1P(ω(i),ω(i+1)),a_t \;=\; \sum_{\omega : \{0,1,\dots,t\} \to V} \mathbf{1}\big[\, \omega(0) = x \;\wedge\; \omega(i) \ne z \text{ for all } 1 \le i \le t \,\big] \cdot \prod_{i=0}^{t-1} P\big(\omega(i), \omega(i+1)\big),at​=ω:{0,1,…,t}→V∑​1[ω(0)=x∧ω(i)=z for all 1≤i≤t]⋅i=0∏t−1​P(ω(i),ω(i+1)),

i.e. ata_tat​ is the finite sum, over all functions ω\omegaω from {0,…,t}\{0,\dots,t\}{0,…,t} to VVV, of the path weight ∏i=0t−1P(ω(i),ω(i+1))\prod_{i=0}^{t-1} P(\omega(i),\omega(i+1))∏i=0t−1​P(ω(i),ω(i+1)), restricted to those ω\omegaω that start at xxx and avoid zzz at every index from 111 to ttt (the starting point ω(0)\omega(0)ω(0) is not required to differ from zzz); probabilistically, ata_tat​ is the probability that the chain started at xxx has not visited zzz at any of the times 1,…,t1, \dots, t1,…,t. Note the degenerate case t=0t = 0t=0: the avoidance condition is vacuous and the path weight is an empty product, so a0=1a_0 = 1a0​=1. The theorem asserts (with proof currently omitted, i.e. the statement carries a sorry) that under these hypotheses the sequence (at)t∈N(a_t)_{t \in \mathbb{N}}(at​)t∈N​ is summable: the series ∑t=0∞at\sum_{t=0}^{\infty} a_t∑t=0∞​at​ converges (in the standard sense of unconditional/absolute convergence of a family of reals). No claim is made about the value of the sum, its finiteness bound, or any relation to hitting times; only convergence of this series is asserted.

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