AFTD Auto-Formalizing Theoretical Domains

is_cycle_factor

def

A simple graph is a uniform cycle factor of length ℓ (a C_ℓ-factor) if each of its connected components is isomorphic to the cycle graph of length ℓ.

Statement

def is_cycle_factor {V : Type*} (G : SimpleGraph V) (ℓ : ℕ) : Prop
Defined in
arXiv:2611.34299 Section 1
Verified
26 Nov 2026
Axioms
none listed
Used by 2

Read back from the Lean

For a type V, a simple graph G on V, and a natural number ℓ, is_cycle_factor G ℓ asserts that for every connected component c of G, there exists a graph isomorphism between the induced subgraph of G on the vertices of c (c.supp) and the cycle graph on ℓ vertices (SimpleGraph.cycleGraph ℓ).

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 is a C_ℓ-factor if each of its connected components is isomorphic to the cycle graph of length ℓ. -/
def is_cycle_factor {V : Type*} (G : SimpleGraph V) (ℓ : ℕ) : Prop := ∀ c : G.ConnectedComponent, Nonempty (G.induce c.supp ≃g SimpleGraph.cycleGraph ℓ)
See it in the graphDiscuss this resultChallenge it