Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Property a): the edges of GiG_iGi​ keep their lengths in Gˉi\bar G_iGˉi​

Proved
TSPHeuristics.NNLower.gbar_edge_lengths

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

p2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1shortest-pathtraveling-salesman

For every i≥1i\ge1i≥1, every edge (a,b)(a,b)(a,b) of GiG_iGi​ of weight www is a shortest path between its endpoints:

dGˉi(a,b)=w.d_{\bar G_i}(a,b)=w.dGˉi​​(a,b)=w.

So the distances of the complete graph Gˉi\bar G_iGˉi​ restrict to the given weights on the edges of GiG_iGi​ (property a) of p. 568).

Formalization Note The statement is over the edge list of GiG_iGi​ and the shortest-path distance of that list.

Preamble
import Mathlib
import Definitions.Def_TSPHeuristics_NNLower_ShortestPathMetric
import Definitions.Def_TSPHeuristics_NNLower_LowerBoundFamily
Formal statement
namespace TSPHeuristics.NNLower

/-- Property a), p. 568: for `i ≥ 1`, every edge of `G_i` has the same length in `Ḡ_i` as in
`G_i`, i.e. each edge `(a, b, w)` of `G_i` is a shortest path: `d(a, b) = w`. -/
theorem gbar_edge_lengths (i : ℕ) (hi : 1 ≤ i) :
    ∀ e ∈ edgesG i, spDist (edgesG i) e.1 e.2.1 = e.2.2 := by sorry

end TSPHeuristics.NNLower
Source
Rosenkrantz, Stearns, Lewis, An Analysis of Several Heuristics for the Traveling Salesman Problem, SIAM J. Comput. 6(3), 1977, https://doi.org/10.1137/0206041, p. 568, property a)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting.

  • GiG_iGi​ is a specific finite list of weighted undirected edges (a,b,w)(a,b,w)(a,b,w), built recursively.
  • spGi(a,b)\mathrm{sp}_{G_i}(a,b)spGi​​(a,b) is the infimum of total weights of walks from aaa to bbb using edges of GiG_iGi​ in either direction. It is 000 if no walk exists or costs are unbounded below.

Claim. For every natural number i≥1i \ge 1i≥1 and every triple (a,b,w)(a,b,w)(a,b,w) appearing in the list GiG_iGi​,

spGi(a,b)=w.\mathrm{sp}_{G_i}(a,b) = w.spGi​​(a,b)=w.

That is, each listed edge weight equals the shortest-path distance between its endpoints.

Degenerate cases. The case i=0i = 0i=0 is excluded. The claim applies to every entry of the list, including entries that duplicate one another. For i=1i = 1i=1, for example, G1G_1G1​ contains (0,2,1)(0,2,1)(0,2,1) twice and both (0,1,1)(0,1,1)(0,1,1) and (1,0,1)(1,0,1)(1,0,1). The claim is stated for sp\mathrm{sp}sp on natural-number nodes directly, not through the restricted distance Gˉi\bar G_iGˉi​.

Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me