Eq. (2.1) — OPTIMAL ≥ 2 Σ_{i=k+1}^{min(2k,n)} l_i
ProvedTSPHeuristics.Insertion.optimal_ge_two_mul_sum_tailLet be a traveling salesman graph whose nodes are numbered , and let be real numbers such that for all distinct nodes (condition a) of Lemma 1). Then for every with ,
This is the key inequality in the proof of Lemma 1; summing it over yields the logarithmic bound.
Formalization Note Nodes are Fin n (0-based). A traveling salesman graph is IsTSPDist d: symmetric, nonnegative, triangle inequality, plus the normalization , which is not in the paper and does not affect any length, since a loop never enters a tour, subtour or insertion cost. Nodes are numbered in Lean, so the paper's range becomes ; the ordering for (the proof's without-loss-of-generality numbering) is the hypothesis that is antitone. Condition a) is assumed for distinct nodes only (see Lemma 1).
import Mathlib import Definitions.Def_TSPHeuristics_Shared_TSPModel import Definitions.Def_TSPHeuristics_Insertion_InsertionMethod
namespace TSPHeuristics.Insertion
/-- (2.1), p. 565: if the numbers `l` are non-increasing in the node label (the WLOG ordering
of the proof of Lemma 1) and satisfy condition a) of Lemma 1, then for every `1 ≤ k ≤ n`,
`OPTIMAL ≥ 2 Σ_{i=k+1}^{min(2k,n)} l_i`. Nodes are 0-based, so the paper's indices
`k+1, …, min(2k, n)` are `k, …, min(2k, n) - 1` here. -/
theorem optimal_ge_two_mul_sum_tail {n : ℕ} (d : Fin n → Fin n → ℝ) (hd : TSPHeuristics.Shared.IsTSPDist d)
(l : Fin n → ℝ) (hl : Antitone l)
(ha : ∀ p q, p ≠ q → min (l p) (l q) ≤ d p q) :
∀ k : ℕ, 1 ≤ k → k ≤ n →
2 * ∑ i ∈ Finset.univ.filter (fun i : Fin n => k ≤ i.val ∧ i.val < min (2 * k) n), l i
≤ TSPHeuristics.Shared.optimal d := 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 denote the imported quantity , also not shown. Let be any real numbers such that:
- is non-increasing in the node label: implies ;
- distinct nodes: for all distinct nodes , .
No sign condition and no upper bound is placed on . The theorem asserts that for every natural number with ,
Degenerate cases:
- : no satisfies , so the statement is vacuous.
- : the index range is empty. The claim becomes , so the theorem asserts whenever and the hypotheses hold. (Some always satisfies them, for example any constant that is very negative.)
- : the distinct-node condition is vacuous, and only applies, which is the empty-sum case.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.