Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5 — DIRECTED HAMILTON PATH ∝ n|m|F,no wait|C_max and ∝ n|m|F,no wait,w_j=1|Σw_jC_j

Proved
SchedComplexity.NoWait.theorem_5_hamilton_path_reducible

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

hamilton-pathno-waitnp-completenessp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1reductionscheduling

Theorem 5 (Brucker, Lenstra & Rinnooy Kan). DIRECTED HAMILTON PATH is reducible to the following problems:

  1. n∣m∣F,no wait∣Cmax⁡n|m|F,\textit{no wait}|C_{\max}n∣m∣F,no wait∣Cmax​;
  2. n∣m∣F,no wait,wj=1∣∑wjCjn|m|F,\textit{no wait},w_j=1|\sum w_jC_jn∣m∣F,no wait,wj​=1∣∑wj​Cj​.

Here reducible (P′∝PP'\propto PP′∝P, Section 2) is polynomial-time many-one reducibility between the recognition languages: there is a function computable in polynomial time by a Turing machine that maps the code of every directed graph to the code of a pair (instance, threshold yyy) such that the graph has a Hamilton path iff the instance has a feasible no-wait schedule with value ≤y\le y≤y; and inputs that are not codes of yes-instances go to codes of no-instances. The languages are the binary codes of directed graphs with a Hamilton path, and of pairs (no-wait flow shop instance, yyy) admitting a feasible schedule with Cmax⁡≤yC_{\max}\le yCmax​≤y, respectively ∑jCj≤y\sum_j C_j\le y∑j​Cj​≤y.

Together with the NP-completeness of DIRECTED HAMILTON PATH (Theorem 2(d)) this shows that both no-wait flow shop problems, with the number of machines part of the input, are NP-complete.

Formalization Note Polynomial time is CookPvsNP.PolyTimeComputable (published CookPvsNP_defs). The paper's construction (pp. 24–25) needs an admissible ordering ι\iotaι, which exists for every n≠2n\ne2n=2 but not for n=2n=2n=2; a reduction realizing the theorem has to decide graphs on at most two vertices directly (a Hamilton path there is checkable at once) and map them to a fixed yes- or no-instance. NP-membership is not part of the statement.

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

/-- Theorem 5 (p. 24): DIRECTED HAMILTON PATH is polynomial-time many-one reducible to
(a) `n|m|F,no wait|C_max` and to (b) `n|m|F,no wait,w_j=1|Σw_jC_j`. -/
theorem theorem_5_hamilton_path_reducible :
    CookPvsNP.PolyReducible dhpLang cmaxLang ∧
      CookPvsNP.PolyReducible dhpLang sumCLang := by sorry

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