Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4(d), inequality (7) — upper bound on the weighted tail sum for some order

Proved
SchedComplexity.Tardiness.ineq_7

by mikedeng1 · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

np-completenessp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1schedulingweighted-tardiness

Let a1,…,ata_1,\dots,a_ta1​,…,at​ be positive integers and bbb an integer with 0<b<A0<b<A0<b<A, where A=∑j=1tajA=\sum_{j=1}^t a_jA=∑j=1t​aj​ and a∗=max⁡jaja_*=\max_j a_ja∗​=maxj​aj​ (the paper's standing assumption "we may assume that 0<b<A0<b<A0<b<A", p. 16). Put

t′=⌈12(t+1)(A−b)+12 t(t+1)a∗2⌉,t'=\Big\lceil \tfrac12(t+1)(A-b)+\tfrac12\,t(t+1)a_*^2\Big\rceil ,t′=⌈21​(t+1)(A−b)+21​t(t+1)a∗2​⌉,

let τ\tauτ be any integer with τ>2t′+A\tau>2t'+Aτ>2t′+A, and consider the single-machine instance of Theorem 4(d) with n=t+t′n=t+t'n=t+t′ jobs: for j∈T={1,…,t}j\in T=\{1,\dots,t\}j∈T={1,…,t}, pj=τ+ajp_j=\tau+a_jpj​=τ+aj​, wj=τ+aj+1w_j=\tau+a_j+1wj​=τ+aj​+1, dj=tτ+bd_j=t\tau+bdj​=tτ+b; for the t′t't′ dummy jobs j∉Tj\notin Tj∈/T, pj=τp_j=\taupj​=τ, wj=τ+1w_j=\tau+1wj​=τ+1, dj=tτ+bd_j=t\tau+bdj​=tτ+b. Setting aj=0a_j=0aj​=0 for j∉Tj\notin Tj∈/T, every job has pj=τ+ajp_j=\tau+a_jpj​=τ+aj​ and wj=pj+1w_j=p_j+1wj​=pj​+1. The threshold is

y=12 t′(t′+1)τ(τ+1)+(t′+1)τ(A−b)+t′.y=\tfrac12\,t'(t'+1)\tau(\tau+1)+(t'+1)\tau(A-b)+t'.y=21​t′(t′+1)τ(τ+1)+(t′+1)τ(A−b)+t′.

For a processing order π=(π(1),…,π(n))\pi=(\pi(1),\dots,\pi(n))π=(π(1),…,π(n)) the jobs are processed without idle time from time 000, so the job in position jjj completes at Cπ(j)=∑i≤jpπ(i)C_{\pi(j)}=\sum_{i\le j}p_{\pi(i)}Cπ(j)​=∑i≤j​pπ(i)​, and

cπ=Cπ(t)−(tτ+b).c_\pi=C_{\pi(t)}-(t\tau+b).cπ​=Cπ(t)​−(tτ+b).

Then for every processing order π\piπ there is a processing order π′\pi'π′ with π′(j)=π(j)\pi'(j)=\pi(j)π′(j)=π(j) for j≤tj\le tj≤t (so cπ′=cπc_{\pi'}=c_\picπ′​=cπ​) such that

∑j>twπ′(j)(Cπ′(j)−Cπ′(t))  ≤  y−(t′+1)τcπ−12(t+1)cπ.(7)\sum_{j>t}w_{\pi'(j)}\big(C_{\pi'(j)}-C_{\pi'(t)}\big)\;\le\;y-(t'+1)\tau c_\pi-\tfrac12(t+1)c_\pi.\qquad(7)j>t∑​wπ′(j)​(Cπ′(j)​−Cπ′(t)​)≤y−(t′+1)τcπ​−21​(t+1)cπ​.(7)

The paper writes "for some π\piπ"; the proof of claim (A) applies (7) to a given order with cπ=0c_\pi=0cπ​=0 and reorders the late jobs, so the statement keeps the first ttt positions fixed. With wj=pj+1w_j=p_j+1wj​=pj​+1 the left side splits as in (1).

Formalization Note The paper prints t′=12(t+1)(A−b)+12t(t+1)a∗2t'=\tfrac12(t+1)(A-b)+\tfrac12t(t+1)a_*^2t′=21​(t+1)(A−b)+21​t(t+1)a∗2​, which is a half-integer when (t+1)(A−b)(t+1)(A-b)(t+1)(A−b) is odd although t′t't′ counts jobs; the Lean takes its ceiling (tPrime), and yyy (yThr, an exact natural-number division since t′(t′+1)t'(t'+1)t′(t′+1) is even) is computed from the same t′t't′. Jobs are Fin (t + t'), the items of TTT being the indices 0,…,t−10,\dots,t-10,…,t−1 (aExt is the convention aj=0a_j=0aj​=0 for j∉Tj\notin Tj∈/T). Positions are 0-based in Lean: π i is the paper's π(i+1)\pi(i+1)π(i+1), and posCompletion p π k is the paper's Cπ(k)C_{\pi(k)}Cπ(k)​ for the 1-based position kkk (the total processing time of the first kkk positions). Sums ∑j>t\sum_{j>t}∑j>t​ run over the 0-based positions i≥ti\ge ti≥t (tailWeighted). τ\tauτ is quantified over all naturals with τ>2t′+A\tau>2t'+Aτ>2t′+A, as in the paper. With the ceiling, t′≥12(t+1)(A−b)+12t(t+1)a∗2t'\ge\tfrac12(t+1)(A-b)+\tfrac12t(t+1)a_*^2t′≥21​(t+1)(A−b)+21​t(t+1)a∗2​, which is the inequality the paper's derivation of (7) from (2), (3), (5) needs.

Preamble
import Mathlib
import Definitions.Def_SchedComplexity_Tardiness_Construction
Formal statement
namespace SchedComplexity.Tardiness

/-- Inequality (7) of the proof of Theorem 4(d), p. 21: for every processing order `π` there is an
order `π'` with the same jobs in the first `t` positions (hence `c_π' = c_π`) such that
`Σ_{j>t} w_π'(j)(C_π'(j) − C_π'(t)) ≤ y − (t'+1)τc_π − ½(t+1)c_π`. -/
theorem ineq_7 {t : ℕ} (a : Fin t → ℕ) (b τ : ℕ)
    (ha : ∀ j, 0 < a j) (hb : 0 < b) (hbA : b < bigA a)
    (hτ : 2 * tPrime a b + bigA a < τ)
    (π : Equiv.Perm (Fin (t + tPrime a b))) :
    ∃ π' : Equiv.Perm (Fin (t + tPrime a b)),
      (∀ i : Fin (t + tPrime a b), i.val < t → π' i = π i) ∧
      (tailWeighted (wtP a b τ) (wtW a b τ) π' t : ℝ) ≤
        (yThr a b τ : ℝ) - (tPrime a b + 1) * (τ : ℝ) * cPi a b τ π
          - (1 / 2 : ℝ) * (t + 1) * cPi a b τ π := by sorry

end SchedComplexity.Tardiness
Source
Brucker, Lenstra & Rinnooy Kan, Complexity of Machine Scheduling Problems, Mathematisch Centrum Report BW 43/75 (1975), p. 21, proof of Theorem 4(d), (7)
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 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