Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§3, p. 21: a procedure minimizing the average total cost over C′ minimizes SR(i)S_R(i)SR​(i) for every iii

Proved
DermanSeqDecisions.LinProg.avg_minimizer_minimizes_each

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

markov-decision-processp2o-batch-pfp1ap2o-gran-per-chapterp2o-plan-paperp2o-v1total-cost

Under the hypotheses of Problem 2 and Assumption B (stochastic chance laws, LLL absorbing under every decision, wLk=0w_{Lk} = 0wLk​=0, wik>0w_{ik} > 0wik​>0 for i≠Li \ne Li=L, and LLL reachable from every state under every procedure of C′C'C′):

  1. the total cost SR(i)S_R(i)SR​(i) is finite for every R∈C′R \in C'R∈C′ and every state iii;
  2. if D∗∈C′D^* \in C'D∗∈C′ minimizes ∑i=0LSR(i)\sum_{i=0}^{L} S_R(i)∑i=0L​SR​(i) over C′C'C′, then
SD∗(i)≤SR(i)for every R∈C′ and every i=0,…,L.S_{D^*}(i) \le S_R(i) \qquad \text{for every } R \in C' \text{ and every } i = 0, \dots, L.SD∗​(i)≤SR​(i)for every R∈C′ and every i=0,…,L.

Derman calls this "clear": it lets the single objective (7) stand for the L+1L+1L+1 objectives SR(0),…,SR(L)S_R(0), \dots, S_R(L)SR​(0),…,SR​(L) of Problem 2.

Formalization Note. Minimizing 1L+1∑iSR(i)\frac{1}{L+1}\sum_i S_R(i)L+11​∑i​SR​(i), the left side of (7), is the same as minimizing ∑iSR(i)\sum_i S_R(i)∑i​SR​(i). Assumption B is encoded as reachability of LLL, as in (7).

Preamble
import Mathlib
import Definitions.Def_DermanSeqDecisions_LinProg_Model

open Matrix

open scoped ENNReal
Formal statement
namespace DermanSeqDecisions.LinProg

/-- §3, p. 21 (Derman, *On Sequential Decisions and Markov Chains*, Management Science 9(1):16–24 (1962), DOI 10.1287/mnsc.9.1.16, §3, proof of Theorem 2, the sentence after (7), unnumbered).

Problem 2 under Assumption B (stochastic chance laws, `L` absorbing under every decision,
`w_{Lk} = 0`, `w_{ik} > 0` for `i ≠ L`, `L` reachable from every state under every procedure of
`C′`). Then every `S_R(i)`, `R ∈ C′`, is finite, and a procedure `D* ∈ C′` that minimizes
`(1/(L+1)) ∑_i S_R(i)` over `C′` (the left side of (7), equal to its right side) minimizes `S_R(i)`
over `C′` for every `i = 0, ⋯, L`.

**Formalization Note.** Minimizing `(1/(L+1)) ∑_i S_R(i)` and minimizing `∑_i S_R(i)` are the same;
the latter is stated. Assumption B is encoded as reachability, as in `total_cost_eq_cycle`. -/
theorem avg_minimizer_minimizes_each {S Act : Type*} [Fintype S] [DecidableEq S] [Fintype Act]
    (q : S → Act → S → ℝ) (w : S → Act → ℝ) (L : S) (hq : IsTransitionLaw q)
    (hL : ∀ a, q L a L = 1) (hwL : ∀ a, w L a = 0) (hw : ∀ i a, i ≠ L → 0 < w i a)
    (hB : ∀ D : S → Act → ℝ, IsStationaryRandomized D → ∀ i, ∃ t : ℕ, 0 < (chainMatrix q D ^ t) i L) :
    (∀ D : S → Act → ℝ, IsStationaryRandomized D → ∀ i, totalCost q w D i < ⊤) ∧
    ∀ Dstar : S → Act → ℝ, IsStationaryRandomized Dstar →
      (∀ D : S → Act → ℝ, IsStationaryRandomized D →
        ∑ i, totalCost q w Dstar i ≤ ∑ i, totalCost q w D i) →
      ∀ D : S → Act → ℝ, IsStationaryRandomized D → ∀ i, totalCost q w Dstar i ≤ totalCost q w D i := by sorry

end DermanSeqDecisions.LinProg
Source
Derman, On Sequential Decisions and Markov Chains, Management Science 9(1):16–24 (1962), DOI 10.1287/mnsc.9.1.16, p. 21, §3, proof of Theorem 2, sentence after (7)
Human review
  • Endorsed by Shuze Chen · Oct 4, 2026

    Confirmed by the moderator at approval.

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