Lemma 3 — if every step satisfies (4.5), then INSERT ≤ 2·TREE
ProvedTSPHeuristics.NearCheap.lemma_3_insert_le_two_mul_treeLet be a traveling salesman graph with nodes and let , be a run of an insertion method. Suppose that for every ,
Then for every spanning tree of , the length INSERT of the final tour satisfies
where is the total length of the edges of . In particular , where TREE is the length of a minimal spanning tree.
The lemma reduces the analysis of an insertion rule to the single local inequality (4.5).
Formalization Note The paper states (4.6) for TREE, the length of a minimal spanning tree; the Lean statement asserts it for every spanning tree, which is equivalent since TREE is the least tree length (and the paper's proof does not use minimality). The distance satisfies (normalization).
import Mathlib import Definitions.Def_TSPHeuristics_Shared_Insertion import Definitions.Def_TSPHeuristics_NearCheap_SpanningTree open Classical
namespace TSPHeuristics.NearCheap
theorem lemma_3_insert_le_two_mul_tree {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)
(h45 : ∀ i, 1 ≤ i → i < n → ∀ p ∈ T i, ∀ q, q ∉ T i →
TSPHeuristics.Shared.insCost d (T i) (a i) ≤ 2 * d p q)
(M : SimpleGraph (Fin n)) (hM : M.IsTree) :
TSPHeuristics.Shared.cycleLength d (T n) ≤ 2 * treeWeight d M := 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.
- is a simple graph on .
Hypotheses.
- .
- satisfies the imported, unshown predicate
IsTSPDist. - , and satisfy the imported, unshown predicate
IsInsertionRun. - For every with , every in and every node not in , . Here is the unshown
insCost. This is assumed directly as a hypothesis; no nearest or cheapest rule is assumed. - is a tree: it is connected (so it has at least one vertex) and has no cycles. Its vertex set is all of , so it is a spanning tree.
Conclusion. Let be the unshown cycleLength. Let be the graph weight, the sum over the edges of of . The claim is
The inequality is non-strict. It must hold for every spanning tree , not only for a minimum-weight one.
Degenerate cases. When , the only tree is the single vertex with no edges, so . Hypothesis 4 is then vacuous, and the statement asserts . The case is excluded, and could have no tree anyway. Only appears in the conclusion. Whether the hypotheses can be satisfied depends on the unshown definitions.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.