Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1 — the permutation φ that ranks the A is a minimal cost permutation

Proved
GilmoreGomoryTSP.MinCost.theorem_1_ranking_optimal

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

assignmentp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1sequencingtraveling-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 on R\mathbb RR with f(x)+g(x)≥0f(x)+g(x)\ge0f(x)+g(x)≥0 for all xxx, and let c(ψ)=∑iciψ(i)c(\psi)=\sum_i c_{i\psi(i)}c(ψ)=∑i​ciψ(i)​ be the cost (3) of a permutation ψ\psiψ with the changeover costs cijc_{ij}cij​ of (1). If φ\varphiφ ranks the AAA, that is j>ij>ij>i implies Aφ(j)≥Aφ(i)A_{\varphi(j)}\ge A_{\varphi(i)}Aφ(j)​≥Aφ(i)​, then

c(φ)=min⁡ψc(ψ),c(\varphi)=\min_\psi c(\psi),c(φ)=ψmin​c(ψ),

the minimum being taken over all permutations ψ\psiψ (not only tours).

This is the assignment relaxation of the problem: φ\varphiφ is the starting point from which the minimal tour is built.

Formalization Note The conclusion is stated as c(φ)≤c(ψ)c(\varphi)\le c(\psi)c(φ)≤c(ψ) for every permutation ψ\psiψ. The paper's "any integrable functions" is read as local integrability on R\mathbb RR.

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

theorem theorem_1_ranking_optimal {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 φ) :
    ∀ ψ : Equiv.Perm (Fin (n + 1)), cost f g A B φ ≤ 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. 659, Theorem 1
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