AFTD Auto-Formalizing Theoretical Domains

simple_graph_resistance

def

The resistance of a finite graph G is the minimum cardinality of an edge set whose removal leaves a 3-edge-colourable graph.

Statement

noncomputable def simple_graph_resistance {V : Type*} [Fintype V] (G : SimpleGraph V) : ℕ
Defined in
arXiv:2611.32276, Section 1
Verified
25 Nov 2026
Axioms
none listed
Used by 2

Read back from the Lean

For a finite type V and a simple graph G on V, simple_graph_resistance G is defined as the infimum (in ℕ, i.e., the minimum) of the set of natural numbers n such that there exists a finite set s of unordered pairs of vertices (Sym2 V) satisfying: 1. Every pair in s is an edge of G ((↑s : Set (Sym2 V)) ⊆ G.edgeSet), 2. The line graph of G.deleteEdges s is 3-colorable (meaning the graph obtained by deleting the edges s from G is 3-edge-colorable), and 3. The cardinality of s is n. (Since V is finite, taking s to be the full edge set of G leaves an edgeless graph whose line graph is vacuously 3-colorable, so the set is always non-empty and the infimum is an attained minimum.)

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 resistance of a graph is the minimum number of edges to delete to obtain a 3-edge-colourable graph. -/
noncomputable def simple_graph_resistance {V : Type*} [Fintype V] (G : SimpleGraph V) : ℕ := sInf {n : ℕ | ∃ s : Finset (Sym2 V), (↑s : Set (Sym2 V)) ⊆ G.edgeSet ∧
    (G.deleteEdges (↑s)).lineGraph.Colorable 3 ∧ s.card = n}
See it in the graphDiscuss this resultChallenge it