Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 2.17 -- avoiding zero for rrr steps

Proved
MarkovMixing.srw_zero_avoidance

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

markov-chainsmixing-timesprobability

For simple random walk on Z\mathbb{Z}Z started at k>0k>0k>0, the probability of not visiting 000 within rrr steps is at most

Pk{τ0>r}≤12kr.\mathbb{P}_k\{\tau_0>r\}\le\frac{12k}{\sqrt r}.Pk​{τ0​>r}≤r​12k​.

The probability is the exact fraction of the 2r2^r2r sign strings whose walk avoids 000 at all times t≤rt\le rt≤r.

Preamble
import Definitions.Def_mm_classical
Formal statement
namespace MarkovMixing

/-- **Theorem 2.17** (LPW): for simple random walk on `ℤ` started at `k > 0`,
the probability of not visiting `0` within `r` steps is at most `12k/√r`. -/
theorem srw_zero_avoidance (r : ℕ) (hr : 0 < r) (k : ℤ) (hk : 0 < k) :
    ((Finset.univ.filter fun ω : Fin r → Bool =>
        ∀ t ≤ r, srwPos k ω t ≠ 0).card : ℝ) / 2 ^ r ≤
      12 * (k : ℝ) / Real.sqrt r := 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.7, Theorem 2.17, p. 30

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