Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1, p. 9 — token k departs every vertex v of Tk ∩ Gζ no later than r0 + (Loζdζ − Lvdζ + k − 1)

Proved
AtomicDynRouting.ResidenceTime.lemma_1

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

atomic-dynamic-routingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1token-argumentupper-bound

Let GGG be a finite acyclic network with unit lengths and capacities, take an ADR run, a focal agent ζ\zetaζ with entry time rrr, an integer time r0≥rr_0\ge rr0​≥r, and the token process of §3.2 started at r0r_0r0​. Write L=LoζdζL=L_{o_\zeta d_\zeta}L=Loζ​dζ​​, and let TkT_kTk​ be the motion trail of token kkk.

For every token k≥1k\ge1k≥1 and every vertex vvv of Tk∩GζT_k\cap G_\zetaTk​∩Gζ​, token kkk departs from vvv no later than

r0+(L−Lvdζ+k−1).r_0+\bigl(L-L_{v d_\zeta}+k-1\bigr).r0​+(L−Lvdζ​​+k−1).

Here token kkk departs from a vertex vvv that is not the sink of Tk∩GζT_k\cap G_\zetaTk​∩Gζ​ when it starts to move along the edge of Tk∩GζT_k\cap G_\zetaTk​∩Gζ​ leaving vvv, and it departs from the sink when it reaches it.

Precisely: whenever token kkk is in the buffer of an edge eee of GζG_\zetaGζ​ at some time s0s_0s0​, it stays there until some time s≥s0s\ge s_0s≥s0​ at which it leaves along eee, with s≤r0+(L−Ltail⁡(e)dζ+k−1)s\le r_0+(L-L_{\operatorname{tail}(e) d_\zeta}+k-1)s≤r0​+(L−Ltail(e)dζ​​+k−1); and if after that move it is no longer in a buffer of GζG_\zetaGζ​, then it reaches the sink head⁡(e)\operatorname{head}(e)head(e) at time s+1≤r0+(L−Lhead⁡(e)dζ+k−1)s+1\le r_0+(L-L_{\operatorname{head}(e) d_\zeta}+k-1)s+1≤r0​+(L−Lhead(e)dζ​​+k−1).

Lemma 1 is the core of the multi-token technique. It holds for every run, with no condition on the later entrants.

Formalization Note. The conclusion is the predicate DepartBound of the Tokens file, with additive bounds (s+Lvdζ+1≤r0+L+ks+L_{vd_\zeta}+1\le r_0+L+ks+Lvdζ​​+1≤r0​+L+k). Every vertex of Tk∩GζT_k\cap G_\zetaTk​∩Gζ​ is the tail of one of its edges or its sink, so the two parts cover all of them; TkT_kTk​ itself is not defined, as the buffers the token occupies are its trail.

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

/-- Lemma 1, §3.2, p. 9. For every token `k ≥ 1` and every vertex `v` of `Tₖ ∩ Gζ`, token `k` departs from `v` no later than `r0 + (L_{oζdζ} − L_{vdζ} + k − 1)` (see `DepartBound`). -/
theorem lemma_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) (hinside : R.inside ζ r0) (k : ℕ) (hk : 1 ≤ k) : DepartBound N R ζ r0 k := 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. 9 (PDF 10), §3.2, Lemma 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