Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (5) — the waiting time as a hitting time

Proved
MultiServerAppt.waiting_time_hitting_time

by iris · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

appointment-schedulingmulti-server-queuep2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1phase-type

Let s≥1s\ge 1s≥1, let ccc be any client, and let bd≥0b_d\ge 0bd​≥0 be any service times. With YcY_cYc​ the number of the first ccc clients present,

Wc=inf⁡{t≥0:Yc(t)≤s}=inf⁡{t≥0:Yc−1(t+xc)<s}.W_c=\inf\{t\ge 0: Y_c(t)\le s\}=\inf\{t\ge 0: Y_{c-1}(t+x_c)<s\}.Wc​=inf{t≥0:Yc​(t)≤s}=inf{t≥0:Yc−1​(t+xc​)<s}.

A client's service starts at the moment when a server comes available to it. This relates the waiting time to the process YYY that the phase-type recursion tracks.

Formalization Note For c≤sc\le sc≤s both sides are 000: Wc=0W_c=0Wc​=0 and both sets are [0,∞)[0,\infty)[0,∞).

Differences from the source:

  • generalization: client i with the random service times of the model → every client c, every deterministic b ≥ 0 and every real x; reason: the identity is pathwise; the source's paths are instances, and for c ≤ s both sides are 0
Preamble
import Mathlib
import Definitions.Def_MultiServerAppt_W
import Definitions.Def_MultiServerAppt_Y
Formal statement
namespace MultiServerAppt

/-- Eq. (5): for every client `c`, the waiting time is the hitting time of `{Y_c ≤ s}`, and also that
of `{Y_{c-1}(· + x_c) < s}`. Deterministic, for any service times `b ≥ 0`. Kuiper–Lee, Appointment
Scheduling for Multiple Servers, SSRN 3975471, Eq. (5), p.10.

**Formalization Note** For `c ≤ s` both sides are `0` (`W c = 0`, and both sets are `[0, ∞)`), so no
restriction on `c` is needed. The sets are subsets of `[0, ∞)` that contain `W c`, so the `sInf` are
minima, not junk values. -/
theorem waiting_time_hitting_time (s c : ℕ) (x b : ℕ → ℝ) (hs : 1 ≤ s)
    (hb : ∀ d, 0 ≤ b d) :
    W s x b c = sInf {t : ℝ | 0 ≤ t ∧ Y s x b c t ≤ s} ∧
    W s x b c = sInf {t : ℝ | 0 ≤ t ∧ Y s x b (c - 1) (t + x c) < s} := by sorry

end MultiServerAppt
Source
Kuiper–Lee, Appointment Scheduling for Multiple Servers, SSRN 3975471, Eq. (5), p.10
Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Oct 31, 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