Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(2) and (5), proof of Theorem 1, p. 420 — idle processor time is bounded by the covering chain

Proved
GrahamAnomaly.General.idle_time_le

by mikedeng1 · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

idle-timelist-schedulingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1schedulingtiming-anomalies

Consider a feasible schedule of tasks with positive durations μ′(Tj)\mu'(T_j)μ′(Tj​) on n′≥1n'\ge1n′≥1 identical processors. Suppose a ≺′\prec'≺′-chain CCC of tasks covers every time before its finishing time ω′\omega'ω′ at which some processor is idle. Then the total idle processor time obeys

n′ω′−∑jμ′(Tj)≤(n′−1)∑Tj∈Cμ′(Tj).n'\omega'-\sum_j\mu'(T_j)\le(n'-1)\sum_{T_j\in C}\mu'(T_j).n′ω′−j∑​μ′(Tj​)≤(n′−1)Tj​∈C∑​μ′(Tj​).

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
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me