Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 2, eq. (2) — Bellman equations Jμ=TμJμJ^\mu=T_\mu J^\muJμ=Tμ​Jμ (unique solution) and J∗=TJ∗J^*=TJ^*J∗=TJ∗

Proved
LookaheadAPI.LeastSquares.eq_2_bellman

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

bellman-equationp2o-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. For every deterministic policy μ\muμ, the value JμJ^\muJμ is the unique solution of the linear equation

Jμ=TμJμ,(2)J^\mu=T_\mu J^\mu, \tag{2}Jμ=Tμ​Jμ,(2)

that is, JμJ^\muJμ solves it and every J∈R∣S∣J\in\mathbb R^{|\mathcal S|}J∈R∣S∣ with J=TμJJ=T_\mu JJ=Tμ​J equals JμJ^\muJμ. Moreover the optimal reward-to-go solves the Bellman optimality equation

J∗=TJ∗.J^*=TJ^*.J∗=TJ∗.

These are the fixed-point characterisations used throughout the analysis of lookahead policy iteration.

Formalization Note JμJ^\muJμ is defined as the expected discounted series and J∗J^*J∗ as the maximum of JμJ^\muJμ over deterministic policies, so neither equation holds by definition.

Preamble
import Mathlib
import Definitions.Def_LookaheadAPI_LeastSquares_MDP
Formal statement
namespace LookaheadAPI.LeastSquares

/-- Section 2, eq. (2) and `J^* = TJ^*` (arXiv:2109.13419v7, p. 7): for every deterministic policy
`μ`, `J^μ` is the unique solution of `J = T_μ J`; and `J^*` solves `J^* = T J^*`. -/
theorem eq_2_bellman {S A : Type*} [Fintype S] [DecidableEq S] [Nonempty S] [Fintype A]
    [DecidableEq A] [Nonempty A] (M : MDP S A) :
    (∀ μ : S → A, valueOf M μ = policyOp M μ (valueOf M μ) ∧
      ∀ J : S → ℝ, J = policyOp M μ J → J = valueOf M μ) ∧
    optValue M = bellmanOp M (optValue M) := by sorry

end LookaheadAPI.LeastSquares
Source
arXiv:2109.13419v7, p. 7, Section 2, eq. (2) and the display J^* = TJ^*
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