Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 6 (corrected) — a nested directed graph has a Hamiltonian circuit iff every φ(q) ∈ Γ_q and G′_φ is connected

Proved
GilmoreGomoryTSP.Bottleneck.theorem_6_hamiltonian_iff

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

graph-theoryhamiltonian-cyclep2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let GGG be a directed graph on the nodes 1,…,N1,\dots,N1,…,N and let Γi\Gamma_iΓi​ be the set of nodes jjj for which GGG has an arc from iii to jjj. Assume

Γ1⊆Γ2⊆⋯⊆ΓN={1,…,N},\Gamma_1\subseteq\Gamma_2\subseteq\cdots\subseteq\Gamma_N = \{1,\dots,N\},Γ1​⊆Γ2​⊆⋯⊆ΓN​={1,…,N},

and let φ\varphiφ be a permutation such that every Γi\Gamma_iΓi​ is an initial segment {φ(1),…,φ(j)}\{\varphi(1),\dots,\varphi(j)\}{φ(1),…,φ(j)} (possibly empty). Let Gφ′G'_\varphiGφ′​ be the undirected graph on the NNN nodes with an arc Rqφ(q)R_{q\varphi(q)}Rqφ(q)​ iff φ(q)∈Γq\varphi(q)\in\Gamma_qφ(q)∈Γq​ and an arc Rq,q+1R_{q,q+1}Rq,q+1​ iff φ(q+1)∈Γq\varphi(q+1)\in\Gamma_qφ(q+1)∈Γq​. Then GGG has a Hamiltonian circuit — a tour ψ\psiψ with ψ(i)∈Γi\psi(i)\in\Gamma_iψ(i)∈Γi​ for all iii — if and only if

φ(q)∈Γq for all qandGφ′ is connected.\varphi(q)\in\Gamma_q \ \text{for all } q \qquad\text{and}\qquad G'_\varphi \text{ is connected}.φ(q)∈Γq​ for all qandGφ′​ is connected.

This characterizes Hamiltonicity for the class of directed graphs whose out-neighbourhoods form a chain.

Formalization Note As printed, Theorem 6 says the circuit exists iff Gφ′G'_\varphiGφ′​ is connected. The sufficiency half of that is false: for N=3N=3N=3, Γ1=Γ2={3}\Gamma_1=\Gamma_2=\{3\}Γ1​=Γ2​={3}, Γ3={1,2,3}\Gamma_3=\{1,2,3\}Γ3​={1,2,3}, φ=(3,1,2)\varphi=(3,1,2)φ=(3,1,2), Gφ′G'_\varphiGφ′​ has the arcs R13R_{13}R13​, R32R_{32}R32​ and is connected, but nodes 1 and 2 both have the single successor 3, so no Hamiltonian circuit exists. The paper's proof needs m(φ)=0m(\varphi)=0m(φ)=0, i.e. φ(q)∈Γq\varphi(q)\in\Gamma_qφ(q)∈Γq​ for all qqq, which it omits. The Lean adds this condition to the right-hand side; the necessity half as printed is a consequence of the corrected statement. The paper's claim that such a φ\varphiφ always exists is not stated; φ\varphiφ is a given permutation with the initial-segment property, where the empty segment (j=0j=0j=0) is allowed.

Preamble
import Mathlib
import Definitions.Def_GilmoreGomoryTSP_Bottleneck_Model
Formal statement
namespace GilmoreGomoryTSP.Bottleneck

theorem theorem_6_hamiltonian_iff {n : ℕ} (Γ : Fin (n + 1) → Finset (Fin (n + 1)))
    (hΓ : Monotone Γ) (hΓn : Γ (Fin.last n) = Finset.univ) (φ : Equiv.Perm (Fin (n + 1)))
    (hφ : ∀ i, ∃ j : ℕ,
      Γ i = (Finset.univ.filter (fun k : Fin (n + 1) => (k : ℕ) < j)).map φ.toEmbedding) :
    (∃ ψ : Equiv.Perm (Fin (n + 1)), GilmoreGomoryTSP.MinCost.IsTour ψ ∧ ∀ i, ψ i ∈ Γ i) ↔
      (∀ q, φ q ∈ Γ q) ∧ (Gprime Γ φ).Connected := by sorry

end GilmoreGomoryTSP.Bottleneck
Source
Gilmore and Gomory, Sequencing a one state-variable machine, Oper. Res. 12 (1964), p. 671, Theorem 6 (corrected: added the condition φ(q) ∈ Γ_q)
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