AFTD Auto-Formalizing Theoretical Domains

dfjOneTwoTspCost

def

Given a finite type V and a simple graph H on V, the optimal 1,2-TSP tour cost dfjOneTwoTspCost H is the infimum in ℕ of Fintype.card V plus the number of edges of C not in H, taken over all connected 2-regular simple graphs C on V.

Statement

noncomputable def dfjOneTwoTspCost {V : Type*} [Fintype V] (H : SimpleGraph V) : ℕ
Defined in
arXiv:2611.17386 Section 1
Verified
22 Nov 2026
Axioms
none listed
Used by 1
  • dfjIsSufficientSecFamilyGiven a finite type V, a simple graph H on V, and a finite family 𝒱 of finite subsets of V, 𝒱 is a sufficient subtour elimination family…

Read back from the Lean

Given a finite type V and a simple graph H on V, dfjOneTwoTspCost H is defined as the infimum (sInf in ℕ) of the set of natural numbers c for which there exists a simple graph C on V such that: 1. C is 2-regular (C.IsRegularOfDegree 2), 2. C is connected (C.Connected), and 3. c = Fintype.card V + (C.edgeFinset \ H.edgeFinset).card.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- The optimal TSP tour cost in ℕ under the 1,2-metric derived from a base graph H. -/
noncomputable def dfjOneTwoTspCost {V : Type*} [Fintype V] (H : SimpleGraph V) : ℕ := open Classical in
  sInf {c | ∃ (C : SimpleGraph V), C.IsRegularOfDegree 2 ∧ C.Connected ∧ Fintype.card V + (C.edgeFinset \ H.edgeFinset).card = c}
See it in the graphDiscuss this resultChallenge it