Lemma 2.4 — the shifted parallel inequalities (2.3) and their equality case
ProvedSingleMachineSched.LPRelax.lemma_2_4Let jobs have integral processing times and integral release dates . Let be any preemptive schedule, with mean busy times , and let be a nonempty set of jobs, with and . Then
and equality holds if and only if the jobs of occupy the machine without interruption from to , that is, coincides with up to a set of measure zero.
The inequality shows that the mean busy time vector of every preemptive schedule is feasible for (R), so is a lower bound; the equality case is what makes the LP schedule's mean busy times attain it.
Formalization Note Processing sets are determined only up to null sets as far as is concerned, so "scheduled without interruption" is rendered as almost-everywhere equality of sets for Lebesgue measure. The paper's statement ranges over all sets ; for it is and is undefined, so is nonempty here.
import Mathlib import Definitions.Def_SingleMachineSched_Shared_PreemptiveSchedule import Definitions.Def_SingleMachineSched_Shared_RelaxationR
namespace SingleMachineSched.LPRelax
/-- Lemma 2.4: in every preemptive schedule, every nonempty job set `S` satisfies the shifted
parallel inequality (2.3), with equality iff the jobs of `S` occupy the machine without
interruption from `r_min(S)` to `r_min(S) + p(S)` (up to a null set of times). -/
theorem lemma_2_4 {n : ℕ} (p r : Fin n → ℕ) (hp : ∀ j, 0 < p j) (A : Fin n → Set ℝ)
(hA : Shared.IsPreemptiveSchedule p r A) (S : Finset (Fin n)) (hS : S.Nonempty) :
Shared.pSum p S * (Shared.rmin r S hS + Shared.pSum p S / 2) ≤ ∑ j ∈ S, (p j : ℝ) * Shared.meanBusyTime p A j ∧
(∑ j ∈ S, (p j : ℝ) * Shared.meanBusyTime p A j = Shared.pSum p S * (Shared.rmin r S hS + Shared.pSum p S / 2) ↔
(⋃ j ∈ S, A j) =ᵐ[MeasureTheory.volume]
Set.Ico (Shared.rmin r S hS) (Shared.rmin r S hS + Shared.pSum p S)) := by sorry
end SingleMachineSched.LPRelax
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.