Contraction Mappings in the Theory Underlying Dynamic Programming 2: Under N-Stage Contraction and Monotonicity the Optimal Return Is the Unique Fixed Point of the Maximization OperatorResearch Paper
Motivation
Infinite-horizon dynamic programs, including discounted Markov decision processes, stochastic games and semi-Markov models, are usually analysed through a single equation: the optimal return solves the optimality equation , where maximizes the one-step return over decisions. Denardo's 1967 paper (SIAM Review 9(2), 165–177) separated the argument from the particular model. It isolated two properties of an abstract return , contraction and monotonicity, and showed that the standard conclusions follow from them alone. The examples of §8 of the paper cover Howard's discounted model, Shapley's stochastic games and Blackwell's, Jewell's and Fox's models.
The plain contraction assumption (each one-step operator shrinks distances by a factor ) fails in models where the process stops only from a subset of states, or where discounting acts only after several transitions. §5 of the paper handles these with the N-stage contraction assumption: only steps of a policy need to contract, while one step only needs to be nonexpansive. This mission formalizes that section. Its companion mission (part 1 of the series) formalizes the plain contraction case.
Timeline:
- 1953: Shapley proves that the value of a discounted stochastic game is the fixed point of a contraction.
- 1960: Howard introduces policy iteration for finite discounted Markov decision processes.
- 1962–1965: Blackwell studies discrete and discounted dynamic programming, including the existence of optimal stationary policies.
- 1967: Denardo, in this paper, states the contraction and monotonicity assumptions for an abstract return and proves Theorems 1–4.
- 1977: Bertsekas, "Monotone mappings with application in dynamic programming", drops contraction and keeps only monotonicity.
Setting
Let be a set of points. Each point has a decision set . A policy picks a decision at every point, so the policy space is . Let be the bounded real functions on with the metric ; is complete. Write when for every .
The return assigns a real number to each point , decision and . It defines two kinds of operators on :
and both are assumed to map into . An operator on has modulus or less when for all .
- Monotonicity assumption: if then for every .
- N-stage contraction assumption: for a positive integer and a number , both independent of , every has modulus or less and every has modulus or less.
Under these assumptions is a contraction, so it has a unique fixed point , the return function of . The optimal return is . The auxiliary operator is .
Formalization targets
Goal: Theorem 4 (p. 169)
Under the monotonicity and N-stage contraction assumptions:
Milestones
- The observation at the end of §3 (p. 168): if every operator in a nonempty family has modulus or less, then their pointwise supremum has modulus or less, provided it maps into .
- Lemma 1 (p. 168): under monotonicity, is monotone; implies that is nondecreasing in ; implies that is nondecreasing in .
- Theorem 4 (a)–(c), the part the paper proves in the text of §5 before stating the theorem. This milestone also includes the existence of as an operator on and .
- Lemma 2 (p. 169): implies , and implies ; ; implies .
The mission also contains two consequences that are not milestones: is optimal for the mathematical programs s.t. and s.t. (§6, p. 171), and a policy is optimal exactly when it attains at every point (§7, p. 173).
Significance
Theorem 4 lets models whose one-step operators are not contractions use the contraction-mapping theory of dynamic programming. Under its hypotheses the optimality equation has exactly one bounded solution, and that solution is the optimal return. Successive approximation converges geometrically from below (part (e)). Lemma 2 shows that is the least with and the greatest with . This gives the linear-programming formulation of finite Markov decision processes (Program I) and the policy-improvement argument of §6. The characterization reduces the search for optimal policies to the decisions that attain the maximum in the optimality equation.
The results are proved in the paper. The work of this mission is to formalize them, in the abstract form that Mathlib does not have: monotone operators on bounded functions that are contractive only after steps, with suprema taken over arbitrary, possibly infinite, decision and policy sets. No machine-checked proof of Theorem 4 or of Lemma 2 is known. The closest formal statements, Propositions 4.1–4.2 of Bertsekas and Shreve under their Assumption C, concern a different model (extended-real costs, nonstationary policies) and are themselves unproved formally.
Difficulty
The obvious argument would apply the Banach fixed-point theorem to . That does not work: under the N-stage assumption, need not be a contraction. The paper gives an example (p. 170) with , , where has modulus for every . The supremum over decisions does not commute with composition, so the contraction of each says nothing directly about . The paper therefore works through the auxiliary operator , which is a contraction. The hard step is to show that , the supremum of the policy returns, is a fixed point of . This is the second half of Lemma 2(a), an -argument that uses both monotonicity and the modulus- bound on .
Part (e) holds only for . It is not a contraction property of on all of .
Formalization scope
- is
lp (fun _ : Ω => ℝ) ⊤(asBFun Ω), and itsdistis . The order is pointwise (PLe). - , and are given as functions , which is the paper's "range contained in ". They are tied to by
IsPolicyOperator,IsMaxOperatorandIsNStageSupOperator. Every supremum, including (IsOptimalReturn), is a genuine least upper bound (IsLUB).sSup/⨆are never used, so no junk value can make a statement trivial. - "Modulus or less" is the inequality
ModulusLE B c.NStageContractionAssumption H N cholds , ,ModulusLE (H δ)^[N] candModulusLE (H δ) 1, with and independent of . - The return functions are a family
vwith , the paper's §5 definition. is the conclusion (a), never a hypothesis. - In the goal, is an operator with
IsNStageSupOperator H N E. The milestone Theorem 4 (a)–(c) proves that such an operator exists. is never defined as a fixed point of or . The goal asserts that the pointwise least upper bound of exists in and is the unique fixed point of both. - The trivializing formalizations are ruled out explicitly: assuming , defining as 's fixed point, or dropping from (e) would each change the theorem.
A complete development needs the Banach fixed-point theorem for iterates (Mathlib's ContractingWith, applied to ), suprema of families of real numbers, and induction on iterates. The §3 observation and Lemma 1 are reusable for any monotone operator family on bounded functions. Contributions to every milestone and to the two §6–§7 consequences are welcome.
Selected references
- E. V. Denardo, Contraction Mappings in the Theory Underlying Dynamic Programming, SIAM Review 9(2) (1967) 165–177. https://doi.org/10.1137/1009030
- L. S. Shapley, Stochastic Games, Proc. Nat. Acad. Sci. 39 (1953) 1095–1100. https://doi.org/10.1073/pnas.39.10.1095
- R. A. Howard, Dynamic Programming and Markov Processes, MIT Press, 1960.
- D. Blackwell, Discounted Dynamic Programming, Ann. Math. Statist. 36 (1965) 226–235. https://doi.org/10.1214/aoms/1177700285
- D. P. Bertsekas, Monotone Mappings with Application in Dynamic Programming, SIAM J. Control Optim. 15(3) (1977) 438–464. https://doi.org/10.1137/0315031