Generator

A position is the sum of its parts

A position is the sum of its parts
A position is the sum of its parts. Four separate Hackenbush sprigs. A move is a move in one of them, so the position is their disjunctive sum, and its value is the sum of their values. Which part to play in is the entire decision, and the values are what makes it decidable.

Four separate Hackenbush sprigs. A move is a move in one of them, so the position is their disjunctive sum, and its value is the sum of their values. Which part to play in is the entire decision, and the values are what makes it decidable.

14 essays call sum-of-parts. The drawing above is what it returns with no arguments at all; every call below passes it something, because a placement that passes nothing draws whichever member of the family the generator happens to default to rather than the one its essay argues about.

The positions it draws

39 distinct positions, harvested by running this generator again at the options each essay passed it.

PositionWorth OutcomeDrawn in
E N How many ups · Squash every loop to a point · Hackenbush is a numeral · Three ways to add the same games · Outcomes do not add · The other sum, the one that nests · The sum is the object
LL 2 L Squash every loop to a point · Hackenbush is a numeral · Nothing worth fighting over · Three ways to add the same games · Outcomes do not add · The numbers came out of the game · The simplicity rule · The sum is the object
LL + R + LRR + E 5/4∗ L Three ways to add the same games · Outcomes do not add · The sum is the object
LR 1/2 L Canonical form · Comparing positions · Squash every loop to a point · Hackenbush is a numeral · Nobody comes back · Nothing worth fighting over · The numbers came out of the game · The other sum, the one that nests · The reading that survives too much · The simplicity rule · The sum is the object · The values nobody's game produces · What the colon respects
LR + RL 0 P The sum is the object
LRR 1/4 L Squash every loop to a point · Hackenbush is a numeral · Nothing worth fighting over · Three ways to add the same games · Outcomes do not add · The numbers came out of the game · The other sum, the one that nests · The reading that survives too much · The simplicity rule · The sum is the object · The values nobody's game produces
R −1 R Three ways to add the same games · Outcomes do not add · The other sum, the one that nests · The sum is the object
RL −1/2 R The other sum, the one that nests · The sum is the object
{{1|1} | 0} {1∗ | 0} N Cooling adds and heating does not
{↑ | −1/2} {↑ | −1/2} N What a number does to a fight
{∗2 | −1/2} {∗2 | −1/2} R What a number does to a fight
{∗2 | −2} {∗2 | −2} R What a number does to a fight
{1 | ∗} {1 | ∗} L Cooling adds and heating does not · The birthday of a sum · The fight never runs backwards
{2 | {1 | −1}} {2 | {1 | −1}} L A number and a fight · What a number does to a fight
{2 | {1 | 0}} {2 | {1 | 0}} L What a number does to a fight
* N Two people, four years apart, one theorem
L A number and a fight · The class where nobody runs out first · Below zero · Cooling adds and heating does not · Cooling by exactly one · Equal in every company · Turn the board through a right angle · Infinitesimals · Misère play has no negatives · Nobody has to move · Nobody wants to move here · One part that never ends · Three ways to add the same games · Outcomes do not add · The birthday of a sum · The company that is closed · The fight never runs backwards · The simplest game above both · The sum is the object · Toads and Frogs · What a number does to a fight · What a wider pool rescues · What an infinitesimal does to a fight · What can be struck out · What is left when the small change is thrown away · When the ups add · Which part to move in · Who moves last
↑ + ⇓ R The sum is the object
↑∗ ↑∗ N Infinitesimals · Nobody has to move · Nobody wants to move here · Outcomes do not add · The fight never runs backwards · Toads and Frogs · Two misère outcomes are not enough · What a number does to a fight · What an infinitesimal does to a fight · When the ups add
L Infinitesimals · Outcomes do not add · Toads and Frogs · What a number does to a fight · What an infinitesimal does to a fight · When the ups add
R The sum is the object · When the ups add
N A move that must be answered · A number and a fight · A rule with no promise at all · A self-negative value costs a day · At least five hundred and seventy-one · Below zero · Cooling adds and heating does not · Cooling by exactly one · Equal in every company · Equal in this company · Turn the board through a right angle · Fifty-two errors and seven sizes · How hot a day gets · How rare it is to be bigger · Infinitesimals · Misère play has no negatives · Nobody has to move · Nobody wants to move here · Nothing worth fighting over · Numbers avoid numbers · One part that never ends · Three ways to add the same games · Outcomes do not add · The birthday of a sum · The company that is closed · The fight never runs backwards · The first theorem, and the winner it declines to name · The other way to move a row · The simplest game above both · The thirty that cancel themselves · The values that are their own negatives · Three players and no answer · Toads and Frogs · What a number does to a fight · What a wider pool rescues · What an infinitesimal does to a fight · What can be struck out · What is left when the small change is thrown away · When the ups add · Where the impartial theory stops · Where the order and the sum disagree · Which part to move in · Who moves last · Start at the end and work backwards
∗ + {1 | ∗} + {{1|1} | 0} 1∗ L Cooling adds and heating does not
∗ + ∗2 + ∗3 0 P A move that must be answered · Which part to move in
∗2 ∗2 N A move that must be answered · At least five hundred and seventy-one · Equal in every company · Equal in this company · Turn the board through a right angle · Misère play has no negatives · The fight never runs backwards · The simplest game above both · The sum is the object · The thirty that cancel themselves · The values that are their own negatives · Two misère outcomes are not enough · When the ups add · Where the impartial theory stops · Which part to move in
∗2 + ∗3 N The sum is the object · When the ups add
∗3 ∗3 N A move that must be answered · Equal in every company · Turn the board through a right angle · Misère play has no negatives · The sum is the object · Which part to move in
0 0 P A rule with no promise at all · A self-negative value costs a day · An option nobody would take · At least five hundred and seventy-one · Equal in every company · Fifty-two errors and seven sizes · How rare it is to be bigger · Nobody has to move · Nothing worth fighting over · The fight never runs backwards · The first theorem, and the winner it declines to name · The operator that puts the star back · The other way to move a row · The simplest game above both · The thirty that cancel themselves · The values that are their own negatives · Three players and no answer · Two people, four years apart, one theorem · What is left when the small change is thrown away · When a switch is not a switch · Where the order and the sum disagree · Who moves last · Start at the end and work backwards
1 1 L A rule with no promise at all · Cooling adds and heating does not · How rare it is to be bigger · Misère play has no negatives · Nobody wants to move here · Numbers avoid numbers · One part that never ends · The fight never runs backwards · The first theorem, and the winner it declines to name · The other way to move a row · The sum is the object · The values that are their own negatives · Three players and no answer · Which part to move in · Who moves last · Start at the end and work backwards
1 | −1 1 | −1 N A self-negative value costs a day · At least five hundred and seventy-one · The fight never runs backwards · The thirty that cancel themselves · The values that are their own negatives · What a number does to a fight · Where the order and the sum disagree
1/2 | −1/2 1/2 | −1/2 N Nobody wants to move here · What a number does to a fight
2 | −2 2 | −2 N A self-negative value costs a day · The thirty that cancel themselves · The values that are their own negatives · What a number does to a fight · Where the order and the sum disagree
2 | 0 2 | 0 N Nobody wants to move here · What a number does to a fight · What an infinitesimal does to a fight
3 3 L Two people, four years apart, one theorem
3 + * + 0 3∗ L Two people, four years apart, one theorem
4 | −4 4 | −4 N What a number does to a fight
clobber 1×3 xxo L The sum is the object
clobber 1×3 xxo + green E + 1 1↑∗ L The sum is the object
green E N The sum is the object · Which part to move in

Where it is called

Changing this generator changes every one of these figures.

A position is the sum of its parts. Four separate Hackenbush sprigs. A move is a move in one of them, so the position is their disjunctive sum, and its value is the sum of their values. Which part to play in is the entire decision, and the values are what makes it decidable. Sums and comparison

The sum is the object

Real positions come apart into independent regions, and a move happens in exactly one of them. That operation — the disjunctive sum — is what the whole theory is built to survive, and it is the reason values exist at all.

Knowing who wins is not enough. Three pairs of positions, every one of which is in outcome class N on its own. Their sums are not all the same, and not all in the same outcome class — so the outcome of a sum cannot be worked out from the outcomes of its parts, and that is why the theory needs values. Sums and comparison

Outcomes do not add

Knowing who wins each part of a position tells almost nothing about who wins the whole. Counted over every sum of two values born by day two, six of the outcome table's ten entries are settled and four are not — and every settled one is settled by the order rather than by anything about outcomes. Two first-player wins reach all four classes between them.

The mex, and the rules that cannot replace it. Six candidate rules for the value of an impartial position, each a function of its options' values, run over the same subtraction game. The top strip is the truth. Every candidate but the mex assigns zero to a position somebody wins, or a non-zero value to a position somebody loses, and the circle marks the first heap where each one does it — which is why two people reaching for the same rule four years apart is evidence about the rule rather than about them. How it was found

Two people, four years apart, one theorem

Roland Sprague proved it in 1935 and Patrick Michael Grundy proved it in 1939, neither knowing of the other. That looks like coincidence until the alternatives are examined — and the rule they both reached turns out to be the only one that can work at all.

Three ways to add the same games. One list of components, added three different ways. Under the disjunctive rule a move is a move in exactly one part; under the conjunctive rule it is a move in every part at once, and play stops as soon as any part runs out; under the selective rule it is a move in any non-empty set of parts. The outcomes are computed by search from each rule's own definition. Sums and comparison

Three ways to add the same games

A move in exactly one component is a choice, not a law. Move in every component at once and the game is different; move in any set of them and it is different again. The same two positions, added three ways, give three different answers — and only one of the three has values that add.

Top Entails, one heap at a time. Each heap with the outcome of playing it alone, the Grundy value an ordinary solver would give it, and the moves that win from it. Taking the top coin of a heap forces the opponent to answer in that heap, which is a kind of move no other game on this site has. Where it stops

A move that must be answered

Every argument on this site about sums assumes the parts are independent: a move in one leaves the others alone, and the reply may go anywhere. Top Entails denies it — take the top coin of a heap and the opponent must answer in that heap. The nim-sum then misreads 9 of 36 two-heap positions, and two heaps of two coins are a first-player win, which no impartial game the theory covers can be.

Every day-three value, moved by every quarter. Four claims counted over 3,000 translations — 120 values, each moved by every quarter from −3 to 3: that adding a number leaves the temperature alone, that it shifts both stops by exactly itself, that the interval between the negated stops is where the two players are confused, and that the only failures of the last are on its endpoints. Sums and comparison

What a number does to a fight

Adding a number to a position moves everything and changes nothing: over three thousand translations the temperature never once shifted and both stops moved by exactly the number added, every time. What the number decides is whether the fight is worth having — and the interval where the two players are confused is exactly the open interval between the negated stops, right in all 2,890 cases away from its endpoints and wrong in 110 that are all on them.

Which of the two operators distributes over a sum. Cooling and heating, each asked whether applying it to a sum is the same as applying it to the parts and adding. The pools are the values born by day two and a set of deliberately hot positions; the counts are of ordered pairs. Temperature

Cooling adds and heating does not

The two operators are presented as a pair, and they are not one. Cooling a sum is the same as cooling the parts and adding, on every one of the 1,768 pairs tried, at two taxes and on two pools. Heating fails on 263 — and not for the obvious reason: in every failure neither part and not the sum is a number, so the clause exempting numbers never fires at the top. It fires two levels down, where an option of a sum is one part's option plus the whole of the other.

Seven infinitesimals, added to a whole day. Each row adds one infinitesimal to every value born by day three. The stops never move — that is what being smaller than every number means — the temperature moves a handful of times, and the outcome class moves in a quarter of the additions. Sums and comparison

What an infinitesimal does to a fight

Adding a number moves both stops by exactly itself. Adding something smaller than every number moves neither — across 10,318 additions to a whole day of values, not once — and the outcome class changes anyway, 2,622 times. It changes at exactly one kind of position: the ones with a stop sitting on zero, which is where the numbers have run out of things to say.

The stops stop working. Adding a switch to each of 120 day-three values, and asking whether the two stops of the sum are the sums of the two stops. They are on 330 of 720. Sums and comparison

What a fight does to a fight

A number added to a position shifts both its stops by itself; an infinitesimal moves neither. A hot game does neither: over 720 sums the two stops add on 330 and are wrong on the rest. What survives is the mean, which adds on every one of the 720 — and the failure has a bound, since no stop is ever out by more than twice the smaller of the two temperatures, a bound 222 of the sums attain exactly.

The bound that needed no third number. The rung below's bound and the conjectured replacement, scored over 1,440 sums whose addend has a follow-up. The two-number bound holds everywhere and is attained; the three-number one fails. Sums and comparison

A bound with one number too many

The rung below bounded how far a hot addend can drag a stop — twice the smaller of the two temperatures — over sums whose addends were all plain switches, and conjectured that an addend with a follow-up would need twice the smaller of three numbers. Over 1,440 sums with bent addends the two-number bound holds everywhere and is attained 358 times, and the three-number version fails on 66.

Which end, in four lines. The complete rule for where a sum's error lands, exact on every pair in the census. Three of its four cases are decided by the value being translated alone. Sums and comparison

Which end a sum lands at

The rung below found the errors in a translated stop clustered at the two ends of the range its bound allows — 660 at nought and 358 exactly on the bound — and asked for a rule saying which end a given pair lands at. There is one, in four lines, exact on all 1,440 sums. Three of the four cases are decided by the value being translated alone, and the property that decides them is the bend the switches ladder found for a different question entirely.

One quantity, two currencies. Each bent value with how far its temperature falls short of its stop reading and how far its stop falls short of the translation bound. The second is exactly twice the first. Sums and comparison

The same number in two currencies

The rung below found bent-walled values falling strictly inside the translation bound and asked how far. The shortfall is the value's own hottest follow-up's temperature — exactly, on 400 of 408 pairs, and twice it on the other eight — which makes the whole error one expression. And it is the switches ladder's constant: a half there and a whole here, because a temperature is half a stop gap.

The census, closed. The three classes of the translation census with the expression each obeys, scored over all 1,440 pairs. Sums and comparison

Where the value stops mattering

Fourteen straight-walled pairs missed the bound on a translated stop and had only a threshold to explain them. Their stops move by exactly the addend's temperature — a formula with the value nowhere in it — which turns the threshold into the boundary between two lines and closes a census of 1,440 pairs that has been open for four rungs.

The bound survives and the rule does not. The census against the widened sweep, with the bound and the two-line rule scored separately on each. Sums and comparison

One expression proved, and one withdrawn

The census closed with three expressions exact on 1,440 pairs, and the rung above asked for derivations. The cold one has a four-line proof. The straight one has a threshold the census cannot determine — any constant between 4/3 and 3/2 fits it — and eight more addends of the same family break it on 38 pairs while leaving the bound above it untouched.

The whole library · The position index · The figures that play back