AFTD Auto-Formalizing Theoretical Domains

simple_graph_is_um_selector

def

A UM-selector of width p in a graph G is a pair (S, φ) where S is an independent set in G and φ : S → {1, ..., p} such that for every vertex x in G, N[x] ∩ S is nonempty and the maximum of φ on N[x] ∩ S is attained by exactly one vertex.

Statement

def simple_graph_is_um_selector {V : Type*} (G : SimpleGraph V) {p : ℕ}
    (S : Set V) (φ : ↥S → Fin p) : Prop
Defined in
arXiv:2611.23478, Definition 2
Verified
19 Nov 2026
Axioms
none listed
Used by 1

Read back from the Lean

For a simple graph $G$ on vertex type $V$, a natural number $p$, a subset $S \subseteq V$, and a coloring/labeling function $\varphi : S \to \mathrm{Fin}\ p$, the proposition simple_graph_is_um_selector G S φ asserts that: 1. $S$ is an independent set in $G$ (no two distinct vertices in $S$ are adjacent). 2. For every vertex $x \in V$, there exists an element $u \in S$ such that: - $u$ belongs to the closed neighborhood of $x$ in $G$ (that is, $u = x$ or $u$ is adjacent to $x$), and - for every $w \in S$, if $w$ also belongs to the closed neighborhood of $x$ and $w \neq u$, then $\varphi(w) < \varphi(u)$ (i.e., $u$ is the unique maximum of $\varphi$ on the closed neighborhood of $x$ intersected with $S$).

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 UM-selector of width p in G is an independent set S and a colouring φ : S → Fin p such that in every closed neighbourhood N[x] the maximum of φ on N[x] ∩ S is attained by exactly one vertex. -/
def simple_graph_is_um_selector {V : Type*} (G : SimpleGraph V) {p : ℕ}
    (S : Set V) (φ : ↥S → Fin p) : Prop := G.IsIndepSet S ∧
  ∀ x : V, ∃ u : ↥S, u.1 ∈ insert x (G.neighborSet x) ∧
    ∀ w : ↥S, w.1 ∈ insert x (G.neighborSet x) → w ≠ u → φ w < φ u
See it in the graphDiscuss this resultChallenge it