(2) and (5), proof of Theorem 1, p. 420 — idle processor time is bounded by the covering chain
ProvedGrahamAnomaly.General.idle_time_leidle-timelist-schedulingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1schedulingtiming-anomalies
Consider a feasible schedule of tasks with positive durations on identical processors. Suppose a -chain of tasks covers every time before its finishing time at which some processor is idle. Then the total idle processor time obeys
This is Graham's display (2), with the idle-time accounting identity of display (5) substituted into its left side. It converts the covering property into a numerical bound.
Formalization Note The chain is a list in precedence order. The expression on the left equals the sum of durations of all empty tasks in the timing diagram. Once coverage is assumed, the numerical estimate needs only schedule feasibility, not the list rule.
Preamble
import Mathlib import Definitions.Def_GrahamAnomaly_General_Model
Formal statement
namespace GrahamAnomaly.General
/-- Display (2), using the empty-task-time identity in (5). -/
theorem idle_time_le {r n' : ℕ} (hn' : 0 < n')
(μ' : Fin r → ℝ) (hμ' : ∀ j, 0 < μ' j)
(prec' : Fin r → Fin r → Prop) [IsStrictOrder (Fin r) prec']
(G' : Schedule n' μ' prec') (c : List (Fin r))
(hc : c.Chain' prec')
(hcover : ∀ t : ℝ, 0 ≤ t → t < G'.finish → ¬ AllBusy G' t →
∃ a ∈ c, G'.S a ≤ t ∧ t < G'.S a + μ' a) :
(n' : ℝ) * G'.finish - ∑ j, μ' j ≤
((n' : ℝ) - 1) * (c.map μ').sum := by sorry
end GrahamAnomaly.General
Source
Graham, Bounds on multiprocessing timing anomalies, SIAM J. Appl. Math. 17 (1969), p. 420, displays (2) and (5), proof of Theorem 1; https://doi.org/10.1137/0117039
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.