Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 1 (p. 287) — an optimal strategy exists if the series (1) converges uniformly in S

Proved
KarlinDP.Deterministic.exists_optimal_strategy

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

dynamic-programmingoptimal-strategyp2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let Ω\OmegaΩ be a Hausdorff topological space (the states) and DDD a nonempty compact Hausdorff space (the decisions), and give the strategy space S=D×D×⋯S = D \times D \times \cdotsS=D×D×⋯ the product topology. Let L:Ω×D→RL : \Omega \times D \to \mathbb{R}L:Ω×D→R be continuous and non-negative, let (δ,ω)↦Tδ ω(\delta, \omega) \mapsto T_\delta\,\omega(δ,ω)↦Tδ​ω be continuous, and let P:D→RP : D \to \mathbb{R}P:D→R be continuous and positive. For a strategy s=(δ1,δ2,… )s = (\delta_1, \delta_2, \dots)s=(δ1​,δ2​,…) put ω1=ω\omega_1 = \omegaω1​=ω, ωn=Tδn−1 ωn−1\omega_n = T_{\delta_{n-1}}\,\omega_{n-1}ωn​=Tδn−1​​ωn−1​, Pn(s)=∏i=1n−1P(δi)P_n(s) = \prod_{i=1}^{n-1} P(\delta_i)Pn​(s)=∏i=1n−1​P(δi​) and Φ(ω,s)=∑n≥1L(ωn,δn)Pn(s)\Phi(\omega, s) = \sum_{n \ge 1} L(\omega_n, \delta_n) P_n(s)Φ(ω,s)=∑n≥1​L(ωn​,δn​)Pn​(s).

Fix an initial state ω\omegaω and suppose that the partial sums

∑n=1kL(ωn,δn) Pn(s)(1)\sum_{n=1}^{k} L(\omega_n, \delta_n)\, P_n(s) \qquad (1)n=1∑k​L(ωn​,δn​)Pn​(s)(1)

converge to Φ(ω,s)\Phi(\omega, s)Φ(ω,s) uniformly in s∈Ss \in Ss∈S as k→∞k \to \inftyk→∞. Then there is an optimal strategy s∗s^*s∗:

Φ(ω,s∗)=max⁡s∈SΦ(ω,s).\Phi(\omega, s^*) = \max_{s \in S} \Phi(\omega, s).Φ(ω,s∗)=s∈Smax​Φ(ω,s).

This is the existence theorem of the paper; the functional equation (2) and the uniqueness theorem are built on the optimal strategies it provides.

Formalization Note Strategies are s : ℕ → D and Lean's index kkk is the paper's stage k+1k+1k+1. The paper's assumption (4) asks for continuity of Tδ ωT_\delta\,\omegaTδ​ω separately in ω\omegaω and in δ\deltaδ; the statement assumes joint continuity of (δ,ω)↦Tδ ω(\delta, \omega) \mapsto T_\delta\,\omega(δ,ω)↦Tδ​ω, which implies (4) and is needed for the paper's claim (p. 287) that each term L(ωn,δn)Pn(s)L(\omega_n, \delta_n) P_n(s)L(ωn​,δn​)Pn​(s) is continuous in sss. DDD is assumed nonempty (otherwise there is no strategy at all). A single return function LLL is used, as in display (1). "Maximum" is encoded as IsGreatest of the range of Φ(ω,⋅)\Phi(\omega, \cdot)Φ(ω,⋅), so the maximum is attained.

Preamble
import Mathlib
import Definitions.Def_KarlinDP_Deterministic_Model
Formal statement
namespace KarlinDP.Deterministic

/-- Theorem 1 (Karlin 1955, p. 287): an optimal strategy exists provided the series (1)
converges uniformly in `S` (here at the given initial state `ω`). -/
theorem exists_optimal_strategy {Ω D : Type*} [TopologicalSpace Ω] [T2Space Ω]
    [TopologicalSpace D] [CompactSpace D] [T2Space D] [Nonempty D]
    (L : Ω → D → ℝ) (T : D → Ω → Ω) (P : D → ℝ)
    (hL0 : ∀ ω δ, 0 ≤ L ω δ) (hL : Continuous (fun p : Ω × D => L p.1 p.2))
    (hT : Continuous (fun p : D × Ω => T p.1 p.2))
    (hP0 : ∀ δ, 0 < P δ) (hP : Continuous P)
    (ω : Ω)
    (hunif : TendstoUniformly (fun k s => partialYield L T P ω s k) (totalYield L T P ω) Filter.atTop) :
    ∃ s₀ : ℕ → D, IsGreatest (Set.range (totalYield L T P ω)) (totalYield L T P ω s₀) := by sorry

end KarlinDP.Deterministic
Source
Karlin, The Structure of Dynamic Programing Models, Naval Res. Logist. Quart. 2(4), 1955, p. 287, Theorem 1 (with the standing assumptions (1)–(4) of p. 286, the product form of P_n(s) and display (1) of p. 287)
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me