Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2(d) — G' has a Hamilton circuit iff the split graph G has a Hamilton path

Proved
SchedComplexity.NoWait.theorem_2d_equiv

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

graph-theoryhamilton-pathnp-completenessp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let G′=(V′,A′)G'=(V',A')G′=(V′,A′) be a directed graph and v′∈V′v'\in V'v′∈V′. Construct G=(V,A)G=(V,A)G=(V,A) with a new vertex v′′v''v′′:

V=V′∪{v′′},A={(u,v)∣(u,v)∈A′, v≠v′}∪{(u,v′′)∣(u,v′)∈A′}.V=V'\cup\{v''\},\qquad A=\{(u,v)\mid(u,v)\in A',\ v\ne v'\}\cup\{(u,v'')\mid(u,v')\in A'\}.V=V′∪{v′′},A={(u,v)∣(u,v)∈A′, v=v′}∪{(u,v′′)∣(u,v′)∈A′}.

Then G′G'G′ has a Hamilton circuit if and only if GGG has a Hamilton path.

This is the correctness of the reduction DIRECTED HAMILTON CIRCUIT ∝\propto∝ DIRECTED HAMILTON PATH, which establishes the NP-completeness of the source problem of Theorem 5 from Karp's result for Hamilton circuits.

Formalization Note V′={0,…,n−1}V'=\{0,\dots,n-1\}V′={0,…,n−1} and v′′v''v′′ is the new vertex nnn. A one-vertex G′G'G′ has a Hamilton circuit iff it has a loop at v′v'v′; correspondingly GGG then has the arc (v′,v′′)(v',v'')(v′,v′′). The NP-completeness of DIRECTED HAMILTON CIRCUIT (Karp) is not formalized.

Preamble
import Mathlib
import Definitions.Def_SchedComplexity_NoWait_DirectedGraphs
import Definitions.Def_SchedComplexity_NoWait_Construction
Formal statement
namespace SchedComplexity.NoWait

/-- Theorem 2(d), the equivalence (p. 14): for a directed graph `G'` on `Fin n` and a chosen
vertex `v'`, `G'` has a Hamilton circuit iff the graph `G` obtained by keeping the arcs of `G'`
that do not enter `v'` and redirecting the arcs entering `v'` to a new vertex `v''` has a
Hamilton path. -/
theorem theorem_2d_equiv {n : ℕ} (adj' : Fin n → Fin n → Bool) (v' : Fin n) :
    HasHamiltonCircuit adj' ↔ HasHamiltonPath (hcToHpGraph adj' v') := by sorry

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