A stripped heap is a count of lengths
Assumes: What a heap must report about its moves · The parts say who wins, not how long
What a heap must report about its moves ended with a theorem, a counterexample and a proposal. The theorem: a heap’s length class — how long its sum with every partner lasts — is decided by the classes its moves reach. The counterexample: the converse is false, because twenty of the twenty-seven classes with more than one member hold heaps whose moves differ. Some moves make no difference to length in any company. The proposal was the one the subject has made before, for value:
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.
The template is canonical form. A partizan game reduces by two operations — delete a dominated option, bypass a reversible one — and the theorem that makes the reduction worth having is that it ends in one place whatever order the operations are applied in. Two games are equal exactly when their reduced forms are identical.
Run on length, the template breaks at both of its joints. The first operation finds nothing to delete. A direct replacement for it deletes a great deal and does not end in one place. And then the thing it ends in turns out to have a name that does not depend on where it ended, provided the name is chosen with care — which is the result this page is about.
The pool and the question
The pool is the one the classes were counted on: every heap from nought to twenty-four in eight subtraction games — 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. Two hundred heaps, every one put beside every one, and each of the forty thousand sums solved for its remoteness: the number of moves it lasts when the player who is winning hurries and the player who is losing stalls, by the rule how long it lasts uses. A heap’s signature is its two hundred sum lengths; two heaps are length-equivalent when their signatures agree.
A move can be dropped from a heap when the heap without it has the same signature. That is the definition of “makes no difference in any company” on this pool, and it is directly computable: take the heap, delete the move, re-solve the two hundred sums with the shortened menu, compare. The question is whether some rule cheaper than that test predicts it, and whether repeating it leaves something canonical.
The rule borrowed from value drops nothing
The value theory’s first operation compares two options of one game against each other. An option is dominated when another option of the same player is at least as good, and “at least as good” is a single comparison, because there is a single order on values.
Length has an order too, from the point of view of the player choosing. Steinhaus’s rule says the mover takes an option of even remoteness if one exists — the opponent is then losing — and prefers the shortest such; with no even option, the mover is losing and takes the longest. So a move that leaves an even length beats one that leaves an odd length, a smaller even beats a larger, a larger odd beats a smaller. A move of a heap is length-dominated if another move of the same heap is at least as good in that order beside every partner.
On 200 heaps holding 504 moves, no move is dominated. Not one, and on none of the five pool sizes measured.
The worked heap shows why, and the reason is the whole difference between value and length. The heap of four has three moves, to heaps worth ∗3, ∗2 and ∗, each of which lasts one move alone. Beside a partner worth ∗, only the move to ∗ makes the sum’s value nought, so only that move leaves the opponent losing, so only that move gives an even length; beside ∗2, the move to ∗2; beside ∗3, the move to ∗3. Each move is the winner’s move beside the partner that matches it, and the worst beside the others. Over the whole pool the three are the uniquely best of the heap’s moves beside 19, 46 and 65 partners.
A value is compared against one partner and a length against all of them. To decide whether one option of a game is at least another, the value theory looks at a single difference game, and the Sprague–Grundy theorem collapses the impartial case further, to one number. Length cannot, because which move is good depends on who is winning, and who is winning depends on the partner. The order on a heap’s moves is not fixed; it is reshuffled by every company, and a rule that waits for one move to beat another in all of them waits for ever.
The partner stands in
The same figure carries the explanation of why moves can be dropped all the same.
Beside the partners worth ∗2 and ∗3, the sum lasts three moves — shorter than any of the heap’s own moves allows. The winner does not move in the heap at all. The partner is a heap of two or three in take one, two or three, and emptying it leaves the heap of four alone, a position worth nought that lasts two: the opponent is losing and the sum ends after three moves in all. The best move in the heap would make it last five or seven. Beside those partners the heap’s moves are irrelevant, and the question of which of them is best never arises.
Beside the partner worth ∗ the heap’s move to ∗ is the best of the heap’s three and ties with emptying the partner. So the move to ∗ can be deleted and the sum still lasts three; and the same is true, for a different partner, of each of the others. A move is removable when, wherever it would be chosen, a move in the company does the same job. The value theory never needs that idea because its comparisons are made with no company present. Length cannot avoid it, because a sum is nothing but company.
Tested directly, 256 of the 504 moves can be removed one at a time, and taking them away together, as far as possible, leaves 310 — so 194 moves, a little under two-fifths, contribute nothing to length that the rest of the heap and its company do not already supply. The proportions are steady across pool sizes: 106 of 228 removable singly at heaps up to twelve, 295 of 596 at twenty-eight.
“One at a time” and “together” are different numbers for a reason that matters next. The heap of four can lose any one of its three moves. It can lose any two of them. It cannot lose all three, and so which two it loses is a choice.
Stripping is not confluent
A smallest kept set is a set of a heap’s moves that preserves its signature and from which no further move can be removed. The canonical-form theorem for value says, in this language, that the smallest kept set is unique: whatever order dominated options are deleted and reversible ones bypassed, the result is the same game.
For length it is not. Thirty-eight of the 200 heaps have more than one smallest kept set, and the alternatives reach different length classes. The heap of four in take one, two or three keeps the move to three, or the move to two, or the move to one: any single move suffices and no single move is forced. The heap of fifteen in the squares game keeps a move to fourteen, worth ∗2, or to eleven, worth ∗, or to six, worth ∗; all three last three moves.
The thing to notice is what the alternatives share. In every one of the 38 heaps, the alternative kept sets leave heaps whose lengths agree and whose values do not. The choice the stripping offers is always a choice between values, never between lengths. That is the observation the rest of the measurement turns on, because it says which feature of a kept move a canonical record may safely forget.
It is also, read the other way, the reason the counterexamples of the last essay existed. A heap whose moves reach different classes from another heap’s can still be length-equivalent to it because the moves that differ were never doing anything — and among the moves that are doing something, which particular heap of a given length is reached is arbitrary.
Six records
A reduction that does not end in one place can still be useful if the place it ends in can be described in a way that does not depend on the route. So the question changes from what is the stripped heap? to what should be written down about it? Each candidate record writes the heap’s own length beside something about its kept moves, and is scored three ways: whether a heap could be given two different records by choosing different kept sets; whether any record holds heaps of two classes; whether any class holds heaps with two records.
The first record is the obvious transplant from value: the class each kept move reaches. It never merges two classes, which follows from the theorem that moves’ classes decide a heap’s class. It is ambiguous on all 38 heaps above, and even with a fixed rule for which alternative to take it splits four classes into more than one record. Recording each kept move by its own stripped record, recursively, is worse: still ambiguous on 38 heaps, and splitting twelve classes, because the alternatives’ differences reappear at every level.
The second family forgets what the alternatives disagree about. The set of lengths the kept moves leave is never ambiguous — that is the shared-lengths observation, measured — and never splits a class. It merges nine pairs of classes. Most of those merges are two heaps of one length and different values, which nothing about length could separate; the heap’s value is something every heap reports anyway, for the winner’s sake, and adding it brings the merges to three.
The last of the six is the same as the one before it with a single change: the lengths are counted rather than collected. The record is the heap’s value, its length, and how many of its kept moves leave a heap of each length — a multiset rather than a set. It is never ambiguous. It never merges. It never splits. It writes 73 records for 73 classes.
What the count catches
The three merges the set of lengths makes show exactly what the count adds, and they are three versions of one pair.
The heap of two in take one, two or three is worth ∗2 and lasts one move. Its smallest kept set is both its moves: to a heap of one, lasting one, and to nothing. The heap of four in take one, three or four is also worth ∗2 and lasts one. Its smallest kept set has three moves: to nothing, to a heap of one, lasting one — and to a heap of three, which also lasts one.
That heap of three is a familiar one. It is the deviant what a heap must report about its moves drew: worth ∗ and over in one move alone, like every heap of one, but with a second move to a heap of two that is worth nought and lasts two — a stall that a losing player in a sum can use. A heap that keeps a move to it alongside a move to a plain heap of one has two places to go that both last one move, and those two places are not the same. The set of lengths writes them once. The count writes them twice. Beside a partner of two in take one, two or three the two heaps’ sums last four moves and six.
The count does not know that one of the two places is a deviant. It knows only that the stripped heap needed both — that neither could be removed without changing a length somewhere. That is enough, on this pool, because stripping has already discarded every move that was not doing distinct work, so whatever is left and shares a length with a sibling is there because it differs from that sibling in a way the signature can see.
Why the stripping is doing the work
The last row of the first figure is the control. Take the same count — value, length, and how many moves leave a heap of each length — before anything is removed, and it merges seven pairs of classes and splits twenty-two.
The splits are the easier half to see. The twelve heaps drawn are one length class, worth nought and lasting four. Before stripping they have between two and five moves each — two moves lasting three, three moves lasting three, or in two cases moves lasting one beside the moves lasting three — so their counts of lengths come in four different shapes. After stripping each has exactly one kept move, to a heap lasting three: the count is the same for all twelve. Recorded instead by the class of that one move, they give four records, because a heap of length three can be worth ∗, ∗2, ∗3 or ∗5 and be in different classes accordingly, and any of them serves.
The merges are the other half. Unstripped, a heap can carry a move whose length duplicates another’s and which does nothing; counted, it inflates the multiset; and another heap can carry a different useless move that inflates it the same way. Stripping removes exactly the moves that would have corrupted the count, which is why the count is exact after it and wrong before.
So the reduction is not confluent and is still the essential step. What it produces is not unique, and what it produces has a description that is.
Five pool sizes
A record that is exact on one pool might be exact by the accident of that pool’s edge. The classes are relative to the pool and only get finer as the pool grows, so a record that fits 73 classes might fail to fit the next size’s 87.
At heaps up to twelve there are 34 classes and the count writes 34 records; at sixteen, 46 and 46; at twenty, 62 and 62; at twenty-eight, 87 and 87. On none of the five pools is any heap given two records, and the count before stripping fails on every one. The heaps with more than one smallest kept set run at about half the number of classes throughout — 17, 25, 30, 38, 43 — so the non-confluence is not an edge effect that the larger pools are leaving behind. It grows with the subject, and the count keeps up with it.
The convention the result depends on
Normal play, impartial heaps of eight subtraction games, sums of exactly two heaps. Length is remoteness under Steinhaus’s rule: the winner takes the shortest even option, the loser the longest option of any parity. Two heaps are length-equivalent when their sums with every heap of the pool last the same time, so every class, every removable move and every record is relative to a stated pool — a heap of thirty could separate two heaps that nothing here separates, and could make a move that is removable here necessary. “Removable” means removable by direct test against the pool; the stand-in explanation above is a reading of the worked heap, not a rule that was used to find the others.
What the measurement cannot show
A proof. Exactness on five nested pools of eight games is evidence, and its shape is suggestive, but nothing here explains why the count of kept lengths should determine every sum’s length. A proof would have to show that two stripped heaps with the same value, length and count respond the same way to every partner, which is a statement about how kept moves interleave with a partner’s moves, and the pool cannot make it.
Games outside the family. Every heap here belongs to a subtraction game, whose positions are a line and whose moves never split a heap. Octal games, whose moves can split a heap in two, produce positions that are sums already, and whether the count of kept lengths survives that is untested.
And the stripping itself is a search. The record is cheap once a heap is stripped, but finding a smallest kept set here means trying subsets of moves and re-solving two hundred sums for each. The borrowed rule would have been local; the rule that works is not. What a local rule for removability would look like — perhaps “a move is removable if the heap keeps another move of the same length whose value can be matched by a partner” — is exactly what the stand-in reading suggests, and it has not been stated precisely or tested.
Still open: whether three heaps respect the count
Everything measured about length so far has been about sums of two heaps. The classes are defined by them, the stripping preserves them and the count is exact for them. The number nobody needs and a compound of two different games found the other compounds’ rules surviving every mixture they were tried on, but those rules read one number per component; length reads a multiset, and a third heap is a third place to stall.
The measurement is direct. Take two heaps with the same count of kept lengths, add each to every pair of heaps from the pool — 20,100 partners rather than 200 — and ask whether the sums still last the same time. If they do, the count is a congruence for the disjunctive sum, and misère quotients is the closest thing the subject has to a template for what to do with one. If they do not, length-equivalence on pairs is not length-equivalence on sums, and what a value leaves out has a sharper entry: length is not merely discarded by game equality but is not an invariant of the sum at all.
Part 6 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 formContextDisjunctive sumDominated optionEquivalenceExhaustive searchGame lengthGrundy valueQuotientRemotenessReversible optionSubtraction game
- What is left when the small change is thrown away canonical form, disjunctive sum, dominated option, equivalence, exhaustive search, reversible option
- A live pair is two bits, and only in company context, disjunctive sum, equivalence, exhaustive search, quotient
- 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
- The same parts, different wholes canonical form, context, disjunctive sum, equivalence, exhaustive search