Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Corollary 3.3.1 — a uniformly N-stage optimal policy exists iff the DP infima are attained; then J*_N = T^N(J_0)

Proved
BertsekasShreve.FiniteHorizon.exists_uniformly_optimal_iff_attained

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

dynamic-programmingfinite-horizonoptimal-policyp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1

Let (S,C,U,H)(S,C,U,H)(S,C,U,H) be a model satisfying the Monotonicity Assumption, J0∈FJ_0\in FJ0​∈F with J0(x)>−∞J_0(x)>-\inftyJ0​(x)>−∞ for all xxx, and N≥1N\ge1N≥1.

  1. There exists a uniformly NNN-stage optimal policy if and only if the infimum in
Tk+1(J0)(x)=inf⁡u∈U(x)H[x,u,Tk(J0)]T^{k+1}(J_0)(x)=\inf_{u\in U(x)}H[x,u,T^k(J_0)]Tk+1(J0​)(x)=u∈U(x)inf​H[x,u,Tk(J0​)]

is attained for each x∈Sx\in Sx∈S and k=0,1,…,N−1k=0,1,\dots,N-1k=0,1,…,N−1, i.e. there is u∈U(x)u\in U(x)u∈U(x) with H[x,u,Tk(J0)]=Tk+1(J0)(x)H[x,u,T^k(J_0)]=T^{k+1}(J_0)(x)H[x,u,Tk(J0​)]=Tk+1(J0​)(x). 2. If there exists a uniformly NNN-stage optimal policy, then JN∗=TN(J0)J^*_N=T^N(J_0)JN∗​=TN(J0​).

Attainment of the minimum in the DP recursion is therefore exactly what is needed to build a uniformly optimal policy, and it already forces the DP algorithm to give the optimal cost.

Preamble
import Mathlib
import Definitions.Def_BertsekasShreve_FiniteHorizon_Model
import Definitions.Def_BertsekasShreve_FiniteHorizon_Problem
Formal statement
namespace BertsekasShreve.FiniteHorizon

open Model

/-- Corollary 3.3.1 (Bertsekas & Shreve 1996, p. 45).
(a) A uniformly `N`-stage optimal policy exists if and only if the infimum in
`T^{k+1}(J₀)(x) = inf_{u ∈ U(x)} H[x, u, T^k(J₀)]` (eq. (15) of Chapter 3) is attained for each
`x ∈ S` and `k = 0, 1, …, N − 1`.
(b) If a uniformly `N`-stage optimal policy exists, then `J*_N = T^N(J₀)`. -/
theorem exists_uniformly_optimal_iff_attained {S C : Type*} (m : Model S C) (J₀ : S → EReal)
    (hJ₀ : ∀ x, J₀ x ≠ ⊥) (N : ℕ) (hN : 1 ≤ N) :
    ((∃ π : m.Policy, m.IsUniformlyNStageOptimal J₀ N π) ↔
      ∀ x, ∀ k, k < N → ∃ u ∈ m.U x, m.H x u (m.T^[k] J₀) = m.T^[k + 1] J₀ x) ∧
    ((∃ π : m.Policy, m.IsUniformlyNStageOptimal J₀ N π) →
      m.optCostN J₀ N = m.T^[N] J₀) := by sorry

end BertsekasShreve.FiniteHorizon
Source
Bertsekas & Shreve, Stochastic Optimal Control: The Discrete-Time Case, Athena Scientific 1996, p. 45, Corollary 3.3.1, eq. (15) of Chapter 3
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