AFTD Auto-Formalizing Theoretical Domains

is_even_factor

def

An even factor of a finite simple graph $G$ is a spanning subgraph $H$ of $G$ such that every vertex has even degree in $H$.

Statement

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

Read back from the Lean

For a finite type V and simple graphs G and H on V, is_even_factor G H asserts that H is a subgraph of G (H ≤ G) and, for every vertex v : V, the degree of v in H (the cardinality of H.neighborSet v) is even.

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 even factor of a simple graph is a spanning subgraph in which every vertex degree is even. -/
def is_even_factor {V : Type*} [Fintype V] (G : SimpleGraph V) (H : SimpleGraph V) : Prop := H ≤ G ∧ ∀ v : V, Even (Nat.card (H.neighborSet v))
See it in the graphDiscuss this resultChallenge it