Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Property IV(G) — the job bbb with bbb jobs untardy completes at d+vbd + v_bd+vb​ or d−ubd - u_bd−ub​ (corrected labels)

Proved
BakerScudder1990.Tolerance.property_IV_G

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

earliness-tardinessp2o-batch-pfp1bp2o-gran-per-chapterp2o-plan-paperp2o-v1scheduling

Consider an instance of the single-machine common-due-date model with tolerances and n≥1n \ge 1n≥1 jobs in a fixed sequence, processed without inserted idle time, with completion times C1,…,CnC_1,\dots,C_nC1​,…,Cn​, tolerance windows [d−uj,d+vj][d - u_j, d + v_j][d−uj​,d+vj​] and unit penalties αj,βj>0\alpha_j, \beta_j > 0αj​,βj​>0. Then a least optimal due date exists. Let ddd be the least optimal due date and let bbb be the number of jobs that incur no tardiness penalty, i.e. with (Cj−d−vj)+=0(C_j - d - v_j)^+ = 0(Cj​−d−vj​)+=0. Then b≥1b \ge 1b≥1 and exactly one of the following holds:

Cb=d+vband∑i<bαi<∑i≥bβi,∑i<bαi≥∑i>bβi,Cb=d−uband∑i<bαi<∑i>bβi,∑i≤bαi≥∑i>bβi.\begin{aligned} C_b &= d + v_b && \text{and}\quad \sum_{i<b}\alpha_i < \sum_{i\ge b}\beta_i,\quad \sum_{i<b}\alpha_i \ge \sum_{i>b}\beta_i, \\ C_b &= d - u_b && \text{and}\quad \sum_{i<b}\alpha_i < \sum_{i> b}\beta_i,\quad \sum_{i\le b}\alpha_i \ge \sum_{i>b}\beta_i. \end{aligned}Cb​Cb​​=d+vb​=d−ub​​​andi<b∑​αi​<i≥b∑​βi​,i<b∑​αi​≥i>b∑​βi​,andi<b∑​αi​<i>b∑​βi​,i≤b∑​αi​≥i>b∑​βi​.​

In particular, whichever pair of inequalities holds determines at which end of its tolerance window job bbb completes. This is Property IV(G) of Baker and Scudder, the tolerance generalization of the classical condition that the bbb-th job completes exactly at the common due date; it identifies the candidate V-shaped sequences for optimality.

Formalization Note The printed statement (p. 30, repeated p. 35) pairs the first pair of inequalities with Cb=d−ubC_b = d - u_bCb​=d−ub​ and the second with Cb=d+vbC_b = d + v_bCb​=d+vb​. The paper's own proof (p. 35) derives the first pair as the condition for d=Cj−vjd = C_j - v_jd=Cj​−vj​, i.e. Cj=d+vjC_j = d + v_jCj​=d+vj​, and the second for d=Cj+ujd = C_j + u_jd=Cj​+uj​, i.e. Cj=d−ujC_j = d - u_jCj​=d−uj​; the statement here follows the proof. A single job with u1,v1>0u_1, v_1 > 0u1​,v1​>0 shows the printed labels are wrong: f=0f = 0f=0 exactly on [C1−v1,C1+u1][C_1 - v_1, C_1 + u_1][C1​−v1​,C1​+u1​], so the least optimal due date is d=C1−v1d = C_1 - v_1d=C1​−v1​, b=1b = 1b=1, the first pair holds (0<β10 < \beta_10<β1​, 0≥00 \ge 00≥0), and C1=d+v1≠d−u1C_1 = d + v_1 \ne d - u_1C1​=d+v1​=d−u1​. Positions are 0-based: the paper's job bbb is position k=b−1k = b - 1k=b−1, and the count of untardy jobs equals k+1k+1k+1. "In an optimal schedule" is read for a fixed sequence and its least optimal due date, which implies the paper's reading. Existence of the least optimal due date is part of the conclusion, so the statement is not vacuous.

Preamble
import Mathlib
import Definitions.Def_BakerScudder1990_Tolerance_Instance
Formal statement
namespace BakerScudder1990.Tolerance

open Instance

/-- Property IV(G) (Baker and Scudder 1990, p. 30), with the case labels as derived in its proof
(p. 35); the printed statement swaps them. For a fixed sequence of `n > 0` jobs processed without
inserted idle time, a least optimal common due date exists; at every least optimal due date `d`,
let `b = k + 1` be the number of jobs with zero tardiness `(C_j - d - v_j)^+ = 0`. Then either
`C_k = d + v_k` with `∑_{i<k} α_i < ∑_{i≥k} β_i` and `∑_{i<k} α_i ≥ ∑_{i>k} β_i`, or
`C_k = d - u_k` with `∑_{i<k} α_i < ∑_{i>k} β_i` and `∑_{i≤k} α_i ≥ ∑_{i>k} β_i`.
Positions are 0-based: the paper's job `b` is position `k` with `b = k + 1`. -/
theorem property_IV_G {n : ℕ} (I : Instance n) (hn : 0 < n) :
    (∃ d : ℝ, I.IsLeastOptimalDueDate d) ∧
      ∀ d : ℝ, I.IsLeastOptimalDueDate d →
        ∃ k : Fin n,
          (Finset.univ.filter (fun j : Fin n => I.tardiness d j = 0)).card = k.val + 1 ∧
          ((I.C k = d + I.v k ∧
              (∑ i ∈ Finset.univ.filter (fun i : Fin n => i < k), I.α i) <
                (∑ i ∈ Finset.univ.filter (fun i : Fin n => k ≤ i), I.β i) ∧
              (∑ i ∈ Finset.univ.filter (fun i : Fin n => k < i), I.β i) ≤
                (∑ i ∈ Finset.univ.filter (fun i : Fin n => i < k), I.α i)) ∨
           (I.C k = d - I.u k ∧
              (∑ i ∈ Finset.univ.filter (fun i : Fin n => i < k), I.α i) <
                (∑ i ∈ Finset.univ.filter (fun i : Fin n => k < i), I.β i) ∧
              (∑ i ∈ Finset.univ.filter (fun i : Fin n => k < i), I.β i) ≤
                (∑ i ∈ Finset.univ.filter (fun i : Fin n => i ≤ k), I.α i))) := by sorry

end BakerScudder1990.Tolerance
Source
Baker and Scudder, Sequencing with earliness and tardiness penalties: a review, Oper. Res. 38 (1990), p. 30, Property IV(G); restated and proved pp. 34–35 (Appendix). Case labels as derived in the proof (p. 35); the printed statement swaps them
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