Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Functional equation of the discounted problem: Vi=min⁡Di∑kDik(wik+α∑jqij(k)Vj)V_i = \min_{D_i} \sum_k D_{ik}(w_{ik} + \alpha \sum_j q_{ij}(k) V_j)Vi​=minDi​​∑k​Dik​(wik​+α∑j​qij​(k)Vj​)

Proved
DermanSeqDecisions.Stationary.functional_equation

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

discounted-costfunctional-equationmarkov-decision-processp2o-batch-pfp1ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let the states i,ji, ji,j range over a finite set (Derman's 0,…,L0, \dots, L0,…,L) and the decisions kkk over a finite set (Derman's d1,…,dKd_1, \dots, d_Kd1​,…,dK​), every decision being available in every state. Let qij(k)≥0q_{ij}(k) \ge 0qij​(k)≥0 with ∑jqij(k)=1\sum_j q_{ij}(k) = 1∑j​qij​(k)=1 be the transition probabilities and wik≥0w_{ik} \ge 0wik​≥0 the costs. For a procedure RRR (history-dependent and randomized, Derman's class CCC) and a discount factor 0<α<10 < \alpha < 10<α<1 write

VR(i,α)=∑t=0∞αtWt,V_R(i, \alpha) = \sum_{t=0}^{\infty} \alpha^t W_t,VR​(i,α)=t=0∑∞​αtWt​,

where WtW_tWt​ is the expected cost at time ttt when X0=iX_0 = iX0​=i, and let Vi=min⁡R∈CVR(i,α)V_i = \min_{R \in C} V_R(i, \alpha)Vi​=minR∈C​VR​(i,α) be the optimal discounted cost.

Then for every state iii,

Vi=min⁡Di{∑kDik(wik+α∑jqij(k)Vj)},V_i = \min_{D_i} \Big\{ \sum_{k} D_{ik} \Big( w_{ik} + \alpha \sum_{j} q_{ij}(k) V_j \Big) \Big\},Vi​=Di​min​{k∑​Dik​(wik​+αj∑​qij​(k)Vj​)},

where the minimum runs over all randomizations Di=(Di1,…,DiK)D_i = (D_{i1}, \dots, D_{iK})Di​=(Di1​,…,DiK​) with Dik≥0D_{ik} \ge 0Dik​≥0 and ∑kDik=1\sum_k D_{ik} = 1∑k​Dik​=1, and is attained.

This is the functional equation from which Derman reads off that the discount-optimal procedure can be taken stationary and deterministic: the right-hand side is linear in DiD_iDi​, so a vertex of the simplex attains it.

Formalization Note ViV_iVi​ is the infimum discValue M α i of discCost θ α i over all policies, in [0,∞][0, \infty][0,∞]; the randomization is a function to [0,∞][0, \infty][0,∞] summing to 111. "Minimum attained" is stated as IsLeast. The costs are only assumed nonnegative, which covers both Problem 1 (wik>0w_{ik} > 0wik​>0) and Problem 2 (wLk=0w_{Lk} = 0wLk​=0), for which the proof uses the equation alike.

Preamble
import Mathlib
import Definitions.Def_SennottDP_AvgFinite_Model
import Definitions.Def_SennottDP_AvgFinite_Criteria

open scoped ENNReal NNReal
open SennottDP.AvgFinite
Formal statement
namespace DermanSeqDecisions.Stationary

/-- The functional equation of the discounted problem (Derman, *On Sequential Decisions and Markov
Chains*, Management Science 9(1):16–24 (1962), DOI 10.1287/mnsc.9.1.16, §2, proof of Theorem 1,
p. 19, unnumbered display). States `S` (Derman's `0, …, L`) and decisions `Act` (Derman's
`d_1, …, d_K`) are finite, every decision is available in every state, `M.P i k j = q_ij(k)` and
`M.C i k = w_ik ≥ 0`. For `0 < α < 1` let `V_i = min_{R ∈ C} V_R(i, α)` be the optimal discounted
cost over all history-dependent randomized procedures. Then `V_i` is the minimum, over all
randomizations `D_i = (D_i1, …, D_iK)` (`D_ik ≥ 0`, `∑_k D_ik = 1`), of
`∑_k D_ik (w_ik + α ∑_j q_ij(k) V_j)`; in particular the minimum is attained.

**Formalization Note.** `V_i` is `discValue M α i`, the infimum of `discCost θ α i` over all
`θ : Policy M` (Derman's class `C`), valued in `[0, ∞]`. The randomization `D_i` is a function
`Act → [0, ∞]` summing to `1` (so each `D_ik ∈ [0, 1]`). "min" is `IsLeast`: the value belongs to
the set of attained right-hand sides and is below each of them. The costs are only assumed
nonnegative: the proof of Theorem 1 uses this equation for Problem 1 (`w_ik > 0`) and for
Problem 2 (`w_Lk = 0`) alike. -/
theorem functional_equation {S : Type*} {Act : Type*} [Fintype S] [Nonempty S]
    [Fintype Act] [Nonempty Act]
    (M : MDC S Act) (hA : ∀ i, M.A i = Finset.univ) (α : ℝ) (hα : α ∈ Set.Ioo (0 : ℝ) 1)
    (i : S) :
    IsLeast
      {x : ℝ≥0∞ | ∃ D : Act → ℝ≥0∞, ∑ k, D k = 1 ∧
        x = ∑ k, D k * ((M.C i k : ℝ≥0∞) + ENNReal.ofReal α * ∑ j, M.P i k j * discValue M α j)}
      (discValue M α i) := by sorry

end DermanSeqDecisions.Stationary
Source
Derman, On Sequential Decisions and Markov Chains, Management Science 9(1):16–24 (1962), DOI 10.1287/mnsc.9.1.16, p. 19, §2, proof of Theorem 1 (unnumbered display)
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