Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

PROOF, p. 689 — scheduling j and k by SRPT over σ minimizes min[C(k), C(j)]

Proved
SchrageSRPT.Opt.srpt_reassign_min_le

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

interchange-argumentp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1schedulingsrpt

Let δo\delta_oδo​ be a schedule of an arrival stream, let t∈Rt \in \mathbb Rt∈R, and let j≠kj \ne kj=k be two jobs in system at time ttt under δo\delta_oδo​ with

So(j,t)<So(k,t).S_o(j, t) < S_o(k, t).So​(j,t)<So​(k,t).

Let δs\delta_sδs​ be the SRPT reassignment of the pair after time ttt: from time ttt on, the capacity δo(j,x)+δo(k,x)\delta_o(j, x) + \delta_o(k, x)δo​(j,x)+δo​(k,x) goes to jjj until jjj has received So(j,t)S_o(j, t)So​(j,t), and to kkk afterwards. Let δr\delta_rδr​ be any schedule of the same stream that agrees with δo\delta_oδo​ on jjj and kkk before ttt and gives the pair the same capacity, δr(j,x)+δr(k,x)=δo(j,x)+δo(k,x)\delta_r(j, x) + \delta_r(k, x) = \delta_o(j, x) + \delta_o(k, x)δr​(j,x)+δr​(k,x)=δo​(j,x)+δo​(k,x) for all xxx. Then

min⁡[Cs(k),Cs(j)]≤min⁡[Cr(k),Cr(j)].\min[C_s(k), C_s(j)] \le \min[C_r(k), C_r(j)].min[Cs​(k),Cs​(j)]≤min[Cr​(k),Cr​(j)].

This is the letter's claim that "min⁡[C(k),C(j)]\min[C(k), C(j)]min[C(k),C(j)] is minimized if we schedule kkk and jjj according to SRPT", i.e. that the earliest time at which one of the two jobs can finish is attained by giving all the capacity to the job with the shorter remaining time.

Formalization Note. Completion times take values in R∪{+∞}\mathbb R \cup \{+\infty\}R∪{+∞}. That δs\delta_sδs​ is a schedule follows from the hypotheses and is not assumed. The competitor δr\delta_rδr​ may spend capacity on a completed job; that only delays its completions, so no restriction is placed on it. Other jobs play no role and are not constrained.

Preamble
import Mathlib
import Definitions.Def_SchrageSRPT_Opt_Model
Formal statement
namespace SchrageSRPT.Opt
theorem srpt_reassign_min_le (A P : ℕ → ℝ) (δo δr : ℕ → ℝ → ℝ)
    (hδo : IsSchedule A δo) (hδr : IsSchedule A δr) (j k : ℕ) (t : ℝ) (hjk : j ≠ k)
    (hj : j ∈ inSystem A P δo t) (hk : k ∈ inSystem A P δo t)
    (hbefore : ∀ x, x < t → δr j x = δo j x ∧ δr k x = δo k x)
    (hsum : ∀ x, δr j x + δr k x = δo j x + δo k x)
    (hS : remaining A P δo j t < remaining A P δo k t) :
    min (completion A P (srptReassign A P δo j k t) k)
        (completion A P (srptReassign A P δo j k t) j) ≤
      min (completion A P δr k) (completion A P δr j) := by sorry
end SchrageSRPT.Opt
Source
Schrage, A proof of the optimality of the shortest remaining processing time discipline, Oper. Res. 16 (1968), p. 689, PROOF, the paragraph after the max identity
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