Proof of Theorem 5 — the algorithm is best among schedules with properties (a), (b), (c)
ProvedResourceScheduling.Poly.q2_algorithm_best_abcConsider : two uniform machines with speeds , one resource of positive integer size , unit-time jobs with nonnegative integer requirements , and no precedence constraints. Let be any order of the jobs with nonincreasing requirements, and let be the schedule produced by the algorithm of Theorem 5 from .
Then is feasible, satisfies properties (a), (b) and (c), and
for every feasible schedule satisfying (a), (b) and (c).
This is the first half of the paper's proof of Theorem 5: "This O(n log n) algorithm clearly generates the best schedule among those satisfying the following properties". Combined with the exchange argument (every feasible schedule can be turned into an (a)–(c) schedule that is at least as good), it gives the optimality of the algorithm.
Formalization Note The hypothesis (every job fits alone) is implicit in the paper; without it no feasible schedule exists. The running time is not formalized.
import Mathlib import Definitions.Def_ResourceScheduling_Poly_Model import Definitions.Def_ResourceScheduling_Poly_Q2Properties import Definitions.Def_ResourceScheduling_Poly_Q2Algorithm
namespace ResourceScheduling.Poly
/-- Proof of Theorem 5 (p. 16): the algorithm generates the best schedule among those satisfying
properties (a), (b) and (c). -/
theorem q2_algorithm_best_abc (I : Instance) (hm : I.m = 2) (hl : I.l = 1)
(hprec : I.NoPrecedence) (hq : I.q (I.M₂ hm) ≤ I.q (I.M₁ hm)) (hfit : I.EveryJobFits)
(ord : Fin I.n ≃ Fin I.n) (hord : Antitone fun p => I.r (I.R₁ hl) (ord p)) :
(q2Algorithm I hm hl ord).Feasible ∧ (q2Algorithm I hm hl ord).SatisfiesABC hm hl ∧
∀ σ : Schedule I, σ.Feasible → σ.SatisfiesABC hm hl →
(q2Algorithm I hm hl ord).makespan ≤ σ.makespan := by sorry
end ResourceScheduling.Poly
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The instance. Take any instance with jobs, positive real machine speeds, natural-number resource sizes and natural-number requirements, and an acyclic precedence relation. Assume:
- . Write for machine index (speed ) and for machine index (speed ).
- . Write for job 's requirement and for the resource size.
- There are no precedence arcs.
- .
- for every job .
- is a bijection from positions to jobs such that implies (requirements nonincreasing along positions).
The algorithm's schedule. Let be the schedule built from as follows.
- means: for all ,
- , with the value if the set is empty.
- . For : and .
- puts job , with position , on at start if . Otherwise it puts on at start .
- , where is the least with or .
In a schedule, job has a machine , a real start and a completion time . The makespan is , or if .
Feasible means all of the following:
- all ;
- distinct jobs on the same machine satisfy or ;
- whenever is reachable from by arcs (vacuous here);
- at every real , the jobs with have total requirement .
Properties (a)(b)(c). Let be the number of jobs on .
- (a) Each job on starts at some with . Distinct jobs on have distinct starts. On , implies .
- (b) On , implies .
- (c) Every job on has at least that of every job on .
The theorem asserts:
- is feasible;
- satisfies (a), (b) and (c);
- for every feasible schedule that satisfies (a), (b) and (c), .
Degenerate cases.
- If , is the empty schedule with , and all three claims are immediate.
- The resource-size hypothesis ensures each job fits alone. The statement does not separately assert anything about infima being attained. If a computed start were the junk value, claim 1 still asserts feasibility of the resulting schedule.
- The hypotheses are satisfiable, for example by any instance with and .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.