Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5 — the tour ψ* described in Theorem 3 is a minimal cost tour

Proved
GilmoreGomoryTSP.MinCost.theorem_5_psiStar_minimal

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

combinatorial-optimizationp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1sequencingspanning-treetraveling-salesman

Let N=n+1N=n+1N=n+1 jobs have starting states AiA_iAi​ and final states BiB_iBi​, numbered so that j>ij>ij>i implies Bj≥BiB_j\ge B_iBj​≥Bi​. Let f,gf,gf,g be locally integrable functions with f(x)+g(x)≥0f(x)+g(x)\ge0f(x)+g(x)≥0, and let cijc_{ij}cij​ be the changeover costs (1) and c(ψ)=∑iciψ(i)c(\psi)=\sum_i c_{i\psi(i)}c(ψ)=∑i​ciψ(i)​. Let φ\varphiφ rank the AAA (j>i⇒Aφ(j)≥Aφ(i)j>i\Rightarrow A_{\varphi(j)}\ge A_{\varphi(i)}j>i⇒Aφ(j)​≥Aφ(i)​), and let τ\tauτ be a minimal cost spanning tree of GφG_\varphiGφ​ made of arcs Rq,q+1R_{q,q+1}Rq,q+1​, where the arc Rq,q+1R_{q,q+1}Rq,q+1​ costs cφ(αq,q+1)=c(φαq,q+1)−c(φ)c_\varphi(\alpha_{q,q+1})=c(\varphi\alpha_{q,q+1})-c(\varphi)cφ​(αq,q+1​)=c(φαq,q+1​)−c(φ). Let

ψ∗=φ αi1,i1+1⋯αil,il+1 αj1,j1+1⋯αjm,jm+1,\psi^*=\varphi\,\alpha_{i_1,i_1+1}\cdots\alpha_{i_l,i_l+1}\,\alpha_{j_1,j_1+1}\cdots\alpha_{j_m,j_m+1},ψ∗=φαi1​,i1​+1​⋯αil​,il​+1​αj1​,j1​+1​⋯αjm​,jm​+1​,

where i1>⋯>ili_1>\dots>i_li1​>⋯>il​ are the arcs of τ\tauτ whose lower node is of type 1 relative to φ\varphiφ (Bq≤Aφ(q)B_q\le A_{\varphi(q)}Bq​≤Aφ(q)​) and j1<⋯<jmj_1<\dots<j_mj1​<⋯<jm​ those of type 2. Then ψ∗\psi^*ψ∗ is a tour, and

c(ψ∗)≤c(ψ)for every tour ψ.c(\psi^*)\le c(\psi)\quad\text{for every tour }\psi.c(ψ∗)≤c(ψ)for every tour ψ.

This is the paper's main result: the traveling salesman problem with the one state-variable costs (1) is solved exactly by an assignment, a minimum spanning tree over adjacent arcs, and interchanges executed in a prescribed order.

Formalization Note The minimum is over tours (single cycles through all jobs), not over all permutations. τ\tauτ must be a spanning tree (minimal under inclusion) and of minimal cost among spanning trees made of adjacent arcs; by Lemma 2 that is also the minimum over all spanning trees. The execution order is that of the proof of Lemma 5 and of steps T2–T4 (p. 673); Theorem 3 as printed lists the indices in the opposite order, which on the paper's example (Tables I–III) gives a tour of cost 39 instead of Table III's optimal tour 1-2-7-4-5-6-3-1 of cost 34. "Any integrable functions" is read as local integrability on R\mathbb RR. For N=1N=1N=1 the identity is the only tour and the statement is trivially true.

Preamble
import Mathlib
import Definitions.Def_GilmoreGomoryTSP_MinCost_Model
Formal statement
namespace GilmoreGomoryTSP.MinCost

theorem theorem_5_psiStar_minimal {n : ℕ}
    (f g : ℝ → ℝ) (hf : MeasureTheory.LocallyIntegrable f) (hg : MeasureTheory.LocallyIntegrable g)
    (hfg : ∀ x, 0 ≤ f x + g x) (A B : Fin (n + 1) → ℝ) (hB : Monotone B)
    (φ : Equiv.Perm (Fin (n + 1))) (hφ : RanksA A φ)
    (T : Finset (Fin n)) (hT : IsMinCostAdjTree f g A B φ T) :
    IsTour (psiStar A B φ T) ∧
      ∀ ψ : Equiv.Perm (Fin (n + 1)), IsTour ψ →
        cost f g A B (psiStar A B φ T) ≤ cost f g A B ψ := by sorry

end GilmoreGomoryTSP.MinCost
Source
Gilmore and Gomory, Sequencing a one state-variable machine, Oper. Res. 12 (1964), p. 670, Theorem 5 (with ψ* as in Theorem 3, p. 665, in the execution order of Lemma 5, p. 664, and steps T2–T4, p. 673)
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