\documentclass[11pt]{amsart} \usepackage[utf8]{inputenc} \usepackage{amsmath,amssymb,amsthm} \usepackage{graphicx} \usepackage{booktabs} \usepackage{float} \usepackage{alltt} \usepackage[margin=1.1in]{geometry} \usepackage[colorlinks=true,linkcolor=blue,citecolor=blue,urlcolor=blue]{hyperref} \newtheorem{theorem}{Theorem} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{conjecture}{Conjecture} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} \newcommand{\N}{\mathbb{N}} \newcommand{\G}{\mathcal{G}} \newcommand{\mex}{\operatorname{mex}} \newcommand{\lean}[1]{\texttt{#1}} \newcommand{\fl}[1]{\left\lfloor #1 \right\rfloor} \newcommand{\cl}[1]{\left\lceil #1 \right\rceil} \title[Nim-values of two-move and symmetric three-move vector subtraction games]{Nim-values of two-move and symmetric\\ three-move vector subtraction games,\\ with machine-checked proofs} \author{Shubham Hemant Chakrawar} \date{November 2026} \raggedbottom \emergencystretch=1.5em \begin{document} \begin{abstract} In a vector subtraction game a token sits at a point of $\N^n$, 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\le 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\le 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\ge 2$ when $a\le 3$ and $(2m-1)a\le b\le 2ma$; (ii) for every $a$ when $2\le m\le 14$ and $(2m-1)a\le b\le 2ma$; (iii) for $1792$ individual games, of which $862$ lie in the complementary ranges $2ma2a$ they print the computed boards of $T(1,5)$ and $T(2,5)$ and remark that these games ``have more complexity''; no rule is given, and we have found no solution of any game $T(a,b)$ with $b>2a$ in the literature. Figure~\ref{f:intro} shows one of those two boards, now with all Sprague--Grundy values. The picture looks irregular, but the two framed windows are identical. This is the phenomenon the paper is about: \emph{above the diagonal the board repeats under one translation vector $w$, and next to the diagonal it repeats along the diagonal with period the sum of the two coordinates of $w$.} Together with the symmetry $x\leftrightarrow y$ these two statements, called (A) and (B) below, reduce the whole infinite board to a finite table. \begin{figure}[!htb] \centering \includegraphics[width=0.50\textwidth]{figs/intro.pdf} \caption{Sprague--Grundy values of $T(2,5)$, one of the two games shown without analysis in~\cite{LSY}. The two framed $22\times22$ windows differ by the translation $w=(22,34)$ and carry the same values; by Theorem~\ref{t:quad} this holds for every position with $y\ge x+2$. The dotted line is the diagonal.}\label{f:intro} \end{figure} \smallskip\noindent\textbf{Main results.} The vector $w$ is explicit. Write $u=(a,b)$ and $v=(b,a)$. Every $b\ge a$ satisfies exactly one of $(2m-1)a\le b\le 2ma$ (the \emph{linear ranges}) and $2ma2a$, $862$ of them in quadratic ranges. One formula for $w$ fits all of them; that it does so for every $b>2a$ is Conjecture~\ref{cj:quad} and Conjecture~\ref{cj:AB}. \end{itemize} We also complete the cases that were known at the level of winning and losing: every two-move game in every dimension (Theorem~\ref{t:two}) and $T(a,b)$ for $a\le b\le 2a$ (Theorem~\ref{t:three}), both with full Sprague--Grundy values and both in Lean. The reduction theorem, the two completed cases and $72$ of the individual games are checked by the Lean kernel. The results for small $a$ and for bounded ratio rest on an SMT solver, and the remaining individual games on a short program. Sections~\ref{ss:status}, \ref{s:lean} and~\ref{s:limits} say precisely what has to be trusted for each claim, and Section~\ref{ss:novelty} what we do and do not know about novelty. \subsection{The games} Let $S\subset\N^n\setminus\{0\}$ be finite. In the \emph{vector subtraction game} with move set $S$, a position is a point $x\in\N^n$, a move replaces $x$ by $x-s$ for some $s\in S$ with $s\le x$ coordinatewise, and a player with no move loses. These games go back to Golomb~\cite{Golomb}; in dimension one they are the classical subtraction games~\cite{WW}. The \emph{Sprague--Grundy value} (or \emph{nim-value}) $\G(x)$ is defined by \[ \G(x)=\mex\{\G(x-s) : s\in S,\ s\le x\}, \] where $\mex$ of a finite set of non-negative integers is the least non-negative integer not in it \cite{Sprague,Grundy}. The player to move loses exactly when $\G(x)=0$ (a \emph{$P$-position}), and the values, not only the $P$-positions, are what is needed to play sums of games~\cite{WW,Siegel}. We study two families: \begin{itemize} \item \emph{two-move games} $S=\{u,v\}$ in any dimension, with the \emph{leaper} $u=(a,b)$, $v=(b,a)$ in $\N^2$ as the guiding example; \item the \emph{symmetric additive three-move game} $T(a,b)$ on $\N^2$, with $S=\{u,v,u+v\}$, $u=(a,b)$, $v=(b,a)$, $1\le a\le b$. \end{itemize} \subsection{What was known}\label{ss:known} Larsson, Saha and Yokoo~\cite{LSY} study the \emph{outcomes} ($P$-positions) of vector subtraction games. For two-move games they give a complete outcome solution, based on the principle that $x$ is a $P$-position if and only if $x+u+v$ is (their Lemma~2 and Theorem~31). For $T(a,b)$ with $b\le 2a$ they describe the $P$-positions by update rules along the vectors $(2a+b,2b+a)$ and $(2b+a,2a+b)$ (their Proposition~47); the proof is written for $(a,b)=(1,2)$ and the general case is left to the reader. For $b>2a$ they show pictures of $T(1,5)$ and $T(2,5)$ (their Figures~16 and~18), remark that these ``have more complexity'' but appear to ``settle in periodic patterns'', and conjecture that every three-move game has an outcome segmentation (their Conjecture~49). They do not consider nim-values. Danai, Ellis and Thanatipanonda~\cite{DET} prove, as their Lemma~3.2, that the nim-values of a two-move vector subtraction game satisfy $\G(x+u+v)=\G(x)$. The rest of their paper concerns subtraction--transfer games, which do not include $T(a,b)$. In dimension one, the game with moves $\{a,b,a+b\}$ is treated in \emph{Winning Ways}~\cite{WW}, and Larsson and Manabe~\cite{LM} recently determined its nim-values in what they call the primitive quadratic regime. The game $T(a,b)$ can also be read as a game of king moves on a Young diagram (Remark~\ref{r:king}). Gottlieb, Krnc and Mur\v{s}i\v{c}~\cite{GKM} study king moves on Young diagrams; they give the nim-values for rectangles (a result of Berlekamp) and for some staircases with square steps, and remark that general staircases may be out of reach. The diagrams arising from $T(a,b)$ are not among the families they treat. \subsection{Results in detail} All results below except items (6) and (8)--(11) are proved in Lean (Section~\ref{s:lean}). Write $c=b-a$. \begin{enumerate} \item \textbf{Two-move games (Theorem~\ref{t:two}).} For every $u,v\in\N^n\setminus\{0\}$ the value $\G(x)$ is given by a three-case parity rule. This adds the values $1$ and $2$ to the outcome solution of~\cite{LSY}; given the periodicity lemma of~\cite{DET} the proof is short. \item \textbf{The leaper (Corollary~\ref{c:leaper}, Theorem~\ref{t:band}).} A closed form in floors, and a sharp \emph{band-width law}: $\G(x,y)$ equals the value of the one-heap game $\{a,b\}$ at $\min(x,y)$ whenever $|x-y|\ge (b-a)\lceil b/a\rceil$, and this bound cannot be lowered. \item \textbf{$T(a,b)$ for $a\le b\le 2a$ (Theorem~\ref{t:three}).} Explicit values in the region where neither $(2a+b,a+2b)$ nor its mirror image fits; invariance of all values under translation by $(2a+b,a+2b)$ for $x\le y+2c$; and period $3(a+b)$ along the diagonal for $|x-y|\le 2c$. The case $\G=0$ recovers Proposition~47 of~\cite{LSY}, now with a proof for all $a\le b\le 2a$. \item \textbf{$T(a,b)$ for all $a\le b$ (Theorems~\ref{t:class}--\ref{t:reduce}).} Values depend on a position only through the lattice combinations $aI+bJ$ below each coordinate; values are eventually constant along rows; and a translation statement (A) together with a diagonal-period statement (B) hold everywhere once they hold on a finite window. A variant allows the translation to fail in a strip of fixed width above the diagonal. \item \textbf{Solved games with $b>2a$ (Theorem~\ref{t:inst}).} For $m\in\{2,3,4\}$, $a\le 5$ and $(2m-1)a\le b\le 2ma$, statements (A) and (B) hold with translation vector $(2ma+b,2mb+a)$ and diagonal period $(2m+1)(a+b)$. Each of these $60$ games ($33$ up to scaling) is thereby determined by a finite table. This includes $T(1,5)$, one of the two games pictured in~\cite{LSY}. \item \textbf{All games with $(2m-1)a\le b\le 2ma$, $2\le m\le 14$ (Theorem~\ref{t:m2}).} Statements (A) and (B) hold for every such pair. Its finite hypotheses are verified for all parameters by an SMT solver, not in Lean. \item \textbf{Solved games in the remaining ranges (Theorem~\ref{t:quad}).} For $12$ coprime pairs with $2ma2a$. A formal proof establishes correctness, not novelty. \section{Preliminaries} For a game with move set $S$ on $\N^n$, a function $G:\N^n\to\N$ is a \emph{Sprague--Grundy function} if for every $x$: (i) $G(x-s)\ne G(x)$ for every $s\in S$ with $s\le x$, and (ii) for every $w2a$ we tested. Let $g$ be the Sprague--Grundy function of the one-heap subtraction game with moves $\{a,b\}$. By Theorem~\ref{t:two} in dimension one, $g(n)=t\bmod 2$ if $\rho2a$}{b > 2a}} The intervals $(2m-1)a\le b\le 2ma$ and $2ma2a$: $2m\,u+v$ in the linear ranges and \eqref{e:wq} in the others, the two agreeing up to the factor $a$ where the ranges meet. One consistency check is available: far above the diagonal, Theorem~\ref{t:sat} shows that $\G(x,y)$ is the value of the one-heap game $\{a,b,a+b\}$ at $x$, so the first coordinate of any translation vector must be a multiple of the period of that game. For the $140$ coprime pairs with $a\le 9$ and $2a2a$ we prove the two statements for thirteen values of $m$ in the linear ranges and, for $a\le 3$, for all $m$; otherwise only for single games. For $a\ge 4$ we have no proof that is uniform in $m$, and in the ranges $2ma2a$ a game is ``solved'' in the sense that every value is found by reduction to a finite table (up to $610\times961$ entries); we give no closed formula for the table. \item \emph{Cost.} The largest Lean certificate needs about $80$~GB of memory. The $72$ certificates are checked one file at a time; only four of them are part of the default build of the library. \item \emph{A small area.} These games were introduced recently and few people work on them. The result should be read as a contribution to that topic, and as a test of how far computer search and formal proof reach in it. \end{itemize} \section*{Use of AI and acknowledgements} The computational exploration, the formulation of the conjectures, the Lean proofs and the first draft of this text were produced by an AI system (Claude, Anthropic) working under the author's direction. Correctness of the theorems rests on the Lean kernel and, for the results marked computer-assisted, on the solver and the programs named in Section~\ref{s:trust}, not on the AI system or on the author's reading of the proofs. The literature search was also carried out with the system and is limited as described in Section~\ref{ss:novelty}. \begin{thebibliography}{99} \bibitem{WW} E.~R. Berlekamp, J.~H. Conway and R.~K. Guy, \emph{Winning Ways for Your Mathematical Plays}, 2nd ed., A~K~Peters, 2001--2004 (1st ed.\ Academic Press, 1982). \bibitem{DET} A.~Danai, P.~Ellis and T.~A. Thanatipanonda, Two dimensional subtraction--transfer games, preprint, arXiv:2602.14325v2, 2026. \bibitem{GKM} E.~Gottlieb, M.~Krnc and P.~Mur\v{s}i\v{c}, Impartial chess on integer partitions, preprint, arXiv:2501.14640, 2025. \bibitem{Golomb} S.~W. Golomb, A mathematical investigation of games of ``take-away'', \emph{J.~Combinatorial Theory} \textbf{1} (1966), 443--458. \bibitem{Grundy} P.~M. Grundy, Mathematics and games, \emph{Eureka} \textbf{2} (1939), 6--8. \bibitem{LM} U.~Larsson and H.~Manabe, Additive subtraction games, preprint, arXiv:2603.10414v2, 2026. \bibitem{LSY} U.~Larsson, I.~Saha and M.~Yokoo, Subtraction games in more than one dimension, \emph{Theoret.\ Comput.\ Sci.}\ \textbf{1016} (2024), 114775; arXiv:2307.12458. \bibitem{Mathlib} The mathlib Community, The Lean mathematical library, in \emph{Proc.\ 9th ACM SIGPLAN Int.\ Conf.\ on Certified Programs and Proofs (CPP 2020)}, ACM, 2020, 367--381. \bibitem{Lean4} L.~de~Moura and S.~Ullrich, The Lean~4 theorem prover and programming language, in \emph{Automated Deduction -- CADE 28}, Lecture Notes in Comput.\ Sci.\ 12699, Springer, 2021, 625--635. \bibitem{Siegel} A.~N. Siegel, \emph{Combinatorial Game Theory}, Graduate Studies in Mathematics 146, Amer.\ Math.\ Soc., 2013. \bibitem{Sprague} R.~P. Sprague, \"Uber mathematische Kampfspiele, \emph{T\^ohoku Math.~J.}\ \textbf{41} (1935--36), 438--444. \end{thebibliography} \end{document}