Theorem 6 — a tour -optimal for all with LOCALOPT/OPTIMAL
ProvedTSPHeuristics.KOpt.theorem_6_k_optimal_ratio_two_mul_one_sub_invFor each there is a traveling salesman graph on nodes with having a tour that is -optimal for every and whose length LOCALOPT satisfies
Local optimality under -changes with up to a quarter of the number of cities therefore does not guarantee a ratio better than .
Formalization Note The ratio is multiplied out: tourLength d τ = 2 * (1 - 1/n) * optimal d. 0 < optimal d is the paper's standing assumption (1.1) (p. 564), which excludes the identically zero distance that would make the statement trivial. is written for natural ; one tour serves every such , as printed. The bound is the printed one.
import Mathlib import Definitions.Def_TSPHeuristics_KOpt_KOptimal
namespace TSPHeuristics.KOpt
theorem theorem_6_k_optimal_ratio_two_mul_one_sub_inv (n : ℕ) (hn : 8 ≤ n) :
∃ d : Fin n → Fin n → ℝ, TSPHeuristics.Shared.IsTSPDist d ∧ 0 < TSPHeuristics.Shared.optimal d ∧
∃ τ : Equiv.Perm (Fin n), (∀ k : ℕ, 4 * k ≤ n → IsKOptimalTour d k τ) ∧
TSPHeuristics.Shared.tourLength d τ = 2 * (1 - 1 / (n : ℝ)) * TSPHeuristics.Shared.optimal d := by sorry
end TSPHeuristics.KOpt
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Hypothesis. .
Claim. There exist a real-valued function on ordered pairs of nodes in and a permutation such that:
- holds;
- ;
- for every natural number with , is -optimal for ; that is, for every permutation ,
where is the set of unordered pairs ; 4. the tour length satisfies
Undisplayed definitions. is only asserted to exist; it is not specified. , and come from a shared module whose code is not included here. Their content cannot be stated from this code.
Degenerate cases.
- excludes small , so is an ordinary reciprocal.
- is among the required values, as are all values up to .
- The ratio is an exact equality, not an inequality.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.
Confirmed by the moderator at approval.