Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The maximum-likelihood matrix Q^\hat QQ^​ is absorbing: Q^n→0\hat Q^n\to0Q^​n→0 (§4.2, p. 30)

Proved
SuttonTD.Convergence.ml_matrix_absorbing

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

markov-chainmaximum-likelihoodp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1temporal-difference

Let a training set be given in which every nonterminal state appears, and let [Q^]ij=ηij/d^i[\hat Q]_{ij}=\eta_{ij}/\hat d_i[Q^​]ij​=ηij​/d^i​ be the maximum-likelihood estimate of the transition probabilities between nonterminal states. Then Q^\hat QQ^​ corresponds to an absorbing Markov chain:

lim⁡n→∞Q^n=0.\lim_{n\to\infty}\hat Q^n=0 .n→∞lim​Q^​n=0.

By Theorem A.1 this guarantees that the optimal predictions [(I−Q^)−1h^]i[(I-\hat Q)^{-1}\hat h]_i[(I−Q^​)−1h^]i​ are well defined.

Preamble
import Definitions.Def_SuttonTD_Convergence_TrainingSet
open Filter Topology
Formal statement
namespace SuttonTD.Convergence

/-- **`Q̂` is absorbing** (Sutton 1988, §4.2, p. 30, PDF p. 22): "Note that even though `Q̂` is an
estimated quantity, it still corresponds to some absorbing Markov chain. Thus,
`lim_{n→∞} Q̂ⁿ = 0`." For a training set in which every nonterminal state of `N` appears
(`N = N̂`), the maximum-likelihood matrix `[Q̂]_ij = η_ij / d̂_i` satisfies `Q̂ⁿ → 0`.

Formalization Note: the hypothesis that every state appears makes `N` the paper's `N̂` and keeps
the division by `d̂_i` away from `0`. -/
theorem ml_matrix_absorbing {N : Type*} [Fintype N] [DecidableEq N] {S : ℕ}
    (D : TrainingSet N S) (happ : ∀ i, 0 < D.visits i) :
    Tendsto (fun n : ℕ => D.Qhat ^ n) atTop (𝓝 0) := by sorry

end SuttonTD.Convergence
Source
Sutton (1988), Machine Learning 3:9–44, §4.2, p. 30 (PDF p. 22)
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

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