Proposition 1 (first display) — error bound for Algorithm 3 with time-varying evaluation error
ProvedLookaheadAPI.LeastSquares.proposition_1approximate-policy-iterationlookaheadp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1reinforcement-learning
Let be a finite discounted MDP with rewards in and , let , and let be a run of Algorithm 3 with lookahead accuracy and evaluation-error bounds , i.e. and for every . Then for every ,
The bound separates the effect of the initial policy, the accumulated evaluation errors, and the lookahead error.
Formalization Note The last term divides by , which vanishes at (the bound is there on paper, while Lean's would make it false), so this item assumes . is an arbitrary deterministic policy, and the index of is that of (15) and Appendix B (see the Algorithms module).
Preamble
import Mathlib import Definitions.Def_LookaheadAPI_LeastSquares_MDP import Definitions.Def_LookaheadAPI_LeastSquares_LSOperator import Definitions.Def_LookaheadAPI_LeastSquares_Algorithms
Formal statement
namespace LookaheadAPI.LeastSquares
/-- Proposition 1, first display (p. 13): every run of Algorithm 3 with `H ≥ 2` satisfies
`‖J^{μ_k} − J^*‖_∞ ≤ α^{kH}/(1−α) + ∑_{ℓ=0}^{k−1} α^{(k−ℓ−1)H} 2α^H δ_ℓ/(1−α)
+ ε_LA/((1−α)(1−α^{H−1}))` for every `k`. -/
theorem proposition_1 {S A : Type*} [Fintype S] [DecidableEq S] [Nonempty S] [Fintype A]
[DecidableEq A] [Nonempty A] (M : MDP S A) (H : ℕ) (hH : 2 ≤ H) (εLA : ℝ)
(δ : ℕ → ℝ) (J : ℕ → S → ℝ) (μ : ℕ → S → A)
(hrun : IsRunAlg3 M H εLA δ J μ) (k : ℕ) :
‖valueOf M (μ k) - optValue M‖ ≤
M.α ^ (k * H) / (1 - M.α) +
∑ ℓ ∈ Finset.range k, M.α ^ ((k - ℓ - 1) * H) * (2 * M.α ^ H * δ ℓ) / (1 - M.α) +
εLA / ((1 - M.α) * (1 - M.α ^ (H - 1))) := by sorry
end LookaheadAPI.LeastSquares
Source
arXiv:2109.13419v7, p. 13, Proposition 1 (first display); proof in Appendix A, p. 19, eq. (16)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.