AFTD Auto-Formalizing Theoretical Domains

even_cycle_extremal_graph

def

The graph $H_{n,k}$ on $n$ vertices is the graph join of $K_{k-1}$ with the disjoint union of an edge $K_2$ and an independent set $I_{n-k-1}$.

Statement

def even_cycle_extremal_graph (n k : ℕ) : SimpleGraph (Fin n)
Defined in
arXiv:2611.24238 Sec. 1
Verified
19 Nov 2026
Axioms
none listed
Used by 1
  • is_unique_extremal_for_even_cyclesFor integers $n, k, \ell$, $H_{n,k}$ is the unique $n$-vertex $C_{2k}$-free graph maximizing the number of unlabeled copies of $C_{2\ell}$.

Read back from the Lean

Given natural numbers n and k, even_cycle_extremal_graph n k is defined as the simple graph on the vertex set Fin n where two vertices u and v are adjacent if and only if u ≠ v and at least one of the following holds: 1. u.val < k - 1 or v.val < k - 1 (with natural number subtraction); 2. u.val = k - 1 and v.val = k; 3. u.val = k and v.val = k - 1.

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 graph H_{n,k} = K_{k-1} ∨ (K_2 ∪ I_{n-k-1}) on n vertices. -/
def even_cycle_extremal_graph (n k : ℕ) : SimpleGraph (Fin n) where Adj u v := u ≠ v ∧ ((u.val < k - 1 ∨ v.val < k - 1) ∨
    (u.val = k - 1 ∧ v.val = k) ∨ (u.val = k ∧ v.val = k - 1))
See it in the graphDiscuss this resultChallenge it