Lemma 2 — COST(T, k) ≤ 2·d(k, j) for every node j of T
ProvedTSPHeuristics.Insertion.lemma_2_insCost_le_two_mul_distLet be a traveling salesman graph, a subtour, a node not in and a node in . Then
Inserting a node never costs more than going to any node already on the subtour and back. The lemma drives both the logarithmic bound for every insertion method (Theorem 3) and the constant-factor bounds for nearest and cheapest insertion.
Formalization Note Subtours are lists of nodes; the closed length of a list is . The paper's 1-based subtour index is kept: , and is the final tour. Every choice of the inserted nodes and every minimizing insertion position is allowed. is assumed as a normalization (not in the paper; it never enters a length). A subtour is a list without repeated nodes.
import Mathlib import Definitions.Def_TSPHeuristics_Shared_TSPModel import Definitions.Def_TSPHeuristics_Insertion_InsertionMethod
namespace TSPHeuristics.Insertion
/-- Lemma 2, p. 571, (3.3): for a subtour `T`, a node `k` not in `T` and a node `j` in `T`,
`COST(T, k) ≤ 2 · d(k, j)`. -/
theorem lemma_2_insCost_le_two_mul_dist {n : ℕ} (d : Fin n → Fin n → ℝ) (hd : TSPHeuristics.Shared.IsTSPDist d)
(T : List (Fin n)) (hT : T.Nodup) (k j : Fin n) (hk : k ∉ T) (hj : j ∈ T) :
insCost d T k ≤ 2 * d k j := 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 satisfying the imported predicate , whose definition is not shown. Let be a list of nodes with no repeated entries. Let be a node that does not occur in , and let be a node that does occur in .
The insertion cost is the least increase in length over all insertion positions:
Here is with inserted before the entry at 0-based index (at the end when ). is an imported tour-length function whose definition is not shown. The theorem asserts
Degenerate cases:
- nonempty: because , cannot be empty, and because .
- : the two positions give and . The claim is that the smaller of and , minus , is at most . This depends on the unshown conventions of for one- and two-element lists.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.