Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 8.5.4 — an ε-approximate transition model changes every t-value by less than εT

Proved
SampleComplexityRL.Exploration.eps_approx_condition

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

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

Let MMM and M^\hat MM^ be two MDPs on the same finite state set SSS and finite nonempty action set AAA, with the same rewards r(s,a)∈[0,1]r(s,a)\in[0,1]r(s,a)∈[0,1] and transition models PPP and P^\hat PP^. Suppose P^\hat PP^ is an ε\varepsilonε-approximation to PPP:

∑s′∣P^(s′∣s,a)−P(s′∣s,a)∣<εfor all s,a.\sum_{s'}\big|\hat P(s'\mid s,a)-P(s'\mid s,a)\big|<\varepsilon\qquad\text{for all }s,a.s′∑​​P^(s′∣s,a)−P(s′∣s,a)​<εfor all s,a.

Then for every TTT-step policy π\piπ, every state sss and every time t<Tt<Tt<T,

∣Uπ,t,M^(s)−Uπ,t,M(s)∣<εT.\big|U_{\pi,t,\hat M}(s)-U_{\pi,t,M}(s)\big|<\varepsilon T.​Uπ,t,M^​(s)−Uπ,t,M​(s)​<εT.

The lemma says how accurate an estimated model must be for its TTT-step values to be uniformly close to the true ones; it determines the number mmm of visits after which RmaxR_{max}Rmax​ treats a state as known.

Formalization Note Values are normalized by 1/T1/T1/T, so the bound εT\varepsilon TεT is on values in [0,1][0,1][0,1]. Both PPP and P^\hat PP^ are transition kernels.

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

open FoundationsML.ReinforcementLearning

/-- **Lemma 8.5.4 (ε-Approximation Condition)** (Kakade 2003, p. 111). Let `M = (P, r)` and
`M̂ = (P̂, r)` be two MDPs with the same rewards (in `[0,1]`) and the same state-action space. If
`P̂` is an `ε`-approximation to `P` (Definition 8.5.3), then for all deterministic `T`-step
policies `π`, states `s` and times `t < T`, `|U_{π,t,M̂}(s) − U_{π,t,M}(s)| < εT`. -/
theorem eps_approx_condition {S A : Type} [Fintype S] [DecidableEq S] [Fintype A]
    [DecidableEq A] [Nonempty A]
    (P Phat : S → A → S → ℝ) (r : S → A → ℝ) (hP : IsTransitionKernel P)
    (hPhat : IsTransitionKernel Phat) (hr : ∀ s a, 0 ≤ r s a ∧ r s a ≤ 1)
    (ε : ℝ) (happrox : IsEpsApprox Phat P ε)
    (T : ℕ) (π : ℕ → S → A) (t : ℕ) (ht : t < T) (s : S) :
    |uValue Phat r T π t s - uValue P r T π t s| < ε * T := by sorry

end SampleComplexityRL.Exploration
Source
Kakade, On the Sample Complexity of Reinforcement Learning, PhD thesis, University College London, 2003, p. 111, Lemma 8.5.4 (with Definition 8.5.3)
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