Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Chapter IV, Theorem 3 — stability of the solution of a Type One equation

Proved
BellmanDP.ExistUnique.type_one_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 One with the same hhh, TTT and constant aaa and with rewards ggg and GGG:

f(p)=sup⁡q[g(p,q)+h(p,q)f(T(p,q))],F(p)=sup⁡q[G(p,q)+h(p,q)F(T(p,q))],p≠θ,f(p) = \sup_q\big[g(p,q) + h(p,q) f(T(p,q))\big], \qquad F(p) = \sup_q\big[G(p,q) + h(p,q) F(T(p,q))\big], \qquad p \ne \theta,f(p)=qsup​[g(p,q)+h(p,q)f(T(p,q))],F(p)=qsup​[G(p,q)+h(p,q)F(T(p,q))],p=θ,

and let fff, FFF be their solutions that vanish at θ\thetaθ and are continuous there. Put

u(c)=sup⁡p∈D, ∥p∥≤c sup⁡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)=p∈D, ∥p∥≤csup​ qsup​∣G(p,q)−g(p,q)∣.

Then for every ccc,

sup⁡p∈D, ∥p∥≤c∣F(p)−f(p)∣≤∑n=0∞u(anc).\sup_{p \in D,\ \|p\| \le c} |F(p) - f(p)| \le \sum_{n=0}^{\infty} u(a^n c).p∈D, ∥p∥≤csup​∣F(p)−f(p)∣≤n=0∑∞​u(anc).

The solution therefore depends continuously on the reward: a perturbation of ggg that is small near θ\thetaθ changes the solution only slightly on each ball.

Formalization Note The supremum on the left is stated pointwise: for every p∈Dp \in Dp∈D with ∥p∥≤c\|p\| \le c∥p∥≤c. The series converges because u(c)≤vg(c)+vG(c)u(c) \le v_g(c) + v_G(c)u(c)≤vg​(c)+vG​(c) and both equations satisfy (3.1e). SSS is assumed nonempty.

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 3, p. 124. Let
`f(p) = Sup_q [g + h f(T)]` and `F(p) = Sup_q [G + h F(T)]` both be of Type One (same `h`, `T`,
`a`), and let `f`, `F` be their solutions vanishing at `θ` and continuous there. With
`u(c) = Sup_{‖p‖ ≤ c} Sup_q |G(p, q) − g(p, q)|`,
`Sup_{‖p‖ ≤ c} |F(p) − f(p)| ≤ Σ_{n=0}^∞ u(aⁿ c)`. -/
theorem type_one_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)) (a : ℝ)
    (hg : TypeOne D g h T a) (hG : TypeOne D G h T a)
    (f F : EuclideanSpace ℝ (Fin N) → ℝ)
    (hf_cont : ContinuousWithinAt f D 0) (hf_zero : f 0 = 0)
    (hf : ∀ p ∈ D, p ≠ 0 → SolvesAt g h T f p)
    (hF_cont : ContinuousWithinAt F D 0) (hF_zero : F 0 = 0)
    (hF : ∀ p ∈ D, p ≠ 0 → SolvesAt G h T F p) (c : ℝ) :
    ∀ p ∈ D, ‖p‖ ≤ c →
      |F p - f p| ≤ ∑' n : ℕ, radialSup D (fun p q => G p q - g p q) (a ^ n * c) := 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, Eqs. (6.1)-(6.5) and Theorem 3, Eq. (6.6), pp. 123-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