Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3 — ψ* is a tour with cost c(φ) + c_φ(τ)

Proved
GilmoreGomoryTSP.MinCost.theorem_3_psiStar_tour_cost

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

p2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1sequencingspanning-treetraveling-salesman

Let BBB be sorted, f,gf,gf,g locally integrable with f+g≥0f+g\ge0f+g≥0, and φ\varphiφ a permutation ranking the AAA. Let τ\tauτ be a minimal cost spanning tree of GφG_\varphiGφ​ made of arcs Rq,q+1R_{q,q+1}Rq,q+1​. Let i1>i2>⋯>ili_1>i_2>\dots>i_li1​>i2​>⋯>il​ be the lower indices of its type-1 arcs and j1<j2<⋯<jmj_1<j_2<\dots<j_mj1​<j2​<⋯<jm​ those of its type-2 arcs (types relative to φ\varphiφ), and

ψ∗=φ α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​.

Then ψ∗\psi^*ψ∗ is a tour with cost

c(ψ∗)=c(φ)+cφ(τ).c(\psi^*)=c(\varphi)+c_\varphi(\tau).c(ψ∗)=c(φ)+cφ​(τ).

Formalization Note The page prints the type-1 indices increasing and the type-2 indices decreasing. Since ψα\psi\alphaψα means "apply α\alphaα to ψ\psiψ", that executes the interchanges in the reverse of the order of the proof of Lemma 5, which the proof of Theorem 3 says it follows, and of steps T2–T4 (p. 673). On the paper's own example (Tables I–III) the printed order gives a tour of cost 39, the corrected order gives Table III's tour 1-2-7-4-5-6-3-1 of cost 34. The statement uses the corrected order. The proof cites "Lemmas 2 and 4" for the cost; the cost statement is Lemma 5. "Minimal cost" is over spanning trees made of adjacent arcs, which by Lemma 2 have the same minimum cost as all spanning trees.

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

theorem theorem_3_psiStar_tour_cost {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) ∧
      cost f g A B (psiStar A B φ T) = cost f g A B φ + adjTreeCost f g A B φ T := by sorry

end GilmoreGomoryTSP.MinCost
Source
Gilmore and Gomory, Sequencing a one state-variable machine, Oper. Res. 12 (1964), p. 665, Theorem 3 (execution order as in the proof 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