Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

PROOF, p. 689, relation (2) — in case (b2) the SRPT reassignment strictly reduces min[C(k), C(j)]

Proved
SchrageSRPT.Opt.srpt_reassign_min_lt

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, v>0v > 0v>0, and let j≠kj \ne kj=k be two jobs in system at time ttt under δo\delta_oδo​ such that

  1. job kkk is processed throughout [t,t+v][t, t+v][t,t+v]: δo(k,x)=1\delta_o(k, x) = 1δo​(k,x)=1 for t≤x≤t+vt \le x \le t+vt≤x≤t+v (condition (b2));
  2. jjj has the shorter remaining time at ttt: So(j,t)<So(k,t)S_o(j, t) < S_o(k, t)So​(j,t)<So​(k,t) (condition (a));
  3. at least one of j,kj, kj,k completes under δo\delta_oδo​: min⁡[Co(k),Co(j)]<∞\min[C_o(k), C_o(j)] < \inftymin[Co​(k),Co​(j)]<∞.

Let δr\delta_rδr​ be the SRPT reassignment of the pair after time ttt (from ttt on, the pair's capacity goes to jjj until jjj has received So(j,t)S_o(j, t)So​(j,t), then to kkk). Then

min⁡[Cr(k),Cr(j)]<min⁡[Co(k),Co(j)].\min[C_r(k), C_r(j)] < \min[C_o(k), C_o(j)].min[Cr​(k),Cr​(j)]<min[Co​(k),Co​(j)].

This is relation (2) of the letter's PROOF: when the processor serves a job with longer remaining time while a shorter one waits, swapping their service makes the first of the two completions strictly earlier.

Formalization Note. Condition (a) of the letter requires So(j,x)<So(k,x)S_o(j, x) < S_o(k, x)So​(j,x)<So​(k,x) for all x∈[t,t+v]x \in [t, t+v]x∈[t,t+v]; only x=tx = tx=t is used, which makes the statement stronger. Hypothesis 3 is added: if neither job completes under δo\delta_oδo​, both minima can be +∞+\infty+∞ and the strict inequality fails. That δr\delta_rδr​ is a schedule follows from the hypotheses and is not assumed. Completion times take values in R∪{+∞}\mathbb R \cup \{+\infty\}R∪{+∞}.

Preamble
import Mathlib
import Definitions.Def_SchrageSRPT_Opt_Model
Formal statement
namespace SchrageSRPT.Opt
theorem srpt_reassign_min_lt (A P : ℕ → ℝ) (δo : ℕ → ℝ → ℝ) (hδo : IsSchedule A δo)
    (j k : ℕ) (t v : ℝ) (hv : 0 < v) (hjk : j ≠ k)
    (hj : j ∈ inSystem A P δo t) (hk : k ∈ inSystem A P δo t)
    (hk_served : ∀ x ∈ Set.Icc t (t + v), δo k x = 1)
    (hS : remaining A P δo j t < remaining A P δo k t)
    (hfinite : min (completion A P δo k) (completion A P δo j) ≠ ⊤) :
    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 δo k) (completion A P δo 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, conditions (a), (b2) and the display "min[C_r(k), C_r(j)] < min[C_o(k), C_o(j)]" (relation (2))
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