Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 1 (second display) — finite-time and asymptotic components under δk≤βkδ0+μ\delta_k\le\beta^k\delta_0+\muδk​≤βkδ0​+μ

Proved
LookaheadAPI.LeastSquares.proposition_1_geometric

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, let H≥1H\ge1H≥1, and let (Jk,μk)k≥0(J_k,\mu_k)_{k\ge0}(Jk​,μk​)k≥0​ be a run of Algorithm 3 with lookahead accuracy εLA\varepsilon_{LA}εLA​ and evaluation-error bounds δk\delta_kδk​. Suppose that for some scalars 0<β<10<\beta<10<β<1 and μ>0\mu>0μ>0,

δk≤βkδ0+μfor all k.(8)\delta_k\le\beta^k\delta_0+\mu\quad\text{for all }k. \tag{8}δk​≤βkδ0​+μfor all k.(8)

Then for every k≥0k\ge0k≥0,

∥Jμk−J∗∥∞≤αkH1−α+2αH1−α k max⁡(αH−1,β)k−1δ0⏟finite-time component+2αHμ+εLA(1−α)(1−αH)⏟asymptotic component.\|J^{\mu_k}-J^*\|_\infty\le\underbrace{\frac{\alpha^{kH}}{1-\alpha}+\frac{2\alpha^H}{1-\alpha}\,k\,\max(\alpha^{H-1},\beta)^{k-1}\delta_0}_{\text{finite-time component}}+\underbrace{\frac{2\alpha^H\mu+\varepsilon_{LA}}{(1-\alpha)(1-\alpha^H)}}_{\text{asymptotic component}}.∥Jμk​−J∗∥∞​≤finite-time component1−ααkH​+1−α2αH​kmax(αH−1,β)k−1δ0​​​+asymptotic component(1−α)(1−αH)2αHμ+εLA​​​​.

When the evaluation errors decay geometrically to a floor μ\muμ, the policies converge to within the asymptotic component of optimal; Theorem 1 is this bound with the β\betaβ and μ\muμ of Algorithm 2.

Formalization Note The scalars β,μ\beta,\muβ,μ of (8) are free, distinct from Theorem 1's β\betaβ; the scalar μ\muμ is written μc in Lean to avoid a clash with the policies μk\mu_kμk​. At k=0k=0k=0 the middle term is 000.

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, second display (p. 13): for every run of Algorithm 3 whose error bounds satisfy
(8), `δ_k ≤ β^k δ_0 + µ` with `0 < β < 1`, `0 < µ` (here `β` and `µ` are free scalars, written
`β` and `μc`), every `k` satisfies
`‖J^{μ_k} − J^*‖_∞ ≤ α^{kH}/(1−α) + (2α^H/(1−α)) k max(α^{H−1}, β)^{k−1} δ_0
  + (2α^H µ + ε_LA)/((1−α)(1−α^H))`. -/
theorem proposition_1_geometric {S A : Type*} [Fintype S] [DecidableEq S] [Nonempty S]
    [Fintype A] [DecidableEq A] [Nonempty A] (M : MDP S A) (H : ℕ) (hH : 1 ≤ H) (εLA : ℝ)
    (δ : ℕ → ℝ) (J : ℕ → S → ℝ) (μ : ℕ → S → A)
    (hrun : IsRunAlg3 M H εLA δ J μ)
    (β μc : ℝ) (hβ0 : 0 < β) (hβ1 : β < 1) (hμc : 0 < μc)
    (h8 : ∀ k : ℕ, δ k ≤ β ^ k * δ 0 + μc) (k : ℕ) :
    ‖valueOf M (μ k) - optValue M‖ ≤
      M.α ^ (k * H) / (1 - M.α) +
      2 * M.α ^ H / (1 - M.α) * k * max (M.α ^ (H - 1)) β ^ (k - 1) * δ 0 +
      (2 * M.α ^ H * μc + εLA) / ((1 - M.α) * (1 - M.α ^ H)) := by sorry

end LookaheadAPI.LeastSquares
Source
arXiv:2109.13419v7, p. 13, Proposition 1 (eq. (8) and second display); proof in Appendix A, p. 19
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