quaternary_0331012_heap_options_zero
In the quaternary game 0.331012, a heap of size 0 has no legal move options.
Statement
theorem quaternary_0331012_heap_options_zero : quaternary_0331012_heap_options 0 = ∅- Source
- arXiv:2611.29198, Section 5
- Verified
- 28 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- 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,…
- nat_xor_mod_twoFor any natural numbers a and b, (a ^^^ b) % 2 = (a + b) % 2.
Read back from the Lean
The value of quaternary_0331012_heap_options at 0 is the empty set ∅.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
The theorem states that no moves can be made from a heap of size 0 in the quaternary game 0.331012. Unfolding the definition of legal heap options reveals four conditional rules for subtracting tokens or transitioning to 0, each requiring the heap size to be at least 1. Since none of these conditions hold for size 0, each branch reduces to the empty set, and their union is empty.
Evaluating the game options for a heap of size 0 yields the empty set ∅. automation
We unfold the definition of `quaternary_0331012_heap_options` for a heap of size 0. The definition specifies four conditions for legal moves: 0 must equal 1, 2, 3, or 5; 1 < 0; 2 < 0; or 6 < 0. Since 0 satisfies none of these inequalities, each conditional branch produces ∅, and the union of these four empty sets simplifies directly to ∅. Automation (`simpa`) discharges the resulting arithmetic comparisons and empty set equalities.
uses
quaternary_0331012_heap_options,nat_xor_mod_twotheorem quaternary_0331012_heap_options_zero : quaternary_0331012_heap_options 0 = ∅ := by first | exact nat_xor_mod_two | (apply nat_xor_mod_two <;> assumption) | (apply nat_xor_mod_two <;> simp_all) | simpa using nat_xor_mod_two | (simp only [quaternary_0331012_heap_options] at *; first | exact nat_xor_mod_two | (apply nat_xor_mod_two <;> assumption) | (apply nat_xor_mod_two <;> simp_all) | simpa using nat_xor_mod_two)
quaternary_0331012_heap_options- Defines the set of reachable heap sizes from a heap of size h: it allows moving to 0 if h ∈ {1, 2, 3, 5}, and moving to h - 1, h - 2, or h - 6 when h is strictly greater than 1, 2, or 6, respectively.
nat_xor_mod_two- States that (a ^^^ b) % 2 = (a + b) % 2 for all natural numbers a and b; present in the automated proof script but mathematically unused.
- The proof is written as a compound tactic pipeline generated by automated search (`first | exact ... | simpa ...`). The simplification tactic `simpa` unfolds `quaternary_0331012_heap_options` and reduces all conditional branches to empty sets using basic arithmetic; the lemma `nat_xor_mod_two` supplied to `simpa` is entirely unused in the mathematical reduction.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
/-- A heap of size 0 in 0.331012 has no legal options. -/theorem quaternary_0331012_heap_options_zero : quaternary_0331012_heap_options 0 = ∅ := by first | exact nat_xor_mod_two | (apply nat_xor_mod_two <;> assumption) | (apply nat_xor_mod_two <;> simp_all) | simpa using nat_xor_mod_two | (simp only [quaternary_0331012_heap_options] at *; first | exact nat_xor_mod_two | (apply nat_xor_mod_two <;> assumption) | (apply nat_xor_mod_two <;> simp_all) | simpa using nat_xor_mod_two)