Eq. (3.7) — INSERT = Σ_{i=1}^{n−1} COST(T_i, a_i)
ProvedTSPHeuristics.Insertion.insert_eq_sum_insCostLet be a traveling salesman graph with nodes, and let and be the subtours and nodes of an insertion method run. Then the length INSERT of the final tour is the sum of the insertion costs:
This bookkeeping identity turns the bound on INSERT into a bound on a sum of per-node quantities, to which Lemma 1 applies.
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.7), p. 571: the length of the tour `T n` built by an insertion method is the sum of the
insertion costs, `INSERT = Σ_{i=1}^{n-1} COST(T_i, a_i)`. -/
theorem insert_eq_sum_insCost {n : ℕ} (hn : 1 ≤ n) (d : Fin n → Fin n → ℝ) (hd : TSPHeuristics.Shared.IsTSPDist d)
(T : ℕ → List (Fin n)) (a : ℕ → Fin n) (hrun : IsInsertionRun d T a) :
TSPHeuristics.Shared.cycleLength d (T n) = ∑ i ∈ Finset.Ico 1 n, insCost d (T i) (a i) := by sorry
end TSPHeuristics.Insertion
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a 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 : does not occur in , and for some position . That position gives the smallest among all positions .
Here is with inserted before the entry at 0-based index , and is an imported tour-length function whose definition is not shown.
Let . The theorem asserts
Degenerate case:
- : the sum is empty and . The theorem then asserts that for a one-element list.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.