Bellman's Dynamic Programming I: Existence and Uniqueness for the Multi-Stage Allocation EquationTextbook
Motivation
Chapter I of Richard Bellman's Dynamic Programming (Princeton University Press, 1957) opens the book with a multi-stage allocation process: a resource is divided, stage after stage, between two activities, each of which yields an immediate return and leaves behind a depleted remainder that is re-divided at the next stage. The chapter uses this process as its prototype for "a number of multi-stage processes, of diverse origin, but similar analytic structure" (§ 8, p. 11), and the techniques it introduces here — the functional equation of the infinite process, successive approximations, approximation in policy space, transfer of convexity and concavity through the recurrence, and a stability estimate — reappear throughout the book and in the later theory of Markov decision processes.
When the number of stages is large, Bellman replaces the finite sequence of recurrences by a single equation for the infinite process. As the book stresses (p. 11), this replacement is only useful once one knows that the equation has a solution and possesses "no extraneous solutions". This mission formalizes that existence and uniqueness theorem and the chapter's main structural results that rest on it.
Setting
A quantity is split into , assigned to a first activity with return , and , assigned to a second activity with return . After the stage the first allocation has been reduced to and the second to , and the process continues with the quantity . Writing
the total return of the infinite process satisfies the allocation equation (Bellman's (8.1))
The standing hypotheses of Chapter I, Theorem 1 are:
- and are continuous on and ;
- with and , the series converges for every ;
- and .
The successive approximations from an initial function are . A policy is a function with ; its return is the total of the stage returns obtained by using at every stage.
In Lean all objects live in the namespace BellmanDP.Allocation: allocT is , allocM is , AllocationHyp g h a b bundles the three hypotheses, IsAllocationSolution g h a b f is the equation with the maximum attained, allocIter is the sequence , and policyReturn is the return of a policy.
Formalization targets
Goal: Chapter I, Theorem 1
Under the three hypotheses, there is a function with
this is continuous on , and every solution continuous at with value there coincides with on .
Milestones
- Theorem 2 — from any continuous on with , the successive approximations converge to uniformly on every finite interval.
- Theorem 3 — started from the return of a continuous policy, the successive approximations increase monotonically and converge to uniformly on every finite interval.
- Lemma 1 — if is jointly concave on , then is concave.
- Theorem 4 — if and are convex, is convex and for each the maximum is attained at or .
- Theorem 5 — if and are strictly concave, is strictly concave and the maximizing is unique for every .
- Theorem 9 — for the general equation , the continuous solutions for returns and satisfy , where is the maximum of over .
Significance
Theorem 1 is what gives meaning to "the solution" of the allocation equation, which every later result of the chapter refers to. Without the side condition at uniqueness fails: when , every constant function and the indicator of solve the equation. Theorems 2 and 3 turn the existence proof into computational procedures (value iteration and policy improvement), and Theorem 3's monotonicity is the prototype of the policy-improvement property. Theorems 4 and 5 are the first structural results on optimal policies — all-or-nothing allocation under convex returns, a unique interior-or-boundary allocation under strictly concave returns — and Theorem 9 bounds the error made by replacing a return function with a simpler approximation.
These are classical results with published proofs in the book. No machine-checked version of any of them is known to this mission; the work is to formalize the proofs, building reusable infrastructure for functional equations of the form with a contracting transition .
Difficulty
The equation is not a contraction in the supremum norm on : and may be unbounded, so no global Banach fixed-point argument applies. Control comes instead from the shrinking of the argument, , which propagates a local estimate near out to every finite interval, and the summability hypothesis (1b) is what makes the resulting series converge uniformly on bounded sets. Uniqueness cannot come from a norm estimate either; it rests on continuity at alone. The maximum in the equation must be shown to be attained, which requires continuity of the limit function; the book notes (p. 13) that the monotone argument for nonnegative gives only a supremum. For Theorems 4 and 5, convexity and concavity must be carried through each approximation and preserved in the limit, and strict concavity must be recovered for the limit, where a pointwise limit of strictly concave functions is only concave.
Formalization scope
- Functions are
ℝ → ℝ; only their values on enter any hypothesis or conclusion. Continuity at is one-sided (ContinuousWithinAt f (Set.Ici 0) 0), and uniqueness is equality on . - The maximum in the equation is encoded as
IsGreatestof , so a solution attains its maximum at every . The maxima inside definitions (, , the triangle maximum of Theorem 9) are real suprema (sSup) of images of compact nonempty sets of continuous functions, which equal the book's maxima under the stated hypotheses. - The later theorems refer to "the solution" of Theorem 1 by quantifying over solutions that are continuous at and vanish there; they never quantify over arbitrary solutions of the equation, for which the conclusions are false.
- Theorem 3's "converges uniformly" is stated uniformly on every finite interval , the sense in which Theorem 2 and the series (11.10) used in its proof converge. Its initial function is defined explicitly as the series of stage returns along the trajectory of the policy.
- Theorem 4's " will equal or " is stated as: an endpoint is a maximizer. It does not say every maximizer is an endpoint, which fails for .
- Each theorem carries its own parameter range as printed: for Theorems 1–5, for Theorem 9.
- Not included: Theorem 6 (the policy structure under strict concavity, which uses without a hypothesis making differentiable), Theorems 7 and 8 (explicit solutions), Theorem 10 (the multi-dimensional process), and Theorems 11–12 on Fibonacci search, which form a separate mission.
Welcome contributions: a general existence-and-uniqueness theorem for equations with , and a lemma that parametric maxima over of continuous functions are continuous in .
Selected references
- R. Bellman, Dynamic Programming, Princeton University Press, 1957; Princeton Landmarks in Mathematics edition, 2010. https://doi.org/10.2307/j.ctv1nxcw0f — Chapter I, §§ 8–14 and 18, pp. 11–29.
- R. Bellman, "On the theory of dynamic programming", Proceedings of the National Academy of Sciences 38 (1952), 716–719. https://doi.org/10.1073/pnas.38.8.716