AFTD Auto-Formalizing Theoretical Domains

op2347_w

def

The win/loss outcome sequence (as a boolean function where true indicates a winning position and false indicates a losing position) for the subtraction game with move set {10, 12, 24, 72 * k - 1}.

Statement

noncomputable def op2347_w (k : ℕ) : ℕ → Bool
Defined in
arXiv:2611.31336
Verified
25 Nov 2026
Axioms
none listed
Built on 1
  • op2347_gThe Sprague-Grundy sequence for the normal-play subtraction game with move set {10, 12, 24, 72 * k - 1}.

Read back from the Lean

op2347_w defines a function taking a parameter k : ℕ and returning a function from ℕ to Bool. For each position n : ℕ, op2347_w k n evaluates to true if the Grundy value (nim-value) op2347_g k n is non-zero (i.e., n is a winning/N-position), and false if op2347_g k n = 0 (i.e., n is a losing/P-position), where op2347_g k is the Grundy function for the subtraction game with subtraction 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 win/loss outcome sequence for subtraction game with moves {10, 12, 24, 72k - 1}. -/
noncomputable def op2347_w (k : ℕ) : ℕ → Bool := fun n => decide (op2347_g k n ≠ 0)
See it in the graphDiscuss this resultChallenge it