Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Chapter I, Theorem 4 — convex returns give a convex fff and an all-or-nothing allocation

Proved
BellmanDP.Allocation.convex_returns_endpoint_policy

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

convexitydynamic-programmingp2o-batch-b23bp2o-gran-per-chapterp2o-plan-bookp2o-v1

Assume the hypotheses of Chapter I, Theorem 1, and in addition that ggg and hhh are convex on [0,∞)[0,\infty)[0,∞). Let fff be the solution of

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

that is continuous at 000 with f(0)=0f(0)=0f(0)=0. Then

  1. fff is convex on [0,∞)[0,\infty)[0,∞);
  2. for each x≥0x \ge 0x≥0 the maximum is attained at y=0y=0y=0 or at y=xy=xy=x; equivalently,
f(x)=max⁡(g(x)+f(ax), h(x)+f(bx)).f(x) = \max\big(g(x) + f(ax),\ h(x) + f(bx)\big).f(x)=max(g(x)+f(ax), h(x)+f(bx)).

With convex returns the optimal policy never splits the resource: at every stage everything goes to one of the two activities.

Formalization Note "For each value of xxx, yyy will equal 000 or xxx" is stated as: one of the endpoints y=0y=0y=0, y=xy=xy=x is a maximizer. It does not claim that every maximizer is an endpoint, which fails e.g. for g=h=0g=h=0g=h=0.

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

/-- Ch. I, Theorem 4, p. 19. If in addition to the hypotheses of Theorem 1 the functions `g` and
`h` are convex on `x ≥ 0`, then the solution `f` of Theorem 1 is convex on `x ≥ 0`, and for each
`x ≥ 0` the maximum in (8.1) is attained at `y = 0` or at `y = x`. -/
theorem convex_returns_endpoint_policy (g h : ℝ → ℝ) (a b : ℝ)
    (hyp : AllocationHyp g h a b)
    (hg : ConvexOn ℝ (Set.Ici 0) g) (hh : ConvexOn ℝ (Set.Ici 0) h)
    (f : ℝ → ℝ) (hf : IsAllocationSolution g h a b f)
    (hfc : ContinuousWithinAt f (Set.Ici 0) 0) (hf0 : f 0 = 0) :
    ConvexOn ℝ (Set.Ici 0) f ∧
      ∀ x : ℝ, 0 ≤ x → (allocT g h a b f x 0 = f x ∨ allocT g h a b f x 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 4, p. 19
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