Theorem 1, p. 419 — the general bound on multiprocessing timing anomalies
ProvedGrahamAnomaly.General.theorem_1Run the same nonempty finite set of tasks twice by Graham's list-scheduling rule. The first run has positive durations , strict precedence order , arbitrary priority list , identical processors, and finishing time . The second has positive durations pointwise, a relaxed order , arbitrary list , processors, and finishing time . Then
The inequality limits how much the finishing time can increase even when tasks are shortened, precedence is relaxed, the list is changed, and the processor count changes together.
Formalization Note Both runs satisfy the list-scheduling predicate. Nonempty tasks and positive durations make , so the ratio has its intended meaning. The priority lists are arbitrary permutations, including lists that do not respect precedence. The tie rule for identical processor indices is omitted because it cannot change either finishing time.
import Mathlib import Definitions.Def_GrahamAnomaly_General_Model
namespace GrahamAnomaly.General
/-- Graham's Theorem 1: shortening tasks, relaxing precedence, changing the
priority list, and changing the processor count have this bounded effect. -/
theorem theorem_1 {r n n' : ℕ} (hr : 0 < r) (hn : 0 < n) (hn' : 0 < n')
(μ μ' : Fin r → ℝ) (hμ : ∀ j, 0 < μ j)
(hμ' : ∀ j, 0 < μ' j) (hle : ∀ j, μ' j ≤ μ j)
(prec prec' : Fin r → Fin r → Prop)
[IsStrictOrder (Fin r) prec] [IsStrictOrder (Fin r) prec']
(hsub : ∀ i j, prec' i j → prec i j)
(L L' : Fin r ≃ Fin r)
(G : Schedule n μ prec) (G' : Schedule n' μ' prec')
(hG : IsListSchedule L G) (hG' : IsListSchedule L' G') :
G'.finish / G.finish ≤ 1 + ((n : ℝ) - 1) / n' := by sorry
end GrahamAnomaly.General
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.