Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2 — πE\pi_EπE​ is an optimal schedule for the extended problem (E)

Proved
DelayedSWPT.Extended.piE_optimal

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

online-algorithmsp2o-batch-pfp1ap2o-gran-per-chapterp2o-plan-paperp2o-v1scheduling

Let π\piπ be the Delayed SWPT schedule of an instance (P), let (E) be the extended problem obtained by replacing the release dates by rj′=max⁡{pj,f(rj)}r'_j = \max\{p_j, f(r_j)\}rj′​=max{pj​,f(rj​)} and adding a unit gap job gtg_tgt​ (release date f(rj)f(r_j)f(rj​), weight wj/pjw_j/p_jwj​/pj​, where jjj is the job Delayed SWPT selected but did not start at ttt) for every idle slot [t,t+1)[t, t+1)[t,t+1) in which a job was available, and let πE\pi_EπE​ be the schedule of (E) that runs the jobs of JJJ as in π\piπ and each gap job gtg_tgt​ in [t,t+1)[t, t+1)[t,t+1). Then πE\pi_EπE​ is optimal for (E):

∑j∈JwjCj(πE)+∑g∈GwgCg(πE)  ≤  ∑j∈JwjCj(σ)+∑g∈GwgCg(σ)\sum_{j\in J} w_j C_j(\pi_E) + \sum_{g\in G} w_g C_g(\pi_E) \;\le\; \sum_{j\in J} w_j C_j(\sigma) + \sum_{g\in G} w_g C_g(\sigma)j∈J∑​wj​Cj​(πE​)+g∈G∑​wg​Cg​(πE​)≤j∈J∑​wj​Cj​(σ)+g∈G∑​wg​Cg​(σ)

for every feasible nonpreemptive schedule σ\sigmaσ of (E).

This lemma says that Delayed SWPT is optimal once its idle time is charged to the gap jobs; it is the lower-bound side of the reduction in Lemma 3.

Preamble
import Mathlib
import Definitions.Def_DelayedSWPT_Extended_Problem
Formal statement
namespace DelayedSWPT.Extended

open DelayedSWPT.Model

/-- Lemma 2 of Anderson and Potts (2004), p. 690: `π_E` is an optimal schedule for the
extended problem (E), among all feasible nonpreemptive schedules of (E). -/
theorem piE_optimal {n : ℕ} (I : Instance n) :
    IsOptimal (rE I) (pE I) (wE I) (piE I) := by sorry

end DelayedSWPT.Extended
Source
Anderson and Potts, Online Scheduling of a Single Machine to Minimize Total Weighted Completion Time, Math. Oper. Res. 29(3) (2004), p. 690, Lemma 2
Human review
  • Endorsed by Shuze Chen · Oct 4, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 4, 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