AFTD Auto-Formalizing Theoretical Domains

simple_graph_is_locally_bounded

def

Given a finite vertex type V with decidable equality and a simple graph G on V with decidable adjacency, an edge-coloring c : G.edgeSet → ℕ is locally bounded if for all adjacent vertices u and v, the edge uv is assigned a color at most max(d_G(u), d_G(v)) + 1.

Statement

def simple_graph_is_locally_bounded {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) [DecidableRel G.Adj] (c : G.edgeSet → ℕ) : Prop
Defined in
arXiv:2611.29111, Section 1
Verified
28 Nov 2026
Axioms
none listed
Used by 1

Read back from the Lean

Given a finite type V with decidable equality, a simple graph G on V with decidable adjacency relation, and a function c : G.edgeSet → ℕ assigning a natural number to each edge of G: The definition simple_graph_is_locally_bounded asserts that for all vertices u, v : V and every hypothesis h : G.Adj u v (asserting that u and v are adjacent in G), the value of c on the edge ⟨s(u, v), h⟩ is at most max (G.degree u) (G.degree v) + 1 (the maximum of the degrees of u and v plus 1).

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

/-- An edge-coloring is locally bounded if each edge uv has color at most max(deg(u), deg(v)) + 1. -/
def simple_graph_is_locally_bounded {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) [DecidableRel G.Adj] (c : G.edgeSet → ℕ) : Prop := ∀ (u v : V) (h : G.Adj u v), c ⟨s(u, v), h⟩ ≤ max (G.degree u) (G.degree v) + 1
See it in the graphDiscuss this resultChallenge it