Proof of Lemma 9 — sorted prefix sums are smallest,
ProvedFlowJobShop.SPT.sorted_prefix_lecombinatoricsp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1schedulingsorting
Let be real numbers and let be a bijection of that lists them in nondecreasing order, . Then for every bijection of and every ,
The sum of any of the numbers is at least the sum of the smallest. In the proof of Lemma 9 (with the jobs renumbered so that ) this is the step .
Formalization Note Positions are 0-based; the statement is purely combinatorial and is not tied to a scheduling instance.
Preamble
import Mathlib
Formal statement
namespace FlowJobShop.SPT
/-- Prefix sums are smallest in sorted order: if `σ` lists `Fin n` so that `L (σ 0) ≤ L (σ 1) ≤ ⋯`,
then for every bijection `ρ` and every `k`, `∑_{j ≤ k} L_{σ j} ≤ ∑_{j ≤ k} L_{ρ j}`
(Gonzalez–Sahni 1978, proof of Lemma 9, p. 47: `∑_{j=1}^k L_{i_j}/m ≥ ∑_{j=1}^k L_j/m`). -/
theorem sorted_prefix_le {n : ℕ} (L : Fin n → ℝ) (σ : Fin n ≃ Fin n)
(hσ : Monotone fun k => L (σ k)) (ρ : Fin n ≃ Fin n) (k : Fin n) :
∑ j ∈ Finset.Iic k, L (σ j) ≤ ∑ j ∈ Finset.Iic k, L (ρ j) := by sorry
end FlowJobShop.SPT
Source
Gonzalez, Sahni, Flowshop and Jobshop Schedules: Complexity and Approximation, Operations Research 26(1) (1978), p. 47, §2, proof of Lemma 9 ('Σ_{j=1}^k L_{i_j}/m ≥ Σ_{j=1}^k L_j/m')
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.