Proof of Theorem 5 — every feasible schedule can be transformed into an (a)–(c) schedule at least as good
ProvedResourceScheduling.Poly.q2_exists_abc_leConsider two uniform machines with speeds , one resource of positive integer size , unit-time jobs with requirements , and no precedence constraints. For every feasible schedule there is a feasible schedule that satisfies properties (a), (b) and (c) of the proof of Theorem 5 and has
In the paper's words: "The correctness of the algorithm will now be proved by showing that any feasible schedule can be transformed into a schedule that is at least as good and satisfies properties (a), (b) and (c)." It reduces the optimality of the algorithm to a comparison among (a)–(c) schedules only.
Formalization Note Start times are real and the resource constraint is checked at every real time; the transformed schedule is again nonpreemptive.
import Mathlib import Definitions.Def_ResourceScheduling_Poly_Model import Definitions.Def_ResourceScheduling_Poly_Q2Properties
namespace ResourceScheduling.Poly
/-- Proof of Theorem 5 (p. 16), the exchange argument: for `Q2 | res1··, p_j = 1 | C_max` with
`q_1 ≥ q_2`, every feasible schedule can be transformed into a feasible schedule that is at least
as good and satisfies properties (a), (b) and (c). -/
theorem q2_exists_abc_le (I : Instance) (hm : I.m = 2) (hl : I.l = 1)
(hprec : I.NoPrecedence) (hq : I.q (I.M₂ hm) ≤ I.q (I.M₁ hm))
(σ : Schedule I) (hσ : σ.Feasible) :
∃ σ' : Schedule I, σ'.Feasible ∧ σ'.SatisfiesABC hm hl ∧ σ'.makespan ≤ σ.makespan := by sorry
end ResourceScheduling.Poly
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Hypotheses. Take any instance with jobs, positive real speeds, natural-number resource sizes and natural-number requirements, and an acyclic precedence relation, such that:
- . is machine index with speed ; is machine index with speed .
- . is job 's requirement and is the size.
- There are no precedence arcs.
- .
Let be any schedule (machine and real start per job, completion ) that is feasible:
- for all ;
- distinct jobs on one machine have or ;
- precedence respected (vacuous here);
- at every real , the total requirement of the jobs with is at most .
Conclusion. There exists a schedule such that:
- is feasible;
- satisfies properties (a), (b) and (c) below;
- , where is the largest completion time, or if .
With the number of jobs of on , the properties are:
- (a) every job on starts at some with , ; distinct jobs on start at distinct times; and on , implies ;
- (b) on , implies ;
- (c) every job on has requirement at least that of every job on .
Degenerate cases.
- There is no hypothesis that each job fits alone. However, a feasible can exist only if for all , because each job is executing at its own start time. When no feasible schedule exists, the statement is vacuous.
- If , works trivially, with makespan .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.