Never climbing, without a unit
Assumes: A game that never climbs is Nim in other units · Naming a game with a number
A Grundy value climbs when a legal move goes from a heap of one value to a heap of a larger one. In Nim nothing climbs: every move makes the heap smaller, and the heap is its own value. Among the games that only take counters away, the games that share this property turned out to be exactly Nim with its counters glued into blocks — forbid taking one counter and every value comes in a pair, forbid one and two and every value comes in a three. On 4,096 games the four obvious properties agreed: a game never climbed exactly when its values never fell, exactly when they were Nim in a unit, exactly when a short test on the forbidden takes passed.
That result was for games in which a move leaves one heap. Games that break heaps were left open, and the reason was named. A move that leaves two heaps produces an option worth the exclusive-or of their values, and an exclusive-or can be larger than either part. A split can climb even when every part it makes is small, and Lasker’s Nim, which lets a heap break in two, climbs for exactly that reason. So the question was whether any take-and-break game never climbs, and if so whether it too is Nim in some unit.
Some do, and many of them are not. The family of never-climbing games grows when heaps can split, and part of what it grows into has no unit at all.
Writing the games down
An octal code names a take-and-break game digit by digit. The i-th digit after the point says what removing i counters from a heap may leave, read as three bits: 1 for nothing, 2 for one heap, 4 for two heaps. Digit 3 means “take i, leaving nothing or one heap”, which is a plain take. Digit 7 adds the option of splitting what is left into two non-empty heaps. Kayles is 0.77: take one or two skittles, leaving nothing, one row or two.
A finite code has finitely many digits, so a player can only ever take a bounded number of counters. The take-away family the earlier essay swept had infinitely many: every take allowed except a finite list. To include both, the sweep here writes a code as a prefix of up to three digits followed by a tail digit repeated for ever, with the tail in brackets. Nim is 0.(3), take any number. 0.(7) is take any number and leave nothing, one heap or two. 0.1(7) forbids taking a single counter from a heap larger than one and otherwise allows any take, with any split. A tail of 0 is an ordinary finite code. That gives 511 finite codes and 3,584 with a tail, 4,095 in all, and every one is computed to heap 240.
A climb is counted per heap, as before. A heap climbs if some move from it, a take or a take with a split, leads to a position of greater value. By the mex rule a heap’s own value is never among its options, so never climbing is the statement that every option is strictly below, and since the mex needs every smaller value present, a never-climbing heap’s options take exactly the values from nought to one below its own.
Finite codes cannot grow without climbing
Start with the finite codes, since they are the ones the octal literature is about.
Seventeen of the 511 never climb, and they are all trivial in the same way. Seven are games where large heaps have no moves: 0.1 lets a player remove a single counter only when it is the whole heap, so every heap of two or more is dead, worth nought, and has nothing to climb to. The other ten make every non-empty heap worth ∗. The rule 0.51 is one: from any heap a player removes one counter and splits the rest in two, or removes two when there are exactly two. A split into two non-empty heaps worth ∗ each is worth nought, and so is an empty heap, so every option is nought and every heap is ∗. These ten share a feature the figure’s check confirms: none of them has a move leaving a single heap, and all of them split.
That pattern has a reason. Suppose a finite code has some take s that leaves one heap. Then from a heap of n + s there is a move to a heap of n. If the rule never climbs, that move goes strictly down, so the value at n + s is larger than the value at n, which is larger than the value at n − s, and so on. Along every chain n, n + s, n + 2s, … the values rise strictly, without end. The sequence is unbounded.
An unbounded sequence cannot be eventually periodic. And every finite octal game is conjectured to be eventually periodic, the conjecture Richard Guy and Cedric Smith made in 1956, which seventy years of computation have neither proved nor broken. So a finite code with a single-heap take that never climbed would be a counterexample to it. The sweep found none among 511, which is no evidence for the conjecture in particular, but it does explain why the only never-climbing finite codes are ones with no single-heap take: those are the codes the chain argument cannot reach.
The argument needs the take to leave exactly one heap. A move that always leaves two heaps gives no chain, because the value it lands on is an exclusive-or rather than a value of the sequence. That is the gap the ten ∗ codes live in, and nothing larger turned up there.
The codes with a tail
The tail changes everything, because a game allowing arbitrarily large takes has arbitrarily many options, and its values can grow without any conjecture being in the way. The take-away family was this case without splitting, and there every never-climbing game was Nim in a unit. With splitting allowed, the sweep sorts the never-climbing codes into five kinds.
Every never-climbing code has settled, by heap 120, into a pattern that repeats with a constant added each time round, arithmetic periodicity in the usual language. Of the climbing codes, 428 have not settled into any period of up to forty heaps in that range, and none of them is needed here. The repeat length is the period and the constant is the saltus, and the class is read from those two numbers and the shape of one period. The check was carried further for the never-climbing ones: all 1,331 never-climbing codes, finite and tailed, were recomputed to heap 720, and none climbs and none changes its period or saltus.
Two-thirds of the never-climbing codes are Nim in a unit, possibly shifted. 0.(7) is Nim itself: allowing a split after every take adds options, but the options it adds are already below, so the values stay the heap sizes. 0.0(7), take two or more with any split, is Nim counted in pairs. 0.(6), take any but leave at least one heap, is Nim with one counter that can never be taken, its values one less than the heap.
The other third is where the earlier result breaks.
Two values every three counters
Look at 0.1(7) in the opening figure. It forbids taking one counter from a heap of more than one, and otherwise allows everything. Its values run 0, 1, 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 8, and from heap four on they follow a rule with three clauses:
Every three counters the value rises by two. The same rules without the split, 0.1(3), give Nim in pairs, values 0, 1, 1, 2, 2, 3, 3 rising one every two counters. The split raises the rate from a half to two thirds, and it does so without ever letting a move climb.
The heap of ten shows how. It is worth ∗6, so its options must cover nought to ∗5 and stop there. The single-heap takes leave heaps of eight down to one, and since the values below ten run 0, 1, 1, 2, 2, 3, 4, 4, 5, those takes alone reach ∗, ∗2, ∗3, ∗4 and ∗5. Nought they reach only by taking all ten. Splits supply the rest, and supply it many times over: take two and leave four and four, worth ∗2 + ∗2, which is nought; take two and leave three and five, ∗2 + ∗3, which is ∗. An exclusive-or of two parts can exceed both, and that is how Lasker’s Nim climbs, but here no split from a heap of ten lands above ∗5. In the take-away game 0.1(3), the heap of ten is worth only ∗5, because without splits its options are just the values of the heaps it can leave. The splits add options without adding any above the top, so the mex is pushed upwards, and the value rises faster than a unit’s would.
Two in three is not a unit. Nim in units of k gains one value every k counters, a rate of 1/k. A rate of 2/3 would need a unit of a counter and a half. The game has no block structure at all: its three heaps in a period take three different values, and the next period overlaps the last at one value.
Rates with no unit behind them
0.1(7) is one of 216 codes with that rate, and not the only rate of its kind.
The rates sort the codes cleanly. Those gaining one value per period are Nim in a unit almost without exception, at rates 1, ½, ⅓, ¼ and ⅕. Those gaining two values per period come in two kinds. Over an even number of heaps, two values in 2m heaps is the rate of a unit of m, but the shape is not a unit’s. 0.5(7) gains two every two heaps, Nim’s own rate, yet past its start every value is even: heaps of five and six are worth ∗4, seven and eight ∗6. It is Nim in pairs with every value doubled, which plays identically against its own heaps and differently in any sum with something worth an odd value. And over an odd number of heaps, three, five or seven, two values make a rate of 2/3, 2/5 or 2/7, which no unit can make. There are 280 of those.
The three exceptions in the first group are worth naming because one of them does not split at all. The codes 0.121(3), 0.125(2) and 0.125(3) gain one value every two heaps, as Nim in pairs does, but they run two staircases side by side: the odd heaps are worth 1, 2, 3, … and the even heaps 0, 1, 2, …, so the sequence falls back at every even heap and never climbs. 0.121(3) is a pure take-away game, with no split anywhere. What takes it outside the earlier theorem is a digit the excluded-set family never had: a take of one or of three counters is allowed only when it empties the heap. Splitting is one way out of the unit theorem. Restricting what a take may leave is another.
Falling and climbing come apart
The earlier sweep found never climbing and never falling to be the same property in take-away games. In the first fall of a game that climbed, the drop was always to a heap from which a move went up. That made a pleasing picture: the values of a never-climbing game are a staircase, and any break in the staircase is a climb.
With heaps that split, the two properties separate in both directions. 172 codes never climb and yet their values fall somewhere. Most of these are the trivial kind. A heap with no legal move is worth nought whatever its neighbours are worth, so a code like 0.5(6) has values 0, 1, 0, 2, 2, 4, … because a heap of two has no move at all. A few are the interleaved staircases. None of them climbs, because a heap with no moves has nothing to climb to, and the heaps around it reach only lower values.
The other direction is more surprising. Thirty-six codes have values that never fall and still climb. 0.51(6) runs 0, 1, 1, 1, 2, 2, 2, 4, 4, 4, 6, 6, a sequence with no step down, and at heap six a move reaches a larger value. The move is a split. A heap of six worth ∗2 can be broken into parts whose exclusive-or is larger than ∗2, even though every single heap below it is worth at most ∗2. A monotone sequence protects a game from climbs by single-heap moves and protects it from nothing else.
That is the exclusive-or doing what was predicted. In take-away games, monotone values were enough, because every option was a value of the sequence and a monotone sequence’s smaller heaps are worth less. A split’s option is not a value of the sequence. It is a combination of two, and the combination answers to the binary digits of the parts, not to their order.
How fast never climbing allows
There is one more regularity in the sweep, and it is a ceiling.
The climbing codes have saltuses of 1, 2, 3, 4, 8, 12, 16 and 32, with the powers of two dominant. That fits what earlier sweeps of these families found: splitting games like to jump by a power of two, because exclusive-ors reach powers of two naturally. The never-climbing codes stop at two. No code in the sweep, of either kind, gains more than two values per period while keeping every move downhill.
There is a partial reason, and it is not a proof. A never-climbing heap’s options are exactly the values below its own. A saltus of s over a period of p means each period’s heaps have to find s new values among their options, and the new values at the top must come from somewhere: from single heaps one period down, which are worth s less, or from splits whose exclusive-or lands exactly there without overshooting. A large saltus asks for many values close to the top with no option above the top, and an exclusive-or that can reach a high value can usually reach one higher still. That makes two plausible as a ceiling and does not establish it. The sweep’s range is three digits of prefix, and a longer prefix could hold a code gaining three.
What the sweep cannot see
Codes past three digits of prefix. Every count here is over codes of the form 0.d₁d₂d₃(t). A longer prefix is a game that behaves specially on more small heaps, and those could produce rates or saltuses not seen here.
Values past heap 720. Each never-climbing code was checked to heap 240 and again to 720. For the codes with a regular pattern, that is a long run of agreement, not a proof. The rule for 0.1(7) holds on every heap to two hundred and has no proof here. A proof of it would be an induction on the three residues, of the kind a period is a proof carries out for ordinary periods, adapted to a constant added at every step.
Why the rates are what they are. Two in three for 0.1(7) is measured. The question of which codes produce which rate, read off the digits the way the run test read units off a forbidden list, is not answered.
And play. A climb is a move available, not a move made: a player who is winning moves to nought, and never climbs. What the sweep describes is the shape of each game’s values, which is also the shape of every sum it can be part of.
The convention the sweep depends on
Normal play throughout: the player unable to move loses. Each heap’s value is the mex of its options, and a two-heap option is worth the exclusive-or of its parts’ values, by the Sprague–Grundy theorem. A split leaves two non-empty heaps, the standard meaning of the digit 4 in octal codes; a code that let a split leave an empty part would duplicate its single-heap moves and change nothing here.
The family is chosen to include both the finite codes and the excluded-set games of the earlier essay. Codes 0.(3) and 0.d₁d₂d₃(3) with each prefix digit 0 or 3 are exactly that family to range three, and the sweep reproduces its answer on all eight of them: the five that never climb are Nim in a unit, and the three that forbid a take of two or three without forbidding one climb.
Still open: which digits produce which rate
Splitting has done to never climbing what it does to most properties of Nim. It keeps the property possible and removes the explanation. Among take-away games a never-climbing game was a unit of Nim, and the unit could be read off the forbidden takes before computing anything. Here 853 codes are still units, and 420 are not: 280 of them grow at two values every three, five or seven counters, and 137 at a unit’s rate with something other than a unit’s shape.
What would restore an explanation is a test on the digits. 0.1(7) is 0.1(3), Nim in pairs, with splits added; its rate went from a half to two thirds. Whether adding splits to a unit of k always gives a rate of 2/(2k − 1), or 2/(k + 1), or depends on the prefix, is a question the sweep can answer code by code and has not been asked to. If a rule exists, the rate of a never-climbing splitting game is readable from its code, as the unit of a take-away game was; and if the rate is always two values in an odd number of heaps, the 280 codes form one family with one sentence rather than a list. Bouton’s criterion, divided by the unit, was exact on every never-climbing take-away game, and no division can rescue it on a game that gains two in three. Whether any closed criterion does, short of computing the values, is the same question asked of play.
Part 5 of 4
One argument about Grundy sequences. The parts either side of it:
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.
CounterexampleEventual periodicityExhaustive searchGrundy valueMexNimOctal gameSaltusTake-and-breakXOR
- One changed value, and a growing code repeats eventual periodicity, exhaustive search, grundy value, mex, octal game, take-and-break, xor
- The odd values keep coming counterexample, eventual periodicity, exhaustive search, mex, octal game, take-and-break, xor
- A rare class exclusive-or respects counterexample, eventual periodicity, exhaustive search, octal game, take-and-break, xor
- One split is enough counterexample, exhaustive search, grundy value, mex, octal game, take-and-break
- The period is small and the proof does not say so counterexample, eventual periodicity, exhaustive search, grundy value, mex, octal game
- The step nobody took for thirty-four years exhaustive search, grundy value, mex, nim, octal game, xor