AFTD Auto-Formalizing Theoretical Domains

token_king_sharp_family

def

For n : ℕ, token_king_sharp_family n is the finset of elements e in { s : Finset (Fin n) // s.card = 2 } for which there exist u, v : Fin n such that e.val = {u, v} and either cyclic_dist n u v = n / 2 or (cyclic_dist n u v ≤ n / 2 - 3 ∧ cyclic_dist n u v % 2 = 1).

Statement

open Classical in
noncomputable def token_king_sharp_family (n : ℕ) : Finset { s : Finset (Fin n) // s.card = 2 }
Defined in
arXiv:2611.22830
Verified
20 Nov 2026
Axioms
none listed
Built on 1
  • cyclic_distThe cyclic distance between two vertices u and v of the n-cycle is the minimum of (u - v) mod n and (v - u) mod n.
Used by 2

Read back from the Lean

For a natural number n, token_king_sharp_family n is the Finset of 2-element subsets of Fin n (represented as the subtype { s : Finset (Fin n) // s.card = 2 }) consisting of all pairs e = {u, v} such that either: 1. cyclic_dist n u v = n / 2 (the cyclic distance equals ⌊n / 2⌋), or 2. cyclic_dist n u v ≤ n / 2 - 3 and cyclic_dist n u v % 2 = 1 (the cyclic distance is at most ⌊n / 2⌋ - 3, using truncated subtraction, and is odd).

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

open Classical in
/-- The candidate sharp deficit family of two tokens: all antipodal pairs and all pairs at odd cycle distance at most n/2 - 3. -/
noncomputable def token_king_sharp_family (n : ℕ) : Finset { s : Finset (Fin n) // s.card = 2 } := Finset.univ.filter fun e =>
    ∃ u v : Fin n, e.val = {u, v} ∧
      (cyclic_dist n u v = n / 2 ∨ (cyclic_dist n u v ≤ n / 2 - 3 ∧ cyclic_dist n u v % 2 = 1))
See it in the graphDiscuss this resultChallenge it