Lemma 4.8 — idle time charged to before is at most , so
ProvedAvgCompletionSched.DelayList.idle_charged_after_boundapproximation-algorithmsp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1precedence-constraintsscheduling
Let be a schedule produced by the continuous-time algorithm Delay List with parameter on machines, using a list that obeys the precedence constraints. For every job and every path of Definition 4.4, with length :
- the total idle time charged to jobs in , lying in the interval , is at most ;
- consequently
The lemma bounds how much work from later in the list the algorithm can run before .
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.
- ;
- a list obeying precedence;
- ;
- a run satisfying the Delay List property for ;
- a job and a path for (as defined in the analysis block);
- .
Conclusion. All three of the following hold.
- The idle time charged to jobs strictly after in the list, restricted to the open interval , is bounded:
- The jobs later than in the list but scheduled before , , satisfy
Degenerate cases.
- Division by is safe, since .
- If or is empty, the left-hand sides are .
- If no path for exists, the statement is vacuous.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.