Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§2.1, p. 6 — under Assumption 1 the solutions of (2.3) and (2.4) are exactly {V̄^π + b1} and {Q̄^π + b1}

Proved
AvgRewardPMD.SPMD.bellman_solution_sets

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

average-reward-mdpbellman-equationdifferential-value-functionp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1

Let M=(S,A,P,c′)\mathcal M=(\mathcal S,\mathcal A,\mathsf P,c')M=(S,A,P,c′) be a finite AMDP satisfying the mixing Assumption 1 and let π\piπ be a feasible policy, with average cost ρπ\rho^\piρπ, basic differential value function Vˉπ\bar V^\piVˉπ and basic differential Q-function Qˉπ\bar Q^\piQˉ​π. Then

  1. the solution set of the Bellman equation
V=c′π−ρπ1∣S∣+PπV(2.3)V=c'^\pi-\rho^\pi\mathbf 1_{|\mathcal S|}+P_\pi V\qquad(2.3)V=c′π−ρπ1∣S∣​+Pπ​V(2.3)

is exactly {Vˉπ+b1∣S∣:b∈R}\{\bar V^\pi+b\mathbf 1_{|\mathcal S|}: b\in\mathbb R\}{Vˉπ+b1∣S∣​:b∈R}; 2. the solution set of

Q=c′−ρπ1∣S∣×∣A∣+PπQ(2.4)Q=c'-\rho^\pi\mathbf 1_{|\mathcal S|\times|\mathcal A|}+P^\pi Q\qquad(2.4)Q=c′−ρπ1∣S∣×∣A∣​+PπQ(2.4)

is exactly {Qˉπ+b1∣S∣×∣A∣:b∈R}\{\bar Q^\pi+b\mathbf 1_{|\mathcal S|\times|\mathcal A|}: b\in\mathbb R\}{Qˉ​π+b1∣S∣×∣A∣​:b∈R}.

Each clause says both that Vˉπ\bar V^\piVˉπ (resp. Qˉπ\bar Q^\piQˉ​π) solves its equation and that every solution differs from it by a constant. With c′(s,a)=c(s,a)+hπ(s)c'(s,a)=c(s,a)+h^\pi(s)c′(s,a)=c(s,a)+hπ(s) these are the paper's equations V=cπ+hπ−ρπ1+PπVV=c^\pi+h^\pi-\rho^\pi\mathbf 1+P_\pi VV=cπ+hπ−ρπ1+Pπ​V and Q=c+h~π−ρπ1+PπQQ=c+\tilde h^\pi-\rho^\pi\mathbf 1+P^\pi QQ=c+h~π−ρπ1+PπQ, h~π(s,a)=hπ(s)\tilde h^\pi(s,a)=h^\pi(s)h~π(s,a)=hπ(s).

Formalization Note Vˉπ\bar V^\piVˉπ and Qˉπ\bar Q^\piQˉ​π are the series of expectations of c′(st,at)−ρπc'(s_t,a_t)-\rho^\pic′(st​,at​)−ρπ. In the equation at the state sss (resp. the pair (s,a)(s,a)(s,a)) the scalar ρπ\rho^\piρπ is written as avgCost at sss, which is the same number for every state under Assumption 1.

Differences from the source:

  • generalization: the costs c^π + h^π and c + h̃^π → any cost c′(s,a); reason: c′(s,a) = c(s,a) + h^π(s) is an instance, with c′^π = c^π + h^π
  • encoding: the scalar ρ^π → ρ^π(s) at the state of each equation; reason: ρ^π(s) does not depend on s under Assumption 1 (milestone 1)
  • reading: V̄^π(s) = E_π[Σ_t (c(s_t,a_t) + h^π(s_t) − ρ^π) | s_0 = s] (and Q̄^π likewise) → the series of the expectations Σ_t (E_π[c(s_t,a_t) + h^π(s_t) | s_0 = s] − ρ^π); reason: the pathwise series need not converge (an i.i.d. chain with non-constant cost), while the series of expectations converges absolutely under Assumption 1
Preamble
import Mathlib
import Definitions.Def_AvgRewardPMD_SPMD_Setting
Formal statement
namespace AvgRewardPMD.SPMD

open FoundationsML.ReinforcementLearning

theorem bellman_solution_sets {S A : Type*} [Fintype S] [Fintype A] [DecidableEq S]
    [DecidableEq A] (P : S → A → S → ℝ) (hP : IsTransitionKernel P) (hmix : IsMixing P)
    (π : S → A → ℝ) (hπ : IsPolicy π) (c : S → A → ℝ) :
    {V : S → ℝ | ∀ s, V s = InducedReward π c s - avgCost P π c s
        + ∑ s', InducedTransition π P s s' * V s'}
      = {V : S → ℝ | ∃ b : ℝ, V = fun s => diffV P π c s + b} ∧
    {Q : S × A → ℝ | ∀ x, Q x = c x.1 x.2 - avgCost P π c x.1
        + ∑ y, saTransition P π x y * Q y}
      = {Q : S × A → ℝ | ∃ b : ℝ, Q = fun x => diffQ P π c x + b} := by sorry

end AvgRewardPMD.SPMD
Source
Li, Wu, Lan, Stochastic first-order methods for average-reward Markov decision processes, arXiv:2205.05800v6, p. 6, §2.1, (2.3)–(2.4) and the sentence after them
Human review
  • Endorsed by Shuze Chen · Oct 24, 2026

    Confirmed by the moderator at approval.

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