Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2.4 — unsplit decreasing-rir_iri​ order without idle time, no task early, is minimal

Proved
McNaughtonSched.SingleProc.ratio_order_minimal_of_no_early

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

p2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1schedulingsingle-machineweighted-tardiness

Consider mmm tasks on a single processor. Task (i)(i)(i) needs ai>0a_i > 0ai​>0 units of time, has deadline did_idi​ and penalty rate pi≥0p_i \ge 0pi​≥0: completed at time CiC_iCi​, it incurs the loss pimax⁡(0,Ci−di)p_i\max(0, C_i - d_i)pi​max(0,Ci​−di​). Let σ\sigmaσ order the tasks by decreasing ratio ri=pi/air_i = p_i/a_iri​=pi​/ai​, and let SSS be the schedule that runs the tasks without splitting and without unused time in that order, task σ(k)\sigma(k)σ(k) occupying [∑l<kaσ(l),∑l≤kaσ(l)]\bigl[\sum_{l<k} a_{\sigma(l)}, \sum_{l\le k} a_{\sigma(l)}\bigr][∑l<k​aσ(l)​,∑l≤k​aσ(l)​]. Suppose that in SSS no task finishes before its deadline, i.e. di≤Ci(S)d_i \le C_i(S)di​≤Ci​(S) for all iii. Then SSS is a feasible schedule and it is minimal:

c(S)≤c(S′)for every feasible schedule S′,c(S) \le c(S') \qquad \text{for every feasible schedule } S',c(S)≤c(S′)for every feasible schedule S′,

where ccc denotes total loss and the competitors S′S'S′ may split tasks and leave the processor idle.

The condition is sufficient but not necessary for minimality. It generalizes Theorem 2.3 (all deadlines 000) and underlies the scheduling procedure the paper proposes for general deadlines.

Formalization Note "Decreasing" is non-increasing, with ties in any order. "Minimal" is stated against every feasible schedule; the conclusion also asserts that the sequenced schedule is feasible. pi≥0p_i \ge 0pi​≥0 (the pip_ipi​ are penalties) and ai>0a_i > 0ai​>0 (tasks take time) are the model's standing assumptions; no sign condition on the deadlines is imposed.

Preamble
import Mathlib
import Definitions.Def_McNaughtonSched_SingleProc_Model
Formal statement
namespace McNaughtonSched.SingleProc

theorem ratio_order_minimal_of_no_early {m : ℕ} (a p d : Fin m → ℝ)
    (ha : ∀ i, 0 < a i) (hp : ∀ i, 0 ≤ p i)
    (σ : Equiv.Perm (Fin m)) (hσ : InRatioOrder a p σ)
    (hlate : ∀ i, d i ≤ completion (seqSchedule a σ) i) :
    IsFeasible a (seqSchedule a σ) ∧
      ∀ S : Schedule m, IsFeasible a S →
        totalLoss p d (seqSchedule a σ) ≤ totalLoss p d S := by sorry

end McNaughtonSched.SingleProc
Source
McNaughton, Scheduling with Deadlines and Loss Functions, Management Science 6(1), 1959, p. 5, Theorem 2.4
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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