Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

No-wait flow shop C_max and ΣC_j as travelling-salesman path problems with weights c_jk (p. 24)

Proved
SchedComplexity.NoWait.tsp_reformulation

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 strictly positive processing times pℓip_{\ell i}pℓi​, with qℓiq_{\ell i}qℓi​ as in (8) and cjkc_{jk}cjk​ as in (9). For every y∈Ny\in\mathbb Ny∈N:

  1. some feasible no-wait schedule has Cmax⁡≤yC_{\max}\le yCmax​≤y if and only if some ordering π\piπ of the jobs satisfies
∑i=1n−1cπ(i)π(i+1)+qπ(n)m≤y;\sum_{i=1}^{n-1}c_{\pi(i)\pi(i+1)}+q_{\pi(n)m}\le y;i=1∑n−1​cπ(i)π(i+1)​+qπ(n)m​≤y;
  1. some feasible no-wait schedule has ∑ℓCℓ≤y\sum_\ell C_\ell\le y∑ℓ​Cℓ​≤y if and only if some ordering π\piπ satisfies
∑k=1n(∑i=1k−1cπ(i)π(i+1)+qπ(k)m)≤y.\sum_{k=1}^{n}\Bigl(\sum_{i=1}^{k-1}c_{\pi(i)\pi(i+1)}+q_{\pi(k)m}\Bigr)\le y.k=1∑n​(i=1∑k−1​cπ(i)π(i+1)​+qπ(k)m​)≤y.

Part 1 is the paper's statement that minimizing Cmax⁡C_{\max}Cmax​ "is now equivalent to solving the TRAVELLING SALESMAN problem with V={0,…,n}V=\{0,\dots,n\}V={0,…,n} and weights cjkc_{jk}cjk​ defined by (9) and by c0ℓ=0c_{0\ell}=0c0ℓ​=0, cℓ0=qℓmc_{\ell0}=q_{\ell m}cℓ0​=qℓm​": a tour starting at the dummy vertex 000 is a job ordering, and its length is the left-hand side. Part 2 is the corresponding fact for the total completion time, which the proof of Theorem 5(b) uses when it says the instance is "constructed as in (a)".

Formalization Note Positivity of the processing times is a hypothesis: with zero processing times one job may pass another, and start order and machine order need not agree. For n=0n=0n=0 both sides of both equivalences hold.

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

/-- The no-wait flow shop as a travelling-salesman problem (p. 24): with strictly positive
processing times, (a) some feasible no-wait schedule has `C_max ≤ y` iff some ordering `π` of
the jobs has path length `Σ_{i<n-1} c_{π i, π (i+1)} + q_{π (n-1), m} ≤ y`, and (b) some feasible
no-wait schedule has `Σ_ℓ C_ℓ ≤ y` iff some ordering `π` has
`Σ_k (Σ_{i<k} c_{π i, π (i+1)} + q_{π k, m}) ≤ y`. -/
theorem tsp_reformulation {n m : ℕ} (p : Fin n → Fin m → ℕ) (hm : 0 < m)
    (hp : ∀ ℓ r, 0 < p ℓ r) (y : ℕ) :
    ((∃ B, IsNoWaitSchedule p B ∧ ∀ ℓ, completion p B ℓ ≤ y) ↔
        ∃ π : Fin n ≃ Fin n, pathMakespan p hm π ≤ (y : ℤ)) ∧
      ((∃ B, IsNoWaitSchedule p B ∧ ∑ ℓ, completion p B ℓ ≤ y) ↔
        ∃ π : Fin n ≃ Fin n, pathTotalCompletion p hm π ≤ (y : ℤ)) := by sorry

end SchedComplexity.NoWait
Source
Brucker, Lenstra & Rinnooy Kan, Complexity of Machine Scheduling Problems, Mathematisch Centrum Report BW 43/75 (1975), p. 24 (TRAVELLING SALESMAN reformulation after Eq. (9)); p. 25, proof of Theorem 5(b)
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