Proof of Theorem 4 — cheapest insertion satisfies (4.5): COST(T_i, a_i) ≤ 2·d(p, q)
ProvedTSPHeuristics.NearCheap.eq_4_5_of_cheapestLet be a traveling salesman graph with nodes and let , be a run of cheapest insertion: an insertion method in which each () minimizes over all nodes . Then for every , every node and every node ,
This is the hypothesis of Lemma 3, established for cheapest insertion, so that Lemma 3 applies to both heuristics.
Formalization Note The start node and all ties are arbitrary. The distance satisfies (normalization).
import Mathlib import Definitions.Def_TSPHeuristics_Shared_Insertion
namespace TSPHeuristics.NearCheap
theorem eq_4_5_of_cheapest {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.IsCheapestRule 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 .IsCheapestRuleholds 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. The node is any node outside , not necessarily . 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 contains every node, the claim is vacuous at that . Nothing is asserted for or for . Whether the hypotheses can hold together depends on the unshown definitions.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.