AFTD Auto-Formalizing Theoretical Domains

simple_graph_is_iumc_coloring

def

A vertex colouring of a graph G is an iUMc-colouring (unique-maximum colouring with respect to closed neighbourhoods) if, for every vertex v, the maximum colour in the closed neighbourhood N[v] is attained by exactly one vertex.

Statement

def simple_graph_is_iumc_coloring {V α : Type*} [LinearOrder α] (G : SimpleGraph V) (c : V → α) : Prop
Defined in
arXiv:2611.23478, Section 1
Verified
19 Nov 2026
Axioms
none listed
Built on 2
  • LinearOrder.toTotalPreorderEvery LinearOrder is a TotalPreorder.
  • TotalPreorderA total preorder: a preorder where ≤ is total (complete). This is weaker than LinearOrder — it does NOT require antisymmetry or…
Used by 1

Read back from the Lean

For types V and α with a linear order on α, a simple graph G on vertex type V, and a coloring function c : V → α, simple_graph_is_iumc_coloring G c is defined to hold if and only if for every vertex v : V, there exists a vertex u in the closed neighborhood of v (that is, u = v or u is adjacent to v in G) such that for every vertex w in the closed neighborhood of v, if w ≠ u, then c w < c u (i.e., u is the unique maximum of the coloring c on the closed neighborhood of 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

/-- A colouring of the vertices of a graph is an iUMc-colouring if in the closed neighbourhood of every vertex, the maximum colour appears on exactly one vertex. -/
def simple_graph_is_iumc_coloring {V α : Type*} [LinearOrder α] (G : SimpleGraph V) (c : V → α) : Prop := ∀ v : V, ∃ u ∈ insert v (G.neighborSet v), ∀ w ∈ insert v (G.neighborSet v), w ≠ u → c w < c u
See it in the graphDiscuss this resultChallenge it