5 Numbers

   5.1.  Hot versus cold games
   5.2.  Integers
   5.3.  Dyadic rationals
   5.4.  Simplicity
   5.5.  Number avoidance

5.1 Hot versus cold games

Often, some components of a game will be hot in the sense that both players wish to move there as soon as possible, while other components may be cold in the sense that neither player wants to move there before moving elsewhere.

Example 5.1 Consider the Domineering position shown below, equal to G + H = {1∣ − 1} + {−1∣0}.

In this position, both players should prefer to move in the first component G before the second component H.One can check that the position is fuzzy, but the first player can only win if she plays in G first.Indeed, whoever gets to move in G not only prevents the other player from moving there but also gains an extra move later. In contrast, whoever moves in H will not be able to move there in the future.

Because both players prefer to move in G over H, we say that G is hotter than H.

We will leave the formal definition of temperature for a bit later in the course. For now, you should just informally note that a game G is hot if it admits a great advantage for the player who moves in it first, that is, if some GL is much larger than any GR. Moreover, the larger the difference, the hotter the game. Hence both {1∣ − 1} and {1∣0} are hot, but the first one is hotter.One also sometimes calls games tepid if any advantage one gains in them by moving first is infinitesimal.

By contrast, a game is cold if it confers a disadvantage to the player who moves in it first. For instance, 0 is cold simply because neither can move in it, but also a game like 1 2 = {0∣1} is cold because 0 < 1 2 < 1, so moving in it first yields a strictly worse position for that player. This suggests the following definition for the coldest games of all, which we call numbers.

Definition 5.2 A game G is called a number if all options of G are numbers, and GL < GR for all left and right options GL and GR.

As usual, this definition is recursive, but we can bootstrap ourselves up using the fact that 0 has no options and is therefore a number. From this we see that 1 = {0∣} and − 1 = {∣0} are numbers, but ∗ = {0∣0} is not a number since 0≮0. However, 1 2 = {0∣1} is a number since 0 < 1.

An important property of numbers is that they lie between their left and right options.

Proposition 5.3 Let G be a number. Then GL < G < GR for all GL and GR.

Proof. We need to show G − GL is positive. If Left goes first, she can win by moving to GL − GL = 0. If instead Right goes first, he can either move to

  • GR − GL, which is positive since G is a number, or to

  • G − GLL, but then Left can reply to GL − GLL, which is positive by induction since GL is a number.

A similar argument shows that G − GR is negative.  

Another important property is that the sum of two numbers is a number.

Proposition 5.4 Let G and H be numbers. Then G + H is a number.

Proof. Both left options of G + H (namely GL + H and G + HL) are numbers by induction, and both are less than G + H since GL < G and HL < H. Similarly, both right options are numbers and larger than G + H, so all (G + H)L are less than all (G + H)R.  

5.2 Integers

The simplest numbers to construct are the integers.

Definition 5.5 An integer is any game of the form:

0 = {∣} 1 = {0∣} − 1 = {∣0} 2 = {1∣} − 2 = {∣ − 1} 3 = {2∣} − 3 = {∣ − 2} ⋮ ⁡ ⋮ ⁡ n = {n − 1∣} − n = {∣ − (n − 1)}

As an exercise, check that each of these expressions is in canonical form.

In order to avoid confusion between the integers that we all know and love and the “integers” that we defined as games above, we will temporarily refer to the game n as [n]. Hence 4 will mean the number 4 in the usual sense, while [4] will mean the game with a single left option of [3]. In the future, these numbers will behave exactly like we expect them to, so we will eventually drop the brackets when there is no longer any chance of confusion.

It is straightforward to check the following claims by induction.

Proposition 5.6 For any integers m and n:

(a)

− [n]≅ ⁡[−n];

(b)

[n]≅ ⁡[1] + [1] + ⋯ + [1]︸n if n ≥ 0;

(c)

[m + n] = [m] + [n];

(d)

[m] ≥ [n] if and only if m ≥ n.

Proof. Part (a) is easy.The base case n = 0 is clear since − [0]≅ ⁡[−0] as both are the game with no options. For n > 0, − [n]≅ ⁡ −{[n − 1]∣}≅ ⁡{∣ − [n − 1]}≅ ⁡{∣[−(n − 1)]} (by induction), which is the definition of [−n].For part (b), it suffices to check by induction that

[n] + [1]≅ ⁡{[n − 1] + [1],[n]∣}≅ ⁡{[n]∣}≅ ⁡[n + 1].

For part (c), simply expand all terms using part (a) and (b).Each term will expand into a sum of [1]’s or − [1]’s, and after cancellation there will be either m + n [1]’s if m + n ≥ 0 or − (m + n) − [1]’s if m + n < 0.For part (d), [m] ≥ [n] if and only if [m] − [n] = [m − n] ≥ 0. The result then follows from part (a) and (b), using the fact that [1] > 0 > −[1].If m − n > 0, then [m − n] is a sum of a bunch of positive terms [1], while if m − n < 0, then [m − n] is a sum of a bunch of negative terms − [1]. 

In many rulesets, it is easy to come up with games that are equal to integers. For instance, in Hackenbush, any (nonempty) position with only blue edges is a positive integer, while any (nonempty) position with only red edges is a negative integer.Note, however, that such positions will usually not be in canonical form. See, for instance, Example 3.15.

5.3 Dyadic rationals

In Example 4.27, we showed that the game G = {0∣1} satisfies G + G = 1. Also G is a number since its left option 0 is less than its right option 1, so it is natural to give G the name 1 2.

It turns out that it is not hard to define related rational numbers such as

1 4 = {0∣1 2}, 1 8 = {0∣1 4}, 1 16 = {0∣1 8},

and so forth, provided that they are dyadic.

Definition 5.7 A rational number r is called dyadic if its denominator (when written in lowest terms) is a power of 2.

Definition 5.8 For any integers j ≥ 0 and m, define the dyadic rational m 2j as follows.

  • If m = 1 and j > 0, then 1 2j = {0∣ 1 2j−1 }.

  • For m > 0, m 2j = 1 2j + ⋯ + 1 2j︸ m.

For negative m, define m 2j as the negative of −m 2j , and if m or j is 0, then define m 2j to be the corresponding integer.

It is easy to verify that all dyadic rationals defined in this ways are numbers in the sense that we defined earlier. In particular, if by induction we know that 1 2j−1 is a number, then it is larger than its left option 0, so 1 2j = {0∣ 1 2j−1 } is also a number.

Note that there is one potential problem with this definition: if m 2j is not written in lowest terms, then we have two different definitions for the same rational number. For instance, since as ordinary rational numbers 3 8 = 6 16, we must check that

1 8 + 1 8 + 1 8 = 1 16 + 1 16 + 1 16 + 1 16 + 1 16 + 1 16.

Luckily, if we group terms appropriately, it suffices to check that 1 8 = 1 16 + 1 16, or in general, to check the following proposition.

Proposition 5.9 For j > 0, 1 2j + 1 2j = 1 2j−1 .

Proof. Recall that any number lies between its left and right options, so 0 < 1 2j < 1 2j−1 for all j > 0.

We check that 1 2j + 1 2j − 1 2j−1 is a second player win.

  • If Right goes first, he can only move to 1 2j + 1 2j−1 − 1 2j−1 = 1 2j > 0 or 1 2j + 1 2j − 0 > 0, so he loses.

  • If Left goes first, she can only move to 0 + 1 2j − 1 2j−1 < 0 or 1 2j + 1 2j − 1 2j−2 < 1 2j−1 + 1 2j−1 − 1 2j−2 = 0 by induction, so she loses.  

It follows that our definition of dyadic rationals is well-defined.Every dyadic rational has a reduced expression of the form m 2j with m odd, and all other expressions have the form m2k 2j+k for some k > 0. But these are all equal since we can expand m 2j as a sum of 1 2j and then write each 1 2j as a sum of 2k copies of 1 2j+k using the previous proposition.

It is now straightforward to prove the following proposition, which is the analogue of our earlier result for integers. Again, for the sake of clarity, we use [x] to refer to the game corresponding to the dyadic rational number x.

Proposition 5.10 For dyadic rationals x and y:

(a)

− [x] = [−x];

(b)

[x + y] = [x] + [y];

(c)

[x] ≥ [y] if and only if x ≥ y.

Proof. Express x and y as dyadic rationals with the same denominator 2j, and then expand each as a sum of [ 1 2j] (or − [ 1 2j] if negative). The result follows easily as in Proposition 5.6.  

While things seem to be working out cleanly, one issue is that our definition of dyadic rationals is not so useful since if the numerator is large, the only expression we have for these rational numbers is as a large sum. Luckily, it is not too difficult to determine the canonical form of any dyadic rational.

Theorem 5.11 For j > 0 and m odd, the canonical form of m 2j is

m 2j = {m−1 2j ∣m+1 2j }

(after each option is reduced to lowest terms and written in canonical form).

Proof. Without loss of generality, assume that m is positive. Then

m 2j = 1 2j + ⋯ + 1 2j︸ m = { 1 2j + ⋯ + 1 2j︸ m−1 + 0∣ 1 2j + ⋯ + 1 2j︸ m−1 + 1 2j−1 } = {m−1 2j ∣m+1 2j }.

It suffices to show that this form is canonical. There is only one option on either side, so there are no dominated options.

Note that m−1 2j when reduced has a smaller denominator 2j′ for some j′ < j. Hence by induction, the right option of its canonical form is some number of the form m−1 2j + 1 2j′ > m−1 2j + 1 2j = m 2j. Thus m−1 2j is not a reversible option. Similarly, neither is m+1 2j , so the result follows.  

Example 5.12 To find the canonical form of 19 32, we compute 18 32 = 9 16 and 20 32 = 5 8. Thus 19 32 = {9 16∣5 8}.

5.4 Simplicity

Now that we have all the dyadic rationals at our disposal, it is natural to ask whether there are any other numbers. After all, we can potentially form a new number G = {GL∣GR} by taking any dyadic rationals GL and GR that we like provided GL < GR. Of course, the dyadic rationals are totally ordered,For any two dyadic rationals x and y, either x ≤ y or x ≥ yso that means that all but one of the options on either side will be dominated. Still, what happens if we try to form a game like {1 2∣2}?

Unsurprisingly, {1 2∣2} also turns out to be a dyadic rational. However, it may not be the one that you expect.

Example 5.13 We claim that G = {1 2∣2} equals 1. To see this, we just need to check that G − 1 is a second player win.

  • If Left goes first, she can only move to 1 2 − 1 < 0, so she loses.

  • If Right goes first, then he can move to 2 − 1 > 0 or G − 0 = G > 1 2 > 0,Recall that any number, such as G, is larger than its left options.so he also loses.

Given two dyadic rationals x < y, it seems reasonable that {x∣y} is also a dyadic rational, but which one? The answer is that it is the simplest one between x and y.

Definition 5.14 The simplest number between x and y is the one with the smallest birthday. Equivalently, it is:

  • the integer of smallest absolute value if one exists, or

  • the dyadic rational with the smallest denominator.

Example 5.15 To determine which number the game G = {9 8∣27 16} equals, we must find the simplest number between 9 8 = 18 16 and 27 16. There is no integer between them, and the number between 18 and 27 divisible by the highest power of 2 is 24. Hence G = 24 16 = 3 2.

Of course, it is not clear that the two definitions we gave for simplest are the same, so we will prove that now.

Proposition 5.16 The two definitions of simplest above are the same.

Proof. A straightforward induction shows that, for n ≥ 0, the birthday of n or − n is n, while the birthday of any rational number between n and n + 1 (or − (n + 1) and − n) with denominator 2j is n + j + 1. If the integer of smallest absolute value between x and y is n or − n, then all non-integer dyadic rationals in that interval will have birthday at least (n − 1) + 1 + 1 = n + 1. If there is no integer between x and y, then the entire interval lies between two integers, so the smallest birthday is determined solely by having j be the smallest.  

It is also not so clear that this notion of simplest is unique, though it is not hard to show this from the second definition.Between any two dyadic rationals with same denominator, there is one with a smaller denominator.In any case, it will follow immediately from the following Simplicity Theorem.

Theorem 5.17 Let x < y be numbers. Then {x∣y} is the unique dyadic rational z of minimum birthday satisfying x < z < y.Note that we also allow for the possibility that x or y is not present, in which case, for instance, {x∣} is the unique dyadic rational z of minimum birthday satisfying x < z.

Proof. Let z be a dyadic rational of minimum birthday satisfying x < z < y. We need to show that {x∣y}− z is a second player win. If Left goes first, she loses if she moves to x − z since x < z, so suppose instead that she moves to {x∣y}− zR. But zR has a smaller birthday than z, so we must have that zR is not between x and y; since z < zR, we must have y ≤ zR. Then Right can win by moving to y − zR ≤ 0.

A similar argument shows that Right loses going first, so G = z.  

Corollary 5.18 Any (short) game that is a number equals a dyadic rational.

Proof. Follows from the theorem since every short game that is a number has the form {x∣y} with x < y with x and y numbers.Again, either x or y could be missing. 

Actually, the above theorem can be slightly strengthened using essentially the same proof: if G is any game, and there exists a number x such that GL≱x≱GR for all GL and GR, then G is the (unique) simplest such number.

The corollary above was intentionally phrased to indicate that one can extend the definition of numbers to games that are not short. This larger set of numbers, called surreal numbers, will be investigated towards the end of the course.

5.5 Number avoidance

As mentioned earlier, numbers are cold in the sense that each player has a disincentive to move in them. We can make this more precise in the following Number Avoidance Theorem.

Theorem 5.19 Suppose that x is equal to a number and G is not. Then if a player has a winning move in G + x, she has a winning move of the form GL + x.

Proof. We may assume that x is in canonical form. Suppose Left has a winning move of the form G + xL ≥ 0. Since G is not equal to a number, G≠ − xL, so G + xL > 0, meaning Left has a winning move on G + xL. By induction on x, she must have a winning move of the form GL + xL. But xL < x, so GL + x > GL + xL ≥ 0 is a winning move for Left in G = x, as desired.  

Actually, this is known as the weak form of the Number Avoidance Theorem. We will defer the statement and proof of the strong form until a bit later.