Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Formula (9) — c_jk = max_{1≤i≤m} {q_ji − q_{k,i−1}} is the least gap between B_j and B_k

Proved
SchedComplexity.NoWait.formula_9_delay

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

no-waitp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1schedulingtravelling-salesman

Consider a no-wait flow shop with nnn jobs, m≥1m\ge1m≥1 machines and processing times pℓi∈Np_{\ell i}\in\mathbb Npℓi​∈N, and let qℓi=∑r≤ipℓrq_{\ell i}=\sum_{r\le i}p_{\ell r}qℓi​=∑r≤i​pℓr​ as in (8). For two distinct jobs JjJ_jJj​ and JkJ_kJk​, the paper defines cjkc_{jk}cjk​ as "the minimum length of the time interval between BjB_jBj​ and BkB_kBk​ if JkJ_kJk​ is scheduled directly after JjJ_jJj​", and states (9):

cjk=max⁡1≤i≤m{qji−qk,i−1}.c_{jk}=\max_{1\le i\le m}\{q_{ji}-q_{k,i-1}\}.cjk​=1≤i≤mmax​{qji​−qk,i−1​}.

Precisely: among all δ≥0\delta\ge0δ≥0 such that, with Bk=Bj+δB_k=B_j+\deltaBk​=Bj​+δ, the operation of JjJ_jJj​ on every machine MiM_iMi​ ends no later than the operation of JkJ_kJk​ on MiM_iMi​ starts, i.e.

qji≤δ+qk,i−1(i=1,…,m),q_{ji}\le\delta+q_{k,i-1}\qquad(i=1,\dots,m),qji​≤δ+qk,i−1​(i=1,…,m),

the least is max⁡1≤i≤m{qji−qk,i−1}\max_{1\le i\le m}\{q_{ji}-q_{k,i-1}\}max1≤i≤m​{qji​−qk,i−1​}.

This is the weight of the arc (j,k)(j,k)(j,k) in the travelling-salesman reformulation of no-wait scheduling.

Formalization Note "JkJ_kJk​ is scheduled directly after JjJ_jJj​" is read as "JjJ_jJj​ precedes JkJ_kJk​ on every machine", the only constraint between the two jobs; no other job intervenes in this statement. The gap δ\deltaδ ranges over the nonnegative integers (as elements of Z\mathbb ZZ).

Preamble
import Mathlib
import Definitions.Def_SchedComplexity_NoWait_NoWaitFlowShop
Formal statement
namespace SchedComplexity.NoWait

/-- Formula (9), p. 24: if job `k` is scheduled directly after job `j` (read: `B_k = B_j + δ`
with `δ ≥ 0`, and on every machine the operation of `j` ends before the operation of `k`
starts), the least admissible `δ` is `c_{jk} = max_{1 ≤ i ≤ m} {q_{j i} − q_{k,i−1}}`. -/
theorem formula_9_delay {n m : ℕ} (p : Fin n → Fin m → ℕ) (hm : 0 < m) (j k : Fin n)
    (hjk : j ≠ k) :
    IsLeast {δ : ℤ | 0 ≤ δ ∧ ∀ r : Fin m, (cum p j (r.val + 1) : ℤ) ≤ δ + (cum p k r.val : ℤ)}
      (delay p hm j k) := by sorry

end SchedComplexity.NoWait
Source
Brucker, Lenstra & Rinnooy Kan, Complexity of Machine Scheduling Problems, Mathematisch Centrum Report BW 43/75 (1975), p. 24, Eqs. (8)–(9)
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