Showing posts with label surreal numbers. Show all posts
Showing posts with label surreal numbers. Show all posts

Monday, February 8, 2016

Infinity plus one and half Infinity (more checker stacks and surreal numbers)

J1, J2 and I spent more time talking about checker stacks and surreal numbers this evening. Most of the conversation was with J1, so J2 and I will have to catch up. I may have J1 lead the conversation and see how much he really understood and can explain.

Tweedledum/Tweedledee strategy

I had taken a look at Winning Ways for Your Mathematical Plays vol1 and thought it would be good to warm them up with the tweedledum-tweedledee strategy. I thought the pictures from hackenbush would be more inspiring, so drew these Tweedledum-Tweedledees. With checker stacks as recent background, J1 got the rules for the new game right away and he also saw the inverse symmetry of the colors (in fact, J3 happened to be there at the time and also noticed that symmetry).

Our wonky anti-twins


I asked which player has a winning strategy and gave him four options: red, blue, first player, second player. After a bit of thinking, he chose the second player and explained the copy strategy. We talked through a couple plays of the game just to see how it would work.

One interesting side conversation was the idea that the copying strategy isn't necessarily the most efficient way for the second player to play. This is in the sense of when the first player makes bad decisions, there could be ways for the second player to open up a huge advantage, while the copying strategy basically keeps returning the game to a 0 value.

On its own, this was quite a nice conversation, thinking through the pros and cons of continuing with the copying strategy. The ideas we discussed were:

  1. does the margin of victory matter? For some games yes, for others no.
  2. Is there a chance that we make a mistake if we stop copying and go for a "bigger" win? There might be some subtle strategic cunning that we are missing and any choice to stop copying could be irreversible.
  3. Is there a chance that we've mis-identified the game and it isn't exactly symmetric? Woe to us if we copy the first player until the error becomes obvious and we're now in a position behind them.
For what it is worth, this links to a dialogue in the Fritz & Chesster series (quoted from memory, not verbatim):
Fritz: What if your opponent isn't very good. Should you just clobber them?
Chesster: What do you mean?
Fritz: What if they make bad moves?
Chesster: Focus on your own strong play and developing your position. Don't play bad moves that assume your opponent is weak.
We also rounded out this part of the discussion by looking at the deep purple and figuring out a stack that is the additive inverse of deep purple.

Some stack values

Omega + 1
Watching more Mike Lawler videos, I saw his kids enjoyed thinking about ω + 1. We have previously talked about a more vague form of infinity and had broadly agreed that infinity - 1 is still infinity and infinity +1 is still infinity. I asked J1 to see if he still thought that (he did) and then asked about omega. If omega is infinity, what about ω +1?

His intuition was that it would still be omega, so we though about how to test. First, we recalled that deep blue has the position value omega, deep red is negative omega. With some thinking, he realized we could look at the game: blue + deep blue + deep red.

What do we need to check? See if blue has a winning strategy as the first player (why is this sufficient)?

Blue does have a winning strategy and J1 saw it faster than I had. Thus, (ω + 1) - ω is positive. "Wow, the omegas can cancel here!" He didn't expect infinity to work like this (nor did it, in our earlier conversations.)

Omega/2
We talked about a couple of other stack values with ω (2 deep blues, three deep blues, etc). I made an incorrect (I think) comment about ω2 and then said that the surreal numbers even have ωω and sqrt(ω) but that I wasn't sure what checker stacks would correspond with those values. He was pretty intrigued about the square root and asked what it would mean. This is all we got:

if A = sqrt(ω), then AxA = ω
Unfortunately, since we don't really know how to think of surreal multiplication in terms of checker stacks (yet?), this doesn't really help us so much.

However, this led J1 to ask, what about ω/2?

For regular 1/2, we had gotten lucky by adding a regular red on top of a regular blue. Maybe that would work here? Could we just add a regular red on top of a deep blue? We wrote down the position deep red + (deep blue)red + (deep blue)red and started checking whether blue would lose if playing first. We saw that this quickly gets to positions that obviously favor blue and concluded that our starting position had a positive value.

We still had our starting game position deep red + (deep blue)red + (deep blue)red on the white board. I figured out the fix and then told J1 that there was actually a simple way to modify what we'd written to correct it. I think he was still following the analogy to 1/2 and suggested making the top checkers deep reds. Talking through the new game for a while, we were convinced that we'd found a representation for ω/2 (wow!)

I thought this was really awesome. While we are still exploring something that other people have done before, he asked and answered a question that wasn't in the guidebook (so to speak).

Deep deep checkers
With the idea of stacking deep checkers on top of each other, we came up with the idea of deep-deep checkers. For example, remember that a deep blue can be taken off, removing itself and anything above it, and the player adds any non-negative finite number of regular blues to that stack. For a deep-deep blue, that checker gets removed along with any checkers above it, then the player adds any non-negative, finite number of deep blue checkers.

Using arguments nearly identical to the deep blue checkers, we figured out that a deep-deep blue + Nx(deep red) is still a winning position for blue, for any finite value N. That means the value of deep-deep blue is larger than Nω, for all finite N. This now seemed like a good candidate for a representation of ω x ω (aka ω2)

One final stack

Now that we've got deep deep checkers, it seemed natural to try something similar to the trick we'd learned earlier when we stacked a deep red on top of a regular blue. Remember, that gave us a stack with position value ε, positive, but smaller than any power of 1/2. Another way to see it was to play games with R + n (B deep Red), see that these are all Red wins, and conclude that B deep Red's position value is smaller than any fraction 1/n, for all positive integers n.

Using similar reasoning, we tested the games deep R + n (deep B deep-deep R). Following very similar reasoning, we think we see a pretty easy winning strategy for red, so the deep Blue deep deep Red has to be positive, but have value smaller than ω/n, for any positive integer n.

Hmm, maybe the position value of this guy is tiny? To be sure, we checked the game nR + (deep B deep-deep R). That is, n regular red checkers against a single copy of our suspect. Well, despite the awesome potential of a deep deep red, it falls whenever blue makes a move and these games are clearly blue wins.

So, what is the value of our new stack? Since it is smaller than ω/n, for any positive integer n, it feels like it could be ω * ε?

The problem: In Jim Propp's post, he says that ε and ω are multiplicative inverses (also, attacked in more detail in section 2.6 here), so their product is 1. However, our stack has value much greater than 1. We will have to think about ways to attack this new value.

Where is J2?

With J2, I teed up the question of how to find the additive inverse for a given checker stacks position. He instantly answered that you just need to swap all the colors. Seems like he is in good shape to verify this by working out the strategy as I did with J1.
On his own, he wanted to move onto the value of the deep purple stack, which he remembered as 2/3. I only had time to encourage him to think about two things:

  1. What stack is the additive inverse of a deep purple checker? As with J1, linking this with a RP stack was interesting.
  2. What could be the second player's winning strategy for 3P + 2R?

Sunday, February 7, 2016

Surreal numbers and whole body integers

Two unrelated activities to note:
(1) Exploring checker stacks and surreal numbers with J1 and J2
(2) A whole body numbers game with J3

Surreal Numbers and Kids

If, like me from one month ago, you don't know about surreal numbers, I think you'll find they can be a really engaging exploration with kids. The main attraction is the appearance of infinities and infinitesimals, both of which really seem to resonate with young mathematicians. In addition, there's fantastic icing on this cake, too: you can explore by playing a simple (to learn) game with a lot of depth.

Credits: this exploration is strongly inspired by Mike Lawler's recent posts about surreal numbers and the Jim Propp post that inspired him. If you are interested in doing this type of exploration with your kids, I strongly suggest going through all of their posts on the subject.

Note: since we used black and red checkers, while the convention in the other posts is blue and red, I will abbreviate B and R so you can naturally substitute your own preferred color scheme.

How we got started
Using a set of regular, stackable, checkers (black and red), I showed each of the older J's the position RB + BR (a stack with red on the bottom, black on the top and a stack with black on the bottom, red on top) and explained that the basic moves.

This was a good initial example because it let us talk about each of the major scenarios:

  • We will investigate cases where B moves first and others where R moves first
  • Each one can only take stacks above one of their own color checkers
  • If the colors allow, they can take a top checker and leave the rest of a stack undisturbed
  • If their color is the bottom of a stack, they can remove the whole stack
  • Usually, they will have choices about which stacks to remove
Then, I explained the losing condition: if you don't have any more moves, you lose. They quickly realized this was the same as when they no longer had any checkers of their own color on the board.

Next, we quickly played a set of simple games:
  1. Single B checker
  2. Single R checker
  3. B + R
  4. RB + BR
  5. RB + B
  6. B+B+B+B +R+R (and similar)
  7. BBB+R+R (and similar)
Connecting with numbers
I told them that one amazing thing is that we can give each game position a value. Then went through:
  1. Single B checker is +1
  2. What do they guess a single R checker is? explain -1
  3. What about B+R? eventually get to 0
  4. Explain the fundamental trichotomy: positive value means winning strategy for B exists, negative for R, what about 0?
Powers of 1/2
The first really juicy bit came when I asked what they thought the value of a BR stack would be. This established a common sequence of investigations:
  1. If alone, can we see a winning strategy for either B or R? In this case, obviously B. Thus, the value is positive
  2. Compare with 1 by playing the game BR + R. They were really fast about seeing this link, for others this is worth writing out and spending some time discussing. In this case, they saw BR + R must be negative, so the value of BR is between 0 and 1.
  3. Guess a value; they've got enough experience to think that often the answers are "nice," so 1/2 was a natural guess.
  4. Test. In this case, it meant checking BR + BR + R
Next stop was RB. I wanted to make sure negatives weren't left out and to reinforce the symmetry in the colors, so would ask them to swap the colors and get a value as a quick follow-up.

Next, I asked them to see if they could find a configuration with value 1/4. This took a long time and there were lots of false starts. I didn't think this would be easy and didn't help them shortcut the exploration.

Once they got 1/4, though, they had a fast guess about 1/8. We checked it and then they made a conjecture about further powers of 1/2.

Deep blue and red
Seeing powers of 2 in some form is always fun, but both knew that they had been promised infinity and wanted to see it. Using our plastic dinosaurs, I introduced the deep checkers deep blue (represented by a blue mini) and deep red (represented by an orange mini).

Our sequence for these was similar to the powers of 1/2. The value of deep blue is positive, so they compared to 1 by playing the game BBBB.....+R. Each had a sparkle of insight, but quickly played BBB.....+R+R+R just to check, then announced that the value would be bigger than any integer.
I gave them the name omega, and we checked the deep red: RRRR.....

At this point, one of them put the deep red on a B checker and asked what that would be. Again, followed the previous recipe to realize that it must be positive, but smaller than 1, then smaller than 1/2. At that point, one of them made this arrangement:

Ok, I know that mastadons aren't dinosaurs

If it isn't clear, the realization was that the game sequence B, BR, BRR, BRRR, ... would have values
1, 1/2, 1/4, 1/8, .... and BRRRR..... would be at the end of that sequence with value ... larger than 0, but smaller than every power of 1/2. You can see that they made a similar connection with the negative values.

A little bit about deep purple
The two kids were totally satisfied now, having gotten omega and epsilon (along with omega +1, epsilon - 1, omega + epsilon, etc). To give them something to chew on for later (and because we had purple dinosaurs in our set) I introduced the deep purple, BRBRBRBR.... Immediately, they designated the yellow dinosaurs as the inverse of deep purple (RBRBRBRB.....)

So, what's the value of deep purple? What they've gotten so far:
  • positive
  • smaller than 1 (by playing BRBRBRBR..... + R)
  • Bigger than 1/2 (by playing BRBRBRBR..... + RB)
  • guess 2/3. I don't know where this came from, but I confirmed that is the value
  • working on finding winning strategies for the second player in R+R+3(BRBRBR.....)
Wrap up videos
As a round-up in the evening, we watched the videos from the first post in Mike Lawler's sequence. I paused frequently to let my two shout out their answers and explanations for where Mike's boys were in their exploration. This seemed to be a very effective way to underline their experience for the day.

Number match on the number stairs

A game for J3. This is a simple game with some variations that makes use of our stairway "number line" and a three year old's natural enthusiasm for running up and jumping down stairs.

As pictured previously, we have labeled the stairs in our house from 0 to 36 (more to come). We have a set of cards with numbers on them. P mixes them up, then gives them, one at a time, to J3 to put on the corresponding step, and they sing count up and down:





Some other variations:

  • using playing cards instead of number cards
  • Using cards with dot or shape patterns
  • Using cards with number words ("one" instead of "1")
  • child sends the parent to a particular step, checks if the parent got it right

Pillow forts

In case you missed it, pillow forts have been in fashion recently. Here is an example: