Section 2, after Eq. (8) — adjacent-interchange cost identity
ProvedDeterioratingJobs.Weighted.interchange_identitydeteriorating-jobsinterchange-argumentp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1scheduling
Consider a schedule with adjacent positions occupied by jobs . Let interchange these positions, and let be the completion time immediately before job starts. For every outcome,
It gives the exact change in total weighted completion cost from interchanging two adjacent jobs.
Formalization Note The printed display is for the identity order and has a multiplication dot before its second bracket. The Lean statement applies to any permutation and replaces that dot with addition. For two jobs with , and , the costs are and , and both sides of the corrected identity equal .
Preamble
import Mathlib import Definitions.Def_DeterioratingJobs_Weighted_Model
Formal statement
namespace DeterioratingJobs.Weighted
/-- The unnumbered interchange display between (8) and Proposition 2, p. 497.
The printed multiplication dot preceding the second bracket is corrected to addition. -/
theorem interchange_identity {Ω : Type*} {N : ℕ}
(X : Fin N → Ω → ℝ) (α c : Fin N → ℝ)
(π : Equiv.Perm (Fin N)) (p : Fin N) (hp : p.val + 1 < N) (ω : Ω) :
let q : Fin N := ⟨p.val + 1, hp⟩
let a := π p
let b := π q
let π₁ := π * Equiv.swap p q
totalCost X α c π ω - totalCost X α c π₁ ω =
DeterioratingJobs.Makespan.completionTime X α π p.val ω *
(c b * α a * (1 + α b) - c a * α b * (1 + α a)) +
(X a ω * c b * (1 + α b) - X b ω * c a * (1 + α a)) +
∑ r : Fin N with p.val + 2 ≤ r.val,
c (π r) *
(∏ k : Fin N with p.val + 2 ≤ k.val ∧ k ≤ r, (1 + α (π k))) *
(X a ω * α b - X b ω * α a) := by sorry
end DeterioratingJobs.Weighted
Source
Browne, Yechiali, Scheduling Deteriorating Jobs on a Single Processor, Oper. Res. 38 (1990), p. 497, Section 2, unnumbered display between Eq. (8) and Proposition 2; https://doi.org/10.1287/opre.38.3.495
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.