Discrete Dynamic Programming 1: Every Finite Markov Decision Problem Has a Stationary Policy That Is Optimal for All Discount Factors Sufficiently Near 1Research Paper
Motivation
A Markov decision problem models a system that is observed once per period and controlled by choosing an action: the action earns an immediate income and determines the probabilities of the next state. Inventory control, machine replacement, queue admission and many reinforcement-learning benchmarks are of this form. With future income discounted by a factor , Howard (Dynamic Programming and Markov Processes, 1960) showed how to compute an optimal policy by policy improvement. The undiscounted problem () is harder, because total income is typically infinite.
David Blackwell's Discrete Dynamic Programming (Ann. Math. Statist. 33 (1962) 719–726) treats as a limit of . Its Theorem 5 shows that some stationary policy is optimal simultaneously for all discount factors sufficiently close to . Such policies are now called Blackwell optimal, and the result is the base of sensitive discount optimality (Veinott, 1969) and of the standard textbook treatment of average-reward problems (Puterman, Markov Decision Processes, 1994, Ch. 10).
Timeline. Howard (1960): policy iteration for discounted and average-reward finite problems. Blackwell (1962): Theorem 5 (Blackwell optimal stationary policies exist) and the characterization of nearly optimal stationary policies (Theorem 4, the subject of the companion mission). Miller and Veinott (Ann. Math. Statist. 40 (1969) 366–370), Veinott (Ann. Math. Statist. 40 (1969) 1635–1660): Laurent expansions of in and -discount optimality.
Setting
There are finitely many states and a finite set of actions, every action available in every state. In state , action yields income (any sign) and moves the system to state with probability ; each is a probability vector.
A decision rule is a function from states to actions; is the finite set of decision rules. A policy is a sequence in : on day , in state , action is used. Policies are deterministic and Markov but may change with time. The policy uses on day and then follows ; uses every day and is called stationary.
For , is the vector and the Markov matrix . With and , the return of at discount factor is
a vector indexed by the initial state. Vectors are compared coordinatewise; means and .
A policy is -optimal if for every policy . Following §4 of the paper, a policy is optimal if it is -optimal for all sufficiently near .
Formalization targets
Goal: Theorem 5
There exist a decision rule and such that
One and one serve every competing policy and every .
Milestones
- The composition rule , with , and its -fold version (§2).
- Theorem 1: if for all , then is -optimal.
- Theorem 2: if then .
- Theorem 3 (policy improvement): if no action improves by one step, is -optimal; otherwise switching to improving actions gives .
- Corollary: for each fixed some stationary policy is -optimal.
- Each coordinate of is a rational function of on with nonvanishing denominator.
- Some is -optimal for a set of 's having as a limit point.
- If for a set of 's accumulating at , then it holds for all near .
Significance
The result. Theorem 5 shows that the infinitely many discounted problems near share a common optimal stationary policy. Such a policy is also optimal for the long-run average criterion, which settles the existence of average-optimal stationary policies in finite models without any recurrence assumption. It also justifies computing undiscounted solutions as limits of discounted ones, and it is the first case of the sensitive optimality criteria developed later.
Formalizing it. The theorem is classical and proved in the paper and in the textbooks; there is no machine-checked proof of it in Blackwell's model on the platform. A related open item, SennottDP.AvgFinite.prop_6_2_3_blackwell_optimal, states the textbook version for nonnegative costs and randomized history-dependent policies; the present mission is Blackwell's own formulation with incomes of either sign and deterministic Markov policies. A complete development also yields a verified policy improvement theorem (Theorem 3) and the rationality of discounted values in , both reusable for any finite-state discounted model.
Difficulty
The Corollary gives, for each , some optimal stationary policy, and is finite, so one is -optimal for infinitely many accumulating at . The obvious argument stops there: optimality on a sequence of 's says nothing about the 's in between, and a pointwise limit argument cannot produce a whole interval . The step that fails is passing from "frequently" to "eventually", and it needs structural information about how depends on , not just continuity. A second difficulty is the comparison class: optimality must hold against all time-dependent policies, not only the finitely many stationary ones, so the final step has to bring the Corollary back in for every near .
Formalization scope
States and actions are finite nonempty Lean types St, Act; decision rules are functions St → Act and policies are sequences ℕ → St → Act, indexed from (π 0 is Blackwell's ). Incomes are real-valued with no sign restriction. The law of motion law s a s' satisfies the published predicate IsTransitionKernel. is the ordered matrix product and is the tsum of the series, which converges absolutely for ; every statement at a fixed assumes , and nothing is stated for . Vector inequalities are coordinatewise, and the strict order is " and ", not coordinatewise strict. " sufficiently near " is "there is such that for every ". The paper's §4 phrase is encoded as -optimality, so no supremum over policies appears.
The word "optimal" has two meanings in the paper: at one fixed (§3, the Corollary) and for all near (§4, Theorem 5). The Lean development keeps them apart as IsBetaOptimal β and IsOptimal. A statement of Theorem 5 at a single , with "there exists ", for a set of 's accumulating at , or against stationary policies only would be a different and weaker theorem; the goal rules all of these out.
Needed infrastructure: summation and shifting of the discounted series, Neumann series for stochastic , Cramer's rule to express as a ratio of polynomials in , and the fact that a nonzero polynomial has finitely many roots. The policy improvement theorem and the rationality lemma are reusable beyond this mission. Proofs of individual milestones are welcome independently.
Selected references
- D. Blackwell, Discrete Dynamic Programming, Ann. Math. Statist. 33(2):719–726, 1962. https://doi.org/10.1214/aoms/1177704593
- R. A. Howard, Dynamic Programming and Markov Processes, Technology Press and Wiley, 1960.
- A. F. Veinott Jr., Discrete Dynamic Programming with Sensitive Discount Optimality Criteria, Ann. Math. Statist. 40(5):1635–1660, 1969. https://doi.org/10.1214/aoms/1177697379
- M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994. https://doi.org/10.1002/9780470316887
- L. I. Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems, Wiley, 1999 (Proposition 6.2.3, Blackwell optimality for finite models). https://doi.org/10.1002/9780470317037