Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 8.3.5, p. 114 — in a deterministic MDP every escape probability is 0 or 1

Proved
SampleComplexityRL.Exploration.det_escape_zero_or_one

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

dynamic-programmingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1reinforcement-learning

Let MMM be a deterministic MDP with finite state set SSS and next-state map fff, so that P(s′∣s,a)=1P(s'\mid s,a)=1P(s′∣s,a)=1 if s′=f(s,a)s'=f(s,a)s′=f(s,a) and 000 otherwise. For every set of states KKK, every TTT-step policy π\piπ, every time ttt and every state sss,

Pr⁡(escape from K∣π,M,st=s)∈{0,1}.\Pr(\text{escape from }K\mid\pi,M,s_t=s)\in\{0,1\}.Pr(escape from K∣π,M,st​=s)∈{0,1}.

In the thesis's words, any attempted escape from KKK succeeds with probability 111: following π\piπ from st=ss_t=sst​=s either surely leaves KKK before time TTT or surely stays in KKK.

This is the first of the two facts the proof of Theorem 8.3.5 uses: in a deterministic MDP every exploration attempt of RmaxR_{max}Rmax​ reaches an unknown state.

Formalization Note The escape probability is 000 for t≥Tt\ge Tt≥T by definition.

Preamble
import Mathlib
import Definitions.Def_FoundationsML_ReinforcementLearning_IsTransitionKernel
import Definitions.Def_SampleComplexityRL_Exploration_Model
Formal statement
namespace SampleComplexityRL.Exploration

/-- **Deterministic escapes** (Kakade 2003, proof of Theorem 8.3.5, p. 114: "Since the MDP is
deterministic, any attempted escape from `K` in `t` steps succeeds with probability 1"). In a
deterministic MDP with next-state map `f`, for every deterministic `T`-step policy `π`, set of
states `K`, time `t` and state `s`, the escape probability
`Pr(escape from K | π, M, s_t = s)` is either `0` or `1`. -/
theorem det_escape_zero_or_one {S A : Type} [Fintype S] [DecidableEq S]
    (f : S → A → S) (K : Finset S) (T : ℕ) (π : ℕ → S → A) (t : ℕ) (s : S) :
    escapeProb (detKernel f) K T π t s = 0 ∨ escapeProb (detKernel f) K T π t s = 1 := by sorry

end SampleComplexityRL.Exploration
Source
Kakade, On the Sample Complexity of Reinforcement Learning, PhD thesis, University College London, 2003, p. 114, proof of Theorem 8.3.5 (second sentence)
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 7, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me