Appendix B, eq. (19) — the error recursion for Algorithm 2
ProvedLookaheadAPI.LeastSquares.appendix_b_19approximate-policy-iterationleast-squaresp2o-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 2 under Assumption 1, with any deterministic policy. Put , and let
Then:
- for every , ;
- iterating, for every , ;
- if , then for every ,
This computes the parameters and with which Proposition 1 applies to Algorithm 2.
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
/-- Appendix B, the recursion and (19) (pp. 20–21): for every run of Algorithm 2 under
Assumption 1 (with `μ_0` any deterministic policy), `δ_k := ‖J_k − J^{μ_k}‖_∞` satisfies
`δ_k ≤ β δ_{k−1} + τ` for `k ≥ 1`; iterating, `δ_k ≤ β^k δ_0 + ∑_{i=0}^{k−1} β^i τ`; and, when
`β < 1`, `δ_k ≤ β^k δ_0 + τ/(1 − β)`, where `β = α^{m+H−1}δ_FV` and
`τ = (α^m + α^{m+H−1})/(1−α) δ_FV + δ_app + δ_FV ε_PE`. -/
theorem appendix_b_19 {S A : Type*} [Fintype S] [DecidableEq S] [Nonempty S] [Fintype A]
[DecidableEq A] [Nonempty A] (M : MDP S A) {d : ℕ} (Φ : Matrix S (Fin d) ℝ)
(D : ℕ → Finset S) (m H : ℕ) (hH : 1 ≤ H) (εLA εPE : ℝ)
(J : ℕ → S → ℝ) (μ : ℕ → S → A) (w : ℕ → S → ℝ) (θ : ℕ → Fin d → ℝ)
(hA1 : Assumption1 Φ D w εPE)
(hrun : IsRunAlg2 M Φ D m H εLA J μ w θ) :
(∀ k : ℕ, ‖J (k + 1) - valueOf M (μ (k + 1))‖ ≤
betaLS M Φ D m H * ‖J k - valueOf M (μ k)‖ + tauLS M Φ D m H εPE) ∧
(∀ k : ℕ, ‖J k - valueOf M (μ k)‖ ≤
betaLS M Φ D m H ^ k * ‖J 0 - valueOf M (μ 0)‖ +
∑ i ∈ Finset.range k, betaLS M Φ D m H ^ i * tauLS M Φ D m H εPE) ∧
(betaLS M Φ D m H < 1 → ∀ k : ℕ, ‖J k - valueOf M (μ k)‖ ≤
betaLS M Φ D m H ^ k * ‖J 0 - valueOf M (μ 0)‖ +
tauLS M Φ D m H εPE / (1 - betaLS M Φ D m H)) := by sorry
end LookaheadAPI.LeastSquares
Source
arXiv:2109.13419v7, pp. 20–21, Appendix B (recursion for δ_k and eq. (19))
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.