AFTD Auto-Formalizing Theoretical Domains

is_snark

def

Given a finite type V and a simple graph G on V, is_snark G asserts that every vertex of G has degree 3, G is bridgeless, and the line graph of G is not 3-colorable.

Statement

def is_snark {V : Type*} [Fintype V] (G : SimpleGraph V) : Prop
Defined in
arXiv:2611.32276, Section 1
Verified
25 Nov 2026
Axioms
none listed
Built on 1
Used by 3

Read back from the Lean

Given a finite type $V$ and a simple graph $G$ on $V$, is_snark G asserts that: 1. For every vertex $v : V$, the cardinality of the neighbor set of $v$ is 3 (i.e., $G$ is 3-regular / cubic); 2. $G$ is bridgeless (for every edge $e$ in $G$, $e$ is not a bridge in $G$); and 3. The line graph of $G$ is not 3-colorable (i.e., $G$ does not admit a proper 3-edge-coloring).

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 simple graph on a finite vertex type is a snark if it is cubic, bridgeless, and not 3-edge-colorable. -/
def is_snark {V : Type*} [Fintype V] (G : SimpleGraph V) : Prop := (∀ v : V, Nat.card (G.neighborSet v) = 3) ∧ is_bridgeless_graph G ∧ ¬ G.lineGraph.Colorable 3
See it in the graphDiscuss this resultChallenge it