Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 4.4 — compact sublevel sets give DP-attaining policies whose accumulation points are optimal

Proved
BertsekasShreve.Contraction.compactness_stationary_optimal

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

compactnesscontractiondynamic-programmingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1stationary-policy

Let Assumption C hold and let the control space CCC be a Hausdorff topological space. Assume that for some Jˉ∈Bˉ\bar J\in\bar BJˉ∈Bˉ and some positive integer kˉ\bar kkˉ the sets

Uk(x,λ)={u∈U(x)∣H[x,u,Tk(Jˉ)]≤λ}U_k(x,\lambda)=\{u\in U(x)\mid H[x,u,T^k(\bar J)]\le\lambda\}Uk​(x,λ)={u∈U(x)∣H[x,u,Tk(Jˉ)]≤λ}

are compact for all x∈Sx\in Sx∈S, λ∈R\lambda\in\mathbb Rλ∈R and k≥kˉk\ge\bar kk≥kˉ. Then:

  1. there exists a policy π∗=(μ0∗,μ1∗,… )∈Π\pi^*=(\mu_0^*,\mu_1^*,\dots)\in\Piπ∗=(μ0∗​,μ1∗​,…)∈Π attaining the infimum in the DP algorithm from Jˉ\bar JJˉ at all xxx and k≥kˉk\ge\bar kk≥kˉ, i.e.
(Tμk∗Tk)(Jˉ)=Tk+1(Jˉ)∀k≥kˉ;(6)(T_{\mu_k^*}T^k)(\bar J)=T^{k+1}(\bar J)\qquad\forall k\ge\bar k;\qquad(6)(Tμk∗​​Tk)(Jˉ)=Tk+1(Jˉ)∀k≥kˉ;(6)
  1. there exists a stationary optimal policy;
  2. for every policy π∗\pi^*π∗ satisfying (6), the sequence {μk∗(x)}\{\mu_k^*(x)\}{μk∗​(x)} has at least one accumulation point for each x∈Sx\in Sx∈S;
  3. for every policy π∗\pi^*π∗ satisfying (6), if μ∗:S→C\mu^*:S\to Cμ∗:S→C is such that μ∗(x)\mu^*(x)μ∗(x) is an accumulation point of {μk∗(x)}\{\mu_k^*(x)\}{μk∗​(x)} for each xxx, then μ∗∈M\mu^*\in Mμ∗∈M and the stationary policy (μ∗,μ∗,… )(\mu^*,\mu^*,\dots)(μ∗,μ∗,…) is optimal.

The proposition shows that stationary optimal policies can be obtained in the limit from the controls the DP algorithm selects at finite horizons.

Formalization Note The book prints JJJ for the fixed initial function in (5)–(6); it is the Jˉ∈Bˉ\bar J\in\bar BJˉ∈Bˉ of the hypothesis. An accumulation point of {μk∗(x)}\{\mu_k^*(x)\}{μk∗​(x)} is a cluster point of the sequence (MapClusterPt along atTop). Part 4 also asserts μ∗(x)∈U(x)\mu^*(x)\in U(x)μ∗(x)∈U(x), which the book presupposes when it calls (μ∗,μ∗,… )(\mu^*,\mu^*,\dots)(μ∗,μ∗,…) a stationary policy.

Preamble
import Mathlib
import Definitions.Def_BertsekasShreve_Contraction_Model
import Definitions.Def_BertsekasShreve_Contraction_AssumptionC
Formal statement
namespace BertsekasShreve.Contraction

open Filter Topology

/-- Proposition 4.4, p. 57. Assume Assumption C, that `C` is a Hausdorff space, and that for some
`J̄ ∈ B̄` and positive integer `k̄` the sets `U_k(x, λ) = {u ∈ U(x) | H[x, u, T^k(J̄)] ≤ λ}` are
compact for all `x ∈ S`, `λ ∈ ℝ`, `k ≥ k̄`. Then
(a) some policy `π* = (μ₀*, μ₁*, …)` satisfies `(T_{μ_k*} T^k)(J̄) = T^{k+1}(J̄)` for all `k ≥ k̄` (6);
(b) there is a stationary optimal policy;
(c) for every `π*` satisfying (6), `{μ_k*(x)}` has an accumulation point for each `x`;
(d) for every `π*` satisfying (6), if `μ*(x)` is an accumulation point of `{μ_k*(x)}` for each
`x`, then `μ* ∈ M` and the stationary policy `(μ*, μ*, …)` is optimal. -/
theorem compactness_stationary_optimal {S C : Type*} [TopologicalSpace C] [T2Space C]
    (P : Model S C) (Bbar : Set (BFun S)) (m : ℕ) (ρ α : ℝ) (hC : AssumptionC P Bbar m ρ α)
    (Jb : BFun S) (hJb : Jb ∈ Bbar) (kb : ℕ) (hkb : 0 < kb)
    (hcompact : ∀ (x : S) (lam : ℝ), ∀ k ≥ kb,
      IsCompact {u : C | u ∈ P.U x ∧ P.H x u (P.T^[k] (toF Jb)) ≤ (lam : EReal)}) :
    (∃ πs : P.Policy, ∀ k ≥ kb, P.Tmu (πs k) (P.T^[k] (toF Jb)) = P.T^[k + 1] (toF Jb)) ∧
    (∃ μs : P.Selector, P.Jmu μs = P.Jstar) ∧
    (∀ πs : P.Policy, (∀ k ≥ kb, P.Tmu (πs k) (P.T^[k] (toF Jb)) = P.T^[k + 1] (toF Jb)) →
      ∀ x : S, ∃ u : C, MapClusterPt u atTop (fun k : ℕ => (πs k).1 x)) ∧
    (∀ πs : P.Policy, (∀ k ≥ kb, P.Tmu (πs k) (P.T^[k] (toF Jb)) = P.T^[k + 1] (toF Jb)) →
      ∀ μs : S → C, (∀ x : S, MapClusterPt (μs x) atTop (fun k : ℕ => (πs k).1 x)) →
        ∃ hμs : ∀ x, μs x ∈ P.U x, P.Jmu ⟨μs, hμs⟩ = P.Jstar) := by sorry

end BertsekasShreve.Contraction
Source
Bertsekas & Shreve, Stochastic Optimal Control: The Discrete-Time Case, Athena Scientific 1996, p. 57, Proposition 4.4, Eqs. (5)–(6) of Chapter 4
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