AFTD Auto-Formalizing Theoretical Domains

quaternary_03102_heap_options

def

In the quaternary game 0.3102, the set of heap sizes reachable by a legal move on a single heap of size h (removal of sizes 1 and 2, subtraction of 1 when h > 1 and 4 when h > 4).

Statement

def quaternary_03102_heap_options (h : ℕ) : Finset ℕ
Defined in
arXiv:2611.29198 Section 2.4
Verified
25 Nov 2026
Axioms
none listed
Used by 3

Read back from the Lean

Definition of a function quaternary_03102_heap_options mapping a natural number $h$ to a finite set of natural numbers (Finset ℕ), given by the union of: - $\{0\}$ if $h = 1$ or $h = 2$, and $\emptyset$ otherwise; - $\{h - 1\}$ if $1 < h$, and $\emptyset$ otherwise; - $\{h - 4\}$ if $4 < h$, and $\emptyset$ otherwise.

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

/-- Options for a single heap of size h in the quaternary game 0.3102. -/
def quaternary_03102_heap_options (h : ℕ) : Finset ℕ :=
  (if h = 1 ∨ h = 2 then {0} else ∅) ∪
  (if 1 < h then {h - 1} else ∅) ∪
  (if 4 < h then {h - 4} else ∅)
See it in the graphDiscuss this resultChallenge it