{"id":369,"date":"2007-04-01T19:24:32","date_gmt":"2007-04-01T19:24:32","guid":{"rendered":"http:\/\/scientopia.org\/blogs\/goodmath\/2007\/04\/01\/from-surreal-numbers-to-games\/"},"modified":"2007-04-01T19:24:32","modified_gmt":"2007-04-01T19:24:32","slug":"from-surreal-numbers-to-games","status":"publish","type":"post","link":"http:\/\/www.goodmath.org\/blog\/2007\/04\/01\/from-surreal-numbers-to-games\/","title":{"rendered":"From Surreal Numbers to Games"},"content":{"rendered":"<p> Today we&#8217;re going to take our first baby-step into the land of surreal games.<\/p>\n<p> A surreal <em>number<\/em> is a pair of sets {L|R} where every value in L is less than every value in R. If we follow the rules of surreal construction, so that the members of L sets are always strictly less than members of R sets, we end up with a totally ordered field (almost) &#8211; it gives us something essentially equivalent to a superset of the real numbers. (The reason for the almost is that technically, the surreals form a <em>class<\/em> not a set, and a field must be based on a set. But for our purposes, we can treat them as a field without much trouble.)<\/p>\n<p> But what happens if we take away the restriction about the &lt; relationship between the L and R sets? What we get is a set of things called <em>games<\/em>. A game is a pair of sets L and R, where each member of L and R is also a game. It should be obvious that every surreal number is also a game &#8211; but there are many more games than there are surreal numbers, and most games are <em>not<\/em> surreal numbers.<\/p>\n<p><!--more--><\/p>\n<p> Games lose some of the nice properties of the surreal numbers. They are <em>not<\/em> a field. They are <em>not<\/em> totally ordered. In fact, they&#8217;re not even all positive or negative. They&#8217;re very strange things.<\/p>\n<p> So why would we want to break the restriction on the surreals that gives us games? Naturally, because games have useful applications in modeling many things &#8211; in particular, games (in the non-mathematical sense &#8211; games like Go, Chess, Checkers, Poker, etc).<\/p>\n<p> Let&#8217;s take a bit more of a detailed look at games, and how they interact.<\/p>\n<p> Game arithmetic is <em>exactly<\/em> the same as surreal arithmetic: addition, subtraction, multiplication, negation &#8211; even division (which we haven&#8217;t looked at yet) are all defined in the same way of surreal numbers and games.<\/p>\n<p> But: while surreal numbers are always either positive, negative, or zero, games can also be <em>fuzzy<\/em>. Remember, games are <em>not<\/em> fully ordered. That means that there are pairs of games (a,b) where &not;a&le;b and &not;b&le;a &#8211; that is, where the two games <em>cannot<\/em> meaningfully be compared. Fuzzy games are games that can&#8217;t be compared to zero.<\/p>\n<p> What does a fuzzy game look like? The simplest example is: {1|-1}. Try to use the definition of &#8220;&le;&#8221; on that game with zero &#8211; it doesn&#8217;t work. <\/p>\n<p> Games also have some strange behaviors with respect to multiplication. If a, b, and c are games, then (as you would expect for numbers), if x&times;z=y&times;z then x=y. <em>But<\/em>, with games, x=y doesn&#8217;t mean that x&times;z=y&times;z. Nasty, that, eh?<\/p>\n<p> So what are these beasts useful for? Part of Conway&#8217;s motivation was trying to analyze the game of Go (aka Wei-Chi). Go is one of the oldest strategic games in the world; it&#8217;s been played for thousands of years in China, Japan, and Korea. Go is the Japanese name, which is generally used here in the US; Wei-Chi is the chinese name for it. It&#8217;s a thoroughly fascinating game. <\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"go.png\" src=\"https:\/\/i0.wp.com\/scientopia.org\/img-archive\/goodmath\/img_152.png?resize=180%2C180\" width=\"180\" height=\"180\" class=\"inset right\" \/><\/p>\n<p> Go is a two-player game where the players have a 17&#215;17 grid. Each move, a player puts a piece of their own color on one of the intersections on the grid. The goal of the game is to surround territory using your pieces. Whoever has the most territory at the end wins. Mechanically, it&#8217;s about as simple as a game can get. Strategically, it&#8217;s unbelievably deep and complex. It&#8217;s frequently compared to Chess in terms of depth and strategy.  It&#8217;s a wonderful game.<\/p>\n<p> One particularly odd thing about Go &#8211; particularly when you compare it to Chess &#8211; is how hard it is to analyze mathematically. Computer Go players are still absolutely lousy in comparison to humans, because it&#8217;s so hard to get a handle on the strategy in a way that gives a computer player a reasonable chance.<\/p>\n<p> Like Chess, but even moreso, Go has three strategic stages, and the way you play in those stages is very different. There&#8217;s the opening; the mid-game; and the end-game. Conway&#8217;s games are useful for modeling go. They&#8217;re not particularly helpful in terms of strategy in the opening &#8211; but the opening doesn&#8217;t need that much help. It&#8217;s typically quite stylized: there are particular board positions that are extremely valuable, and in their first moves, each player typically stakes a claim to one of them. And then they start to sketch out territories very loosely according to a mostly predictable pattern. Then, at some point, someone makes a hostile move, and bingo, you&#8217;re into the mid-game, and that&#8217;s when strategy gets incredibly hard.<\/p>\n<p> You can describe a Go game using Conway&#8217;s games. Each board position is a game {L|R} where L is the set of possible moves for the first player, and R is the set of possible moves for the right player. Each turn, a player takes the number corresponding to the current board position, and picks one of the numbers from the appropriate set. That number becomes the new board position, and is passed to the other player. <\/p>\n<p> One of the things that makes this work so well for Go is that in the end-game, a go-board is mostly &#8220;filled in&#8221; &#8211; that is, most the territory is controlled by one player or the other, and there are just a few pockets of free space left. Using Conway&#8217;s games, you can take each of those free territories, and model <em>them<\/em> as games of their own. Then the game representing the full board position is the <em>sum<\/em> of the games representing the remaining free territories.<\/p>\n<p> The observation that the Go endgame could be analyzed a set of subgames was a prime motivator for Conway in the creation of the surreals. A representation of the games that allowed you to analyze the subgames was very desirable &#8211; but that representation also needed to be able to view the subgames are parts of the combined game. Conway was brilliant enough to see that the {L|R} pseudo-numeric structure with addition gave him a representation where the subgames could be combined using addition! From there, he just followed a fairly typical mathematicians analysis of the structure, and pushed it to see what it could do &#8211; and discovered the restriction that gave him an alternate construction of the real numbers. But the games actually came first!<\/p>\n<p> Anyway &#8211; once you&#8217;ve got the construction of surreal numbers and games, you can use<br \/>\nthem to do things like analyze the kinds of games, like sprouts, that Conway always plays<br \/>\nwith using surreal numbers and games. In fact, you can prove most of the well-known results<br \/>\nabout those (recreational) games using properties of the (numeric) games. <\/p>\n<p> Suppose you want to analyze a simple game. For the surreal numbers, we&#8217;ll assume it must have the following properties: (note that this is a simple example, and that by changing these restrictions, we can analyze more complicated games, and the price of a more complicated analysis &#8211; but also notice that this framework is almost enough to allow Chess to be analyzed this way!)<\/p>\n<ul>\n<li> There are two players. To make things easy, we&#8217;ll called them L and R.<\/li>\n<li> The game contains no randomizer, like a die.<\/li>\n<li> There is no hidden information: both players are in possession of <em>all<\/em><br \/>\nof the information about the current state of the game, and the possible future<br \/>\nmoves.<\/li>\n<li> Players alternate turns.<\/li>\n<li> The game ends when there are no legal moves left for one player; when this happens, the other player wins<\/li>\n<\/ul>\n<p> Let g<sub>x<\/sub> be the game representing the game after <em>x<\/em> moves. (That is, each player has moved x\/2 times.). If g<sub>x<\/sub>&gt;0, then it means that L will win: all possible games in which R wins have been eliminated.  If g<sub>x<\/sub>&lt;0, then R will win, all possible games in which <em>L<\/em> wins have been eliminated.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we&#8217;re going to take our first baby-step into the land of surreal games. A surreal number is a pair of sets {L|R} where every value in L is less than every value in R. If we follow the rules of surreal construction, so that the members of L sets are always strictly less than [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[43],"tags":[],"class_list":["post-369","post","type-post","status-publish","format-standard","hentry","category-numbers"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4lzZS-5X","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/comments?post=369"}],"version-history":[{"count":0,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/369\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/media?parent=369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/categories?post=369"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/tags?post=369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}