Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4.19 — the better of list scheduling and Delay List from P1P1P1 is a 22≈2.832\sqrt2\approx2.8322​≈2.83-approximation

Proved
AvgCompletionSched.ParallelRelease.two_sqrt_two_approx

by mikedeng1 · Sep 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

approximation-algorithmsp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1scheduling

Let III be an instance of nonpreemptive scheduling on m≥1m\ge1m≥1 identical machines with release dates, minimizing total completion time. Let P1P1P1 be an optimal preemptive schedule of the one-machine relaxation I1I1I1 (processing times pj/mp_j/mpj​/m, release dates rjr_jrj​), and let π\piπ list the jobs in nondecreasing order of CjP1C^{P1}_jCjP1​. Let NNN be the strict-order list schedule of π\piπ, and let DDD be a schedule produced by the continuous-time Delay List algorithm on π\piπ with parameter

β0=3−22.\beta_0=\sqrt{3-2\sqrt2}.β0​=3−22​​.

Then for every feasible nonpreemptive schedule of III with completion times Cj∗C^*_jCj∗​,

min⁡(∑jCjN, ∑jCjD)≤22 ∑jCj∗.\min\Bigl(\sum_j C^N_j,\ \sum_j C^D_j\Bigr)\le 2\sqrt2\,\sum_j C^*_j.min(j∑​CjN​, j∑​CjD​)≤22​j∑​Cj∗​.

This is Lemma 4.19: running both algorithms and keeping the better schedule is a 22≈2.832\sqrt2\approx2.8322​≈2.83-approximation for average completion time on parallel machines with release dates, improving the ratio 2.89+ϵ2.89+\epsilon2.89+ϵ of Chakrabarti et al. and the (3−1/m)(3-1/m)(3−1/m) of Lemma 3.2.

Formalization Note The printed lemma states the constant 2.832.832.83; its proof establishes 22≈2.82842\sqrt2\approx2.828422​≈2.8284, which is stated here and implies the printed bound. "An appropriate choice of β\betaβ" is the single value β0\beta_0β0​ that the proof's algorithm runs. The running time O(nlog⁡n)O(n\log n)O(nlogn) is not part of the statement. ∑jCj∗\sum_j C^*_j∑j​Cj∗​ ranges over every feasible schedule instead of an optimal one, which is equivalent. For m=1m=1m=1 the list schedule alone meets the bound.

Preamble
import Mathlib
import Definitions.Def_AvgCompletionSched_ParallelRelease_Model
import Definitions.Def_AvgCompletionSched_ParallelRelease_DelayList
Formal statement
namespace AvgCompletionSched.ParallelRelease

/-- Lemma 4.19 (with the constant `2√2 ≈ 2.8284 < 2.83` of its proof): let `P1` be an optimal
preemptive schedule of the one-machine relaxation, `π` the list of jobs in order of completion in
`P1`, `N` the strict-order list schedule of `π`, and `D` a Delay List schedule on `π` with
`β = √(3 - 2√2)`. Then the better of `N` and `D` has total completion time at most `2√2` times
that of every feasible nonpreemptive schedule. -/
theorem two_sqrt_two_approx {n m : ℕ} (I : Instance n m) (P1 : RelaxSchedule I)
    (hP1 : P1.IsOptimal) (π : Fin n ≃ Fin n) (hπ : IsCompletionOrder P1 π)
    (D : DelayListRun I) (hD : IsDelayListSchedule I π (Real.sqrt (3 - 2 * Real.sqrt 2)) D)
    (Nstar : Schedule I) :
    min (∑ j, listCompletion I π j) (∑ j, D.C j) ≤ 2 * Real.sqrt 2 * ∑ j, Nstar.C j := by sorry

end AvgCompletionSched.ParallelRelease
Source
Chekuri, Motwani, Natarajan, Stein, Approximation Techniques for Average Completion Time Scheduling, SIAM J. Comput. 31(1), 2001, p. 163, Lemma 4.19 (constant 2√2 and β = √(3 − 2√2) from its proof, p. 164)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Fix an instance III with nnn jobs and mmm machines (n,m∈Nn, m \in \mathbb{N}n,m∈N are implicit arguments). III belongs to the type Instance n m. That type, and every other named notion below, is defined in the imported modules Def_AvgCompletionSched_ParallelRelease_Model and Def_AvgCompletionSched_ParallelRelease_DelayList. Those modules are not shown here, so this read-back gives each notion's meaning only as far as its name and its use in the statement reveal it. The declaration's doc comment describes the objects in words, but the code does not check that description, and it is not relied on here.

The statement takes the following arguments and hypotheses:

  • P1P_1P1​ is a "relaxation schedule" for III (type RelaxSchedule I). The hypothesis says P1P_1P1​ satisfies the predicate IsOptimal defined for such schedules.
  • π\piπ is a bijection from {0,…,n−1}\{0,\dots,n-1\}{0,…,n−1} to itself, so a permutation of the jobs. The hypothesis says π\piπ satisfies IsCompletionOrder P1 πP_1\ \piP1​ π: π\piπ is a completion order of P1P_1P1​, in the sense of that definition.
  • DDD is a "Delay List run" for III (type DelayListRun I), with completion times CjDC^D_jCjD​. The hypothesis says IsDelayListSchedule holds for III, π\piπ, parameter β\betaβ and DDD, where
β=3−22=2−1≈0.4142.\beta = \sqrt{3 - 2\sqrt{2}} = \sqrt{2} - 1 \approx 0.4142.β=3−22​​=2​−1≈0.4142.

Note that 3−22>03 - 2\sqrt2 > 03−22​>0, so no truncation of the real square root is involved.

  • N∗N^*N∗ is an arbitrary schedule for III (type Schedule I), with completion times CjN∗C^{N^*}_jCjN∗​. No hypothesis at all is placed on N∗N^*N∗. Any restriction on it, such as feasibility, nonpreemption or respecting release dates, holds only if it is built into the type Schedule I itself.

Let LjL_jLj​ denote listCompletion I π j, the completion time of job jjj under the list-schedule construction applied to π\piπ (as given by that definition). The conclusion is

min⁡(∑j=0n−1Lj, ∑j=0n−1CjD)  ≤  22 ∑j=0n−1CjN∗.\min\Big(\sum_{j=0}^{n-1} L_j,\ \sum_{j=0}^{n-1} C^D_j\Big) \;\le\; 2\sqrt{2}\,\sum_{j=0}^{n-1} C^{N^*}_j .min(j=0∑n−1​Lj​, j=0∑n−1​CjD​)≤22​j=0∑n−1​CjN∗​.

All three sums are unweighted totals of completion times over all nnn jobs, and the constant is exactly 22≈2.82842\sqrt2 \approx 2.828422​≈2.8284.

The hypothesis on P1P_1P1​ affects the conclusion only through the requirement that π\piπ is a completion order of P1P_1P1​. Neither P1P_1P1​ nor its optimal value appears in the inequality. The list schedule is not an argument: it is determined by III and π\piπ through listCompletion. The Delay List run DDD, by contrast, is any object satisfying IsDelayListSchedule. If that predicate allows more than one run, the bound is claimed for every one of them.

Degenerate cases:

  • n=0n = 0n=0: all three sums are empty and equal 000, so the conclusion reads min⁡(0,0)≤0\min(0,0) \le 0min(0,0)≤0, which is true.
  • m=0m = 0m=0 or no admissible objects: whether any Instance n 0, RelaxSchedule, DelayListRun or Schedule exists depends on the unseen definitions. If no relaxation schedule is optimal, no permutation is a completion order, or no run satisfies IsDelayListSchedule, the hypotheses cannot be met and the statement holds vacuously. The same happens if Schedule I is empty: there is then no N∗N^*N∗ to quantify over.
  • n=1n = 1n=1: π\piπ is the identity, and the claim compares the single job's list completion time and Delay List completion time against 222\sqrt222​ times its completion time in N∗N^*N∗.
  • Total-function defaults: the constant 3−22\sqrt{3-2\sqrt2}3−22​​ has a positive argument and 2\sqrt22​ is ordinary, so neither hits a default value. Any defaults hidden inside listCompletion, C, or the optimality and completion-order predicates cannot be seen from this statement.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me