Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2 — the interchanges of a spanning tree of G_ψ, taken in any order, give a tour

Proved
GilmoreGomoryTSP.MinCost.theorem_2_tree_interchanges_tour

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

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

Let ψ\psiψ be any permutation of the jobs and let Ri1j1,…,Rip−1jp−1R_{i_1j_1},\dots,R_{i_{p-1}j_{p-1}}Ri1​j1​​,…,Rip−1​jp−1​​ be the arcs of a spanning tree of GψG_\psiGψ​, i.e. a minimal set of additional arcs whose union with GψG_\psiGψ​ is connected. Then, for any order in which the arcs are listed,

ψ′=ψ αi1j1αi2j2⋯αip−1jp−1\psi' = \psi\,\alpha_{i_1j_1}\alpha_{i_2j_2}\cdots\alpha_{i_{p-1}j_{p-1}}ψ′=ψαi1​j1​​αi2​j2​​⋯αip−1​jp−1​​

is a tour.

This is the bridge from spanning trees of GφG_\varphiGφ​ to tours; it supplies the tour half of Theorem 3.

Formalization Note The arcs are given as a duplicate-free list LLL of ordered pairs whose set is a spanning tree (IsSpanningTree), and the interchanges are executed left to right by folding σ↦σ αe\sigma\mapsto\sigma\,\alpha_{e}σ↦σαe​ over LLL starting from ψ\psiψ.

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

theorem theorem_2_tree_interchanges_tour {n : ℕ} (ψ : Equiv.Perm (Fin (n + 1)))
    (L : List (Fin (n + 1) × Fin (n + 1))) (hL : L.Nodup) (hT : IsSpanningTree ψ L.toFinset) :
    IsTour (L.foldl (fun σ e => σ * alpha e.1 e.2) ψ) := by sorry

end GilmoreGomoryTSP.MinCost
Source
Gilmore and Gomory, Sequencing a one state-variable machine, Oper. Res. 12 (1964), p. 661, Theorem 2
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