AFTD Auto-Formalizing Theoretical Domains

quaternary_0331012_options

def

In the quaternary game 0.331012, the set of follower positions reachable by a legal move on either heap from a two-heap position (x, y).

Statement

def quaternary_0331012_options (x y : ℕ) : Finset (ℕ × ℕ)
Defined in
arXiv:2611.29198, Section 2.1 & Theorem 5.4
Verified
27 Nov 2026
Axioms
none listed
Built on 1
  • quaternary_0331012_heap_optionsIn the quaternary game 0.331012, the set of heap sizes reachable by a legal move on a single heap of size h (removal to size 0 if h ∈ {1,…
Used by 1

Read back from the Lean

The definition quaternary_0331012_options, which assigns to any two natural numbers $x$ and $y$ the finite set of pairs of natural numbers $(x', y')$ obtained by either: 1. replacing $x$ with an element $x' \in \text{quaternary\_0331012\_heap\_options}(x)$ while keeping $y$ unchanged (i.e., $(x', y)$), or 2. replacing $y$ with an element $y' \in \text{quaternary\_0331012\_heap\_options}(y)$ while keeping $x$ unchanged (i.e., $(x, y')$).

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

/-- Follower positions for a two-heap position in 0.331012. -/
def quaternary_0331012_options (x y : ℕ) : Finset (ℕ × ℕ) :=
  ((quaternary_0331012_heap_options x).image (fun x' => (x', y))) ∪
  ((quaternary_0331012_heap_options y).image (fun y' => (x, y')))
See it in the graphDiscuss this resultChallenge it