Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4(d) — G(s, f) empty for all s and [g(s) ∈ E(s, f) ∀ s ⇒ Q*(g)Q*(f) = Q*(g)] ⇒ f nearly optimal

Proved
BlackwellDiscreteDP.NearOne.theorem_4d

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

markov-decision-processnearly-optimalp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

In the finite decision model, let f∈Ff\in Ff∈F satisfy

  1. G(s,f)G(s,f)G(s,f) is empty for each state sss, and
  2. for every g∈Fg\in Fg∈F, if g(s)∈E(s,f)g(s)\in E(s,f)g(s)∈E(s,f) for all sss, then Q∗(g)Q∗(f)=Q∗(g)Q^*(g)Q^*(f)=Q^*(g)Q∗(g)Q∗(f)=Q∗(g).

Then f(∞)f^{(\infty)}f(∞) is nearly optimal: U(β)−Vβ(f(∞))→0U(\beta)-V_\beta(f^{(\infty)})\to0U(β)−Vβ​(f(∞))→0 as β→1\beta\to1β→1, where U(β)U(\beta)U(β) is the return of a β-optimal policy.

This identifies a nearly optimal stationary policy at the point where the β=1\beta=1β=1 improvement routine stops, under a condition on limit matrices that holds, for instance, when there is a single absorbing state reached under every policy.

Formalization Note Near optimality is stated without UUU: for every ε>0\varepsilon>0ε>0 there is β0<1\beta_0<1β0​<1 such that for all β∈(β0,1)\beta\in(\beta_0,1)β∈(β0​,1), every policy π\piπ and every state sss, Vβ(π)s≤Vβ(f(∞))s+εV_\beta(\pi)_s\le V_\beta(f^{(\infty)})_s+\varepsilonVβ​(π)s​≤Vβ​(f(∞))s​+ε.

Preamble
import Mathlib
import Definitions.Def_BlackwellDiscreteDP_NearOne_LimitMatrix
import Definitions.Def_BlackwellDiscreteDP_NearOne_Model
import Definitions.Def_BlackwellDiscreteDP_NearOne_GainBias
open Filter Topology Matrix
Formal statement
namespace BlackwellDiscreteDP.NearOne

/-- **Theorem 4(d).** If for each `s`, `G(s, f)` is empty, and `g(s) ∈ E(s, f)` for all `s`
implies `Q*(g)Q*(f) = Q*(g)`, then `f` is nearly optimal.

Blackwell, Discrete Dynamic Programming, Ann. Math. Statist. 33(2):719–726 (1962),
DOI 10.1214/aoms/1177704593, p. 723, Theorem 4(d).

**Formalization Note.** The second hypothesis ranges over all decision rules `g ∈ F`. "Nearly
optimal" is the §4 notion `IsNearlyOptimal` (`U(β) − V_β → 0`, encoded without `U`, against all
policies), applied to `f^(∞)`. -/
theorem theorem_4d {St Act : Type*} [Fintype St] [DecidableEq St] [Nonempty St]
    [Fintype Act] [Nonempty Act] (M : Model St Act)
    (f : St → Act) (hG : ∀ s, M.gainBiasImprovementSet f s = ∅)
    (hE : ∀ g : St → Act, (∀ s, g s ∈ M.gainBiasEqualSet f s) →
      M.Qstar g * M.Qstar f = M.Qstar g) :
    M.IsNearlyOptimal (Policy.stationary f) := by sorry

end BlackwellDiscreteDP.NearOne
Source
Blackwell, Discrete Dynamic Programming, Ann. Math. Statist. 33(2):719–726 (1962), DOI 10.1214/aoms/1177704593, p. 723, Theorem 4(d)
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

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