identical_parallel_machines_opt
The optimal total weighted completion time of scheduling $n$ jobs with processing times $p$ and weights $w$ on $m$ identical parallel machines, defined as the infimum of $\sum_{j} w_j (S_j + p_j)$ over non-negative start times $S$ and machine assignments $M : \mathrm{Fin}\,n \to \mathrm{Fin}\,m$ such that jobs assigned to the same machine do not overlap.
Statement
noncomputable def identical_parallel_machines_opt (m n : ℕ) (p w : Fin n → ℝ) : ℝ
- Defined in
- arXiv:2611.30731 Sec. 1
- Verified
- 26 Nov 2026
- Axioms
- none listed
Read back from the Lean
The function identical_parallel_machines_opt takes natural numbers m (number of machines) and n (number of jobs), along with job processing times p : Fin n → ℝ and weights w : Fin n → ℝ, and returns the real infimum (sInf) of the set of all cost : ℝ for which there exist a machine assignment M : Fin n → Fin m and a start-time assignment S : Fin n → ℝ such that:
1. Every job's start time is non-negative: ∀ j : Fin n, 0 ≤ S j;
2. Any two distinct jobs assigned to the same machine do not overlap: ∀ j k : Fin n, j ≠ k → M j = M k → (S j + p j ≤ S k ∨ S k + p k ≤ S j);
3. cost equals the total weighted completion time: cost = ∑ j : Fin n, w j * (S j + p j).
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- The optimal offline schedule cost for identical parallel machine scheduling with weighted completion time. -/ noncomputable def identical_parallel_machines_opt (m n : ℕ) (p w : Fin n → ℝ) : ℝ := sInf { cost : ℝ | ∃ (M : Fin n → Fin m) (S : Fin n → ℝ), (∀ j, 0 ≤ S j) ∧ (∀ j k, j ≠ k → M j = M k → S j + p j ≤ S k ∨ S k + p k ≤ S j) ∧ cost = ∑ j : Fin n, w j * (S j + p j) }