Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 8, p. 19 — pathwise error recursion of projected TD(0)

Proved
FiniteTD.Markov.lemma_8

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

finite-time-analysisp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1projectiontemporal-difference

Consider the finite Markov reward process with stochastic matrix PPP, stationary distribution π\piπ, rewards ∣R(s,s′)∣≤rmax⁡|R(s,s')|\le r_{\max}∣R(s,s′)∣≤rmax​, discount 0≤γ<10\le\gamma<10≤γ<1 and features ∥ϕ(s)∥2≤1\|\phi(s)\|_2\le1∥ϕ(s)∥2​≤1. Let θ∗\theta^*θ∗ satisfy gˉ(θ∗)=0\bar g(\theta^*)=0gˉ​(θ∗)=0, let R≥∥θ∗∥2R\ge\|\theta^*\|_2R≥∥θ∗∥2​, ∥θ0∥2≤R\|\theta_0\|_2\le R∥θ0​∥2​≤R, let the step sizes satisfy αt≥0\alpha_t\ge0αt​≥0, and set G=rmax⁡+2RG=r_{\max}+2RG=rmax​+2R. Let θt\theta_tθt​ be the projected TD(0) iterates (20) along a state path s0,s1,…s_0,s_1,\dotss0​,s1​,…, and ζt(θ)=(gt(θ)−gˉ(θ))⊤(θ−θ∗)\zeta_t(\theta)=\big(g_t(\theta)-\bar g(\theta)\big)^\top(\theta-\theta^*)ζt​(θ)=(gt​(θ)−gˉ​(θ))⊤(θ−θ∗) with gt(θ)g_t(\theta)gt​(θ) the TD direction at the transition (st,st+1)(s_t,s_{t+1})(st​,st+1​). Then for every path and every t∈N0t\in\mathbb{N}_0t∈N0​,

∥θ∗−θt+1∥22  ≤  ∥θ∗−θt∥22−2αt(1−γ)∥Vθ∗−Vθt∥D2+2αtζt(θt)+αt2G2.\|\theta^*-\theta_{t+1}\|_2^2\;\le\;\|\theta^*-\theta_t\|_2^2-2\alpha_t(1-\gamma)\|V_{\theta^*}-V_{\theta_t}\|_D^2+2\alpha_t\zeta_t(\theta_t)+\alpha_t^2G^2 .∥θ∗−θt+1​∥22​≤∥θ∗−θt​∥22​−2αt​(1−γ)∥Vθ∗​−Vθt​​∥D2​+2αt​ζt​(θt​)+αt2​G2.

This is the error decomposition from which all three parts of Theorem 3 follow once the bias term E[ζt(θt)]\mathbb{E}[\zeta_t(\theta_t)]E[ζt​(θt​)] is controlled (Lemma 11).

Formalization Note "With probability 1" is stated for every state path. Non-negative step sizes are implicit in the paper (all its step-size rules are positive) and are assumed explicitly.

Preamble
import Mathlib
import Definitions.Def_FiniteTD_Markov_Chain
import Definitions.Def_FiniteTD_Markov_Setting
Formal statement
namespace FiniteTD.Markov

theorem lemma_8 {S : Type} [Fintype S] {d : ℕ}
    (P : S → S → ℝ) (π : S → ℝ) (Rw : S → S → ℝ) (rmax γ : ℝ)
    (φ : S → EuclideanSpace ℝ (Fin d)) (R : ℝ) (α : ℕ → ℝ)
    (θstar θ0 : EuclideanSpace ℝ (Fin d))
    (hP : IsStochastic P) (hπ : IsStationaryDist P π) (hRw : ∀ s s', |Rw s s'| ≤ rmax)
    (hγ0 : 0 ≤ γ) (hγ1 : γ < 1) (hφ : ∀ s, ‖φ s‖ ≤ 1)
    (hstar : gbar π P γ Rw φ θstar = 0) (hR : ‖θstar‖ ≤ R) (hθ0 : ‖θ0‖ ≤ R)
    (hα : ∀ t, 0 ≤ α t) :
    ∀ (w : ℕ → S) (t : ℕ),
      ‖θstar - ptd γ Rw φ R α θ0 w (t + 1)‖ ^ 2 ≤
        ‖θstar - ptd γ Rw φ R α θ0 w t‖ ^ 2
          - 2 * α t * (1 - γ) * dNormSq π φ (θstar - ptd γ Rw φ R α θ0 w t)
          + 2 * α t * zeta π P γ Rw φ θstar (ptd γ Rw φ R α θ0 w t) (w t) (w (t + 1))
          + α t ^ 2 * (rmax + 2 * R) ^ 2 := by sorry

end FiniteTD.Markov
Source
Bhandari, Russo & Singal, A Finite Time Analysis of Temporal Difference Learning With Linear Function Approximation, arXiv:1806.02450v2, p. 19, Lemma 8
Human review
  • Endorsed by Shuze Chen · Oct 19, 2026

    Confirmed by the moderator at approval.

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