Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 17, p. 40 — the TD(λ) update and its steady-state mean are bounded by B on Θ_R

Open
FiniteTD.Markov.Supplement.lemma_17

by mikedeng1 · Nov 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

eligibility-tracesp2o-batch-supp500p2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1temporal-difference

Let SSS be a finite state space with stochastic matrix PPP and stationary distribution π\piπ, rewards with ∣R(s,s′)∣≤rmax⁡|R(s,s')|\le r_{\max}∣R(s,s′)∣≤rmax​, γ∈[0,1)\gamma\in[0,1)γ∈[0,1), λ∈[0,1]\lambda\in[0,1]λ∈[0,1], features with ∥ϕ(s)∥2≤1\|\phi(s)\|_2\le1∥ϕ(s)∥2​≤1, and set B=(rmax⁡+2R)/(1−γλ)B=(r_{\max}+2R)/(1-\gamma\lambda)B=(rmax​+2R)/(1−γλ). For θ\thetaθ in ΘR={θ:∥θ∥2≤R}\Theta_R=\{\theta:\|\theta\|_2\le R\}ΘR​={θ:∥θ∥2​≤R}:

  1. along every state path s0,s1,…s_0,s_1,\dotss0​,s1​,… and at every time ttt, the TD(λ) update xt(θ,z0:t)=δt(θ)z0:tx_t(\theta,z_{0:t})=\delta_t(\theta)z_{0:t}xt​(θ,z0:t​)=δt​(θ)z0:t​, with δt(θ)=R(st,st+1)+γϕ(st+1)⊤θ−ϕ(st)⊤θ\delta_t(\theta)=R(s_t,s_{t+1})+\gamma\phi(s_{t+1})^\top\theta-\phi(s_t)^\top\thetaδt​(θ)=R(st​,st+1​)+γϕ(st+1​)⊤θ−ϕ(st​)⊤θ and z0:t=∑k=0t(γλ)kϕ(st−k)z_{0:t}=\sum_{k=0}^t(\gamma\lambda)^k\phi(s_{t-k})z0:t​=∑k=0t​(γλ)kϕ(st−k​), satisfies ∥xt(θ,z0:t)∥2≤B\|x_t(\theta,z_{0:t})\|_2\le B∥xt​(θ,z0:t​)∥2​≤B;
  2. the steady-state mean update satisfies ∥xˉ(θ)∥2≤B\|\bar x(\theta)\|_2\le B∥xˉ(θ)∥2​≤B.

BBB plays for TD(λ) the role of the gradient bound G=rmax⁡+2RG=r_{\max}+2RG=rmax​+2R of TD(0) (Lemma 6), enlarged by the factor 1/(1−γλ)1/(1-\gamma\lambda)1/(1−γλ) that the trace contributes.

Formalization Note xˉ(θ)=Φ⊤D(T(λ)Φθ−Φθ)\bar x(\theta)=\Phi^\top D(T^{(\lambda)}\Phi\theta-\Phi\theta)xˉ(θ)=Φ⊤D(T(λ)Φθ−Φθ) (39).

Differences from the source:

  • reading: the discount factor satisfies γ < 1 → 0 ≤ γ < 1; reason: a discount factor is nonnegative; §10 writes γ ∈ [0, 1), and the Cauchy–Schwarz step of Lemma 3 uses γ ≥ 0; the published goal uses the same convention
  • reading: x̄(θ) = lim_t E[δ_t(θ) z_{0:t}], equivalently (38)–(39) → x̄(θ) = Φ⊤D(T^{(λ)}Φθ − Φθ), the right side of (39); reason: the paper states (38) and (39) as equal on p. 38 and uses (39) in Lemma 16; on a finite chain the backward-view series (38) is exactly (39)
  • generalization: the bound holds with probability 1 → the bound holds for every state path; reason: the inequality is pathwise and uses only the bounds on rewards and features; every path, of positive probability or not, is covered, which specialises to the almost-sure statement
  • generalization: the chain is ergodic with a unique limiting stationary distribution (p. 5); Appendix B additionally assumes Assumption 1 → P is stochastic and π is a stationary distribution; no ergodicity or uniform mixing hypothesis; reason: All source chains satisfy these hypotheses. These particular bounds use the stationary one-step law or deterministic operator/trace bounds, so they also cover periodic and reducible chains; the finite-time bias and Markov convergence bounds in Lemma 20 and Theorem 4 retain Assumption 1.
  • generalization: full-rank Σ, positive minimum eigenvalue, and R ≥ ‖θ*‖₂ in the Appendix B setting → no rank or target hypothesis; any R and θ with ‖θ‖ ≤ R; reason: Update bounds depend on reward, feature and trace bounds only. No projection inverse is used by xbar; the source settings are all included. A nonempty ball implies R ≥ 0, and stationarity implies S is nonempty and rmax ≥ 0.
Preamble
import Mathlib
import Definitions.Def_FiniteTD_Markov_Chain
import Definitions.Def_FiniteTD_Markov_Setting
import Definitions.Def_FiniteTD_Markov_Supplement_Lambda
Formal statement
namespace FiniteTD.Markov.Supplement

theorem lemma_17 {S : Type} [Fintype S] [DecidableEq S] {d : ℕ}
    (P : S → S → ℝ) (π : S → ℝ) (Rw : S → S → ℝ) (rmax γ lam : ℝ)
    (φ : S → EuclideanSpace ℝ (Fin d)) (R : ℝ)
    (hP : IsStochastic P) (hπ : IsStationaryDist P π) (hRw : ∀ s s', |Rw s s'| ≤ rmax)
    (hγ0 : 0 ≤ γ) (hγ1 : γ < 1) (hlam0 : 0 ≤ lam) (hlam1 : lam ≤ 1)
    (hφ : ∀ s, ‖φ s‖ ≤ 1) :
    ∀ θ : EuclideanSpace ℝ (Fin d), ‖θ‖ ≤ R →
      (∀ (w : ℕ → S) (t : ℕ),
        ‖tdErr γ Rw φ θ (w t) (w (t + 1)) • traceN φ (γ * lam) w t‖ ≤
          (rmax + 2 * R) / (1 - γ * lam)) ∧
      ‖xbar π P γ lam Rw φ θ‖ ≤ (rmax + 2 * R) / (1 - γ * lam) := by sorry

end FiniteTD.Markov.Supplement
Source
Bhandari, Russo & Singal, A Finite Time Analysis of Temporal Difference Learning With Linear Function Approximation, arXiv:1806.02450v2, p. 40, Lemma 17 (proof p. 45–46)

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