Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2 — if (f, π) > π, then f^(∞) > π

Proved
BlackwellDiscreteDP.Stationary.theorem_2

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

dynamic-programmingmarkov-decision-processp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1policy-improvement

Fix 0≤β<10\le\beta<10≤β<1. For vectors, w1>w2w_1>w_2w1​>w2​ means w1≥w2w_1\ge w_2w1​≥w2​ coordinatewise and w1≠w2w_1\ne w_2w1​=w2​. Let fff be a decision rule and π\piπ a policy. If

Vβ(f,π)>Vβ(π),V_\beta(f,\pi)>V_\beta(\pi),Vβ​(f,π)>Vβ​(π),

then

Vβ(f(∞))>Vβ(π).V_\beta(f^{(\infty)})>V_\beta(\pi).Vβ​(f(∞))>Vβ​(π).

If using fff for one day before π\piπ is a strict improvement, then using fff forever is a strict improvement. It is the step of the policy improvement theorem (Theorem 3) that turns a one-step comparison into a comparison of stationary policies.

Preamble
import Mathlib
import Definitions.Def_BlackwellDiscreteDP_Stationary_Model
Formal statement
namespace BlackwellDiscreteDP.Stationary

/-- Theorem 2, p. 720 (Blackwell, *Discrete Dynamic Programming*, Ann. Math. Statist. 33(2):719–726 (1962),
DOI 10.1214/aoms/1177704593):
"If (f, π) > π, then f^(∞) > π."

Both `>` are Blackwell's strict vector order (p. 720): `w₁ > w₂` iff `w₁ ≧ w₂` coordinatewise
and `w₁ ≠ w₂` (not coordinatewise strict). The discount factor is fixed, `0 ≤ β < 1`. -/
theorem theorem_2 {St Act : Type} [Fintype St] [DecidableEq St] [Nonempty St] [Fintype Act] [Nonempty Act]
    (M : Model St Act)
    (β : ℝ) (hβ0 : 0 ≤ β) (hβ1 : β < 1) (f : St → Act) (π : Policy St Act)
    (h : M.V β π ≤ M.V β (Policy.cons f π) ∧ M.V β (Policy.cons f π) ≠ M.V β π) :
    M.V β π ≤ M.V β (stationary f) ∧ M.V β (stationary f) ≠ M.V β π := by sorry

end BlackwellDiscreteDP.Stationary
Source
Blackwell, Discrete Dynamic Programming, Ann. Math. Statist. 33(2):719–726 (1962), DOI 10.1214/aoms/1177704593, p. 720, Theorem 2
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