AFTD Auto-Formalizing Theoretical Domains

ccz_star_graph

deforiginal

For any natural number n, ccz_star_graph n is the star graph on Fin n with center at 0 (or the empty graph if n = 0).

Statement

def ccz_star_graph (n : ℕ) : SimpleGraph (Fin n)
Related work
Mathlib/Combinatorics/SimpleGraph/Star.lean
Verified
09 Nov 2026
Axioms
none listed

Read back from the Lean

For any natural number n, ccz_star_graph n is the simple graph on the vertex set Fin n defined by: - if 0 < n, the star graph centered at vertex 0 (i.e., ⟨0, h⟩ : Fin n); - if n = 0, the empty simple graph ⊥ on Fin 0.

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 star graph on Fin n with center at 0. -/
def ccz_star_graph (n : ℕ) : SimpleGraph (Fin n) := if h : 0 < n then SimpleGraph.starGraph ⟨0, h⟩ else ⊥
See it in the graphDiscuss this resultChallenge it