Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Chapter II, Theorem 1 — existence and uniqueness of the solution of the gold-mining equation (5.1)

Proved
BellmanDP.GoldMining.solution_exists_unique

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

dynamic-programmingexistence-uniquenessfunctional-equationsgold-miningp2o-batch-b23bp2o-gran-per-chapterp2o-plan-bookp2o-v1

Let p1,p2,r1,r2p_1, p_2, r_1, r_2p1​,p2​,r1​,r2​ be real numbers with

∣p1∣<1,∣p2∣<1,0≤r1<1,0≤r2<1.|p_1| < 1,\quad |p_2| < 1,\qquad 0 \le r_1 < 1,\quad 0 \le r_2 < 1.∣p1​∣<1,∣p2​∣<1,0≤r1​<1,0≤r2​<1.

Then the functional equation

f(x,y)=max⁡[p1(r1x+f((1−r1)x, y)),  p2(r2y+f(x, (1−r2)y))],x,y≥0,(5.1)f(x,y) = \max\Bigl[p_1\bigl(r_1x + f((1-r_1)x,\,y)\bigr),\; p_2\bigl(r_2y + f(x,\,(1-r_2)y)\bigr)\Bigr], \qquad x, y \ge 0, \tag{5.1}f(x,y)=max[p1​(r1​x+f((1−r1​)x,y)),p2​(r2​y+f(x,(1−r2​)y))],x,y≥0,(5.1)

has a solution fff which is bounded in every rectangle 0≤x≤Xˉ0 \le x \le \bar X0≤x≤Xˉ, 0≤y≤Yˉ0 \le y \le \bar Y0≤y≤Yˉ; any two solutions bounded in every rectangle coincide on the quadrant x,y≥0x, y \ge 0x,y≥0; and this solution is continuous on the closed quadrant x,y≥0x, y \ge 0x,y≥0.

This is the existence and uniqueness theorem behind every later statement of the chapter: "the solution" of (5.1), in Theorems 2, 6 and 7, means this one.

Formalization Note Bellman allows signed pip_ipi​ here (his footnote 2: in the process they are nonnegative, but the proof covers the general equation), so the hypothesis is ∣pi∣<1|p_i| < 1∣pi​∣<1 as printed. "Continuous in any finite part of the region x,y≥0x, y \ge 0x,y≥0" is continuity of (x,y)↦f(x,y)(x,y) \mapsto f(x,y)(x,y)↦f(x,y) on the closed quadrant, relative to the quadrant.

Preamble
import Mathlib
import Definitions.Def_BellmanDP_GoldMining_Model
Formal statement
namespace BellmanDP.GoldMining

/-- Bellman, *Dynamic Programming*, Ch. II, Theorem 1, p. 64: if `|p₁|, |p₂| < 1` and
`0 ≤ r₁, r₂ < 1`, there is a unique solution of (5.1) which is bounded in any rectangle
`0 ≤ x ≤ X̄, 0 ≤ y ≤ Ȳ`, and this solution is continuous on the closed quadrant `x, y ≥ 0`.
Uniqueness is equality on the quadrant, where (5.1) is posed. -/
theorem solution_exists_unique (p₁ p₂ r₁ r₂ : ℝ)
    (hp₁ : |p₁| < 1) (hp₂ : |p₂| < 1)
    (hr₁0 : 0 ≤ r₁) (hr₁1 : r₁ < 1) (hr₂0 : 0 ≤ r₂) (hr₂1 : r₂ < 1) :
    ∃ f : ℝ → ℝ → ℝ, IsGoldMiningSolution p₁ p₂ r₁ r₂ f ∧ BoundedOnRectangles f ∧
      ContinuousOn (Function.uncurry f) (Set.Ici (0 : ℝ) ×ˢ Set.Ici (0 : ℝ)) ∧
      ∀ g : ℝ → ℝ → ℝ, IsGoldMiningSolution p₁ p₂ r₁ r₂ g → BoundedOnRectangles g →
        ∀ x y : ℝ, 0 ≤ x → 0 ≤ y → g x y = f x y := by sorry

end BellmanDP.GoldMining
Source
Bellman, Dynamic Programming, Princeton University Press (1957; Princeton Landmarks ed. 2010), DOI 10.2307/j.ctv1nxcw0f, Chapter II, § 6, Theorem 1, p. 64
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