AFTD Auto-Formalizing Theoretical Domains

multigraph_max_degree

def

The maximum degree Delta(G) of a multigraph G on a finite vertex type V is the maximum over all vertices u of the degree of u.

Statement

def multigraph_max_degree {V : Type*} [Fintype V] (G : Multigraph V) : ℕ
Defined in
scout/2611-29111-when-do-local-bounds-permit-optimal-edge-colorings.md:87
Verified
24 Nov 2026
Axioms
none listed
Built on 2
  • MultigraphA loopless multigraph on a vertex type V, represented by a symmetric edge-multiplicity function mult with mult v v = 0.
  • multigraph_degreeThe degree of a vertex u in a multigraph G on a finite vertex type V is the sum of edge multiplicities of edges incident to u.

Read back from the Lean

For a finite type V and a loopless undirected multigraph G on V (given by a symmetric edge multiplicity function mult : V → V → ℕ with mult v v = 0 for all v), multigraph_max_degree G is defined as the maximum (supremum in ℕ, evaluating to 0 if V is empty) over all vertices u : V of the degree of u 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

/-- The maximum degree Delta(G) of a multigraph G. -/
def multigraph_max_degree {V : Type*} [Fintype V] (G : Multigraph V) : ℕ := Finset.univ.sup (fun u => multigraph_degree G u)
See it in the graphDiscuss this resultChallenge it