AFTD Auto-Formalizing Theoretical Domains

is_resolving_set

def

A set S of vertices in a simple graph G is a resolving set if for every pair of distinct vertices u and v in G, there exists a vertex s in S such that the distance from u to s is not equal to the distance from v to s.

Statement

def is_resolving_set {V : Type*} (G : SimpleGraph V) (S : Set V) : Prop
Defined in
arXiv:2611.29819 Definition 1.1
Verified
24 Nov 2026
Axioms
none listed
Used by 1
  • graph_metric_dimensionThe metric dimension of a simple graph G is the minimum cardinality of a finite resolving set of vertices in G.

Read back from the Lean

Given a type V, a simple graph G on V, and a subset S of V, is_resolving_set G S asserts that for every pair of distinct vertices u, v : V (with u ≠ v), there exists some vertex s ∈ S such that the graph distance from u to s in G is not equal to the graph distance from v to s in G.

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

/-- A subset S of vertices of a simple graph G is a resolving set if distinct vertices have different distances to some vertex in S. -/
def is_resolving_set {V : Type*} (G : SimpleGraph V) (S : Set V) : Prop := ∀ u v : V, u ≠ v → ∃ s ∈ S, G.dist u s ≠ G.dist v s
See it in the graphDiscuss this resultChallenge it