Values

When a switch is not a switch

A position {a | b} with numbers on both sides is a fight only while a is above b. Sweeping the boundary with a fixed at 2 and b climbing from −2 to 3 turns up three regimes rather than the two the definition suggests: eight fights whose temperature is exactly half the gap, one position at a = b that is 2∗ and is not a number, and beyond that numbers chosen by the simplicity rule — which on 8 of 12 sampled cases is not the midpoint.

Assumes: Worth nothing, and worth fighting for · The simplicity rule

A switch is the simplest position that is not a number: Left may move to a game worth aa, Right may move to one worth bb, and a>ba > b, so both players want the move. The base rung of this ladder gives it two numbers — the mean a+b2\tfrac{a+b}{2}, where it settles, and the temperature ab2\tfrac{a-b}{2}, what moving first is worth — and neither is recoverable from the other.

The condition a>ba > b does the whole of that work and is easy to read past. It is a hypothesis, not a description of the notation: {ab}\{a \mid b\} can be written down for any two numbers, and once bb climbs above aa the object it names is a different kind of thing entirely. The simplicity rule takes over, the position becomes a number, and there is nothing to fight about.

That is the textbook account, and it has two regimes in it. Sweeping the boundary with a solver finds three.

Where a switch stops being a switch. The same Left option with the Right one raised past it. While the Left option is above the Right one both players want to move, the bar spans a real fight and the temperature is half the gap. Where the two meet the position is the number plus a star — no longer a switch, and not a number either. Above that the simplicity rule takes over: the value is the simplest number strictly between the options, and there is nothing to fight about.
Fig. 1 Six positions with Left’s option fixed at 2 and Right’s raised past it. The first three are fights, drawn as bars spanning the options, with temperatures 2, 1 and 1/2 — half the gap in every case. The last two are numbers: 9/4 and 5/2, with no bar and nothing at stake. The row between them, {22}\{2 \mid 2\}, is neither — worth 2, temperature 0, and not a number.

Exactly at the wall

The middle row is the finding, and it is a genuine third regime rather than a rounding of one of the others.

At a=ba = b the position {22}\{2 \mid 2\} is worth 22\ast: the number two with a star attached. Its mean is 22 and its temperature is 00, so on the two numbers a switch is described by it looks exactly like the number it is worth. Asked whether the canonical form is a number, the solver says no. The same thing happens wherever the boundary is placed — {00}\{0 \mid 0\} is \ast itself and {1212}\{\tfrac12 \mid \tfrac12\} is 12\tfrac12\ast, every one checked, mean equal to aa and temperature 00 in each case.

Where a switch stops being a switch. The same Left option with the Right one raised past it. While the Left option is above the Right one both players want to move, the bar spans a real fight and the temperature is half the gap. Where the two meet the position is the number plus a star — no longer a switch, and not a number either. Above that the simplicity rule takes over: the value is the simplest number strictly between the options, and there is nothing to fight about.
Fig. 2 The same crossing with Left’s option at zero. One fight, of temperature 1/2; then the boundary case {00}\{0 \mid 0\}, which is \ast — worth zero, temperature zero, not a number; then two numbers, 1/2 and 1, from the simplicity rule. The boundary sits at a=ba = b wherever aa is put, and at zero the position on it is the star itself.

Four boundary cases in one picture make the pattern harder to read as an accident of where a particular sweep happened to start.

Where a switch stops being a switch. The same Left option with the Right one raised past it. While the Left option is above the Right one both players want to move, the bar spans a real fight and the temperature is half the gap. Where the two meet the position is the number plus a star — no longer a switch, and not a number either. Above that the simplicity rule takes over: the value is the simplest number strictly between the options, and there is nothing to fight about.
Fig. 3 A fight for scale, then the boundary case at four different anchors, then a number. {22}\{2 \mid 2\}, {11}\{1 \mid 1\}, {1212}\{\tfrac12 \mid \tfrac12\} and {00}\{0 \mid 0\} come out 22\ast, 11\ast, 12\tfrac12\ast and \ast — every one at temperature 0, every one drawn exactly on the number its mean reports, and not one of them that number. The right-hand column has to say so in words, because a value axis has nowhere to put a star.

The four are not all alike in the one way a player would care about. 22\ast, 11\ast and 12\tfrac12\ast are wins for Left whoever moves, because a positive number carries the position however the star falls; \ast alone is a win for whoever moves. So the boundary case inherits its outcome from the number it is sitting on, and only at a=b=0a = b = 0 is the star the whole of the position.

A star is confused with zero, and 22\ast is confused with 22 in the same way: the difference {22}2\{2 \mid 2\} - 2 is a first-player win. So the tempting summary — at aba \le b there is nothing to fight over — is half right. Nothing is at stake, because the temperature is zero and no points change hands. There is still a reason to touch it, because a player one move short somewhere else can take this one. That is what “cold” means precisely: a number, or a number plus something infinitesimal, and the boundary lands on the second case.

The nicest thing about that star is that it has nothing to do with numbers at all. {GG}=G+\{G \mid G\} = G + \ast for any game GG whatever, and the three computed values above are instances of it. Nothing in the identity mentions numbers or the ordering of the options; it is a statement about a position whose two players have identical choices.

The check that makes this more than a pattern is the case where GG is not a number. Ask the solver for {}\{\ast \mid \ast\} and it returns 0 — stops 00 and 00, no temperature, and a second-player win. That is what the identity predicts, since +\ast + \ast is zero, and it is not what “the boundary case is a number with a star on it” predicts. So the third regime is a general fact about symmetric option sets, showing up at a=ba = b because that is where the two players’ choices coincide, and the numbers are along for the ride.

Simplest is not nearest

Past the boundary the simplicity rule takes over, and the value it produces is generally not where a reader expects it.

With a=2a = 2 and bb running through the quarters from 94\tfrac94 to 55, the value agrees with the midpoint of the two options on 4 of 12 cases and differs on the other 8. At b=114b = \tfrac{11}{4} the value is 52\tfrac52 against a midpoint of 198\tfrac{19}{8}. At b=5b = 5 the value is 33 against a midpoint of 72\tfrac72. And at b=134,72,154,174,92,194b = \tfrac{13}{4}, \tfrac72, \tfrac{15}{4}, \tfrac{17}{4}, \tfrac92, \tfrac{19}{4} the value is 33 every time: the answer sits still through six consecutive steps while the midpoint climbs past it.

Where a switch stops being a switch. The same Left option with the Right one raised past it. While the Left option is above the Right one both players want to move, the bar spans a real fight and the temperature is half the gap. Where the two meet the position is the number plus a star — no longer a switch, and not a number either. Above that the simplicity rule takes over: the value is the simplest number strictly between the options, and there is nothing to fight about.
Fig. 4 The six steps on which nothing happens, with a fight on the top row for scale. {21}\{2 \mid 1\} is a switch of temperature 1/2 and everything below it is a number — and every one of those numbers is 3. Right’s option climbs from 13/4 to 19/4, a point and a half, and the answer does not move; the midpoint of the two options passes 3 somewhere in the middle of that climb without the value noticing.

That standing-still is what “simplest” means made visible. The rule asks for the number born earliest that lies strictly between the options, so an integer beats every fraction and a half beats every quarter, and widening the gap can only make the answer simpler rather than larger.

Drawn against the midpoint rather than against its neighbours, the same behaviour is a gap that opens and closes.

The simplest number in between. A game whose options are numbers is worth the simplest number strictly between them — and simplest means born earliest, so integers come before halves and halves before quarters. It is not the midpoint, and the difference is the whole content of the rule.
Fig. 5 Five reversed positions and the numbers the simplicity rule assigns them. The solid mark is the value and the hollow one, drawn only where the two differ, is the midpoint — and it is drawn on three of the five. {25}\{2 \mid 5\} is worth 3 where the average says 7/2, and {22}\{-2 \mid 2\} is worth nothing at all.

The contrast with the fight side is sharp enough to state as a pair. Below the boundary the mean is exactly a+b2\tfrac{a+b}{2} on every row of the sweep. Above it the value is the midpoint two thirds of the time and is not the midpoint the other third, with no correction term available: the simplicity rule does not approximate an average, it answers a different question. A reader carrying “the value is roughly in the middle” across the boundary has carried the one property that does not survive the crossing.

The other boundary, and it is somewhere else

Here is the part of the sweep that was not expected, and it is the reason the crossing needed measuring rather than deriving. The outcome class of {2b}\{2 \mid b\} does not change where the switch stops being a switch. It changes as soon as bb passes 00, which is four rows earlier.

For b=2,32,1,12,0b = -2, -\tfrac32, -1, -\tfrac12, 0 the outcome is N\mathcal{N} — whoever moves first wins. For b=12,1,32,2,52,3b = \tfrac12, 1, \tfrac32, 2, \tfrac52, 3 it is L\mathcal{L} — Left wins whoever moves. So the last first-player win in the sweep is {20}\{2 \mid 0\}, still very much a fight with temperature 11, and the first Left win is {212}\{2 \mid \tfrac12\}, also a fight, with temperature 34\tfrac34. Both boundaries are crossed inside the same sweep and they are at different places.

A switch, its mean and its temperature. Positions of the form {a | b} with a above b: both players want to move there, so neither is settled. The bar spans the two options, the marked point is the mean the position is worth once the fighting is over, and the temperature is half the gap — which is exactly what moving first is worth.
Fig. 6 The five rows the outcome boundary is crossed inside. Every one is a fight; the temperatures fall smoothly through 3/2, 5/4, 1, 3/4 and 1/2 and the means climb through 1/2, 3/4, 1, 5/4 and 3/2, with nothing anywhere in the sequence that stops or turns. Between the third row and the fourth the outcome changes from whoever moves wins to Left wins whoever moves, and the picture does not mark it — there is an axis for value and a column for temperature and none at all for who wins.
Four things a position can be. Every position falls into one of four outcome classes, and only three of them correspond to a comparison with zero. The fourth — first player wins — is a position confused with zero, neither greater, smaller nor equal, and it is where the subject departs from arithmetic.
Fig. 7 Four positions, one in each outcome class, with the moves drawn. {21}\{2 \mid 1\} is a fight of temperature 1/2 and a comfortable win for Left; {21}\{-2 \mid -1\} is reversed and is the number 3/2-3/2, a win for Right. Only {22}\{2 \mid -2\} is confused with zero, and it is a fight as well — so being a fight and being up for grabs are not the same property. Three of the four classes are comparisons with zero and the fourth is not.

The mechanism is not mysterious once separated out. Being a switch is a claim about the relation between the options; the outcome class is a claim about the position’s relation to zero, and zero is not mentioned in the definition of a switch. Move the whole sweep up or down by a constant and the switch boundary moves with it while the outcome boundary stays put, so the two can be placed anywhere relative to each other. That is a claim about translation, and translation is the one operation this diagram makes literal.

A switch, its mean and its temperature. Positions of the form {a | b} with a above b: both players want to move there, so neither is settled. The bar spans the two options, the marked point is the mean the position is worth once the fighting is over, and the temperature is half the gap — which is exactly what moving first is worth.
Fig. 8 One switch, slid along the line. Every row is a fight of temperature 1 — the same fight, translated — with means at −2, −1, 0, 1 and 2. Being a switch survives the slide untouched, because it is a statement about the gap between the options and the gap never changes. The outcome does not survive it: the top row is a win for Right, the bottom row a win for Left, and the three in the middle are up for grabs.

What that costs a reader is a habit. “This position is a fight” and “this position is up for grabs” are different statements, and only the second is about who wins.

What the solver computed, and how

Every number above comes from one sweep, and it is worth saying which routine produced which.

The position is built as game([dyadic(2)], [dyadic(b)]) — one Left option and one Right option, both numbers, with no reduction applied on the way in. Its value is the canonical form, its temperature and mean come from thermograph(g, 8), its stops from stops(g), and its outcome from outcome(g). Four routines over one object, and the crossing is read off by varying bb and nothing else.

The thermograph is where mean and temperature both live. Walls are kept as exact piecewise-linear functions rather than sampled, so the temperature is found by solving for where the two walls meet rather than by looking for where two curves appear to touch. On the sweep the walls are straight and the answer is available in closed form as well, which is what makes the sweep a test: the recursion and the formula ab2\tfrac{a-b}{2} agree on all eight rows with a>ba > b, and the recursion is what remains when the formula stops applying.

Drawn properly, the hottest row of the sweep is two straight walls: temperature runs up the page and value across it, each wall marks where a player is still willing to move once a tax of that much is charged per move, and the two meet at a temperature of 2 over a value of 0. The feet of the walls are the stops — 2 and −2, what each player gets moving first with no tax charged at all. All of that diagram is machinery behind two numbers in a column, and on this sweep it never has more than two straight lines in it.

Two conventions in the output need naming, because both are traps.

A temperature of 1-1 is a sentinel, not a temperature. It is what the routine returns for a position that is a number and therefore has no temperature at all. The reversed rows of the sweep carry it, and the figures print “the number 9/4” and “the number 5/2” rather than showing the sentinel, precisely so that nobody reads 1-1 as a cold position colder than zero.

Whether a position is a number is a test on the form, not on the value. Applied to {}\{\ast \mid \ast\} it returns false, and the position is worth exactly zero. Every claim above about a position not being a number is made against the canonical form rather than the form as written, which is the only way to make the question one about the value.

The simplicity figure carries an assertion that can fail: it checks each marked value against the game it claims to be worth, and refuses a case with aba \ge b outright, naming the regime the caller has strayed into.

The temperature is called a temperature because of an operation, and the operation makes the crossing look continuous rather than like a case split.

Put {22}\{2 \mid -2\} under a rising tax and the gap runs 4, 3, 2, 1 as the tax goes 0, 1/2, 1, 3/2, closing altogether at a tax of 2 — from which point the position is frozen at its mean of 0 and neither player wants to touch it. Cooling charges a tax on moving and shrinks the fight; heating a number xx by tt does the reverse and produces exactly the switch {x+txt}\{x + t \mid x - t\}. So the fight side of the boundary is the image of the numbers under heating, and cooling a switch by its own temperature returns the number it was heated from.

Read that way, the sweep is a walk in from the hot side, and the walk is worth drawing at every step rather than quoting.

A switch, its mean and its temperature. Positions of the form {a | b} with a above b: both players want to move there, so neither is settled. The bar spans the two options, the marked point is the mean the position is worth once the fighting is over, and the temperature is half the gap — which is exactly what moving first is worth.
Fig. 9 The whole fight regime, in quarters. Left’s option is fixed at 2 and Right’s climbs from −2 to 3/2, so the bar narrows by half a unit at each step and the temperature falls through 2, 7/4, 3/2, 5/4, 1, 3/4, 1/2 and 1/4 with no jump anywhere in it. The mean climbs the other way, through 0, 1/4, 1/2, 3/4, 1, 5/4, 3/2 and 7/4, and meets the fixed option only in the limit.

As bb rises towards aa that descent reaches 00 at a=ba = b, and what is discontinuous is not the temperature but the kind of object: at every positive temperature a fight, at b=ab = a a number plus a star, one step further a number outright. The eight rows above are the same eight the closed formula ab2\tfrac{a-b}{2} is checked against, and the recursion agrees with it on every one.

The stops behave as simply on the fight side. For a plain switch with a>ba > b the left stop is aa and the right stop is bb, without exception across the whole sweep — what each player gets by moving first and playing on to a number. Past the boundary both stops equal the value, because there is nowhere to walk to.

When the walls are not numbers

Everything so far assumes both options are numbers, which is the definition’s hypothesis. Dropping it costs both halves of the picture at once, in opposite directions.

Take a row of the sweep, {20}\{2 \mid 0\}, whose walls are straight because both options are numbers: stops 2 and 0, temperature 1. Now keep Left’s option and give Right one that is itself a fight — {2{11}}\{2 \mid \{1 \mid -1\}\} — and the temperature is 1 again while the stops are 2 and 1 rather than 2 and −1. The right wall has acquired a bend where the inner fight cools out, and the stops have stopped being the options while the arithmetic quietly stopped applying.

{1}\{1 \mid \ast\} is not a switch under the definition, since \ast is not a number and is not below 11 in the ordinary sense. It has a temperature of 12\tfrac12 all the same, a mean of 12\tfrac12, stops of 11 and 00, and it is a win for Left. So a real fight can live outside the hypothesis entirely.

Going the other way, {0}\{0 \mid \ast\} is \uparrow — mean 00, temperature 00, stops 00 and 00, and a win for Left whoever moves. By every number a thermograph reports there is no fight in it, and it is neither a number nor equal to zero. {0}\{\ast \mid 0\} is \downarrow and mirrors it; {0,0}\{0, \ast \mid 0\} is \uparrow\ast and is confused with zero. All three carry the same pair of stops and sit in three different outcome classes.

Those three, with \ast and 2\ast 2 beside them, are five values smaller in absolute size than every positive number and none of them zero. Every one is written {ab}\{a \mid b\} with something other than a number on at least one side, not one is a switch and not one is a number, and three of the five are confused with zero — every relation among them settled by playing a difference rather than by reading a diagram.

So the tidy three-regime picture is a fact about a hypothesis rather than about brace notation, and the infinitesimals fill the space it does not cover. What survives outside the hypothesis is the thermograph; what does not survive is the arithmetic — the mean stops being the midpoint, the temperature stops being half the gap, and the stops stop being the options.

The boundary read as an ordering

The three regimes are also a ranking, and that is where the distinction earns its keep at the board.

Set four rows of the sweep side by side as components of one position and sort them by what is at stake: {22}\{2 \mid -2\} at temperature 2, {21}\{2 \mid 1\} at 1/2, {22}\{2 \mid 2\} — the star — at 0, and {23}\{2 \mid 3\}, which is the number 5/2 and has no temperature at all. The whole position settles at 6 and the largest single stake in it is 2, so the first move goes in the widest fight.

Read in that order it is the fight, the narrower fight, the star, and the number — the crossing turned into a move order. Playing the hottest says take the biggest stake first, and it is a theorem up to an error of one temperature’s worth rather than a rule of thumb.

The star’s place in that order is what the third regime buys. A component worth 22\ast contributes its two points to the total like any number, and it also contributes a move that neither player has spent — so it is played last among the things worth playing and before the pure numbers, which are never played at all while anything else remains. An accounting that collapsed the boundary case into “a number” would put it in the wrong place in that queue and would lose games by a single tempo.

The ordering is by temperature and not by size, and the temperatures of a sum do not add — the ranking is a rule for choosing a move within one position, not a quantity to total up.

Who found it, and when

The definition and the notation are Conway’s, from the construction that produced the numbers and the games together in the late 1960s. The switch x±tx \pm t and the pair of numbers behind it were built into working shape with Elwyn Berlekamp, for the practical reason that a Go endgame is a sum of small fights and choosing between them is the question a player actually faces.

The boundary case is older than the theory that names it: {00}\{0 \mid 0\} is the position with one move for each player and nothing behind it, which is a single Nim heap of size one, and it was understood as a first-player win long before anybody wrote it in braces. What the partizan theory added was a name and an arithmetic for it — and the observation that {GG}\{G \mid G\} is G+G + \ast for every GG, which makes the position at a=ba = b an instance of a rule rather than an exception to one.

What the picture cannot show

The figures in this essay put values on a horizontal line, and a line is exactly the wrong shape for the finding.

A star has no position on a value axis. 22\ast is drawn at 22, because 22 is what it is worth and there is nowhere else to put it, and the whole content of the third regime is that it is not the number sitting at that point. The figure resorts to a sentence — “worth 2, and not a number” — printed beside the mark, which is text doing the work a picture cannot.

Confusion has no picture either. Being confused with a number means the difference is a first-player win, which is a fact about a search over a second position and not about a location. Every drawing here shows an ordering, and the ordering is partial.

And the outcome flip is invisible in every one of them. The switch diagram has an axis for value and a column for temperature, and none at all for who wins. That {20}\{2 \mid 0\} and {212}\{2 \mid \tfrac12\} are in different outcome classes — the second boundary, and the surprise of the sweep — appears here only in prose.

The convention, named

Normal play throughout. Whoever cannot move loses. Every value, temperature, stop and outcome above is computed with that base case, and under misère play — the player who cannot move wins — the sweep would be a different sweep. The boundary at a=ba = b is a normal-play fact about a normal-play value, and misère is a different game with the same rules written down.

Both options are numbers. That is the hypothesis under which {ab}\{a \mid b\} has a mean of a+b2\tfrac{a+b}{2}, a temperature of ab2\tfrac{a-b}{2}, stops at aa and bb, and a boundary at a=ba = b with a star on it. Drop it and every one of those five statements fails independently of the others.

And 1-1 from the temperature routine means “no temperature”. It is a sentinel for a number, not a value on the same scale as the temperatures beside it — the one number in this essay that is not a measurement.

Where the ladder goes next

This rung establishes that the switch regime has an edge, that a position sits exactly on the edge, and that the edge is not where the outcome changes. Four rungs follow it directly.

Switches with walls that are not numbers. {1}\{1 \mid \ast\} has a temperature of 12\tfrac12 and no midpoint to speak of; {2{11}}\{2 \mid \{1 \mid -1\}\} has a bent wall and stops at 22 and 11 rather than at its options. What the mean and temperature mean once the hypothesis is dropped is the next thing to compute, and the thermograph is the only machinery that survives the drop.

The mean value theorem. That every position has a mean at all — that the value of nn copies stays within a bounded distance of nn times a fixed number, with the bound independent of nn — is what licenses the word, and it is proved rather than computed. Many copies of one game sets up the measurement it is about.

Cooling as the operation that undoes a switch. Heating a number by tt makes a switch of temperature tt and cooling it back gives the number; whether that is a bijection, and what cooling does to positions whose walls bend, is a rung of its own.

And the endgame as a sum of switches. A whole board late in the game is several of these at once, with different temperatures and a move order to decide, which is where the two numbers are finally spent — and where a component sitting on the boundary stops being a curiosity and starts costing a point.

Part 3 of 10

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

Cold gameConfusionCoolingHot gameMean valueNumbersOutcome classSimplicity ruleStar (∗)StopsSwitchTemperatureThermograph