quaternary_03102_misere_outcome
The misère outcome of a two-heap position (x, y) in the quaternary game 0.3102, defined as quaternary_03102_misere_outcome_comp (x + y) x y.
Statement
def quaternary_03102_misere_outcome (x y : ℕ) : MisereOutcome- Defined in
- arXiv:2611.29198 Section 3.1
- Verified
- 25 Nov 2026
- Axioms
- none listed
- Built on 2
- quaternary_03102_misere_outcome_compFor fuel, x, y : ℕ, the fuel-bounded misère outcome quaternary_03102_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 2
- quaternary_03102_two_heap_outcomeIn the quaternary game 0.3102, for all heap sizes x, y ≥ 3, the two-heap misère outcome is P if and only if the absolute difference |y -…
- quaternary_03102_misere_outcome_zero_zeroIn the quaternary game 0.3102, the empty position (0, 0) has misère outcome N.
Read back from the Lean
The definition quaternary_03102_misere_outcome is a function that takes two natural numbers x and y (representing heap sizes in a two-heap game) and returns a MisereOutcome (P or N), computed by evaluating quaternary_03102_misere_outcome_comp with initial fuel x + y on state (x, y).
Specifically:
- MisereOutcome is an inductive type with two constructors: P (previous-player win) and N (next-player win).
- The legal single-heap moves from a heap of size h : ℕ are:
- 0, if h = 1 or h = 2;
- h - 1, if h > 1;
- h - 4, if h > 4.
- The legal moves from state (x, y) are pairs (x', y) where x' is a legal move from x, or (x, y') where y' is a legal move from y.
- The computation function with fuel fuel and state (x, y) returns:
- MisereOutcome.N if fuel = 0;
- If fuel = fuel' + 1:
- MisereOutcome.N if x = 0 and y = 0;
- MisereOutcome.N if there exists an available move (x', y') from (x, y) such that the outcome with fuel' on (x', y') is MisereOutcome.P;
- MisereOutcome.P 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
/-- The two-heap misère outcome function in 0.3102. -/ def quaternary_03102_misere_outcome (x y : ℕ) : MisereOutcome := quaternary_03102_misere_outcome_comp (x + y) x y