Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Chapter IV, Lemma 1 — the fundamental inequality for two supremum transformations

Proved
BellmanDP.ExistUnique.fundamental_inequality

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

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

Fix a state ppp, a set D⊆RND \subseteq \mathbb{R}^ND⊆RN and, for each decision q∈Sq \in Sq∈S, a nonnegative measure dG(p,q,⋅)dG(p,q,\cdot)dG(p,q,⋅) on RN\mathbb{R}^NRN. For functions f1,F1f_1, F_1f1​,F1​ integrable over DDD against every dG(p,q,⋅)dG(p,q,\cdot)dG(p,q,⋅) put

S1(f1,p,q)=g(p,q)+∫r∈Df1(r) dG(p,q,r),S2(F1,p,q)=h(p,q)+∫r∈DF1(r) dG(p,q,r),S_1(f_1,p,q) = g(p,q) + \int_{r \in D} f_1(r)\,dG(p,q,r), \qquad S_2(F_1,p,q) = h(p,q) + \int_{r \in D} F_1(r)\,dG(p,q,r),S1​(f1​,p,q)=g(p,q)+∫r∈D​f1​(r)dG(p,q,r),S2​(F1​,p,q)=h(p,q)+∫r∈D​F1​(r)dG(p,q,r),

and let f2(p)=sup⁡qS1(f1,p,q)f_2(p) = \sup_q S_1(f_1,p,q)f2​(p)=supq​S1​(f1​,p,q) and F2(p)=sup⁡qS2(F1,p,q)F_2(p) = \sup_q S_2(F_1,p,q)F2​(p)=supq​S2​(F1​,p,q), both finite suprema. Then

∣f2(p)−F2(p)∣≤sup⁡q[ ∣g(p,q)−h(p,q)∣+∫r∈D∣f1(r)−F1(r)∣ dG(p,q,r)].|f_2(p) - F_2(p)| \le \sup_q\Big[\,|g(p,q) - h(p,q)| + \int_{r \in D} |f_1(r) - F_1(r)|\,dG(p,q,r)\Big].∣f2​(p)−F2​(p)∣≤qsup​[∣g(p,q)−h(p,q)∣+∫r∈D​∣f1​(r)−F1​(r)∣dG(p,q,r)].

The inequality compares two supremum transformations without any information on where the suprema are attained. Every existence, uniqueness and stability argument of the chapter rests on it.

Formalization Note The measures are Measure (EuclideanSpace ℝ (Fin N)) indexed by qqq, and the integrals are over DDD. The suprema f2(p)f_2(p)f2​(p), F2(p)F_2(p)F2​(p) are encoded with IsLUB. The right-hand supremum may be +∞+\infty+∞, so the conclusion is stated as: every real MMM bounding the bracket for all qqq bounds ∣f2(p)−F2(p)∣|f_2(p) - F_2(p)|∣f2​(p)−F2​(p)∣. Here hhh is the second reward function of S2S_2S2​, not the multiplier of Eq. (1.1). The book's applications take ∫f dG=h(p,q)f(T(p,q))\int f\,dG = h(p,q) f(T(p,q))∫fdG=h(p,q)f(T(p,q)), which is a nonnegative measure only when h≥0h \ge 0h≥0.

Preamble
import Mathlib

open MeasureTheory
Formal statement
namespace BellmanDP.ExistUnique

/-- Bellman, *Dynamic Programming*, Ch. IV, § 2, Lemma 1, p. 118 (fundamental inequality).
Fix a state `p` and nonnegative measures `dG(p, q, ·)` on `ℝ^N` (`q ∈ S`). Let
`S₁(f₁, p, q) = g(p, q) + ∫_{r ∈ D} f₁(r) dG(p, q, r)` and
`S₂(F₁, p, q) = h(p, q) + ∫_{r ∈ D} F₁(r) dG(p, q, r)`, and let `f₂(p) = Sup_q S₁`,
`F₂(p) = Sup_q S₂` (genuine suprema). Then
`|f₂(p) − F₂(p)| ≤ Sup_q [|g(p, q) − h(p, q)| + ∫_{r ∈ D} |f₁(r) − F₁(r)| dG(p, q, r)]`,
stated as: every upper bound `M` of the bracket over `q` bounds `|f₂(p) − F₂(p)|`. -/
theorem fundamental_inequality {N : ℕ} {S : Type*}
    (D : Set (EuclideanSpace ℝ (Fin N))) (p : EuclideanSpace ℝ (Fin N))
    (G : EuclideanSpace ℝ (Fin N) → S → Measure (EuclideanSpace ℝ (Fin N)))
    (g h : EuclideanSpace ℝ (Fin N) → S → ℝ) (f₁ F₁ : EuclideanSpace ℝ (Fin N) → ℝ)
    (hf₁ : ∀ q : S, IntegrableOn f₁ D (G p q)) (hF₁ : ∀ q : S, IntegrableOn F₁ D (G p q))
    (f₂ F₂ : EuclideanSpace ℝ (Fin N) → ℝ)
    (hf₂ : IsLUB (Set.range fun q : S => g p q + ∫ r in D, f₁ r ∂(G p q)) (f₂ p))
    (hF₂ : IsLUB (Set.range fun q : S => h p q + ∫ r in D, F₁ r ∂(G p q)) (F₂ p))
    (M : ℝ) (hM : ∀ q : S, |g p q - h p q| + ∫ r in D, |f₁ r - F₁ r| ∂(G p q) ≤ M) :
    |f₂ p - F₂ p| ≤ M := by sorry

end BellmanDP.ExistUnique
Source
Bellman, Dynamic Programming, Princeton University Press (1957; Princeton Landmarks ed. 2010), DOI 10.2307/j.ctv1nxcw0f, Chapter IV, § 2, Eqs. (2.1)-(2.2) and Lemma 1, Eq. (2.3), pp. 117-118
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