Lemma 4.7 — no uncharged idle time in , and it is charged only to jobs in
ProvedAvgCompletionSched.DelayList.no_uncharged_idleLet 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 :
- once has been scheduled and charged, there is no uncharged idle time in the time interval ;
- all the idle time in is charged only to jobs in : for every job , the idle time in charged to is .
In formulas, with the number of idle machines at time and the charge window of job ,
The lemma says that between the moment is ready and the moment it starts, idle machines are paid for by and the jobs ahead of it in the list only.
Formalization Note The paper's "all the idle time is charged only to jobs in " is read as all the idle time in , which is how its proof uses it.
import Mathlib import Definitions.Def_AvgCompletionSched_DelayList_Model import Definitions.Def_AvgCompletionSched_DelayList_Algorithm import Definitions.Def_AvgCompletionSched_DelayList_Analysis
namespace AvgCompletionSched.DelayList
open MeasureTheory
/-- Lemma 4.7 (p. 159): for every job `J_i`, once `J_i` has been scheduled and charged there is
no uncharged idle time in the interval `(q^m_i, s^m_i)`, and all the idle time in that interval
is charged only to jobs in `B_i` (no job of `A_i` is charged idle time lying in it). -/
theorem no_uncharged_idle {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 : Fin n) :
(∫ t in Set.Ioo (D.q i) (D.S i) \ ⋃ k ∈ {k | D.Before k i ∨ k = i}, D.window k,
D.idle t) = 0 ∧
∀ k ∈ listA π i, (∫ t in D.chargedSet k ∩ Set.Ioo (D.q i) (D.S i), D.idle t) = 0 := by sorry
end AvgCompletionSched.DelayList
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 ;
- any job .
Conclusion. Let be the ready time of : , or if has no predecessors. Both of the following hold:
- For every job strictly after in the list ():
Here the charged set of is .
These are statements about integrals of being zero, not directly about the sets being empty. Under the property , so the idle count vanishes almost everywhere on those sets.
Degenerate cases.
- If , both integrals are over empty sets, and the statement is trivial.
- If is last in the list, part 2 is vacuous.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.