quaternary_0331012_misere_outcome
The misère outcome of a two-heap position (x, y) in the quaternary game 0.331012, defined as quaternary_0331012_misere_outcome_comp (x + y) x y.
Statement
def quaternary_0331012_misere_outcome (x y : ℕ) : MisereOutcome- Defined in
- arXiv:2611.29198, Section 2.1 & Theorem 5.4
- Verified
- 28 Nov 2026
- Axioms
- none listed
- Built on 2
- quaternary_0331012_misere_outcome_compFor fuel, x, y : ℕ, the fuel-bounded misère outcome quaternary_0331012_misere_outcome_comp fuel x y of a two-heap position (x, y) in the…
- MisereOutcomeThe misère outcome of an impartial game position: P for a previous-player-winning position and N for a next-player-winning position.
- Used by 1
- quaternary_0331012_misere_outcome_zero_zeroIn the quaternary game 0.331012, the empty position (0, 0) has misère outcome N.
Read back from the Lean
The definition quaternary_0331012_misere_outcome (x y : ℕ) : MisereOutcome defines a function taking two natural numbers x and y (representing the sizes of two heaps) and returning a MisereOutcome (MisereOutcome.P for a previous-player/second-player win or MisereOutcome.N for a next-player/first-player win) by evaluating the recursive outcome computation quaternary_0331012_misere_outcome_comp with initial fuel x + y on position (x, y).
Under this game:
- A player may choose one heap and reduce it according to the rule:
- reduce it to 0 if its size is in {1, 2, 3, 5};
- reduce it by 1 if its size is > 1;
- reduce it by 2 if its size is > 2;
- reduce it by 6 if its size is > 6.
- The terminal state (0, 0) (and any state where fuel reaches 0) is evaluated as MisereOutcome.N (in misère play, the player facing a terminal state has no moves and wins, meaning the next player wins).
- At any state (x, y) with fuel fuel + 1: if x = 0 ∧ y = 0, it evaluates to N; otherwise, if there exists a valid move to a state p whose outcome with fuel is P, it evaluates to N; otherwise, it evaluates to P.
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
/-- Misère outcome of a two-heap position in 0.331012. -/ def quaternary_0331012_misere_outcome (x y : ℕ) : MisereOutcome := quaternary_0331012_misere_outcome_comp (x + y) x y