Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Corollary 3.1.4 — choosing fn−t(i)∈Bi(α,n−t)f_{n-t}(i) \in B_i(\alpha, n-t)fn−t​(i)∈Bi​(α,n−t) gives an optimal deterministic Markov policy

Proved
SennottDP.FiniteHorizon.markov_policy_optimal

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

dynamic-programmingfinite-horizonmarkov-policyp2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1

Let Δ\DeltaΔ be an MDC with countable state space, F≥0F \ge 0F≥0 a finite terminal cost, 0<α≤10 < \alpha \le 10<α≤1 and n≥1n \ge 1n≥1. Let f1,…,fnf_1, \dots, f_nf1​,…,fn​ be stationary policies with

fn−t(i)∈Bi(α,n−t)for 0≤t≤n−1 and all i∈S,f_{n-t}(i) \in B_i(\alpha, n-t) \qquad \text{for } 0 \le t \le n-1 \text{ and all } i \in S,fn−t​(i)∈Bi​(α,n−t)for 0≤t≤n−1 and all i∈S,

and let θ=(fn,fn−1,…,f1)\theta = (f_n, f_{n-1}, \dots, f_1)θ=(fn​,fn−1​,…,f1​) be the deterministic Markov policy that uses fn−tf_{n-t}fn−t​ at time ttt. Then θ\thetaθ is optimal for the nnn horizon.

Together with the optimality equation this shows that an optimal policy for the nnn horizon always exists and may be taken deterministic Markov, computed backward from Bi(α,1)B_i(\alpha,1)Bi​(α,1).

Formalization Note The sequence of stationary policies is indexed by N\mathbb NN; the policy used at time t≥nt \ge nt≥n (the stationary policy f0f_0f0​) plays no role in the nnn horizon cost.

Preamble
import Mathlib
import Definitions.Def_SennottDP_FiniteHorizon_MDC
import Definitions.Def_SennottDP_FiniteHorizon_Criterion

open scoped ENNReal NNReal Topology
open Filter
Formal statement
namespace SennottDP.FiniteHorizon

/-- Corollary 3.1.4 (Sennott, pp. 40–41). Let `n ≥ 1` and let `θ = (f_n, f_{n−1}, …, f_1)` be
the deterministic Markov policy that uses the stationary policy `f_{n−t}` at time `t`, where
`f_{n−t}(i) ∈ B_i(α, n − t)` for `0 ≤ t ≤ n − 1` and all `i`. Then `θ` is optimal for the
`n` horizon. (The stationary policy `f_0` used at times `t ≥ n` is irrelevant.) -/
theorem markov_policy_optimal {S Act : Type} [Countable S] (M : MDC S Act) (F : S → ℝ≥0)
    (α : ℝ≥0) (hα0 : 0 < α) (hα1 : α ≤ 1) (n : ℕ) (hn : 1 ≤ n) (f : ℕ → M.Stationary)
    (hf : ∀ t, t ≤ n - 1 → ∀ i, (f (n - t)).1 i ∈ M.minSet F α (n - t) i) :
    M.IsOptimal F α n (MDC.Policy.ofMarkov (fun t => f (n - t))) := by sorry

end SennottDP.FiniteHorizon
Source
Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems (Wiley, 1999), pp. 40–41, Corollary 3.1.4
Human review
  • Endorsed by Shuze Chen · Oct 2, 2026

    Confirmed by the moderator at approval.

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