Lemma 8.5.4 — an ε-approximate transition model changes every t-value by less than εT
ProvedSampleComplexityRL.Exploration.eps_approx_conditiondynamic-programmingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1reinforcement-learning
Let and be two MDPs on the same finite state set and finite nonempty action set , with the same rewards and transition models and . Suppose is an -approximation to :
Then for every -step policy , every state and every time ,
The lemma says how accurate an estimated model must be for its -step values to be uniformly close to the true ones; it determines the number of visits after which treats a state as known.
Formalization Note Values are normalized by , so the bound is on values in . Both and 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
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.