AFTD Auto-Formalizing Theoretical Domains

simple_graph_weak_oddness

def

The weak oddness of a finite simple graph G is the infimum of the number of odd components over all even factors of G.

Statement

noncomputable def simple_graph_weak_oddness {V : Type*} [Fintype V] (G : SimpleGraph V) : ℕ
Defined in
arXiv:2611.32276, Section 1
Verified
25 Nov 2026
Axioms
none listed
Built on 1
  • is_even_factorAn even factor of a finite simple graph $G$ is a spanning subgraph $H$ of $G$ such that every vertex has even degree in $H$.
Used by 4

Read back from the Lean

Given a finite type V and a simple graph G on V, simple_graph_weak_oddness G is the infimum in ℕ of the set of all k : ℕ such that there exists a simple graph H on V which is an even factor of G (is_even_factor G H) and whose number of odd connected components (H.oddComponents.ncard) equals k.

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 weak oddness of a graph is the minimum number of odd components in any even factor. -/
noncomputable def simple_graph_weak_oddness {V : Type*} [Fintype V] (G : SimpleGraph V) : ℕ := sInf {k : ℕ | ∃ (H : SimpleGraph V), is_even_factor G H ∧ H.oddComponents.ncard = k}
See it in the graphDiscuss this resultChallenge it