What a heap must report about its moves
Assumes: The parts say who wins, not how long · How long it lasts
The parts say who wins, not how long found that the length of a disjunctive sum cannot be read off what its parts report about themselves. Grundy value and remoteness — the two numbers the conjunctive compound needs — leave 58 per cent of two-heap sums in a group whose members last different times; adding the longest and shortest plays leaves 4.8 per cent; adding each part’s length beside every Nim heap up to seven still leaves sixty-four sums undecided. Each richer report helped, none finished, and the essay ended by turning the question round.
Instead of choosing a report and counting its failures, fix the answer. Two heaps are length-equivalent when, beside every partner, their sums last exactly the same number of moves. That is the coarsest relation that could possibly decide length, and anything a heap reports must at least tell its classes apart. So the question of what a heap must report becomes a count: how many classes are there, and what makes two heaps fall into the same one?
The count
The pool is every heap from nought to twenty-four in each of the eight games used throughout — take one, two or three; one or two; two or three; one, three or four; one or four; two, four or five; a square number up to nine; a Fibonacci number up to eight. That is 200 heaps, and each is put beside each of the 200, giving 40,000 sums solved directly for their remoteness. Two heaps are in one class when their 200 lengths agree entry by entry.
There are 73 classes. For comparison the Grundy value splits the same 200 heaps into six classes, and the pair of Grundy value and remoteness — the report the sum essay found wanting — into thirty-five.
The count matters less than how it moves. Run the same computation on heaps up to eight, twelve, sixteen, twenty, twenty-four and twenty-eight, and the Grundy value stays at five or six classes throughout: these games all have small, bounded values, which is why the winner of their sums is cheap to know. The pair of value and remoteness grows, which it must, since remoteness grows with the heap and two heaps of different remoteness can never be equivalent — the empty partner separates them. And length-equivalence grows at almost exactly twice the pair’s rate: 34 classes against 19, then 62 against 31, 73 against 35, 87 against 42.
So the length of a heap is at least as large an object as its remoteness, and on this evidence about twice as large. No finite report decides length on all heaps, for the trivial reason that remoteness is already unbounded; the useful question is how much a heap needs beyond its remoteness, and the answer the table gives is: a second coordinate, of a size that has not settled down.
Where the pair runs out
The doubling is not spread evenly. Most classes of value and remoteness are a single length class, and the ones that split are where the extra information lives.
At heaps up to twelve, nine of the nineteen pairs split; at twenty, seventeen of thirty-one; at twenty-eight, twenty-five of forty-two. The proportion is stable at a little over half, and it is the reason the overall count doubles.
The width of a split is the other number, and it behaves differently. No class of value and remoteness splits more than five ways at any pool size from twenty upward: a five-way split is present by heaps of twenty and no wider one has appeared by twenty-eight. The number of places the pair fails keeps growing; how badly it fails in any one place does not, as far as heaps of twenty-eight can show. That is the shape a bounded third coordinate would have, and it is not evidence of one: a split that first appears at heap thirty-five could be six ways wide, and nothing here reaches it.
Three heaps that report the same
The widest splits start at the bottom of the table, with the class worth ∗ that ends in one move. It is the class the worked pair came from, and it splits three ways.
A heap of one in take one, two or three has a single move, to nothing. Ten heaps in the pool behave exactly like it — the heap of one in each game that allows taking one, the heaps of two and three in the games that start at two — and they form the class’s main body.
A heap of three in take one, three or four is worth the same and lasts the same, but it has a second move: take one, leaving a heap of two, which in that game is worth nought and lasts two moves. Alone, nobody plays it. The player to move is winning and takes all three. In a sum it is exactly the stall a losing player wants. Any move a loser makes hands the opponent a winning position; this one hands it over as a heap worth nought that takes two moves to clear, where emptying the heap would have handed it over clean.
A heap of five in the Fibonacci game has that same move, to a heap of four worth nought and lasting two, and two more besides: to three, worth ∗3, and to two, worth ∗2. Those reach heaps of other values, and in a sum where the nim-sum is right they are further places to stall.
The three heaps’ reports are identical because a report computed alone only follows the winner’s line, and the winner’s line in all three is the same single move. Everything else in the heap is invisible to that computation and visible to a sum.
The moves decide it
That suggests a description of the classes, and it can be checked. If what separates heaps is the moves they offer, then two heaps whose moves reach the same classes should be in the same class themselves.
That is a theorem rather than a guess. Suppose the moves of one heap reach exactly the length classes the moves of another reach. Beside any partner, each sum’s options are its heap’s moves with the partner unchanged and the partner’s moves with the heap unchanged. The first kind reach the same lengths in both sums by assumption, and the second kind reach the same lengths by induction on the partner, since the partner’s options are smaller sums of the same two heaps. The remoteness recursion sees only the lengths of the options, so the two sums last the same time.
On the pool it holds without exception: no two heaps whose moves reach the same classes are found in different classes. The interesting direction is the converse, and it fails.
Of the 27 classes holding more than one heap, 20 hold heaps whose moves reach different classes. The example drawn is the class of the heap of four in take one, two or three, which is worth nought and lasts two. Its moves go to heaps of three, two and one, worth ∗3, ∗2 and ∗, each lasting one move. A heap of three in take one or two is in the same class with moves to two and one only, and a heap of two in take one, three or four with a single move, to one. Beside every partner in the pool the three heaps’ sums last exactly the same time.
So the move to a heap of three in the first game, and the move to a heap of two as well, make no difference to length in any company. They are dominated, in a sense that belongs to length rather than to value: the heap without them is equivalent to the heap with them. The Grundy theory has the same phenomenon in an exaggerated form — any option can be removed provided the mex stays the same, and canonical form is what the partizan theory builds out of removing dominated and reversible options until nothing more can go. Length has its own version, and these three heaps are its first examples.
What the moves in that class have in common
The class above is a reasonable place to see why some moves can be dropped. All three heaps are worth nought, so the player to move is losing them, and the player to move in a sum containing one of them is choosing between this heap and the partner. A move out of a heap worth nought goes to a heap worth something, and in every case here that something lasts exactly one move.
A losing player who moves in this heap creates a part the opponent can end at once; the opponent can always decline and move elsewhere, but either way the heap’s contribution to the length is one move to leave nought and one move to finish. Which non-zero value the heap is moved to changes the nim-sum, and so changes who is winning the sum, but in this pool and this class it never changes the length. Moves are length-dominated when they reach classes the heap’s other moves already make redundant, and here all three heaps’ moves reach parts that last one move, so the number of different such parts on offer is immaterial.
That is a description, not a rule. Stating exactly when one class of move dominates another for length — the analogue of dominated and reversible options for value — is the piece of theory this measurement points at, and it is not attempted here.
How few partners it takes
Length-equivalence is defined by every partner in the pool, which is two hundred tests a heap. Most of them are redundant.
Taken greedily, five partners separate all 19,352 pairs of inequivalent heaps. The first, a heap of twenty-four in the squares game, separates 18,595 of them alone — a long heap with many moves of different sizes is a partner beside which almost every difference in stalling room shows up as a difference in length. The next four mop up: a heap of three in take one, three or four, a heap of ten in the squares game, the empty heap, and a heap of three in take one, two or three.
Nim heaps are the natural alternative and they do worse, which is the sharpest single fact in the measurement. Every impartial game is equal as a value to a Nim heap, so for the winner Nim heaps are the only partners that ever need testing. For length, the eight Nim heaps of nought to seven separate 71 of the 73 classes and leave two merged. The heap of three in take one, three or four and the heap of five in the Fibonacci game — two of the three drawn above — last the same time beside every one of those eight Nim heaps, and beside a heap of three in take one, three or four their sums last four moves and six.
A Nim heap has no slow moves to lend, since every one of its moves is to a different value, and the difference between those two heaps is in how a partner’s slow moves interleave with theirs. A test of length needs partners that can stall, and Nim’s heaps are the least able to.
Why one long heap does nearly all the separating
The first partner’s dominance is worth a paragraph of its own, because it says what kind of company exposes length. A heap of twenty-four in the squares game is long — it lasts five moves under best play alone and can be made to last up to twenty-four — and its moves come in three sizes, one, four and nine. Beside it, a heap’s own stalling room is tested against a partner that can stall back by almost any amount and hurry by almost any amount, so a difference of one in how long a heap can be made to last turns into a difference in the sum’s length in nearly every case.
That is the opposite of how a value is tested. To decide whether two games are equal, every impartial game is a Nim heap says it is enough to add the negative of one to the other and ask who wins, a single test with a single partner. Length has no negatives — nothing undoes the time a heap takes — so there is no single partner that answers for all, and the best available is a partner with as varied a set of moves as possible. The square heap is that partner on this pool, and the second, third, fourth and fifth partners exist only to catch the few pairs whose difference it happens to absorb.
The economy of the five is a property of the pool and not of length. Heaps beyond twenty-four would add new differences, and nothing guarantees that the same five catch them; but it does suggest that a practical test of length-equivalence needs few partners if they are chosen to be long and irregular, and that the regular, fast partners the value theory relies on — Nim heaps, added by the nim-sum — are close to the worst choice available.
What the quotient is not
A reader who knows misère play will recognise the shape of this measurement, and so will a reader of how much a list of options can lose, where the question was which options of a value can go. The misère quotient of a game is built the same way: fix a pool, call two positions equivalent when no partner from the pool tells them apart, and count. Misère quotients are sometimes small and sometimes infinite, and the work of that theory is finding which.
Length-equivalence differs from that in one respect that makes its answer a foregone one: remoteness grows with the heap, and two positions of different remoteness are told apart by the empty partner. So there is no hope of a finite quotient on any game whose heaps last arbitrarily long, and the question that remains is a relative one — how much finer than remoteness length-equivalence is. The table’s answer is about twice, with splits no wider than five, and that is an answer about these eight games rather than a theorem.
It differs in a second respect as well. A misère quotient is a monoid: the classes of two sums are determined by the classes of their parts, and the classes can be multiplied. Length-equivalence is defined so that the length of a two-part sum is determined by the classes of its parts, and nothing more. Whether a three-part sum’s length is determined by its parts’ classes is a separate question, and it is not obviously yes: a third part is a third place to stall, and two classes that last the same time beside every single heap might not beside every pair.
The convention, named
Normal play, impartial, every position a heap of a subtraction game, and every sum a pair of heaps. Remoteness by the rule how long it lasts uses, which sends the winner to the shortest option of even remoteness and the loser to the longest option of any; the remoteness of a sum by the same rule on pairs, with no shortcut through the parts. Two heaps are length-equivalent when their sums with each heap of the pool last the same time, so the relation is relative to the pool and can only get finer as the pool grows; every count above is a count on a stated pool.
What the measurement does not show
That the classes stop doubling. The ratio of length classes to value-and-remoteness classes is 1.8, 2.0, 2.1 and 2.1 at the four larger pools, which is a steady number and four points of it.
That any class is the same class in a larger pool. A class is a set of heaps that no partner in the pool separates. A heap of thirty in some game might separate two heaps that are together here, so every class counted is an upper bound on how alike its members are.
And that a sum of three behaves. The relation is built from sums of two. The section above says why a third part might break it, and nothing here tests that.
Still open: whether length has a canonical form
The theorem in the middle of this essay says that a heap’s length class is decided by the classes its moves reach, and the counterexamples to the converse say that some of those moves can be removed without changing anything. Those are the two ingredients of a canonical form. For value, the subject has one: remove dominated options and bypass reversible ones until nothing more can be removed, and what is left is unique. For length nobody has written the rules, and the classes found here are the data a rule would have to reproduce — 73 classes, 27 with more than one member, 20 of those merging heaps whose moves differ.
The measurement that would test a candidate is straightforward. Propose a rule for when a move can be dropped without changing length, apply it until no more moves can go, and check whether two heaps end in the same reduced form exactly when they are length-equivalent on the pool. If that works on 200 heaps it is worth trying to prove, and canonical form is where the template for the proof is. What a value leaves out lists length as the first thing game equality discards; a canonical form for length would be the first place it was put back.
A stripped heap is a count of lengths ran that test. The rule borrowed from value drops no move at all, the direct test drops two in five and does not end in one place, and yet the stripped heap’s value, its length and a count of how long its kept moves leave things name its length class exactly, on every pool measured.
Part 5 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.
Canonical formComponentContextDisjunctive sumDominated optionEquivalenceExhaustive searchGame lengthGrundy valueQuotientRemotenessSubtraction game
- The number nobody needs disjunctive sum, exhaustive search, game length, grundy value, remoteness, subtraction game
- A live pair is two bits, and only in company context, disjunctive sum, equivalence, exhaustive search, quotient
- A pass is not a move component, disjunctive sum, equivalence, exhaustive search, grundy value
- Equal in this company canonical form, context, disjunctive sum, equivalence, exhaustive search
- No list of nimbers is enough context, disjunctive sum, equivalence, exhaustive search, quotient
- The fringe is read by a gap context, disjunctive sum, equivalence, exhaustive search, quotient