Sums and comparison

A third heap finds what two could not

Two heaps are length-equivalent when, beside every partner, their sums last the same time — 73 classes among 200 heaps of eight subtraction games. A congruence would have to survive a third heap, and this one does not: 52 of the 548 equivalent pairs come apart beside some pair of partners, and 73 classes become 81. Every split is a heap of take a Fibonacci number breaking away from its class. Leave that one game out and the classes hold beside every pair of partners and every triple tested.

Assumes: A stripped heap is a count of lengths · What a heap must report about its moves

A stripped heap is a count of lengths found a name for a heap’s length class. Strip away every move whose removal changes no sum’s length, and write down the heap’s value, how long it lasts, and how many of its kept moves leave a heap of each length: that record is exact, one record for each of the 73 classes among 200 heaps of eight subtraction games, and on four other pool sizes besides. It ended on the one question everything measured so far had dodged. All of it was about sums of two heaps.

That matters because of what an equivalence is for. Two heaps are length-equivalent when, beside every heap of the pool, their two-heap sums last the same number of moves — the winner hurrying and the loser stalling, by the rule how long it lasts sets out. If that equivalence is going to support a theory of length in the way game equality supports a theory of value, one heap must be replaceable by an equivalent one in any sum, not only in a sum of two. That is what it means for an equivalence to be a congruence: if h and h′ are equivalent, then h + p + q and h′ + p + q must last the same time for every p and q. Value has this for free, because the Grundy value of a sum is the exclusive-or of the parts’. Length reads a whole position, not one number per part, and nothing promised it.

It fails. And the way it fails is narrow enough to be almost a result in its own favour.

Two heaps that agree, put beside two partners

The test is direct. The pool is the one every essay on length has used: heaps from nought to twenty-four in 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; and a Fibonacci number up to eight. Every sum of three heaps from the pool — of any three games, in any combination — is solved by the winner-hurries, loser-stalls rule, by working up from the empty heaps. Then, for every pair of heaps the two-heap test calls equivalent, every one of the 20,100 pairs of partners is tried.

A third heap splits the length classes. For pools of eight subtraction games up to heaps of 12, 16, 20, 24 and 28: the number of length classes by two-heap sums and by three-heap sums, how many equivalent pairs a third heap separates and how many classes split. On the pool to 24, 52 of 548 equivalent pairs separate and 73 classes become 81.
Fig. 1 Length classes by two-heap sums and by three-heap sums on five pools. On every pool some pairs of heaps that last alike beside every single partner come apart beside some pair of partners: on heaps up to 24, 52 of 548 equivalent pairs separate and 73 classes become 81. The count of kept lengths, exact for pairs, merges every class a third heap splits.

On heaps up to twenty-four there are 548 pairs of heaps in the same two-heap class. A third heap separates 52 of them. Eight of the 73 classes split, and the classes by three-heap sums number 81. A third heap never merges two classes, and cannot: a pair of partners one of which is an empty heap is just a single partner, so anything three heaps call equal, two heaps already did. The classes by triples are a refinement, and a strict one.

The same thing happens at every size of pool. On heaps up to twelve, 34 classes become 37; at sixteen, 46 become 50; at twenty, 62 become 67; at twenty-eight, 87 become 95. The number of split classes grows with the pool, from three to eight, roughly in step with the number of classes.

So length-equivalence is not a congruence for the disjunctive sum. The heap record that the previous essay found exact is exact for a relation that is not preserved by adding a heap. On every pool it merges exactly the classes that split, because it was built to match the pair classes and the pair classes are now too coarse. The record is not wrong about what it was measured against. It was measured against the wrong thing, or rather against the first of an unknown number of things.

One heap leaves, every time

The split classes have a shape that the numbers in the table do not show.

The heap that breaks away. The eight length classes of the pool of heaps up to 24 that three-heap sums split. In every one, a single heap of the game take a Fibonacci number separates from the others, which stay equivalent beside every pair of partners.
Fig. 2 The eight length classes a third heap splits, on heaps up to 24. Each class holds heaps whose two-heap sums last alike beside all 200 partners. Beside some pair of partners exactly one member breaks away, and it is a heap of take a Fibonacci number every time; the rest of the class stays together.

In every one of the eight, exactly one heap breaks away, and it is a heap of the game take a Fibonacci number — one, two, three, five or eight counters. The class of heaps worth nought that last four moves holds twelve heaps from seven games; beside some pairs of partners, the Fibonacci heap of ten comes apart from the other eleven, and the eleven stay equivalent beside every pair. The class worth ∗\ast lasting five loses the Fibonacci heap of eleven; the class worth nought lasting six loses the Fibonacci heap of fourteen; and so on down to two classes of only two heaps, each a Fibonacci heap beside a heap of take one or four.

That is not what a congruence failure usually looks like. A relation that fails to be preserved by addition typically fails everywhere a little — classes fraying at every edge, the refinement scattering its members. Here the refinement is surgical: each split takes one heap out, it is always the same game’s heap, and nothing else in the class moves.

Seven or seventeen in the Fibonacci game

The partners that do the separating are as concentrated as the heaps they separate.

Which pairs of partners do it. Of the 20,100 pairs of partner heaps, the 26 that make some two length-equivalent heaps last different times, with how many equivalent pairs each separates. Every one includes a heap of take a Fibonacci number, and all but two a heap of it worth ∗3.
Fig. 3 All the pairs of partners, of 20,100, that make some two length-equivalent heaps last different times, with how many of the 52 separated pairs each separates. Every one contains a heap of take a Fibonacci number, and all but two of them a heap worth ∗3 — seven or seventeen counters.

Of the 20,100 pairs of partners, only 26 separate anything at all. Every one of them contains a Fibonacci heap. In twenty-four of them that heap is worth ∗3\ast 3: the Fibonacci heap of seven or of seventeen. The other partner is typically a heap worth ∗\ast — three, ten, seventeen or twenty-four in take one, three or four, eleven in the squares — or a squares heap worth nought. The two exceptions pair the Fibonacci heap of five with the Fibonacci heap of nine or nineteen, which are worth ∗5\ast 5.

So a separation needs a Fibonacci heap on both sides: one in the class, breaking away, and one among the partners. A Fibonacci heap among the partners alone does nothing to two non-Fibonacci heaps of the same class, and a Fibonacci heap in the class does nothing beside partners from the other games. Whatever the Fibonacci game’s heaps carry that the length class does not record, it is only visible to another heap of the same game.

Where the two lines part

The smallest instance can be played through. Eight counters in take one, two or three and ten in take a Fibonacci number are in the same class: both are worth nought, both last four moves alone, and beside every one of the 200 heaps of the pool their sums last the same time. Put each beside three counters in take one, three or four and seven in take a Fibonacci number.

Where the two lines part. Lines of play in two three-heap sums under the winner-hurries, loser-stalls rule. Eight in take one, two or three plus three in take one, three or four plus seven in take a Fibonacci number lasts 11 moves; ten in take a Fibonacci number in place of the first heap lasts 9, because its first move takes eight counters at once.
Fig. 4 The lines of play of the two sums, winner hurrying and loser stalling. With eight in take one, two or three, the sum lasts eleven moves; the first four are spent bringing that heap down to one. With ten in take a Fibonacci number, the player to move takes eight at once and the same ground is covered in two moves; the sum lasts nine.

The player to move wins both sums: the three heaps are worth nought, ∗\ast and ∗3\ast 3, which exclusive-or to ∗2\ast 2. In the first, the winner and the loser between them take four moves to bring the heap of eight down to one — the winner taking two, the loser stalling with one, the winner taking three, the loser one. In the second, the winner takes eight counters in a single move, the loser takes one, and the heap is at one after two moves instead of four. From there the two lines are identical, move for move, and the sums last eleven and nine.

The heap of ten has a move — take eight — that the heap of eight in take one, two or three has nothing like. In a sum of two, that move never gets the chance to matter: whatever partner the heap is beside, the winner’s fastest line and the loser’s slowest one give the same total either way, which is what being in the same class means. In a sum of three, the move lets the winner skip a stretch the loser would otherwise have spent stalling in that heap, and the third heap supplies the reason the stalling would have happened there rather than somewhere else.

That is an explanation of one sum, read off its line of play, and not a proof of anything. It is suggestive in a specific way: the take-eight move is the only move in the pool’s games longer than five, and the Fibonacci game is the only one in which a heap can lose more than five counters at once. Why a shortcut of that size should be invisible beside one partner and visible beside two is the question the measurement leaves.

Leave the Fibonacci game out

The concentration suggests a control, and the control is decisive.

One game does all the splitting. Length classes by pairs and by triples on the pool of eight subtraction games up to 24, with each game left out in turn, and on pools of the Fibonacci game with one other. Only when take a Fibonacci number is left out does no class split.
Fig. 5 Length classes by pairs and by triples with each game left out of the pool in turn, heaps up to 24, and on pools of the Fibonacci game with one other. Each pool’s classes are recomputed on that pool alone. Only when take a Fibonacci number is left out does no class split; paired with one other game, Fibonacci fails beside take one, three or four, take one or four and the squares.

Take the Fibonacci game out of the pool and recompute everything on the 175 heaps of the other seven. There are 61 classes by two-heap sums and 61 by three-heap sums: not one pair of equivalent heaps comes apart beside any pair of partners. Leave out any other single game instead and between six and eight classes still split. Paired with exactly one other game, the Fibonacci game passes beside take one, two or three, one or two, two or three and two, four or five, and fails beside take one, three or four, take one or four and the squares. So it is not the Fibonacci game alone: it is the Fibonacci game in company with games whose own heaps have a particular pattern of values, the ones whose heaps worth ∗\ast or nought pair with it in the partner table.

A seven-game pool on which the pair classes are the triple classes is not a proof that they are a congruence there. A fourth heap could find what a third does not, as a third found what a second did not. So the last test is a fourth heap.

A fourth heap

A table of every four-heap sum is much larger than a table of three, so the fourth heap was tried on smaller pools: heaps up to twelve with all eight games, and up to twelve and up to sixteen with the Fibonacci game left out.

A fourth heap splits again, and not without Fibonacci. Length classes tested with four-heap sums on small pools. With all eight games and heaps up to 12, a fourth heap separates 9 of 286 pairs equivalent by triples. Without take a Fibonacci number, on heaps up to 12 and 16, it separates none: the pair classes hold at two, three and four heaps.
Fig. 6 Length classes tested with four-heap sums. With all eight games and heaps up to 12, a fourth heap separates 9 of 286 pairs that every triple left equivalent. Without take a Fibonacci number, on heaps up to 12 and up to 16, it separates none: the classes by pairs are the classes by triples and by quadruples.

With all eight games in the pool, a fourth heap finds more. Nine of the 286 pairs that the three-heap test leaves equivalent come apart beside some triple of partners, and these are not Fibonacci heaps breaking away: nine in take one, two or three separates from eight in take one, three or four, beside two in take one, two or three, three in take one, three or four and five in the Fibonacci game. The Fibonacci heap has moved from the class to the partners, and it is still in every witness. The regress that the three-heap test opened continues with four.

Without the Fibonacci game it does not. On heaps up to twelve and up to sixteen of the other seven games, no pair of equivalent heaps comes apart beside any triple of partners. The pair classes are the triple classes and the quadruple classes, on both pools.

That reshapes the finding. There is a large family of games on which length-equivalence behaves like a congruence, as far as sums of four heaps on these pools can tell — the seven games here, every game in the pool but one, on which a heap’s length is not decided by its parts’ lengths and is still decided by its class. And there is one game, among those measured, that breaks it, and keeps breaking it at every size of sum tried: the one whose rule allows a move of eight. On the seven games, the count of kept lengths names the classes for sums of any length tested. With the Fibonacci game included, it names the classes for pairs only, and what the classes for triples need is a further record no one here has found.

The surprising part is that one game carries it

What is surprising is not that the congruence fails. Length is a richer quantity than value — what a value leaves out is about exactly that — and there was never a theorem promising that two-heap equivalence would survive a third heap. What is surprising is that a property of a relation on a pool of eight games turns out to be a property of one of them, as cleanly as if the measurement had been designed to find it.

The nearest thing in the subject is the misère quotient. Under the last-move-loses rule, sums of Nim heaps can be handled with a finite algebra exactly when the heaps involved stay inside a tame class, and one wild heap in a sum breaks the algebra for the whole sum; misère quotients describes how the quotient grows as wilder heaps are let in. The Fibonacci heaps here behave like the wild heaps there: inside the seven-game family the equivalence on pairs looks like the whole story, and letting in one game whose heaps carry something the pair test cannot see makes the classes depend on how many heaps are in the sum. A universe grows by days found a staircase of the same shape for partizan values, where each layer of company sees one day further and blurs what is beyond it. Here it is the number of heaps in the company, not their birthday, that sets how fine the classes are — but only once the Fibonacci game is present.

The convention, and the pools

Normal play, impartial heaps, the disjunctive sum. Length is remoteness under Steinhaus’s rule: the player who can win moves to the option of least even remoteness, the player who cannot moves to the option of greatest remoteness; a position with no moves has remoteness nought. Remoteness is odd exactly when the player to move wins, so the parity of a sum’s length is the exclusive-or’s verdict and never in question — every separation here is by an even number of moves, two in the worked case.

Every class is relative to a pool: two heaps are equivalent when their sums with every heap of the pool, or every pair or triple of heaps of the pool, last the same time, so a larger pool can only refine the classes. The pools are every heap up to a bound in each of the eight games. Three-heap sums of every combination of games are solved exactly by working up from the empty heaps; four-heap sums are solved the same way for every combination of games, on the smaller pools, which is why the fourth heap was only tried on heaps up to sixteen.

What the tables cannot show

Why the Fibonacci game. The control shows the failure needs it; the worked line suggests the move of eight is what does the work. Neither says why a long move is invisible beside one partner and visible beside two, and the obvious experiment — the Fibonacci game with eight removed, or another game with one long move — was not run.

That the seven games give a congruence. The test reaches four heaps and heaps up to sixteen. A congruence is a statement about sums of every size and every heap, and a fifth heap, or a heap of thirty, could separate what nothing here does — exactly as the third heap separated what two-heap sums on this pool could not.

What the extra record is. On the full pool, the three-heap classes are finer than anything the stripped record writes down. Whether a record exists that names them — the count of kept lengths with something about the long moves added — or whether the classes for sums of k heaps keep refining with k and no finite record suffices, the tables do not say.

Still open: what a long move adds

The cleanest next measurement is the one the control points at. Replace the Fibonacci game with its own variants — take one, two, three or five, with the eight removed; take one, two, three, five or seven; or a game with a single long move, such as take one, two or six — and rerun the triple test on each, both alone with the seven well-behaved games and in pairs with them. If the failures follow the long move, the property of a game that decides whether its heaps respect length-equivalence in sums is a property of its move set that can be read off the rule, and the seven-game family is the family of games whose moves are short enough not to let a winner skip a loser’s stall. If they do not follow it, then the Fibonacci game’s heaps carry something else — perhaps a pattern in which of their lengths are reached by which moves — and the count of kept lengths needs a companion that records it. Either answer would say what a heap has to report about its moves for its length to be known in any company, which is the question what a heap must report about its moves began with.

Part 7 of 8

One argument about Remoteness. 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.

ContextCounterexampleDisjunctive sumEquivalenceExhaustive searchGame lengthGrundy valueQuotientRemotenessSubtraction game