Eq. (3.10) — COST(T_i, a_i) ≤ 2·d(a_i, a_j) for j < i
ProvedTSPHeuristics.Insertion.insCost_le_two_mul_dist_of_ltLet be a traveling salesman graph with nodes, and let and be the subtours and nodes of an insertion method run. For all indices ,
The node already lies on when is inserted, so this is Lemma 2 applied along the run. With and it gives condition a) of Lemma 1.
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).
import Mathlib import Definitions.Def_TSPHeuristics_Shared_TSPModel import Definitions.Def_TSPHeuristics_Insertion_InsertionMethod
namespace TSPHeuristics.Insertion
/-- (3.10), p. 572: in an insertion method run, for `j < i < n` (so `a_j` already lies in
`T_i` when `a_i` is inserted), `COST(T_i, a_i) ≤ 2 · d(a_i, a_j)`. -/
theorem insCost_le_two_mul_dist_of_lt {n : ℕ} (d : Fin n → Fin n → ℝ) (hd : TSPHeuristics.Shared.IsTSPDist d)
(T : ℕ → List (Fin n)) (a : ℕ → Fin n) (hrun : IsInsertionRun d T a) :
∀ i j : ℕ, j < i → i < n → insCost d (T i) (a i) ≤ 2 * d (a i) (a 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 lists of nodes and nodes forming an insertion run:
- ;
- for each : , and is with inserted at a position minimising of the result among all positions.
is an imported tour-length function whose definition is not shown. Let , where inserts before 0-based index .
The theorem asserts that for all natural numbers with ,
The statement does not assume as a hypothesis. It is claimed for every pair under the run condition alone. Note that forces , and is allowed.
Degenerate cases:
- : no satisfies , so the statement is vacuous. For , no run exists anyway.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.