Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2 (pinned-down reading following its proof, pp. 20–23): an optimal solution of the frequency LP decodes to an optimal stationary procedure

Proved
DermanSeqDecisions.LinProg.theorem_2

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

average-costlinear-programmingmarkov-decision-processp2o-batch-pfp1ap2o-gran-per-chapterp2o-plan-paperp2o-v1total-cost

This is the pinned-down reading of Theorem 2, following its proof (pp. 20–23). The printed statement reads: "If Assumption A (B) holds, then problem 1 (2) can be formulated as a linear programming problem."

Let qij(k)q_{ij}(k)qij​(k) be stochastic chance laws on the states 0,…,L0, \dots, L0,…,L and the decisions d1,…,dKd_1, \dots, d_Kd1​,…,dK​ (at least one of each).

Problem 1. Suppose wik>0w_{ik} > 0wik​>0 and Assumption A holds (for every procedure of C′C'C′ the states form one class). Then the linear program

minimize ∑j,kxjkwjksubject to (10)\text{minimize } \sum_{j,k} x_{jk} w_{jk} \quad \text{subject to (10)}minimize j,k∑​xjk​wjk​subject to (10)

has an optimal solution, and for every optimal solution x∗x^*x∗: ∑kxjk∗>0\sum_k x^*_{jk} > 0∑k​xjk∗​>0 for every jjj, the procedure Djk∗=xjk∗/∑kxjk∗D^*_{jk} = x^*_{jk} / \sum_k x^*_{jk}Djk∗​=xjk∗​/∑k​xjk∗​ belongs to C′C'C′, and

QD∗(i)≤QR(i)for every R∈C′ and every i.Q_{D^*}(i) \le Q_R(i) \qquad \text{for every } R \in C' \text{ and every } i.QD∗​(i)≤QR​(i)for every R∈C′ and every i.

Problem 2. Suppose LLL is absorbing under every decision, wLk=0w_{Lk} = 0wLk​=0, wik>0w_{ik} > 0wik​>0 for i≠Li \ne Li=L, and Assumption B holds. Adjoin the state −1-1−1 as on p. 21 and apply the Lemma to the ratio (9) subject to the augmented constraints (10). Then the linear program

minimize ∑j,kwjkzjksubject to (12)\text{minimize } \sum_{j,k} w_{jk} z_{jk} \quad \text{subject to (12)}minimize j,k∑​wjk​zjk​subject to (12)

has an optimal solution, and for every optimal (z∗,zn+1∗)(z^*, z^*_{n+1})(z∗,zn+1∗​): zn+1∗>0z^*_{n+1} > 0zn+1∗​>0, and with x∗=z∗/zn+1∗x^* = z^*/z^*_{n+1}x∗=z∗/zn+1∗​ the procedure Djk∗=xjk∗/∑kxjk∗D^*_{jk} = x^*_{jk} / \sum_k x^*_{jk}Djk∗​=xjk∗​/∑k​xjk∗​ (j=0,…,Lj = 0, \dots, Lj=0,…,L) belongs to C′C'C′ and

SD∗(i)≤SR(i)for every R∈C′ and every i.S_{D^*}(i) \le S_R(i) \qquad \text{for every } R \in C' \text{ and every } i.SD∗​(i)≤SR​(i)for every R∈C′ and every i.

In both problems, an optimal stationary procedure is obtained by solving one linear program and normalizing its solution row by row.

Formalization Note. Optimality is over C′C'C′, the class Theorem 2 concerns; optimality over all procedures is Theorem 1. Assumption A is irreducibility of every chain matrix of C′C'C′; Assumption B is reachability of LLL, equivalent to absorption with probability 111 for a finite chain with LLL absorbing. The program (12) is the Lemma's, with the coefficient matrix and right-hand side of the augmented (10), d(−1,k)=1d_{(-1,k)} = 1d(−1,k)​=1 (else 000) and c(j,k)=wjkc_{(j,k)} = w_{jk}c(j,k)​=wjk​ with w−1,k=0w_{-1,k} = 0w−1,k​=0. The two problems carry their own cost hypotheses, which conflict at LLL, so they are separate implications.

Preamble
import Mathlib
import Definitions.Def_DermanSeqDecisions_LinProg_LinearFractional
import Definitions.Def_DermanSeqDecisions_LinProg_Model

open Matrix
Formal statement
namespace DermanSeqDecisions.LinProg

/-- Theorem 2, p. 20 (Derman, *On Sequential Decisions and Markov Chains*, Management Science 9(1):16–24 (1962), DOI 10.1287/mnsc.9.1.16, §3, Theorem 2), pinned-down reading following its proof (pp. 20–23).
The printed statement is "If Assumption A (B) holds, then problem 1 (2) can be formulated as a linear
programming problem."

Let the chance laws `q_{ij}(k)` on the states `0, ⋯, L` and decisions `d_1, ⋯, d_K` be stochastic.

**Problem 1.** If `w_{ik} > 0` and Assumption A holds (for every procedure of `C′` the states form
one class), then the linear program "minimize (8), `∑_{j,k} x_{jk} w_{jk}`, subject to (10)" has an
optimal solution, and for every optimal solution `x*`: `∑_k x*_{jk} > 0` for all `j`, the
procedure `D*_{jk} = x*_{jk} / ∑_k x*_{jk}` belongs to `C′`, and `Q_{D*}(i) ≤ Q_D(i)` for every
`D ∈ C′` and every `i`.

**Problem 2.** If `L` is absorbing under every decision, `w_{Lk} = 0`, `w_{ik} > 0` for `i ≠ L`,
and Assumption B holds, adjoin the state `−1` as on p. 21 and apply the Lemma to (9) subject to the
augmented (10). The linear program "minimize `h(z) = ∑_{j,k} w_{jk} z_{jk}` subject to (12)" has an
optimal solution, and for every optimal `(z*, z*_{n+1})`: `z*_{n+1} > 0`, and with
`x* = z*/z*_{n+1}` the procedure `D*_{jk} = x*_{jk} / ∑_k x*_{jk}` (`j = 0, ⋯, L`) belongs to
`C′` and satisfies `S_{D*}(i) ≤ S_D(i)` for every `D ∈ C′` and every `i`.

**Formalization Note.** Optimality is over `C′` (the class Theorem 2 concerns; optimality over all of
`C` is Theorem 1). Assumption A is irreducibility of every chain matrix of `C′`; Assumption B is
reachability of `L` (equivalent to absorption with probability 1 for a finite chain with `L`
absorbing). The program (12) is written with the Lemma's `IsFeasible12` for the data of the
augmented (10): coefficient matrix `freqRowMatrix (augLaw q L)`, right-hand side `freqRhs`,
denominator `cycleDenom` (`d_{(−1,k)} = 1`, else `0`) and costs `cycleCost w`
(`w_{−1,k} = 0`). The two problems carry their own cost hypotheses, which conflict at `L`. -/
theorem theorem_2 {S Act : Type*} [Fintype S] [DecidableEq S] [Nonempty S] [Fintype Act]
    [Nonempty Act] (q : S → Act → S → ℝ) (w : S → Act → ℝ) (hq : IsTransitionLaw q) :
    ((∀ i a, 0 < w i a) →
      (∀ D : S → Act → ℝ, IsStationaryRandomized D → (chainMatrix q D).IsIrreducible) →
      (∃ x : S → Act → ℝ, IsFreqSolution q x ∧
        ∀ x' : S → Act → ℝ, IsFreqSolution q x' → freqObjective w x ≤ freqObjective w x') ∧
      ∀ x : S → Act → ℝ, IsFreqSolution q x →
        (∀ x' : S → Act → ℝ, IsFreqSolution q x' → freqObjective w x ≤ freqObjective w x') →
        (∀ j, 0 < ∑ k, x j k) ∧ IsStationaryRandomized (decode x) ∧
        ∀ D : S → Act → ℝ, IsStationaryRandomized D →
          ∀ i, avgCost q w (decode x) i ≤ avgCost q w D i) ∧
    (∀ L : S, (∀ a, q L a L = 1) → (∀ a, w L a = 0) → (∀ i a, i ≠ L → 0 < w i a) →
      (∀ D : S → Act → ℝ, IsStationaryRandomized D →
        ∀ i, ∃ t : ℕ, 0 < (chainMatrix q D ^ t) i L) →
      (∃ (z : Option S × Act → ℝ) (zlast : ℝ),
        IsFeasible12 (freqRowMatrix (augLaw q L)) freqRhs cycleDenom z zlast ∧
        ∀ (z' : Option S × Act → ℝ) (zlast' : ℝ),
          IsFeasible12 (freqRowMatrix (augLaw q L)) freqRhs cycleDenom z' zlast' →
          linObj (cycleCost w) z ≤ linObj (cycleCost w) z') ∧
      ∀ (z : Option S × Act → ℝ) (zlast : ℝ),
        IsFeasible12 (freqRowMatrix (augLaw q L)) freqRhs cycleDenom z zlast →
        (∀ (z' : Option S × Act → ℝ) (zlast' : ℝ),
          IsFeasible12 (freqRowMatrix (augLaw q L)) freqRhs cycleDenom z' zlast' →
          linObj (cycleCost w) z ≤ linObj (cycleCost w) z') →
        0 < zlast ∧ IsStationaryRandomized (decodeCycle z zlast) ∧
        ∀ D : S → Act → ℝ, IsStationaryRandomized D →
          ∀ i, totalCost q w (decodeCycle z zlast) 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. 20, §3, Theorem 2 (pinned-down reading following its proof, pp. 20–23)
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