graph_metric_dimension
def
The metric dimension of a simple graph G is the minimum cardinality of a finite resolving set of vertices in G.
Statement
noncomputable def graph_metric_dimension {V : Type*} (G : SimpleGraph V) : ℕ
- Defined in
- arXiv:2611.29819 Definition 1.1
- Verified
- 24 Nov 2026
- Axioms
- none listed
- Built on 1
- is_resolving_setA 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…
Read back from the Lean
For a type V and a simple graph G on V, graph_metric_dimension G is defined as the infimum (in ℕ) of the set of all natural numbers n such that there exists a finite subset S of V with cardinality n that is a resolving set for G—meaning that for every pair of distinct vertices u, v : V, there exists some vertex s ∈ S whose graph distance to u differs from its graph distance to v.
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 metric dimension of a simple graph G is the minimum cardinality of a finite resolving set of G. -/ noncomputable def graph_metric_dimension {V : Type*} (G : SimpleGraph V) : ℕ := sInf { n : ℕ | ∃ S : Finset V, is_resolving_set G (S : Set V) ∧ S.card = n }