Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 3, p. 427 — equality with the optimal prefix implies global optimality

Proved
GrahamAnomaly.KLongest.eq_optFinish_of_eq_prefixFinish

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

list-schedulingmakespanp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1scheduling

Consider r>0r>0r>0 tasks of positive lengths on n>0n>0n>0 identical processors. Choose 0≤k≤r0\le k\le r0≤k≤r longest tasks first in a list LLL, assign each successive task to a least-loaded processor, and require the resulting first-kkk finishing time ωk\omega_kωk​ to be minimal among assignments of those kkk tasks. If the full finishing time ω(k)\omega(k)ω(k) already equals ωk\omega_kωk​, then

ω(k)=ω0,\omega(k)=\omega_0,ω(k)=ω0​,

where ω0\omega_0ω0​ is the minimum finishing time for all rrr tasks. This is the first case separated in the proof of Theorem 3.

Formalization Note The order of equal-length tasks and ties among least-loaded processors are unrestricted. The explicit condition k≤rk\le rk≤r makes the prefix meaningful.

Preamble
import Mathlib
import Definitions.Def_GrahamAnomaly_KLongest_Model
Formal statement
namespace GrahamAnomaly.KLongest

theorem eq_optFinish_of_eq_prefixFinish {r n k : ℕ} (hr : 0 < r) (hn : 0 < n)
    (hk : k ≤ r) (μ : Fin r → ℝ) (hμ : ∀ j, 0 < μ j)
    (L : Fin r ≃ Fin r) (σ : Fin r → Fin n)
    (hlong : ∀ i j, (L.symm i : ℕ) < k → k ≤ (L.symm j : ℕ) → μ j ≤ μ i)
    (hσ : IsListAssignment μ L σ)
    (hopt : ∀ τ : Fin r → Fin n, prefixFinish μ L σ k ≤ prefixFinish μ L τ k) :
    WilliamsonShmoys.makespan μ σ = prefixFinish μ L σ k →
      WilliamsonShmoys.makespan μ σ = optFinish μ n := by sorry

end GrahamAnomaly.KLongest
Source
Graham, Bounds on multiprocessing timing anomalies, SIAM J. Appl. Math. 17 (1969), p. 427, first sentence of proof of Theorem 3
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