A game that never climbs is Nim in other units
Assumes: The picture Bouton's proof leaves behind · Grundy sequences, and where they stop being predictable
A Grundy value can go up. The essay that carried Bouton’s closure argument across to every value counted the chances and found that in a subtraction game a move from a heap worth nought to a heap worth two is ordinary — ninety-nine times in 444 chances over five games — and that in Nim it never happens at all. The mex rule guarantees every smaller value among a position’s options and forbids its own; about larger values it says nothing, and in most games they are there to be moved to.
That left a conjecture and a question. The conjecture was that a game climbs nowhere exactly when its Grundy sequence never decreases. The question was whether any game other than Nim has such a sequence — whether never climbing is a property of Nim, or of a family Nim happens to belong to.
Both have answers, and the answers are sharper than the question. No game with a finite list of takes can avoid climbing, by an argument two lines long. Among the games that forbid a finite list of takes instead, many never climb — and every one of them is Nim with its heaps counted in a larger unit. The family exists, and it is Nim’s own.
The two words, made exact
A climb is a legal move from a heap of Grundy value to a heap of value greater than . A game never climbs when no heap, at any size, has such a move. The test is per heap rather than per position, because a heap is the component the Sprague–Grundy theorem reads, and a sum of heaps climbs exactly when one of its heaps does.
The mex rule makes one half of never climbing free. A position’s own value is never among its options, so every option is either below or above. Never climbing is therefore the statement that every option is strictly below — every legal move lowers the value.
That restatement does most of the work in what follows, because “strictly lower after every move” is a strong thing to ask of a number.
Why a finite set of takes has to climb
Take a subtraction game with a finite set of takes, the largest of them . Its Grundy values are bounded: a heap has at most as many options as there are takes, and the mex of a set of size is at most . Every such sequence is eventually periodic, which is another way of saying it is bounded.
Now suppose such a game never climbed. Then every move lowers the value strictly. Start at any heap and keep taking the smallest take: the values fall at every step, and they fall through a bounded range of non-negative integers. That is fine for a few steps. But run it the other way — a heap of , a heap of , a heap of , each one a move above the last — and the values must rise strictly at every step, for ever, through a bounded set. They cannot.
So every finite set of takes climbs somewhere. It is the same fact as the bound on the values, read from the other side: a sequence that lives in a finite range cannot be strictly increasing along every chain of moves.
The argument says somewhere. The sweep says soon. Over every set whose largest take is between one and ten — 1,023 of them — the first climb arrives by heap , and the only sets that hold out that long are the ones with a single take. The set gives values below , from to , and again at , from which the one legal move reaches a . A typical set climbs far earlier: the mean first climb for is at heap 6.59.
Where the values can grow, the argument stops
The argument above used exactly one fact about the game, that its values are bounded. So the place to look for another never-climbing game is a family whose values are not.
Subtraction games with infinitely many takes are such a family, and the most natural corner of it is the games that allow every take except a finite list. Call the forbidden list . Nim is the case . Forbid taking one counter and the game becomes “take two or more”; forbid one and two and it is “take three or more”; forbid only two and a player may take one, three, four, five and so on.
These are not invented for the purpose. Games with a finite excluded set have a literature of their own, and the general result there is that their sequences are arithmetic-periodic — they repeat with a constant added, which is the behaviour a few hexadecimal codes were found to have and the reason they belong beside them. An arithmetic-periodic sequence grows without bound, so the obstruction that sank every finite set does not apply.
Four properties that turn out to be one
Take every forbidden list inside — 4,096 games — compute each to heap 200, and ask four separate questions of each.
- Does the game never climb?
- Does its Grundy sequence never fall?
- Is its sequence exactly , where is the number of consecutive small takes that forbids before its first gap?
- Does pass a test that looks only at : no consecutive forbidden takes above ?
On every one of the 4,096 games, the four answers agree. 874 games have all four properties and the other 3,222 have none of them. The conjecture left by the closure argument — never climbing exactly when the sequence never falls — holds on the whole sweep, and it holds for a reason that is more specific than the conjecture: a sequence that never falls, in this family, is always the same sequence.
What the never-climbing games are
The third column is the surprise, and it is worth reading slowly. A never-climbing game with small takes forbidden has value at heap . That is a Nim heap, counted in units of .
Forbid taking one counter and every value appears twice: heaps 0 and 1 are worth 0, heaps 2 and 3 are worth 1, heaps 4 and 5 worth 2. Forbid one and two and every value appears three times. Then add more forbidden takes higher up — forbid 1, 4 and 6 — and nothing changes: the sequence is still , because the takes that carry each value are still there.
So the family Nim belongs to is real and large, and it is Nim’s family in the most literal sense: a game in it is Nim played with counters glued into blocks of , where a block partly removed counts as removed. Of the 874 to twelve, 144 count in pairs, 274 in threes, 208 in fours, and the counts halve from there; one game — Nim — counts in units of one.
The pairs give a small piece of arithmetic away. With the test asks that no two forbidden takes above two be neighbours. Counting subsets of a line with no two neighbours is the oldest exercise that produces the Fibonacci numbers, and the counts at ranges 6, 8, 10 and 12 are 8, 21, 55 and 144.
Why neighbours in the forbidden list break it
The test on is not a curve fitted to the sweep. Half of it is a proof, and the proof is a picture of which takes each value needs.
Suppose the sequence is . Every legal take is at least , because to are forbidden, and a take of or more lowers by at least one. So nothing climbs — that half is immediate. What has to be checked is the mex: heap needs every value below among its options. Value is carried by the block of heaps from to , and those are reached by a block of consecutive takes. The value is missing only if every take in that block is forbidden.
So the pattern survives exactly as long as never covers a whole block of consecutive takes, and the smallest block that could be covered starts above — the take itself is allowed, by the definition of . That is the run rule, and it shows that every game passing it never climbs.
The converse — that every game failing it does climb — is measured rather than proved here. It holds on all 3,222 failing games, and it holds in the tightest way available: in every one of them, the first climb is at the very heap where the value first falls. In the game that forbids 1, 4 and 5, heap 5 is worth 0 and a take of 2 reaches heap 3, worth 1. A sequence’s first fall is, in every game swept, a heap from which a move goes up.
What the games that climb do instead
A game that fails the run rule does not lose its growth. Its sequence still rises without bound — the values of an excluded-set game always do — but it rises with a stutter, and every stutter is a climb.
Read the second row. Forbid 1, 4 and 5 and the values run and then fall to at heap 5 — the block closed in the table above. From there the sequence picks up again, , and falls again at heap 17, to . The pattern is the same twelve heaps each time with four added: an arithmetic period of twelve and a constant of four. Forbid only three and the values come in runs of then , a period of six with three added, falling back at heaps 3, 9, 15 and so on.
Every one of those falls is a climb, and the pairing is not a coincidence of these rows. In every one of the 3,222 failing games to twelve, the first heap whose value is lower than its predecessor’s is also the first heap from which a move reaches a larger value. The fall and the climb are one event seen from two sides: in every case swept, a heap whose value has dropped below its neighbour’s has a legal take to a heap worth more.
That gives the climbing games a shape worth naming. The never-climbing games are arithmetic-periodic too — period , constant one — and they are the special case in which the pattern inside each period never steps back, so that adding the constant never has to undo anything. The growth rates even differ: Nim in pairs gains one every two heaps, the game forbidding 1, 4 and 5 gains four every twelve. Closing a block of takes costs the game not only its monotonicity but part of its rate.
Bouton’s test, in units of k + 1
If these games are Nim in another unit, then Bouton’s 1901 criterion ought to work on them after one division. Divide each heap by , round down, and call the position lost when the results exclusive-or to nought.
It does, and the check is made against play rather than against the theorem. Every position of three heaps up to eighteen counters is searched directly — a position is lost when every move leads to a won one — with no Grundy values involved. On the five never-climbing games tried, the divided criterion is right on all 1,330 positions. On the three games that climb it is wrong on 57 to 149 of them.
That is the transplanted criterion story told from the far side. Bouton’s test, moved to another game unchanged, called losses wins. Here it moves with one change, and the change is not the substitution of Grundy values that took until 1935; it is a change of unit that a reader of the 1901 paper could have made in an afternoon. The games where that suffices are precisely the games that never climb.
A climb is what a game has instead of a unit
The four-way agreement can be read as one sentence: a take-away game never climbs exactly when it is Nim in some unit. Everything else in the family — and everything with finitely many takes — climbs.
That makes the observation about Bouton’s picture more exact than it could be with five games in hand. Nim did not “happen” to be the one game that never climbed. Never climbing is the shadow of a strong structural property — values that are a monotone function of the heap — and in the take-away games that property forces the function to be division by a constant. A game whose values are a monotone function of its heaps is a game whose heaps are, at a coarser scale, Nim heaps.
It also explains why the descending picture Bouton’s proof leaves behind was so persuasive. In Nim the value is a measure of how much is left. In a never-climbing game it still is, in coarser units. In any other game the value is a label the mex rule assigns, and a label has no reason to shrink as the heap does — which is the content of a climb.
What the sweep cannot see
The range is twelve. The four properties agree on every forbidden list inside , with values computed to heap 200. A list containing larger takes is not covered, and the run rule’s converse — that failing it forces a climb — is not proved for any range. The half that is proved is the half that matters for the title: every game passing the rule is Nim in units of and never climbs.
The values are computed to heap 200, not for ever. For the games that pass the rule this does not matter, because the proof covers every heap. For the games that fail, a climb is found within the range in every case and is a fact about all larger heaps too — one climb is enough.
Take-away games only. The games here remove counters from one heap and never split it. An octal game whose moves break heaps has options that are sums, and a sum’s value is an exclusive-or that can exceed both parts; whether any take-and-break game never climbs is a different question with a different shape, and nothing here touches it.
And the picture shows values, not play. A climb is available, not chosen; a winning player never makes one, because the winning move always goes to nought. What the strips show is the shape of the game tree, which the winning line visits only thinly.
The convention the count depends on
Normal play throughout: the player who cannot move loses. A heap’s value is computed by the mex rule over every legal take, and a game with forbidden list allows every take from one up to the heap’s size except those in .
A climb is counted per heap: a heap climbs if some legal move from it reaches a larger value. Counting moves rather than heaps would weight heaps with more options and measure branching. And the integer is defined by the forbidden list alone — the length of its initial run — so a game’s unit is read off the rules before anything is computed.
Still open: whether a take-and-break game can never climb
The take-away games are settled to range twelve: never climbing is being Nim in a unit. Games that break heaps are the natural next family, and there the obstacle is the exclusive-or itself. A move that splits a heap of value into two parts produces an option worth their exclusive-or, and an exclusive-or can be larger than either part — so a split can climb even when every part is small.
Lasker’s Nim shows how quickly that bites. It allows any take or a split into two heaps, and its values are the heap sizes with each pair 4k + 3, 4k + 4 swapped. That swap is a climb: a heap of four is worth three, and taking one counter leaves a heap of three, worth four. The one change that made the splitting game differ from Nim is, read as a picture, a step upwards.
So the question for take-and-break games is sharper than the one answered here. Never climbing would require every option of every heap — every take and every split — to land strictly below the heap’s own value, which constrains how the values of small heaps combine under exclusive-or as well as how fast they grow. The measurement is the per-heap count run over options that are sums, swept over the octal codes that name the whole family. If the only codes that pass are those whose values are the heap sizes or a division of them, never climbing is Nim’s property in the larger family too; if some other code passes, there is a sequence that is monotone, survives exclusive-or, and is not a unit of Nim — and nothing on the list of solved octal games looks like one.
Part 4 of 4
One argument about Grundy sequences. The parts either side of it:
What links here
Essays that reach for this one mid-argument — the half of a link its own author cannot write down.
The objects named here
The third axis, after the field and the series: the games, values and theorems themselves, and every essay that touches each one.
BoutonCounterexampleCriterionEventual periodicityExhaustive searchGrundy valueInvariantMexNimSubtraction game
- The sentence that solved the other convention bouton, counterexample, criterion, exhaustive search, grundy value, invariant, subtraction game
- The step nobody took for thirty-four years bouton, criterion, exhaustive search, grundy value, mex, nim, subtraction game
- A set with a short description bouton, criterion, exhaustive search, grundy value, invariant, subtraction game
- The period is small and the proof does not say so counterexample, eventual periodicity, exhaustive search, grundy value, mex, subtraction game
- A chess problem that turned out to be an octal game exhaustive search, grundy value, mex, nim, subtraction game
- Four values, and the sequence is settled for ever exhaustive search, grundy value, mex, nim, subtraction game