Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 6.5 — a polynomial-time randomized (2−2/(t/k))(2-2/(t/k))(2−2/(t/k))-approximation for lexicographic sums of samplable components (corrected: exact on linear orders)

Open
SingleMachinePrec.VariableCost.Supplement.theorem_6_5

by mikedeng1 · Nov 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

approximation-algorithmslexicographic-sump2o-batch-supp500p2o-correctedp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1randomized-algorithmsscheduling

An instance consists of nnn jobs with nonnegative integer processing times pjp_jpj​ and weights wjw_jwj​ and a partial order PPP of precedence constraints; a feasible schedule processes the jobs one at a time in an order σ\sigmaσ in which iii comes before jjj whenever (i,j)∈P(i,j)\in P(i,j)∈P, i≠ji\neq ji=j, and its cost is ∑jwjCj\sum_j w_j C_j∑j​wj​Cj​, where CjC_jCj​ is the completion time of job jjj.

Let C\mathcal CC be a class of posets with efficiently samplable realizers: one polynomial-time randomized procedure samples uniformly from a kQk_QkQ​-fold multiset realizer of size tQt_QtQ​ for every Q∈CQ\in\mathcal CQ∈C, counting repetitions. Consider instances whose precedence constraints form a lexicographic sum ∑x∈(N,P)(Yx,Qx)\sum_{x\in(N,P)}(Y_x,Q_x)∑x∈(N,P)​(Yx​,Qx​), given by the outer poset (N,P)(N,P)(N,P) and the modules (Yx,Qx)(Y_x,Q_x)(Yx​,Qx​), all of whose components i∈P={P}∪{Qx}i\in\mathcal P=\{P\}\cup\{Q_x\}i∈P={P}∪{Qx​} lie in C\mathcal CC, and let

tk=max⁡i∈Ptiki.\frac tk=\max_{i\in\mathcal P}\frac{t_i}{k_i}.kt​=i∈Pmax​ki​ti​​.

Then there is a randomized polynomial-time algorithm whose every outcome is a feasible schedule and whose expected cost satisfies

E[∑jwjCj] ≤ (2−2t/k) OPT\mathbb E\Bigl[\sum_j w_jC_j\Bigr]\ \le\ \Bigl(2-\frac2{t/k}\Bigr)\,\mathrm{OPT}E[j∑​wj​Cj​] ≤ (2−t/k2​)OPT

whenever the lexicographic sum is not a linear order; when it is a linear order, every outcome is optimal.

It extends the low-dimension results of §4 and §6 to posets built from such components.

Differences from the source:

  • encoding: polynomial-time algorithm (unspecified machine model) → one multi-stack Turing machine (published PolyTimeComputable, Mathlib TM2ComputableInPolyTime) on binary strings, running in time polynomial in the length of the input code; p_j, w_j in binary, the precedence relation as its n×n matrix, the output a code of the processing order; reason: standard machine model; binary numbers keep input sizes as in the paper
  • encoding: cost at most α·OPT over all non-preemptive schedules → the output is a feasible processing order (permutation, no idle time) whose ∑ w_j C_j is at most α times the cost of every feasible processing order; reason: inserting idle time never decreases ∑ w_j C_j, so the optimum over idle-free orders is OPT; comparing with every feasible order avoids a default-valued minimum
  • correction: ratio 2 − 2/(t/k) on every instance → ratio 2 − 2/(t/k) when the sum is not a linear order; ratio 1 (every outcome optimal) when it is a linear order; reason: on a linear order every component may have t_i = k_i = 1, so t/k = 1 and the printed ratio is 0, false whenever OPT > 0 (e.g. one job with p = w = 1); the proof of Theorem 5.1 (p. 659) treats the linear order separately as trivial. On a non-linear sum some component has an incomparable pair, so t_i ≥ 2k_i and the printed ratio is ≥ 1 and unchanged. Exactness is stronger on linear instances whose printed factor exceeds 1.
  • reading: precedence constraints form a lexicographic sum → the outer poset and the modules are part of the input; the jobs are numbered block by block; reason: the hypothesis names the decomposition and its components; the numbering is a relabelling the algorithm could compute from the supplied decomposition
  • reading: components admit efficiently samplable realizers → one valid family of samplable realizers (uniform polynomial-time machines for a seed range and for sampling extensions) covers every component; reason: an algorithm for infinitely many inputs needs a uniform sampler; this samples the multiset distribution without requiring computation of its size or indexed access
  • encoding: randomized algorithm; approximation in expectation → a seed drawn uniformly from {0, …, N−1}, N ≥ 1 computed in polynomial time; the average cost over the seeds is bounded; reason: uniform choice among the t members (p. 658) is a uniform index; equations (5)–(8) bound the expectation
  • generalization: on linear-order sums with t/k > 2 the printed factor 2−2/(t/k) is greater than 1 → every output is optimal on all linear-order sums; reason: the unique feasible processing order is optimal; this exact branch strengthens the source inequality whenever its printed factor exceeds 1
Preamble
import Mathlib
import Definitions.Def_SingleMachinePrec_VariableCost_Supplement_LexSum

set_option autoImplicit false

open QAlgorithms.Complexity
Formal statement
namespace SingleMachinePrec.VariableCost.Supplement

open Classical in
/-- Theorem 6.5 (p. 661): let `F` be a valid family of efficiently samplable realizers. For
instances whose precedence constraints form a lexicographic sum (given by its outer poset and
modules) all of whose components (the outer poset and every module) belong to the family's
class, there is a polynomial-time randomized algorithm whose expected cost is at most
`(2 - 2/(t/k))` times the optimum, `t/k = max_i t_i/k_i` over the components, whenever the sum is
not a linear order; when the sum is a linear order, every outcome is optimal. -/
theorem theorem_6_5 (F : SamplableRealizers) (hF : F.Valid) :
    HasPolyTimeRandApprox LexSumInput.enc LexSumInput.toSched
      (fun L => ∀ Q ∈ L.components, F.Cls Q)
      (fun L => if IsLinearRel L.toSched.Prec then 1 else 2 - 2 / LexSumInput.maxRatio F L) := by sorry

end SingleMachinePrec.VariableCost.Supplement
Source
Ambühl, Mastrolilli, Mutsanas, Svensson, On the Approximability of Single-Machine Scheduling with Precedence Constraints, Math. Oper. Res. 36(4) (2011), p. 661, Theorem 6.5; p. 659, proof of Theorem 5.1 (the linear-order case)

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