Eqs. (4.9)–(4.10) — nearest insertion satisfies (4.5): COST(T_i, a_i) ≤ 2·d(p, q)
ProvedTSPHeuristics.NearCheap.eq_4_5_of_nearestLet be a traveling salesman graph with nodes and let , be a run of nearest insertion: an insertion method in which each () minimizes the distance over all nodes . Then for every , every node and every node ,
This is the hypothesis of Lemma 3, established for nearest insertion; together with Lemma 3 it bounds the nearest-insertion tour by twice a minimal spanning tree.
Formalization Note The start node and the resolution of ties among nearest nodes and among cheapest insertion positions are arbitrary. The distance satisfies (normalization).
import Mathlib import Definitions.Def_TSPHeuristics_Shared_Insertion
namespace TSPHeuristics.NearCheap
theorem eq_4_5_of_nearest {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)
(hrule : TSPHeuristics.Shared.IsNearestRule d T a) :
∀ i, 1 ≤ i → i < n → ∀ p ∈ T i, ∀ q, q ∉ T i →
TSPHeuristics.Shared.insCost d (T i) (a i) ≤ 2 * d p q := 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 lists of nodes.
- is a sequence of nodes.
Hypotheses. Each of the following is an imported predicate whose definition is not shown here:
IsTSPDistholds for .IsInsertionRunholds for , and .IsNearestRuleholds for , and .
Conclusion. Let be the unshown insCost. For every index with , every node in , and every node not in :
The inequality is non-strict. Note that ranges over all nodes outside ; it is not required to equal . The distance is , from the node in to the node outside it.
Degenerate cases. If , no index satisfies , so the statement is vacuous. For any where is empty, or where contains every node, there is no valid pair and the claim is vacuous at that . Nothing is asserted for or for . Whether the three hypotheses can hold together depends on the unshown definitions.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.