Batch TD(0) fixed points are exactly the certainty-equivalence estimate
ProvedSuttonBartoRL.BatchTD.batch_td_fixed_point_iff_certainty_equivalencemarkov-chainp2o-batch-b23bp2o-gran-per-chapterp2o-plan-bookp2o-v1reinforcement-learningtemporal-difference-learning
Fix a finite batch of episodes over a finite set of nonterminal states, each ending in the terminal state, and . Let , be the maximum-likelihood Markov reward process of the batch and
its value function, the certainty-equivalence estimate. Then:
- the series defining converges at every ;
- for every array , the batch TD(0) increment vanishes at every state if and only if for every state visited in the batch.
This is the statement that batch TD(0) finds the estimates that would be exactly correct for the maximum-likelihood model: the answer of batch TD(0) is characterized without reference to .
Formalization Note The case (used in Example 6.4) is included; no hypothesis on the batch beyond finiteness is made, because every episode ends in the terminal state by construction. Values at unvisited states are unconstrained, as they receive no increment.
Preamble
import Mathlib import Definitions.Def_SuttonBartoRL_BatchTD_Episodes import Definitions.Def_SuttonBartoRL_BatchTD_BatchUpdating
Formal statement
namespace SuttonBartoRL.BatchTD
/-- §6.3, p. 128: batch TD(0) "always finds the estimates that would be exactly correct for the
maximum-likelihood model of the Markov process". For `γ ∈ [0, 1]`, the series defining the
certainty-equivalence estimate converges at every state, and an array `V` is a fixed point of
batch TD(0) (the sum of all increments vanishes at every state) iff `V` agrees with the
certainty-equivalence estimate on every state visited in the batch. -/
theorem batch_td_fixed_point_iff_certainty_equivalence {S : Type} [Fintype S] [DecidableEq S]
(b : Batch S) (γ : ℝ) (hγ0 : 0 ≤ γ) (hγ1 : γ ≤ 1) :
(∀ s : S, Summable fun k : ℕ => γ ^ k * (Matrix.mulVec (mlMatrix b ^ k) (mlExpectedReward b)) s) ∧
∀ V : S → ℝ,
(∀ s : S, tdIncrement γ b V s = 0) ↔
∀ s : S, visitCount b s ≠ 0 → V s = ceEstimate γ b s := by sorry
end SuttonBartoRL.BatchTD
Source
Sutton & Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press (2018), ISBN 9780262039246, §6.3, p. 128
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.