Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Chapter I, Theorem 1 — existence and uniqueness for the allocation equation

Proved
BellmanDP.Allocation.allocation_equation_exists_unique

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

dynamic-programmingfunctional-equationsp2o-batch-b23bp2o-gran-per-chapterp2o-plan-bookp2o-v1

Let g,h:[0,∞)→Rg, h : [0,\infty) \to \mathbb{R}g,h:[0,∞)→R and a,ba, ba,b satisfy:

  1. ggg and hhh are continuous for x≥0x \ge 0x≥0, and g(0)=h(0)=0g(0) = h(0) = 0g(0)=h(0)=0;
  2. with m(x)=max⁡0≤y≤xmax⁡(∣g(y)∣,∣h(y)∣)m(x) = \max_{0\le y\le x}\max(|g(y)|,|h(y)|)m(x)=max0≤y≤x​max(∣g(y)∣,∣h(y)∣) and c=max⁡(a,b)c = \max(a,b)c=max(a,b), ∑n=0∞m(cnx)<∞\sum_{n=0}^{\infty} m(c^n x) < \infty∑n=0∞​m(cnx)<∞ for all x≥0x \ge 0x≥0;
  3. 0≤a<10 \le a < 10≤a<1 and 0≤b<10 \le b < 10≤b<1.

Then the equation

f(x)=max⁡0≤y≤x[g(y)+h(x−y)+f(ay+b(x−y))],x≥0,f(x) = \max_{0 \le y \le x}\big[ g(y) + h(x-y) + f(ay + b(x-y)) \big], \qquad x \ge 0,f(x)=0≤y≤xmax​[g(y)+h(x−y)+f(ay+b(x−y))],x≥0,

has a solution fff that is continuous at x=0x = 0x=0 with f(0)=0f(0) = 0f(0)=0; this solution is continuous for all x≥0x \ge 0x≥0; and any other solution that is continuous at x=0x=0x=0 with value 000 there coincides with fff on [0,∞)[0,\infty)[0,∞).

The equation describes the total return of an infinite-stage process in which a resource xxx is split between two activities with returns ggg and hhh and depreciation factors aaa and bbb. The theorem is what makes "the solution" of this equation meaningful: without the side condition at 000 uniqueness fails (for g=h=0g=h=0g=h=0 every constant, and the indicator of (0,∞)(0,\infty)(0,∞), are solutions).

Formalization Note Functions are ℝ → ℝ, and all hypotheses and conclusions concern x≥0x \ge 0x≥0 only; continuity at 000 is one-sided (within [0,∞)[0,\infty)[0,∞)) and uniqueness is equality on [0,∞)[0,\infty)[0,∞). The maximum in the equation is required to be attained for every x≥0x\ge 0x≥0.

Preamble
import Mathlib
import Definitions.Def_BellmanDP_Allocation_Model
Formal statement
namespace BellmanDP.Allocation

/-- Bellman, *Dynamic Programming*, Ch. I, Theorem 1, p. 12. Under (1a)–(1c) the equation (8.1)
`f(x) = Max_{0 ≤ y ≤ x} [g(y) + h(x − y) + f(ay + b(x − y))]` has a solution on `x ≥ 0` that is
continuous at `x = 0` with value `0` there; it is continuous for all `x ≥ 0`; and every solution
continuous at `0` with value `0` there coincides with it on `x ≥ 0`. -/
theorem allocation_equation_exists_unique (g h : ℝ → ℝ) (a b : ℝ)
    (hyp : AllocationHyp g h a b) :
    ∃ f : ℝ → ℝ, IsAllocationSolution g h a b f ∧
      ContinuousWithinAt f (Set.Ici 0) 0 ∧ f 0 = 0 ∧
      ContinuousOn f (Set.Ici 0) ∧
      ∀ F : ℝ → ℝ, IsAllocationSolution g h a b F →
        ContinuousWithinAt F (Set.Ici 0) 0 → F 0 = 0 →
        ∀ x : ℝ, 0 ≤ x → F x = f x := by sorry

end BellmanDP.Allocation
Source
Bellman, Dynamic Programming, Princeton University Press (1957; Princeton Landmarks ed. 2010), DOI 10.2307/j.ctv1nxcw0f, Chapter I, Theorem 1, p. 12 (equation (8.1), p. 11)
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 5, 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