Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix, proof of Property IV(G) — sufficient conditions for d=Cj−vjd = C_j - v_jd=Cj​−vj​ and for d=Cj+ujd = C_j + u_jd=Cj​+uj​ to be the least optimal due date

Proved
BakerScudder1990.Tolerance.optimality_conditions

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, with jobs in a fixed sequence, completion times C1,…,CnC_1,\dots,C_nC1​,…,Cn​, and fix a job jjj.

  1. If
∑i<jαi<∑i≥jβiand∑i<jαi≥∑i>jβi,\sum_{i<j} \alpha_i < \sum_{i \ge j} \beta_i \quad\text{and}\quad \sum_{i<j} \alpha_i \ge \sum_{i>j} \beta_i ,i<j∑​αi​<i≥j∑​βi​andi<j∑​αi​≥i>j∑​βi​,

then d=Cj−vjd = C_j - v_jd=Cj​−vj​ is the least optimal due date. 2. If

∑i<jαi<∑i>jβiand∑i≤jαi≥∑i>jβi,\sum_{i<j} \alpha_i < \sum_{i>j} \beta_i \quad\text{and}\quad \sum_{i\le j} \alpha_i \ge \sum_{i>j} \beta_i ,i<j∑​αi​<i>j∑​βi​andi≤j∑​αi​≥i>j∑​βi​,

then d=Cj+ujd = C_j + u_jd=Cj​+uj​ is the least optimal due date.

In each case the strict inequality says the penalty strictly decreases as ddd approaches the point from the left, and the weak inequality says it does not decrease to the right. Relabelling jjj as bbb, these are the two cases of Property IV(G).

Formalization Note The paper writes "the conditions for d=Cj−vjd = C_j - v_jd=Cj​−vj​ to be optimal are …"; they are stated here as sufficient conditions for being the least optimal due date, which is how the proof uses them. The converse is not stated: it fails when uj=vj=0u_j = v_j = 0uj​=vj​=0, where the two points coincide and either pair suffices. Positions are 0-based (k=j−1k = j-1k=j−1); the sums run over positions i<ki<ki<k, i≥ki \ge ki≥k, i>ki>ki>k, i≤ki \le ki≤k.

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

open Instance

/-- Appendix, proof of Property IV(G), the two optimality conditions (Baker and Scudder 1990,
p. 35), as sufficient conditions. For the job in 0-based position `k`:
(1) if `∑_{i<k} α_i < ∑_{i≥k} β_i` and `∑_{i<k} α_i ≥ ∑_{i>k} β_i`, then `d = C_k - v_k` is the
least optimal due date;
(2) if `∑_{i<k} α_i < ∑_{i>k} β_i` and `∑_{i≤k} α_i ≥ ∑_{i>k} β_i`, then `d = C_k + u_k` is the
least optimal due date. -/
theorem optimality_conditions {n : ℕ} (I : Instance n) (k : Fin n) :
    ((∑ 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.IsLeastOptimalDueDate (I.C k - 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.IsLeastOptimalDueDate (I.C k + I.u k)) := by sorry

end BakerScudder1990.Tolerance
Source
Baker and Scudder, Sequencing with earliness and tardiness penalties: a review, Oper. Res. 38 (1990), p. 35, Appendix, proof of Property IV(G), the conditions for d = C_j − v_j and for d = C_j + u_j to be optimal
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