Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4.8 — idle time charged to AiA_iAi​ before sims^m_isim​ is at most m(κi′−pi)m(\kappa'_i - p_i)m(κi′​−pi​), so p(Oi)≤m(κi′−pi)/βp(O_i) \le m(\kappa'_i - p_i)/\betap(Oi​)≤m(κi′​−pi​)/β

Proved
AvgCompletionSched.DelayList.idle_charged_after_bound

by mikedeng1 · Sep 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

approximation-algorithmsp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1precedence-constraintsscheduling

Let SmS^mSm be a schedule produced by the continuous-time algorithm Delay List with parameter β>0\beta>0β>0 on m≥2m\ge 2m≥2 machines, using a list that obeys the precedence constraints. For every job JiJ_iJi​ and every path Pi′P'_iPi′​ of Definition 4.4, with length κi′\kappa'_iκi′​:

  1. the total idle time charged to jobs in AiA_iAi​, lying in the interval (0,sim)(0,s^m_i)(0,sim​), is at most m(κi′−pi)m(\kappa'_i-p_i)m(κi′​−pi​);
  2. consequently
p(Oi)≤m(κi′−pi)β≤m(κi−pi)β.p(O_i)\le\frac{m(\kappa'_i-p_i)}{\beta}\le\frac{m(\kappa_i-p_i)}{\beta}.p(Oi​)≤βm(κi′​−pi​)​≤βm(κi​−pi​)​.

The lemma bounds how much work from later in the list the algorithm can run before JiJ_iJi​.

Preamble
import Mathlib
import Definitions.Def_AvgCompletionSched_DelayList_Model
import Definitions.Def_AvgCompletionSched_DelayList_Algorithm
import Definitions.Def_AvgCompletionSched_DelayList_Analysis
Formal statement
namespace AvgCompletionSched.DelayList

/-- Lemma 4.8 (pp. 159–160): for every job `J_i` and every path `P′_i` of Definition 4.4, the
total idle time charged to jobs in `A_i`, in the interval `(0, s^m_i)`, is at most
`m (κ′_i − p_i)`; consequently `p(O_i) ≤ m (κ′_i − p_i)/β ≤ m (κ_i − p_i)/β`. -/
theorem idle_charged_after_bound {n m : ℕ} (I : Instance n) (hm : 2 ≤ m) (π : Fin n ≃ Fin n)
    (hπ : ObeysPrecedence I π) (β : ℝ) (hβ : 0 < β) (D : DelayListRun I m)
    (hD : IsDelayListSchedule I m π β D) (i j₁ : Fin n) (l : List (Fin n))
    (hP : D.IsPathPrime i j₁ l) :
    D.chargedToIn (listA π i) (Set.Ioo 0 (D.S i)) ≤ (m : ℝ) * (kappaPrime I j₁ l - I.p i) ∧
    psum I (D.outOfOrder π i) ≤ (m : ℝ) * (kappaPrime I j₁ l - I.p i) / β ∧
    (m : ℝ) * (kappaPrime I j₁ l - I.p i) / β ≤ (m : ℝ) * (kappa I i - I.p i) / β := by sorry

end AvgCompletionSched.DelayList
Source
Chekuri, Motwani, Natarajan, Stein, Approximation Techniques for Average Completion Time Scheduling, SIAM J. Comput. 31(1), 2001, pp. 159–160, Lemma 4.8
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Hypotheses.

  • m≥2m \ge 2m≥2;
  • a list π\piπ obeying precedence;
  • β>0\beta > 0β>0;
  • a run DDD satisfying the Delay List property for (π,β)(\pi,\beta)(π,β);
  • a job iii and a path j1,…,jℓj_1,\dots,j_\ellj1​,…,jℓ​ for iii (as defined in the analysis block);
  • κ′=rj1+∑kpjk\kappa' = r_{j_1} + \sum_{k} p_{j_k}κ′=rj1​​+∑k​pjk​​.

Conclusion. All three of the following hold.

  1. The idle time charged to jobs strictly after iii in the list, restricted to the open interval (0,Si)(0, S_i)(0,Si​), is bounded:
∑k∈Ai∫(charged set of k)∩(0,Si)idle(t) dt  ≤  m (κ′−pi).\sum_{k \in A_i} \int_{(\text{charged set of } k) \cap (0,S_i)} \mathrm{idle}(t)\,dt \;\le\; m\,(\kappa' - p_i).k∈Ai​∑​∫(charged set of k)∩(0,Si​)​idle(t)dt≤m(κ′−pi​).
  1. The jobs later than iii in the list but scheduled before iii, Oi={k∈Ai:k⊲i}O_i = \{k \in A_i : k \lhd i\}Oi​={k∈Ai​:k⊲i}, satisfy
∑k∈Oipk  ≤  m(κ′−pi)β.\sum_{k \in O_i} p_k \;\le\; \frac{m(\kappa' - p_i)}{\beta}.k∈Oi​∑​pk​≤βm(κ′−pi​)​.
m(κ′−pi)β  ≤  m(κi−pi)β.\frac{m(\kappa' - p_i)}{\beta} \;\le\; \frac{m(\kappa_i - p_i)}{\beta}.βm(κ′−pi​)​≤βm(κi​−pi​)​.

Degenerate cases.

  • Division by β\betaβ is safe, since β>0\beta > 0β>0.
  • If AiA_iAi​ or OiO_iOi​ is empty, the left-hand sides are 000.
  • If no path for iii exists, the statement is vacuous.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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