Eq. (3.7) — INSERT is the sum of the insertion costs
ProvedTSPHeuristics.NearCheap.eq_3_7_insert_eq_sum_costLet be a traveling salesman graph with nodes, and let , be a run of an insertion method: and with for . Then the length INSERT of the final tour is
This telescoping identity turns bounds on individual insertion steps into a bound on the tour the insertion method returns; it holds for every insertion method, whatever rule selects the nodes .
Formalization Note It uses that the one-node subtour has length , which the normalization provides (the paper treats a one-node subtour as a tour without edges).
import Mathlib import Definitions.Def_TSPHeuristics_Shared_Insertion
namespace TSPHeuristics.NearCheap
theorem eq_3_7_insert_eq_sum_cost {n : ℕ} (hn : 1 ≤ n) (d : Fin n → Fin n → ℝ)
(hd : TSPHeuristics.Shared.IsTSPDist d) (T : ℕ → List (Fin n)) (a : ℕ → Fin n) (hrun : TSPHeuristics.Shared.IsInsertionRun d T a) :
TSPHeuristics.Shared.cycleLength d (T n) = ∑ i ∈ Finset.Ico 1 n, TSPHeuristics.Shared.insCost d (T i) (a i) := by sorry
end TSPHeuristics.NearCheap
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting.
- is a natural number and is the node set.
- is a real-valued function.
- is a sequence of finite lists of nodes, indexed by every natural number.
- is a sequence of nodes.
Hypotheses.
- .
- satisfies the imported, unshown predicate
IsTSPDist. - , and together satisfy the imported, unshown predicate
IsInsertionRun.
This code does not show how IsInsertionRun relates , and , or which indices it constrains.
Conclusion. Write for the imported, unshown cycleLength and for the imported, unshown insCost. The claim is an exact equality:
The sum runs over . It excludes and .
Degenerate cases. When the sum is empty, so the statement asserts . The case is excluded by hypothesis 1. Terms , , and all with do not appear in the conclusion. If the combined hypotheses cannot be satisfied for some , the statement is vacuous there; that depends on the unshown definitions.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.