Eq. (2.2) — shortcutting a tour to a subset of the nodes does not increase its length
ProvedTSPHeuristics.Insertion.shortcut_cycleLength_filter_le_tourLengthLet be a traveling salesman graph with nodes, let be a tour visiting , and let be any set of nodes. Let be the tour on that visits the nodes of in the same order as does. Then
In particular, taking optimal gives the paper's (2.2), .
This is the shortcutting step in the proof of Lemma 1: each edge of is no longer than the stretch of from to .
Formalization Note Nodes are Fin n (0-based). A traveling salesman graph is IsTSPDist d: symmetric, nonnegative, triangle inequality, plus the normalization , which is not in the paper and does not affect any length, since a loop never enters a tour, subtour or insertion cost. The paper uses a particular , the nodes with the largest numbers ; the statement is given for every , which is what the argument proves. For the left side is .
import Mathlib import Definitions.Def_TSPHeuristics_Shared_TSPModel import Definitions.Def_TSPHeuristics_Insertion_InsertionMethod
namespace TSPHeuristics.Insertion
/-- (2.2), p. 565, in the general form the argument proves: visiting any subset `H` of the
nodes in the order in which a tour `τ` visits them gives a closed tour on `H` no longer than `τ`
(the triangle inequality shortcuts the skipped nodes). -/
theorem shortcut_cycleLength_filter_le_tourLength {n : ℕ} (d : Fin n → Fin n → ℝ)
(hd : TSPHeuristics.Shared.IsTSPDist d) (τ : Equiv.Perm (Fin n)) (H : Finset (Fin n)) :
TSPHeuristics.Shared.cycleLength d ((List.ofFn τ).filter (fun i => decide (i ∈ H))) ≤ TSPHeuristics.Shared.tourLength d τ := by sorry
end TSPHeuristics.Insertion
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be any natural number, with nodes . Let be a real-valued function on pairs of nodes that satisfies the predicate . That predicate is imported from a shared definitions file that is not shown, so its exact conditions (for example symmetry, nonnegativity, triangle inequality) cannot be stated here. Let be any permutation of the nodes, and let be any subset of the nodes.
Form the list and keep only the entries that lie in , in the same order. Call the result . The theorem asserts
Both (the length of a list viewed as a closed tour) and (the length of the tour given by a permutation) come from the unshown shared file.
Degenerate cases:
- empty: is the empty list, and the claim is .
- a single node: the claim is about of a one-element list.
- all nodes: is the whole list of , and the claim compares of that list with .
- : everything is empty.
What these cases actually say depends on the unshown conventions of and .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.