Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Claim 1, p. 9 — if token k departs from v ∈ Vk, it does so no later than r0 + (Loζdζ − Lvdζ + k − 1)

Proved
AtomicDynRouting.ResidenceTime.claim_1

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

atomic-dynamic-routinginductionp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1token-argument

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ζ​​.

Let k≥2k\ge2k≥2, and assume the conclusion of Lemma 1 for the tokens 1,…,k−11,\dots,k-11,…,k−1. Let eee be an edge of GζG_\zetaGζ​ with tail vvv, and suppose that

  1. token kkk departs from vvv along eee at time sss: it is in the buffer of eee at time sss and not at time s+1s+1s+1;
  2. it does so right after a smaller token: some token hhh with 1≤h<k1\le h<k1≤h<k departed from vvv along eee at time s−1s-1s−1 (it was in the buffer of eee at time s−1s-1s−1 and not at time sss).

Then

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

The vertices vvv of this kind form the set VkV_kVk​ of the paper. This is the first case of the induction step in the proof of Lemma 1.

Formalization Note. The bound is stated additively, s+Lvdζ+1≤r0+L+ks+L_{vd_\zeta}+1\le r_0+L+ks+Lvdζ​​+1≤r0​+L+k. "Right after" is read as one time unit later through the same edge, which is how the paper's proof uses it (token kkk departs one unit after token hhh, whose bound is r0+(L−Lvdζ+h−1)r_0+(L-L_{vd_\zeta}+h-1)r0​+(L−Lvdζ​​+h−1)). The induction hypothesis is a hypothesis of the statement, as on the page.

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

/-- Claim 1, §3.2, p. 9 (in the proof of Lemma 1). Let `k ≥ 2` and assume Lemma 1 for tokens `1, …, k − 1`. If token `k` departs from `v = tail e` along the edge `e` of `Gζ` at time `s` right after a token `h < k` departed along `e` (at time `s − 1`), then `s ≤ r0 + (L_{oζdζ} − L_{vdζ} + k − 1)`, written additively. -/
theorem claim_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 : 2 ≤ k) (IH : ∀ h : ℕ, 1 ≤ h → h < k → DepartBound N R ζ r0 h) (e : E) (he : e ∈ Gz N R ζ) (s : ℕ) (hks : tokAt R ζ r0 s k = some e) (hkdep : tokAt R ζ r0 (s + 1) k ≠ some e) (hprev : ∃ h : ℕ, 1 ≤ h ∧ h < k ∧ 1 ≤ s ∧ tokAt R ζ r0 (s - 1) h = some e ∧ tokAt R ζ r0 s h ≠ some e) : s + N.longest (N.tail e) (R.dest ζ) + 1 ≤ r0 + N.longest (R.orig ζ) (R.dest ζ) + 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, proof of Lemma 1, definition of Vk and Claim 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