Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1, p. 7 — if no later entrant exits Gζ before ζ, then ζ exits by r0 + Loζdζ + |Bζ,p(r0)|

Proved
AtomicDynRouting.ResidenceTime.theorem_1

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

atomic-dynamic-routinggreedy-schedulingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1residence-timeupper-bound

Let G=(V,E)G=(V,E)G=(V,E) be a finite acyclic directed multigraph in which every edge has unit length and unit capacity, and take an atomic dynamic routing on GGG obeying the buffer regulations (A1)–(A2), with any choice of the agent leaving each buffer. Fix an agent ζ\zetaζ with entry time rrr, origin oζo_\zetaoζ​ and destination dζd_\zetadζ​, and let GζG_\zetaGζ​, Aζ,pA_{\zeta,p}Aζ,p​, Bζ,p(r0)B_{\zeta,p}(r_0)Bζ,p​(r0​) and LoζdζL_{o_\zeta d_\zeta}Loζ​dζ​​ be as in §3.1.

For any integer time r0≥rr_0\ge rr0​≥r: if no agent in Aζ,pA_{\zeta,p}Aζ,p​ exits GζG_\zetaGζ​ before agent ζ\zetaζ exits GGG, then ζ\zetaζ exits GGG no later than

r0+Loζdζ+∣Bζ,p(r0)∣.r_0+L_{o_\zeta d_\zeta}+\bigl|B_{\zeta,p}(r_0)\bigr|.r0​+Loζ​dζ​​+​Bζ,p​(r0​)​.

The bound holds whatever rule selects the leaving agent of a buffer. Taking r0=rr_0=rr0​=r when no agent enters after ζ\zetaζ on GζG_\zetaGζ​ gives Corollary 1: the residence time of ζ\zetaζ is at most Loζdζ+∣Bζ,p(r)∣L_{o_\zeta d_\zeta}+|B_{\zeta,p}(r)|Loζ​dζ​​+∣Bζ,p​(r)∣. The paper uses the family of bounds parameterised by r0r_0r0​ to settle the queue-length question for equilibria on series-parallel networks (§6).

Formalization Note. Exit times live in N∪{∞}\mathbb N\cup\{\infty\}N∪{∞} (ℕ∞); the conclusion forces ζ\zetaζ's exit time to be finite. The hypothesis is strict: for each i∈Aζ,pi\in A_{\zeta,p}i∈Aζ,p​ it is excluded that the time iii reaches the sink of his route ∩ Gζ\cap\,G_\zeta∩Gζ​ is earlier than ζ\zetaζ's exit time. ∣Bζ,p(r0)∣|B_{\zeta,p}(r_0)|∣Bζ,p​(r0​)∣ is Set.ncard; the set is finite because its agents entered by time rrr, finitely many per time. The theorem assumes only r0≥rr_0\ge rr0​≥r, as printed; if ζ\zetaζ has already exited by r0r_0r0​, the bound holds trivially.

Preamble
import Mathlib
import Definitions.Def_AtomicDynRouting_ResidenceTime_Model
Formal statement
namespace AtomicDynRouting.ResidenceTime

/-- Theorem 1 (Cao–Chen–Chen–Wang, p. 7). Given an ADR profile on a unit-capacity acyclic network,
for any integer time `r0 ≥ r` (`r` the entry time of `ζ`), if no agent in `A_{ζ,p}` exits `Gζ`
before `ζ` exits `G`, then `ζ` exits `G` no later than `r0 + L_{oζdζ} + |B_{ζ,p}(r0)|`. -/
theorem theorem_1 {V E ι : Type} [Fintype V] [DecidableEq V] [Fintype E] [DecidableEq E] (N : Network V E) (hN : N.Acyclic) (R : RunData ι E V) (hR : IsADR N R) (ζ : ι) (r0 : ℕ) (hr0 : R.entry ζ ≤ r0) (hA : ∀ i ∈ Aset N R ζ, ¬ (exitGz N R ζ i < R.exitTime ζ)) : R.exitTime ζ ≤ ((r0 + N.longest (R.orig ζ) (R.dest ζ) + (Bset N R ζ r0).ncard : ℕ) : ℕ∞) := by sorry

end AtomicDynRouting.ResidenceTime
Source
Cao, Chen, Chen, Wang, Bounding residence times for atomic dynamic routings, accepted manuscript (Mathematics of Operations Research, accepted Nov. 12, 2021; WRAP 160244), p. 7 (PDF 8), Theorem 1
Human review
  • Endorsed by Shuze Chen · Oct 20, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 20, 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