Proof of Theorem 6 — is the shortest even tour, so any tour improving on is odd
ProvedTSPHeuristics.KOpt.theorem_6_proof_shortest_even_tourk-optp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1traveling-salesmanworst-case-example
Let and consider the circle graph and the subtour of the proof of Theorem 5. Then
- for every tour , at most one unit edge has ;
- every even tour is at least as long as : ;
- every tour with is odd.
Item 2 is " is the shortest even tour" ( has one unit edge of count and all others of count , (7.2)–(7.3)); item 3 is its consequence together with the odd/even dichotomy.
Formalization Note is the list circleSubtour n n; tours are permutations. COUNT uses the canonical arc of UnitEdgeCount. The counts (7.2)–(7.3) of itself are not stated; item 2 states the length comparison they are used for.
Preamble
import Mathlib import Definitions.Def_TSPHeuristics_Shared_TSPModel import Definitions.Def_TSPHeuristics_KOpt_CircleInstance import Definitions.Def_TSPHeuristics_KOpt_UnitEdgeCount
Formal statement
namespace TSPHeuristics.KOpt
theorem theorem_6_proof_shortest_even_tour (n : ℕ) (hn : 6 ≤ n) :
(∀ (τ : Equiv.Perm (Fin n)) (e e' : Fin n),
unitCount τ e = 0 → unitCount τ e' = 0 → e = e') ∧
(∀ τ : Equiv.Perm (Fin n), (∀ e : Fin n, Even (unitCount τ e)) →
TSPHeuristics.Shared.cycleLength (cycDist n) (circleSubtour n n) ≤ TSPHeuristics.Shared.tourLength (cycDist n) τ) ∧
(∀ τ : Equiv.Perm (Fin n),
TSPHeuristics.Shared.tourLength (cycDist n) τ < TSPHeuristics.Shared.cycleLength (cycDist n) (circleSubtour n n) →
∀ e : Fin n, Odd (unitCount τ e)) := by sorry
end TSPHeuristics.KOpt
Source
Rosenkrantz, Stearns, Lewis, An Analysis of Several Heuristics for the Traveling Salesman Problem, SIAM J. Comput. 6(3), 1977, p. 580, proof of Theorem 6, paragraph 'For any tour T, there can be only one edge e in E_n such that COUNT(e, T) = 0 …'
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Hypothesis. .
Objects.
- is the circular distance on .
- is the list , then the odd nodes increasing, then the nonzero even nodes decreasing.
- is the unit-edge count defined through the canonical arcs. With endpoints , the arc covers if , and or otherwise.
- and come from a shared module whose code is not included here.
Claim. All three of the following hold:
- For every permutation , at most one unit edge has .
- For every permutation with every count even:
- For every permutation with , every count is odd.
Degenerate cases.
- Small is excluded by .
- Part 1 does not claim that any zero count exists; it only rules out two.
- Part 2 uses the non-strict , and part 3 uses the strict .
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.