Corollary 2.7 — Best- is an -approximation for
ProvedAvgCompletionSched.BestAlpha.best_alpha_approximationConsider nonpreemptive scheduling on one machine with release dates to minimize total (equivalently, average) completion time: processing times and release dates . Let be a preemptive schedule that is optimal among all preemptive schedules for (for example the SRPT schedule). Then there is an such that every -schedule derived from (list scheduling in any nondecreasing order of the -points ) satisfies, for every feasible nonpreemptive schedule with completion times ,
Algorithm Best- outputs the -schedule of smallest total completion time, whose value is at most that of this ; hence Best- is an -approximation algorithm ().
Formalization Note The existential form over replaces the minimum over taken by Best-; is chosen before the comparison schedule, so a single works against every feasible nonpreemptive schedule. The running-time claim is not formalized. The optimality of among preemptive schedules is the paper's standing assumption for its upper bounds (p. 151); the paper obtains from SRPT.
import Mathlib import Definitions.Def_AvgCompletionSched_BestAlpha_Model
namespace AvgCompletionSched.BestAlpha
theorem best_alpha_approximation {n : ℕ} {I : Instance n} (P : PreemptiveSchedule I)
(hP : ∀ P' : PreemptiveSchedule I, ∑ j, P.CP j ≤ ∑ j, P'.CP j) :
∃ α ∈ Set.Ioc (0 : ℝ) 1, ∀ π : Fin n ≃ Fin n, IsAlphaOrder P α π →
∀ N : NonpreemptiveSchedule I,
∑ j, listCompletion I π j ≤ Real.exp 1 / (Real.exp 1 - 1) * ∑ j, N.C j := by sorry
end AvgCompletionSched.BestAlpha
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a number of jobs and an instance on jobs, i.e. a term of type Instance n. Several notions below come from the imported module Definitions.Def_AvgCompletionSched_BestAlpha_Model, whose code is not shown here. They are described only by how this statement uses them, and their exact content is fixed by that module:
- Preemptive schedules. A preemptive schedule for is a term of type
PreemptiveSchedule I. Each one assigns every job a quantity (the fieldCP), which by its name is the job's completion time in that schedule. - Non-preemptive schedules. A non-preemptive schedule for is a term of type
NonpreemptiveSchedule I. Each one assigns every job a real number (the fieldC), which by its name is the job's completion time. - -orders. is a predicate on a preemptive schedule , a real number and a permutation of the job indices .
- List completion times. (
listCompletion I π j) is a real number attached to the instance , the permutation and the job .
All sums run over the jobs .
Hypotheses. is a preemptive schedule for whose total completion time is at most that of every preemptive schedule for :
Conclusion. There exists a real number with that satisfies the following. For every permutation of the jobs such that holds, and for every non-preemptive schedule of ,
where , so .
The quantifiers are ordered as follows:
- is chosen once, after is fixed, and may depend on and .
- must work for every -order and every non-preemptive schedule at once.
- The statement does not claim that any permutation satisfying exists.
- The statement does not claim that is computed in any particular way.
- Because the inequality must hold for every , the bound is against every non-preemptive schedule. In particular it is against the least total completion time among them, if one exists.
Degenerate cases.
- . Every sum is empty and equals , so the conclusion reads . This holds for any , so the theorem is trivially true.
- No suitable permutation. If, for the chosen , no permutation satisfies , the conclusion holds vacuously. Whether an with this property exists depends on the unshown definition of
IsAlphaOrder. If one exists, the theorem says nothing about list completion times. - No non-preemptive schedule. If there are no non-preemptive schedules for , the conclusion holds vacuously for every .
- No minimizing preemptive schedule. If no preemptive schedule reaches the minimum total completion time, the hypothesis on can never be met and the theorem says nothing.
- Constant factor. The factor involves no division by zero, since .
- Hidden default values. Any default values, truncated subtraction or similar edge behaviour inside , , or are hidden in the imported definitions. They cannot be read off this statement.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.