The parts say who wins, not how long
Assumes: How long it lasts · A compound of two different games
How long it lasts introduced the number the subject keeps for the length of a game. The remoteness of a position is how many moves it lasts when the player who is winning hurries and the player who is losing stalls, and it decides the conjunctive compound, where every component must move at once and the game ends when any one of them does. A compound of two different games then showed that rule surviving every mixture of rulesets thrown at it, because it reads one number per component and a number does not remember where it came from.
All of that is about compounds the subject treats as curiosities. The compound it is built on is the disjunctive sum — move in exactly one component — and there the question was never asked. The winner of a disjunctive sum is known from the parts: the nim-sum of their Grundy values is non-zero exactly when the player to move wins. Is the length known from the parts too? Each part has a remoteness. Does the sum’s remoteness follow from them?
It does not, and the interesting thing is how badly. Over every two-heap sum of eight subtraction games the parts’ Grundy values and remotenesses together leave more than half of all sums in a group whose members last different lengths of time.
Two sums with the same report
The cleanest way in is a single pair. A heap of one in take one, two or three is worth ∗ and lasts one move: whoever is to move takes it and wins. A heap of three in take one, three or four is also worth ∗ and also lasts one move alone, because the player to move takes all three. So is a heap of five in the game where a move takes a Fibonacci number, for the same reason: take five, and it is over.
Each of these heaps reports the same two numbers about itself — Grundy value 1, remoteness 1. Put two equal values side by side and the nim-sum is nought, so in either sum the player to move is losing. What the parts’ report predicts about the length is less clear, but two moves is the obvious guess and it is what the first sum does: the loser empties one heap, the winner empties the other.
The second sum lasts six. The player to move cannot win, so they stall, and they have something to stall with that a heap of one never offers. From the Fibonacci heap of five they take two, leaving three, which is worth ∗3; the winner must now restore a nim-sum of nought and does it by taking two more from the same heap, leaving one. The loser takes one from the heap of three in the other game, leaving two, worth nought — and the winner answers again in kind. Six moves pass before both heaps are empty.
Nothing in the four reports distinguishes the two sums. The difference is in moves that neither heap’s remoteness counts. Played alone, a heap of five in the Fibonacci game is ended at once by whoever is to move, because that player is winning and wants it over; the slower moves out of it are moves a winner never makes, so the recursion that computes remoteness never looks at their length. In a sum the same heap is often in the hands of the player who is losing the whole, and that player is glad of every slow move a component offers.
That is the whole mechanism, and the rest of this essay is a measurement of how much it costs.
The sweep
The pool is the one the mixed compounds were tested on: take one, two or three; take one or two; take two or three; take one, three or four; take one or four; take two, four or five; take a square number up to nine; take a Fibonacci number up to eight. Every ordered pair of those eight games, with each heap running from nought to twenty, is 64 × 21 × 21 = 28,224 sums, and each one is solved directly — the sum is built as a game over pairs of heap sizes and its remoteness computed by the same recursion that gives each part its own, with no rule about sums anywhere in it.
Then the sums are grouped. Two sums go into the same group when their parts report the same things: the same Grundy value and the same remoteness on the left, the same on the right. If the length of a sum were a function of what its parts report, every group would hold sums of a single length.
The group the two worked sums belong to has 144 members. A hundred last two moves, which is what anybody would guess. Forty-one last four and three last six. The report is the same in all 144, and the spread is a factor of three.
That group is not unusual. Across the sweep there are 961 distinct pairs of reports, and 466 of those groups hold sums of more than one length. They contain 16,479 of the 28,224 sums — 58.4 per cent — and inside the worst of them two sums with identical reports differ by eight moves.
Eight moves apart on one report
The widest group is worth looking at because its parts are not small. On one side a heap worth ∗2 that lasts five moves alone; on the other a heap worth ∗ that lasts nine. Forty-eight sums in the sweep have parts reporting exactly that, the nim-sum of the two values is 3, the player to move is winning every one of them — and their lengths run from 13 to 21.
The short end is a heap of eight in take one or two beside a heap of eighteen in the squares game. The winner opens by taking nine from the eighteen; the squares heap then sits at nine while the small heap is played down to nothing, and is itself played down last, one at a time to four and then taken. Thirteen moves, one fewer than the two parts’ lengths added.
The long end is a heap of nineteen in the squares game beside a heap of seventeen in take one, three or four. Here the squares heap is worn down first, by fours and ones, while the other heap is left at seventeen and touched only once; when the squares heap is gone the second heap is played out slowly, because the loser is choosing half its moves and wants it to last. Twenty-one moves, seven more than the parts’ lengths added.
Same report, same winner, and one game lasts sixty per cent longer than the other. Nothing in either pair of numbers says which heap the loser will choose to stall in, or whether the stall will be cheap for the winner to answer; both are properties of the two heaps’ moves together.
Richer reports, and how far each one goes
A negative of that size invites the obvious repair: let each part report more. The figure at the top of this essay is that experiment, run as a sequence of four reports, each richer than the last.
The first report is the Grundy value alone. It is what the winner needs and it is useless for the length: thirty-six groups, every one of them mixed. The second adds the remoteness and is the one measured above.
The third adds two numbers any solver has for free, the longest and shortest plays the heap allows with nobody trying to win. These are the bounds inside which any play of the heap must fall, and they are the first place a reader would look for the stalling room the worked pair exposed. They help a great deal. The undecided groups drop to 366, holding 1,366 sums — 4.8 per cent — and the widest disagreement inside a group falls from eight moves to two.
The fourth report replaces those bounds with something closer to the sum itself: the part’s remoteness beside each Nim heap of nought to seven, which is how long the part lasts in the eight simplest companies there are. This is a long report, nine numbers a heap, and it comes closest. Twenty-eight groups still hold sums of different lengths, sixty-four sums in all.
What the four reports show is not that the length is hard to predict but that it is not a property of the parts taken one at a time. Every report on the list is a list of facts about one heap; the length of a sum depends on how the two heaps’ slow moves interleave, and only a report rich enough to describe the heap’s behaviour beside any partner can carry that. Nim heaps are the natural partners to try, because every impartial game is equal to one, and they still miss sixty-four sums. Equality as values is exactly what the length does not respect.
The guess everybody makes
Before the groups, there is a simpler rule to test, the one a reader reaches for when told that the parts last r and s moves: the sum lasts r + s. Every move of the sum is a move in one part, so if each part is played the way it would be played alone, the lengths add.
It is right on 17,724 sums, which is 62.8 per cent. It is wrong upward on 9,377 — the sum lasts longer than its parts added together — and wrong downward on 1,123.
The upward errors are the worked pair again, and they are expected once the mechanism is understood: the loser of the whole borrows slow moves from parts that, alone, would have been ended by a winner in a hurry. The downward ones are stranger, and sixty of them go further than seems possible: the sum ends before its longer part would have ended alone. A component lasts four moves by itself, and beside a companion that adds moves of its own the whole thing is over in three.
A part that ends sooner in company
The smallest of the sixty is a heap of ten in the game of taking square numbers, beside a heap of one in take one, two or three.
Alone, the heap of ten is worth nought. The player to move is losing it, and the play runs ten to six, six to five, five to four, and four to nothing — the loser picking at each turn the move that keeps the game alive longest, the winner the one that ends it soonest. Four moves.
Beside a heap of one the sum is worth ∗, and now the player to move is winning. Their best move is in the heap of ten, and it is the move nobody would make in that heap alone: take nine. That leaves a heap of one beside a heap of one, worth nought for the opponent, and two more moves end it. Three moves in all, against the four the heap of ten needed by itself.
The fast move was in the heap all along, and alone it belonged to nobody. Remoteness asks how long a position lasts under the play its own winner and loser would choose. Add a partner and the roles are reassigned, because the partner changes who is winning the whole; a move that was a loser’s mistake becomes a winner’s shortcut, and a move that was beneath a winner’s notice becomes a loser’s refuge. That is why a component’s length is not one number: it depends on whose side the component turns out to be on, and that depends on the company.
What does come free
One part of the length does follow from the parts, and it follows for a reason worth stating rather than measuring. A position’s remoteness is odd exactly when the player to move wins it: the winner moves to a position of even remoteness and the count goes up by one, the loser can reach only odd ones and the count goes up by one from an odd number. So the parity of a sum’s remoteness is its outcome, and its outcome is the nim-sum’s verdict.
The sweep confirms it on all 28,224 sums, and the confirmation is not evidence of anything: it is the same theorem said twice. What it does establish is the shape of the gap. The parts’ Grundy values fix the length’s last bit, and nothing the parts report about themselves one at a time reliably fixes the rest. The length of a disjunctive sum is a number whose parity is a homomorphism and whose size is not, which is an unusual thing to find in a subject whose whole method is to reduce a sum to its parts.
It is also why nobody noticed. A theory interested in who wins reads off the last bit of the length, and the last bit is the bit the theory supplies. The size of the length only matters to a player who is losing and wants to make the opponent work for it, or to a player who is winning and wants to finish before a clock runs out — and the theory has never had a reason to care about either of them.
Why the sum keeps its own clock
There is a sentence for what is going on, and it explains every result in this essay at once. The remoteness recursion makes two choices at each position — which option the winner hurries to and which the loser stalls into — and both choices depend on who is winning. In a sum, who is winning is decided by the nim-sum of every part together. So a part played inside a sum is played by a winner and loser who were assigned by the whole, and the choices that produced its remoteness alone are simply not the choices made.
That is different in kind from the conjunctive compound, where the rule is exact. There every part must move on every turn, so the shortest part ends the game, and a part’s own remoteness describes what will happen to it regardless of company, since its own winner and loser are the ones playing it. The disjunctive sum takes that away: a player can leave a part untouched, play elsewhere, and return to it when the roles suit. The same freedom that lets Sprague–Grundy reduce the winner to a nim-sum is what unhooks the length from anything the parts can say.
The neighbouring result is the one outcomes do not add found for partizan games. There, who wins each part says little about who wins the whole, and a richer report — the stops, the thermograph — buys back part of the table. Here who wins is additive, by the nim-sum, and it is the second quantity that fails. Both failures have the same cause: a summary computed by playing a part alone assumes roles that a sum will reassign.
The convention, named
Normal play throughout: a player with no move loses. Every game here is impartial and every position is a heap in a subtraction game, so a part is a number and a sum of two parts is a pair. Remoteness is computed by the rule that gives the winner the smallest even-remoteness option and the loser the largest option of any kind — the definition in how long it lasts — and the sum’s remoteness by exactly that rule applied to the pair, with no shortcut through the parts.
The sweep’s reports are each a tuple of numbers, and two sums share a group only when both of their parts’ tuples are equal, left with left and right with right. Nothing is averaged; a group is undecided the moment two of its sums differ by a single move.
What the sweep cannot say
The parts are all heaps of subtraction games. Eight rule tables give a fair spread of remoteness sequences — some monotone, some not — and they are still one kind of game. A sum with a Kayles row in it, where a move can split a component into two, would add a further way for the loser to buy time, and nothing here measures it.
The reports are four reports. The fourth comes close, and a fifth could easily be found that closes the sweep entirely by including enough partners. That would be a fact about this pool and not about length, because the partners that separate sums in one pool need not separate them in a larger one. Whether some finite report decides the length of every sum is a different question from whether some report decides these.
And the heaps stop at twenty. The proportion of undecided groups under the second report might fall or rise with larger heaps. It cannot fall to nought, because the worked pair is already in the pool and will stay there.
Still open: what a part would have to say
The richer reports narrowed the gap and never shut it, and they suggest a different way of asking the question. Instead of choosing a report and counting its failures, fix the answer and work backwards: call two heaps length-equivalent when beside every possible partner their sums last the same time, and ask how many classes that relation has. If it had finitely many on any pool — the way the Grundy value has — the length of a sum would have a theory of the same kind as its winner. If the classes grow with the pool, a part must report something as large as itself.
That count, and what the classes turn out to be made of, is the next measurement, taken in what a heap must report about its moves. Beside it sits what a value leaves out, which lists length first among the things game equality discards — and this sweep is that observation, made exact on the sum the subject is built on.
Part 4 of 8
One argument about Remoteness. 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.
What this makes readable
Essays that declare this one a prerequisite.
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.
AdditivityComponentCounterexampleDisjunctive sumExhaustive searchGame lengthGrundy valueNim-sumOutcome classParityRemotenessSubtraction game
- The number nobody needs additivity, counterexample, disjunctive sum, exhaustive search, game length, grundy value, outcome class, parity, remoteness, subtraction game
- What a component has to carry additivity, component, counterexample, disjunctive sum, exhaustive search, grundy value, nim-sum
- A move that must be answered component, disjunctive sum, exhaustive search, grundy value, nim-sum, outcome class
- A stripped heap is a count of lengths disjunctive sum, exhaustive search, game length, grundy value, remoteness, subtraction game
- The rule a smaller move breaks counterexample, disjunctive sum, exhaustive search, grundy value, nim-sum, outcome class
- A pass is not a move component, disjunctive sum, exhaustive search, grundy value, nim-sum