op2347_g
def
The Sprague-Grundy sequence for the normal-play subtraction game with move set {10, 12, 24, 72 * k - 1}.
Statement
noncomputable def op2347_g (k : ℕ) : ℕ → ℕ
- Defined in
- arXiv:2611.31336
- Verified
- 25 Nov 2026
- Axioms
- none listed
- Built on 1
- subtraction_grundyThe ordinary Sprague-Grundy sequence g_S : ℕ → ℕ of a subtraction game with move set S ⊆ ℕ is defined recursively by g_S(n) = mex {g_S(n -…
- Used by 1
- op2347_wThe win/loss outcome sequence (as a boolean function where true indicates a winning position and false indicates a losing position) for…
Read back from the Lean
op2347_g defines a function taking a natural number k and returning the Grundy function subtraction_grundy {10, 12, 24, 72 * k - 1} : ℕ → ℕ for the subtraction game with move set {10, 12, 24, 72 * k - 1}.
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 Sprague-Grundy sequence for subtraction game with moves {10, 12, 24, 72k - 1}. -/ noncomputable def op2347_g (k : ℕ) : ℕ → ℕ := subtraction_grundy {10, 12, 24, 72 * k - 1}