Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Chapter VIII, Theorem 1 — the index rule maximizes f(∞)f(\infty)f(∞) in the continuous two-mine process

Proved
BellmanDP.ContGoldMining.index_policy_optimal

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

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

Two mines A and B contain x0≥0x_0 \ge 0x0​≥0 and y0≥0y_0 \ge 0y0​≥0 units of gold. A single machine is divided between them: at time ttt a proportion φ1(t)∈[0,1]\varphi_1(t) \in [0, 1]φ1​(t)∈[0,1] of effort goes to A and φ2(t)=1−φ1(t)\varphi_2(t) = 1 - \varphi_1(t)φ2​(t)=1−φ1​(t) to B, with φ1\varphi_1φ1​ measurable. The process is governed by Eq. (7.2):

dxdt=−φ1r1x,dydt=−φ2r2y,dpdt=−p(φ1q1+φ2q2),dfdt=p(φ1r1x+φ2r2y),\frac{dx}{dt} = -\varphi_1 r_1 x,\quad \frac{dy}{dt} = -\varphi_2 r_2 y,\quad \frac{dp}{dt} = -p(\varphi_1 q_1 + \varphi_2 q_2),\quad \frac{df}{dt} = p(\varphi_1 r_1 x + \varphi_2 r_2 y),dtdx​=−φ1​r1​x,dtdy​=−φ2​r2​y,dtdp​=−p(φ1​q1​+φ2​q2​),dtdf​=p(φ1​r1​x+φ2​r2​y),

with x(0)=x0x(0) = x_0x(0)=x0​, y(0)=y0y(0) = y_0y(0)=y0​, p(0)=1p(0) = 1p(0)=1, f(0)=0f(0) = 0f(0)=0. Here x,yx, yx,y are the gold remaining, ppp is the probability that the machine still works, fff the expected gold mined, and q1,q2,r1,r2>0q_1, q_2, r_1, r_2 > 0q1​,q2​,r1​,r2​>0 are the failure and mining rates.

Theorem. Consider the feedback rule

φ1=1 if q1r2y<q2r1x,φ2=1 if q1r2y>q2r1x,φ1=r2r1+r2, φ2=r1r1+r2 if q1r2y=q2r1x.\varphi_1 = 1 \text{ if } q_1 r_2 y < q_2 r_1 x,\qquad \varphi_2 = 1 \text{ if } q_1 r_2 y > q_2 r_1 x,\qquad \varphi_1 = \frac{r_2}{r_1 + r_2},\ \varphi_2 = \frac{r_1}{r_1 + r_2} \text{ if } q_1 r_2 y = q_2 r_1 x.φ1​=1 if q1​r2​y<q2​r1​x,φ2​=1 if q1​r2​y>q2​r1​x,φ1​=r1​+r2​r2​​, φ2​=r1​+r2​r1​​ if q1​r2​y=q2​r1​x.

There is an admissible control that follows this rule along its own trajectory for almost every t≥0t \ge 0t≥0, and every such control maximizes the expected total gold f(∞)f(\infty)f(∞) over all admissible controls.

The rule mines the mine with the larger index r1x/q1r_1 x/q_1r1​x/q1​ versus r2y/q2r_2 y/q_2r2​y/q2​, and on the line where the indices are equal it mixes in the proportions that keep the state on the line. It is the continuous analogue of the index rule for the discrete gold-mining process of Chapter II.

Formalization Note The process is defined by the closed-form solution of (7.2): with Φ1(t)=∫0tφ1\Phi_1(t) = \int_0^t \varphi_1Φ1​(t)=∫0t​φ1​ and Φ2(t)=t−Φ1(t)\Phi_2(t) = t - \Phi_1(t)Φ2​(t)=t−Φ1​(t), x=x0e−r1Φ1x = x_0 e^{-r_1\Phi_1}x=x0​e−r1​Φ1​, y=y0e−r2Φ2y = y_0 e^{-r_2\Phi_2}y=y0​e−r2​Φ2​, p=e−q1Φ1−q2Φ2p = e^{-q_1\Phi_1 - q_2\Phi_2}p=e−q1​Φ1​−q2​Φ2​. The maximization is over open-loop measurable controls φ1\varphi_1φ1​ with values in [0,1][0,1][0,1], as in the book; the feedback rule is realized as the class of open-loop controls consistent with it along their own trajectory, and the existence conjunct rules out a vacuous statement. f(∞)f(\infty)f(∞) is a lower Lebesgue integral in [0,∞][0, \infty][0,∞].


Retired 2026-10-27: a Lean-vs-paper fidelity audit found this statement weaker than, or narrower than, the cited result. A corrected statement will be resubmitted.

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

/-- Bellman, *Dynamic Programming*, Ch. VIII, Theorem 1, p. 231: for the two-choice process
(7.2) under the constraints (7.3), the maximum of `f(∞)` is attained by the policy
`φ₁ = 1` for `q₁ r₂ y < q₂ r₁ x`, `φ₂ = 1` for `q₁ r₂ y > q₂ r₁ x`, and
`φ₁ = r₂/(r₁ + r₂)`, `φ₂ = r₁/(r₁ + r₂)` for `q₁ r₂ y = q₂ r₁ x`.
Stated as: an admissible control following this feedback rule along its own trajectory exists,
and every such control maximizes `f(∞)` over all admissible controls. -/
theorem index_policy_optimal (q₁ q₂ r₁ r₂ x₀ y₀ : ℝ) (hq₁ : 0 < q₁) (hq₂ : 0 < q₂)
    (hr₁ : 0 < r₁) (hr₂ : 0 < r₂) (hx₀ : 0 ≤ x₀) (hy₀ : 0 ≤ y₀) :
    (∃ φ₁ : ℝ → ℝ, TwoAdmissible φ₁ ∧ FollowsIndexRule q₁ q₂ r₁ r₂ x₀ y₀ φ₁) ∧
    ∀ φ₁ : ℝ → ℝ, TwoAdmissible φ₁ → FollowsIndexRule q₁ q₂ r₁ r₂ x₀ y₀ φ₁ →
      ∀ ψ₁ : ℝ → ℝ, TwoAdmissible ψ₁ →
        goldInfty (Params.two q₁ q₂ r₁ r₂) x₀ y₀ (twoChoice ψ₁) ≤
          goldInfty (Params.two q₁ q₂ r₁ r₂) x₀ y₀ (twoChoice φ₁) := by sorry

end BellmanDP.ContGoldMining
Source
Bellman, Dynamic Programming, Princeton University Press (1957; Princeton Landmarks ed. 2010), DOI 10.2307/j.ctv1nxcw0f, Chapter VIII, Theorem 1, p. 231 (process: § 7, Eqs. (7.2)-(7.3), p. 228)
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