Nim-values of two-move and symmetric three-move vector subtraction games, with machine-checked proofs
Version 1 / Nov 27, 2026 / CC BY 4.0
Abstract
In a vector subtraction game a token sits at a point of ℕⁿ, a move subtracts one of finitely many fixed vectors, and the player who cannot move loses. For the symmetric three-move game T(a,b) with moves (a,b), (b,a), (a+b,a+b), Larsson, Saha and Yokoo determined the winner when b ≤ 2a; for b > 2a they show pictures of two games and leave the analysis open, and we know of no solution of any such game in the literature. We show that these games are governed by a translation: for an explicit vector w depending on a and b, the Sprague-Grundy value is unchanged under translation by w above the diagonal, and is periodic along the diagonal in a band next to it. A reduction theorem, proved for all a ≤ b, says that both statements hold everywhere once they hold on an explicit finite window, so that they determine the game from a finite table. We prove the two statements (i) for every m ≥ 2 when a ≤ 3 and (2m−1)a ≤ b ≤ 2ma; (ii) for every a when 2 ≤ m ≤ 14 and (2m−1)a ≤ b ≤ 2ma; (iii) for 1792 individual games, of which 862 lie in the complementary ranges 2ma < b < (2m+1)a, where a single formula for w fits every game tested and the general statement remains a conjecture. We also complete the known cases: the full Sprague-Grundy values of every two-move game in every dimension, by a three-case parity rule, and of T(a,b) for a ≤ b ≤ 2a. The reduction theorem, the two complete cases and 72 of the individual games are formally verified in Lean 4 with Mathlib. Results (i) and (ii) rest on an SMT solver and the other individual games on a short program; for each claim the paper states which check stands behind it.
Provenance statement
Tools used
- Anthropic
- Claude Fable
- Lean
- Lean
- Z3
- Z3
- Python
- NumPy
References
- E. R. Berlekamp, J. H. Conway and R. K. Guy, Winning Ways for Your Mathematical Plays , 2nd ed., A K Peters, 2001--2004 (1st ed.\ Academic Press, 1982).
- A. Danai, P. Ellis and T. A. Thanatipanonda, Two dimensional subtraction--transfer games, preprint, arXiv:2602.14325v2, 2026.arXiv
- E. Gottlieb, M. Krnc and P. Muršič, Impartial chess on integer partitions, preprint, arXiv:2501.14640, 2025.arXiv
- S. W. Golomb, A mathematical investigation of games of ``take-away'', J. Combinatorial Theory 1 (1966), 443--458.
- P. M. Grundy, Mathematics and games, Eureka 2 (1939), 6--8.
- U. Larsson and H. Manabe, Additive subtraction games, preprint, arXiv:2603.10414v2, 2026.arXiv
- U. Larsson, I. Saha and M. Yokoo, Subtraction games in more than one dimension, Theoret.\ Comput.\ Sci. \ 1016 (2024), 114775; arXiv:2307.12458.arXiv
- The mathlib Community, The Lean mathematical library, in Proc.\ 9th ACM SIGPLAN Int.\ Conf.\ on Certified Programs and Proofs (CPP 2020) , ACM, 2020, 367--381.
- L. de Moura and S. Ullrich, The Lean 4 theorem prover and programming language, in Automated Deduction -- CADE 28 , Lecture Notes in Comput.\ Sci.\ 12699, Springer, 2021, 625--635.
- A. N. Siegel, Combinatorial Game Theory , Graduate Studies in Mathematics 146, Amer.\ Math.\ Soc., 2013.
Show all 11 referencesShow fewer references
- R. P. Sprague, Über mathematische Kampfspiele, Tôhoku Math. J. \ 41 (1935--36), 438--444.
Version history
- v1 · 19 pagesSubmitted by Shubham Hemant ChakrawarRevised after moderator-requested changesCurrentNov 26, 2026