Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix A, eq. (15) — one lookahead step with evaluation error δk\delta_kδk​

Proved
LookaheadAPI.LeastSquares.eq_15

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

approximate-policy-iterationlookaheadp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1reinforcement-learning

Let (S,A,P,r,α)(\mathcal S,\mathcal A,P,r,\alpha)(S,A,P,r,α) be a finite discounted MDP with rewards in [0,1][0,1][0,1] and 0<α<10<\alpha<10<α<1, and let H≥1H\ge1H≥1. Let μk\mu_kμk​ be any deterministic policy and Jk∈R∣S∣J_k\in\mathbb R^{|\mathcal S|}Jk​∈R∣S∣ an estimate with ∥Jk−Jμk∥∞≤δk\|J_k-J^{\mu_k}\|_\infty\le\delta_k∥Jk​−Jμk​∥∞​≤δk​. If μk+1\mu_{k+1}μk+1​ is an εLA\varepsilon_{LA}εLA​-accurate HHH-step lookahead policy for JkJ_kJk​, i.e. ∥THJk−Tμk+1TH−1Jk∥∞≤εLA\|T^HJ_k-T_{\mu_{k+1}}T^{H-1}J_k\|_\infty\le\varepsilon_{LA}∥THJk​−Tμk+1​​TH−1Jk​∥∞​≤εLA​, then

∥Jμk+1−J∗∥∞≤αH∥Jμk−J∗∥∞+2αHδk+εLA1−α.(15)\|J^{\mu_{k+1}}-J^*\|_\infty\le\alpha^H\|J^{\mu_k}-J^*\|_\infty+\frac{2\alpha^H\delta_k+\varepsilon_{LA}}{1-\alpha}. \tag{15}∥Jμk+1​−J∗∥∞​≤αH∥Jμk​−J∗∥∞​+1−α2αHδk​+εLA​​.(15)

This is the one-step contraction of approximate policy iteration with HHH-step lookahead (Efroni et al., 2019, with a time-varying evaluation error); iterating it over kkk gives Proposition 1.

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 A, eq. (15) (p. 19): if `J_k` is within `δ_k` of `J^{μ_k}` (for any deterministic
policy `μ_k`) and `μ_{k+1}` is an `ε_LA`-accurate `H`-step lookahead policy for `J_k`, then
`‖J^{μ_{k+1}} − J^*‖_∞ ≤ α^H ‖J^{μ_k} − J^*‖_∞ + (2α^H δ_k + ε_LA)/(1 − α)`. -/
theorem eq_15 {S A : Type*} [Fintype S] [DecidableEq S] [Nonempty S] [Fintype A]
    [DecidableEq A] [Nonempty A] (M : MDP S A) (H : ℕ) (hH : 1 ≤ H) (εLA δk : ℝ)
    (Jk : S → ℝ) (μk μk1 : S → A)
    (hδ : ‖Jk - valueOf M μk‖ ≤ δk)
    (hLA : IsLookahead M H εLA Jk μk1) :
    ‖valueOf M μk1 - optValue M‖ ≤
      M.α ^ H * ‖valueOf M μk - optValue M‖ + (2 * M.α ^ H * δk + εLA) / (1 - M.α) := by sorry

end LookaheadAPI.LeastSquares
Source
arXiv:2109.13419v7, p. 19, Appendix A, eq. (15) (eq. (14), p. 18, is its constant-δ case)
Human review
  • Endorsed by Shuze Chen · Oct 14, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 14, 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