(7.4) — on the circle, the length of a tour is COUNT(e, T)
ProvedTSPHeuristics.KOpt.eq_7_4_tourLength_eq_sum_unitCountOn the circle graph , every tour satisfies
because every edge of is replaced in by a path of unit edges of the same length.
This identity converts length comparisons between tours on the circle into comparisons of unit-edge counts, which is how the parity argument of Theorem 6 bounds the effect of a -change.
Formalization Note COUNT uses the canonical arc of the definition UnitEdgeCount (shorter arc; the non-wrapping arc in the antipodal tie). The statement holds for every , including the degenerate .
import Mathlib import Definitions.Def_TSPHeuristics_Shared_TSPModel import Definitions.Def_TSPHeuristics_KOpt_CircleInstance import Definitions.Def_TSPHeuristics_KOpt_UnitEdgeCount
namespace TSPHeuristics.KOpt
theorem eq_7_4_tourLength_eq_sum_unitCount (n : ℕ) (τ : Equiv.Perm (Fin n)) :
TSPHeuristics.Shared.tourLength (cycDist n) τ = ∑ e : Fin n, (unitCount τ e : ℝ) := by sorry
end TSPHeuristics.KOpt
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Hypotheses. None beyond the objects themselves: is any natural number and is any permutation of .
Claim.
Objects.
- is the circular distance: if , and otherwise.
- is the number of steps for which unit edge lies on the arc assigned to the step from to .
- The arc assigned to a step with endpoints and covers the edges with when . Otherwise it covers the edges with or .
- comes from a shared module whose code is not included here.
Degenerate cases. The statement has no hypothesis on , so it includes the following:
- : the right side is the empty sum .
- : every count is , so the claim is .
- : the counts are and , so the claim is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.