Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Chapter VIII, Eq. (10.1) — fA(∞)=r1x0/(q1+r1)f_A(\infty) = r_1x_0/(q_1+r_1)fA​(∞)=r1​x0​/(q1​+r1​) and fB(∞)=r2y0/(q2+r2)f_B(\infty) = r_2y_0/(q_2+r_2)fB​(∞)=r2​y0​/(q2​+r2​)

Proved
BellmanDP.ContGoldMining.constant_policy_values

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

dynamic-programminggold-miningoptimal-controlp2o-batch-b23bp2o-gran-per-chapterp2o-plan-bookp2o-v1

Consider the continuous two-choice gold-mining process with failure rates q1,q2>0q_1, q_2 > 0q1​,q2​>0, mining rates r1,r2>0r_1, r_2 > 0r1​,r2​>0 and initial amounts x0,y0≥0x_0, y_0 \ge 0x0​,y0​≥0 of gold in mines A and B. If mine A is worked for all t≥0t \ge 0t≥0 (φ1≡1\varphi_1 \equiv 1φ1​≡1, φ2≡0\varphi_2 \equiv 0φ2​≡0), then x(t)=x0e−r1tx(t) = x_0 e^{-r_1 t}x(t)=x0​e−r1​t, y(t)=y0y(t) = y_0y(t)=y0​, p(t)=e−q1tp(t) = e^{-q_1 t}p(t)=e−q1​t, and the expected total gold is

fA(∞)=r1x0q1+r1.f_A(\infty) = \frac{r_1 x_0}{q_1 + r_1}.fA​(∞)=q1​+r1​r1​x0​​.

If mine B is worked for all t≥0t \ge 0t≥0 (φ1≡0\varphi_1 \equiv 0φ1​≡0, φ2≡1\varphi_2 \equiv 1φ2​≡1), the expected total gold is

fB(∞)=r2y0q2+r2.f_B(\infty) = \frac{r_2 y_0}{q_2 + r_2}.fB​(∞)=q2​+r2​r2​y0​​.

Bellman uses the comparison of these two values to show that mine B is used near the yyy-axis, which is the first step towards Theorem 1.

Formalization Note f(∞)f(\infty)f(∞) is an extended nonnegative real (lower Lebesgue integral), so both identities are stated with ENNReal.ofReal of the right-hand side.

Preamble
import Mathlib
import Definitions.Def_BellmanDP_ContGoldMining_Process
Formal statement
namespace BellmanDP.ContGoldMining

/-- Bellman, *Dynamic Programming*, Ch. VIII, § 10, Eq. (10.1), pp. 230–231: using `A` for all
`t ≥ 0` yields `f_A(∞) = r₁ x₀/(q₁ + r₁)`, and using `B` for all `t ≥ 0` yields
`f_B(∞) = r₂ y₀/(q₂ + r₂)`. -/
theorem constant_policy_values (q₁ q₂ r₁ r₂ x₀ y₀ : ℝ) (hq₁ : 0 < q₁) (hq₂ : 0 < q₂)
    (hr₁ : 0 < r₁) (hr₂ : 0 < r₂) (hx₀ : 0 ≤ x₀) (hy₀ : 0 ≤ y₀) :
    goldInfty (Params.two q₁ q₂ r₁ r₂) x₀ y₀ (twoChoice fun _ => 1) =
        ENNReal.ofReal (r₁ * x₀ / (q₁ + r₁)) ∧
      goldInfty (Params.two q₁ q₂ r₁ r₂) x₀ y₀ (twoChoice fun _ => 0) =
        ENNReal.ofReal (r₂ * y₀ / (q₂ + r₂)) := by sorry

end BellmanDP.ContGoldMining
Source
Bellman, Dynamic Programming, Princeton University Press (1957; Princeton Landmarks ed. 2010), DOI 10.2307/j.ctv1nxcw0f, Chapter VIII, § 10, Eq. (10.1), pp. 230-231
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