Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1, p. 419 — the general bound on multiprocessing timing anomalies

Proved
GrahamAnomaly.General.theorem_1

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

list-schedulingmakespanp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1schedulingtiming-anomaliesworst-case-bound

Run the same nonempty finite set of tasks twice by Graham's list-scheduling rule. The first run has positive durations μ\muμ, strict precedence order ≺\prec≺, arbitrary priority list LLL, n≥1n\ge1n≥1 identical processors, and finishing time ω\omegaω. The second has positive durations μ′≤μ\mu'\le\muμ′≤μ pointwise, a relaxed order ≺′⊆≺\prec'\subseteq\prec≺′⊆≺, arbitrary list L′L'L′, n′≥1n'\ge1n′≥1 processors, and finishing time ω′\omega'ω′. Then

ω′ω≤1+n−1n′.\frac{\omega'}{\omega}\le 1+\frac{n-1}{n'}.ωω′​≤1+n′n−1​.

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 ω>0\omega>0ω>0, 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.

Preamble
import Mathlib
import Definitions.Def_GrahamAnomaly_General_Model
Formal statement
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
Source
Graham, Bounds on multiprocessing timing anomalies, SIAM J. Appl. Math. 17 (1969), p. 419, Theorem 1 and §3 standing setting; 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