Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Chapter IV, Theorem 4 — stability of the solution of a Type Two equation (corrected)

Proved
BellmanDP.ExistUnique.type_two_stability

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

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

Consider two equations of Type Two with the same hhh and TTT and with rewards ggg and GGG, and let fff, FFF be their solutions bounded in every finite part of DDD. Let ccc and a<1a < 1a<1 be such that ∣h(p,q)∣≤a|h(p,q)| \le a∣h(p,q)∣≤a for all qqq and all p∈Dp \in Dp∈D with ∥p∥≤c\|p\| \le c∥p∥≤c, and such that TTT maps {p∈D:∥p∥≤c}\{p \in D : \|p\| \le c\}{p∈D:∥p∥≤c} into {∥p∥≤c}\{\|p\| \le c\}{∥p∥≤c}. With u(c)=sup⁡p∈D, ∥p∥≤csup⁡q∣G(p,q)−g(p,q)∣u(c) = \sup_{p \in D,\ \|p\| \le c}\sup_q |G(p,q) - g(p,q)|u(c)=supp∈D, ∥p∥≤c​supq​∣G(p,q)−g(p,q)∣,

sup⁡p∈D, ∥p∥≤c∣F(p)−f(p)∣≤u(c)1−a.\sup_{p \in D,\ \|p\| \le c} |F(p) - f(p)| \le \frac{u(c)}{1 - a}.p∈D, ∥p∥≤csup​∣F(p)−f(p)∣≤1−au(c)​.

This is the Type Two counterpart of Theorem 3: a geometric factor 1/(1−a)1/(1-a)1/(1−a) replaces the series along the shrinking radii anca^n canc.

Formalization Note The book prints the left side as ∣F(p)−(p)∣|F(p) - (p)|∣F(p)−(p)∣, a misprint for ∣F(p)−f(p)∣|F(p) - f(p)|∣F(p)−f(p)∣. The hypothesis that TTT keeps the ball of radius ccc inside itself is added. It holds for every ccc under the first alternative of Type Two (∥T(p,q)∥≤∥p∥\|T(p,q)\| \le \|p\|∥T(p,q)∥≤∥p∥), where the statement is the book's. Under the second alternative (DDD bounded, TTT arbitrary) the printed bound fails without it. For example, take N=1N = 1N=1, D=[−2,2]D = [-2,2]D=[−2,2], T≡2T \equiv 2T≡2, h≡1/2h \equiv 1/2h≡1/2, g≡0g \equiv 0g≡0, and G(2,q)=1G(2,q) = 1G(2,q)=1, G(p,q)=0G(p,q) = 0G(p,q)=0 otherwise. Then f≡0f \equiv 0f≡0 and F(p)=1F(p) = 1F(p)=1 for p≠2p \ne 2p=2, so ∣F(0)−f(0)∣=1|F(0) - f(0)| = 1∣F(0)−f(0)∣=1, while u(1)/(1−a)=0u(1)/(1-a) = 0u(1)/(1−a)=0.

Preamble
import Mathlib
import Definitions.Def_BellmanDP_ExistUnique_SupEquation
import Definitions.Def_BellmanDP_ExistUnique_EquationTypes
Formal statement
namespace BellmanDP.ExistUnique

/-- Bellman, *Dynamic Programming*, Ch. IV, § 6, Theorem 4, p. 124 (corrected). Let
`f(p) = Sup_q [g + h f(T)]` and `F(p) = Sup_q [G + h F(T)]` both be of Type Two (same `h`, `T`),
with solutions `f`, `F` bounded in every finite part of `D`. Let `c` be such that `|h| ≤ a < 1`
on `{p ∈ D : ‖p‖ ≤ c}` and `T` maps that set into `‖·‖ ≤ c` (automatic for every `c` under the
first alternative `‖T(p, q)‖ ≤ ‖p‖` of Type Two). Then
`Sup_{‖p‖ ≤ c} |F(p) − f(p)| ≤ u(c)/(1 − a)`, `u(c) = Sup_{‖p‖ ≤ c} Sup_q |G(p, q) − g(p, q)|`.
The ball-invariance hypothesis is added to the printed statement, which fails without it
under the bounded-domain alternative. -/
theorem type_two_stability {N : ℕ} {S : Type*} [Nonempty S]
    (D : Set (EuclideanSpace ℝ (Fin N))) (g G h : EuclideanSpace ℝ (Fin N) → S → ℝ)
    (T : EuclideanSpace ℝ (Fin N) → S → EuclideanSpace ℝ (Fin N))
    (hg : TypeTwo D g h T) (hG : TypeTwo D G h T)
    (f F : EuclideanSpace ℝ (Fin N) → ℝ)
    (hf_bdd : BoundedOnBoundedParts D f) (hf : ∀ p ∈ D, SolvesAt g h T f p)
    (hF_bdd : BoundedOnBoundedParts D F) (hF : ∀ p ∈ D, SolvesAt G h T F p)
    (c a : ℝ) (ha : a < 1) (hh : ∀ p ∈ D, ‖p‖ ≤ c → ∀ q : S, |h p q| ≤ a)
    (hTc : ∀ p ∈ D, ‖p‖ ≤ c → ∀ q : S, ‖T p q‖ ≤ c) :
    ∀ p ∈ D, ‖p‖ ≤ c →
      |F p - f p| ≤ radialSup D (fun p q => G p q - g p q) c / (1 - a) := by sorry

end BellmanDP.ExistUnique
Source
Bellman, Dynamic Programming, Princeton University Press (1957; Princeton Landmarks ed. 2010), DOI 10.2307/j.ctv1nxcw0f, Chapter IV, § 6, Eq. (6.5) and Theorem 4, Eq. (6.8), p. 124
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