AFTD Auto-Formalizing Theoretical Domains

has_nonattacking_king_lift

def

Given a natural number n with [NeZero n] and a family I : Finset { s : Finset (Fin n) // s.card = 2 }, has_nonattacking_king_lift n I asserts that there exists a choice function r : { s : Finset (Fin n) // s.card = 2 } → Fin n such that r e ∈ e.val for all e ∈ I, and for all distinct e₁, e₂ ∈ I the vertices (r e₁, e₁.val.sum id) and (r e₂, e₂.val.sum id) are not adjacent in toroidal_king_graph n.

Statement

def has_nonattacking_king_lift (n : ℕ) [NeZero n] (I : Finset { s : Finset (Fin n) // s.card = 2 }) : Prop
Defined in
scout/2611-22830-independent-sets-in-the-2-token-graph-of-a-cycle-and-kings.md:132
Verified
20 Nov 2026
Axioms
none listed
Built on 1
  • toroidal_king_graphThe king graph toroidal_king_graph n on the vertex type Fin n × Fin n, where two distinct vertices p and q are adjacent if and only if in…
Used by 1

Read back from the Lean

Given a positive natural number n ([NeZero n]) and a finite set I of 2-element subsets of Fin n (edges of the complete graph on Fin n), has_nonattacking_king_lift n I asserts that there exists a choice function r mapping every 2-element subset of Fin n to an element of Fin n such that: 1. For every edge e ∈ I, r e is an element of e (viewed as a set); and 2. For all distinct edges e₁, e₂ ∈ I (e₁ ≠ e₂), the vertices (r e₁, ∑_{x ∈ e₁} x) and (r e₂, ∑_{x ∈ e₂} x) in Fin n × Fin n (where the sum is taken in Fin n, i.e., modulo n) are not adjacent in toroidal_king_graph n.

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

/-- An independent set of two tokens admits a choice of endpoints producing pairwise nonattacking kings under the sum map. -/
def has_nonattacking_king_lift (n : ℕ) [NeZero n] (I : Finset { s : Finset (Fin n) // s.card = 2 }) : Prop := ∃ r : { s : Finset (Fin n) // s.card = 2 } → Fin n,
    (∀ e ∈ I, r e ∈ e.val) ∧
    ∀ e₁ ∈ I, ∀ e₂ ∈ I, e₁ ≠ e₂ →
      ¬ (toroidal_king_graph n).Adj (r e₁, e₁.val.sum id) (r e₂, e₂.val.sum id)
See it in the graphDiscuss this resultChallenge it