Lemma 1 — an interchange between two cycles merges them into one
ProvedGilmoreGomoryTSP.MinCost.lemma_1_merge_cyclesp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1permutationstraveling-salesman
Let be a permutation of the jobs with cycles (fixed points count as cycles of length one), and let be an interchange with , , . Then has the same cycles as except that and are replaced by a single cycle containing all their nodes. Equivalently, for all jobs : and lie in the same cycle of if and only if they lie in the same cycle of , or one of them lies in and the other in .
Repeated use of this fact turns the cycles of into a single tour (Theorem 2).
Formalization Note Cycles are encoded by Mathlib's Equiv.Perm.SameCycle ( and are in the same cycle iff for some integer ), and the conclusion is stated as the equivalence above for all . is ψ * alpha i j.
Preamble
import Mathlib import Definitions.Def_GilmoreGomoryTSP_MinCost_Model
Formal statement
namespace GilmoreGomoryTSP.MinCost
theorem lemma_1_merge_cycles {n : ℕ} (ψ : Equiv.Perm (Fin (n + 1))) (i j : Fin (n + 1))
(hij : ¬ ψ.SameCycle i j) (k l : Fin (n + 1)) :
(ψ * alpha i j).SameCycle k l ↔
ψ.SameCycle k l ∨ (ψ.SameCycle k i ∧ ψ.SameCycle l j) ∨
(ψ.SameCycle k j ∧ ψ.SameCycle l i) := by sorry
end GilmoreGomoryTSP.MinCost
Source
Gilmore and Gomory, Sequencing a one state-variable machine, Oper. Res. 12 (1964), p. 660, Lemma 1
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.