Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Section 5 (after (5.4)) — f_i^(k) is the minimum time over paths with at most k stops

Proved
BellmanRouting.PolicySpace.approx_eq_minTimeWithin

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

dynamic-programmingp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1shortest-pathsuccessive-approximations

Let N=n+1≥2N = n + 1 \ge 2N=n+1≥2 and tij>0t_{ij} > 0tij​>0 for i≠ji \ne ji=j, and let f(k)f^{(k)}f(k) be the successive approximations (5.1) from the direct-route policy (5.2), with fN(0)=0f_N^{(0)} = 0fN(0)​=0. Then for every k≥0k \ge 0k≥0 and every city iii, fi(k)f_i^{(k)}fi(k)​ is the minimal time to travel from iii to NNN along a route with at most kkk stops. That is, some route from iii to NNN with at most k+1k + 1k+1 roads has time fi(k)f_i^{(k)}fi(k)​, and every such route has time at least fi(k)f_i^{(k)}fi(k)​:

fi(k)=min⁡{∑r=0m−1tcrcr+1  :  i=c0,c1,…,cm=N, m≤k+1}.f_i^{(k)} = \min\Big\{\sum_{r=0}^{m-1} t_{c_r c_{r+1}} \;:\; i = c_0, c_1, \dots, c_m = N,\ m \le k + 1\Big\}.fi(k)​=min{r=0∑m−1​tcr​cr+1​​:i=c0​,c1​,…,cm​=N, m≤k+1}.

The page states this for k=1k = 1k=1 ("fi(1)f_i^{(1)}fi(1)​ represents the minimum time for a path with at most one stop"). For general kkk it invokes the same fact as "the physical interpretation of this iterative scheme", on which both (5.5) and the N−1N - 1N−1 bound rest.

Formalization Note At i=Ni = Ni=N the trivial route (no road, time 000) is admitted, matching fN(k)=0f_N^{(k)} = 0fN(k)​=0. Routes may repeat cities; with positive times this does not change the minimum. The convention fN(0)=0f_N^{(0)} = 0fN(0)​=0 is the corrected reading of (5.2) explained in the (5.4) item.

Preamble
import Mathlib
import Definitions.Def_BellmanRouting_PolicySpace_Routing
Formal statement
namespace BellmanRouting.PolicySpace

theorem approx_eq_minTimeWithin {n : ℕ} (hn : 1 ≤ n)
    (t : Fin (n + 1) → Fin (n + 1) → ℝ) (ht : ∀ i j, i ≠ j → 0 < t i j) :
    ∀ k i, IsMinTimeWithin t k i (approx t k i) := by sorry

end BellmanRouting.PolicySpace
Source
Bellman, On a routing problem, Quart. Appl. Math. 16 (1958), p. 89, Section 5 (the sentence after (5.4), and the sentence after (5.6))
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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me