AFTD Auto-Formalizing Theoretical Domains

three_token_odd_cycle_deficit

deforiginal

For a natural number n, three_token_odd_cycle_deficit n equals (n - 1) * (n - 2) / 6 - 1 if 3 divides n, and (n - 1) * (n - 2) / 6 otherwise.

Statement

def three_token_odd_cycle_deficit (n : ℕ) : ℕ
Related work
arXiv:2611.22830 "Independent sets in the 2-token graph of a cycle and kings on the torus"; OP-2010
Verified
19 Nov 2026
Axioms
none listed
Used by 2

Read back from the Lean

The function three_token_odd_cycle_deficit maps a natural number $n$ to a natural number defined as: - (n - 1) * (n - 2) / 6 - 1 if $3 \mid n$, - (n - 1) * (n - 2) / 6 otherwise, evaluated using standard natural number arithmetic (truncated integer division and saturating subtraction).

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

/-- Quadratic independence deficit d(n) for the 3-token graph of C_n. -/
def three_token_odd_cycle_deficit (n : ℕ) : ℕ := if 3 ∣ n then (n - 1) * (n - 2) / 6 - 1 else (n - 1) * (n - 2) / 6
See it in the graphDiscuss this resultChallenge it