The Universe of Discourse : The road to epsilon-zero: Nim always ends, even with infinite ordinals
The Universe of Discourse
Mark Dominus (陶敏修)
mjd@pobox.com
About me
RSS<br>Atom
12 recent entries
The road to epsilon-zero: Nim always ends, even with infinite ordinals<br>The road to epsilon-zero: ordinals as nim-heaps<br>Starting to understand epsilon-zero<br>It's our language now!<br>I owe my life to a 1913 road rage incident<br>Deciphering basmala<br>My 1992 view of the problems of computer programming in 1992<br>Egyptian fraction multiplication<br>Update: Here I am at the Sagrada Família<br>Egyptian fractions for 2/105<br>Did Ahmes find the best expansions for 2/n?<br>Programmers will document for Claude, but not for each other
Archive:
2026:<br>JFMAMJ<br>2025:<br>JFMAMJ<br>JASOND<br>2024:<br>JFMAMJ<br>JASOND<br>2023:<br>JFMAMJ<br>JASOND<br>2022:<br>JFMAMJ<br>JASOND<br>2021:<br>JFMAMJ<br>JASOND<br>2020:<br>JFMAMJ<br>JASOND<br>2019:<br>JFMAMJ<br>JASOND<br>2018:<br>JFMAMJ<br>JASOND<br>2017:<br>JFMAMJ<br>JASOND<br>2016:<br>JFMAMJ<br>JASOND<br>2015:<br>JFMAMJ JASOND<br>2014:<br>JFMAMJ JASOND<br>2013:<br>JFMAMJ JASOND<br>2012:<br>JFMAMJ<br>JASOND<br>2011:<br>JFMAMJ<br>JASOND<br>2010:<br>JFMAMJ<br>JASOND<br>2009:<br>JFMAMJ<br>JASOND<br>2008:<br>JFMAMJ<br>JASOND<br>2007:<br>JFMAMJ<br>JASOND<br>2006:<br>JFMAMJ<br>JASOND<br>2005: OND
Subtopics:
Mathematics251<br>Programming102<br>Language97<br>Miscellaneous75<br>Book50<br>Tech49<br>Etymology36<br>Haskell33<br>Oops30<br>Unix27<br>Cosmic Call25<br>Math SE25<br>Law23<br>Physics21<br>Perl17<br>Biology16<br>Brain15<br>Calendar15<br>Food15
-->
-->
Technorati Profile<br>-->
Comments disabled
Sun, 19 Jul 2026
The road to epsilon-zero: Nim always ends, even with infinite ordinals
Previously:
Ordinal numbers and basic set theory
Ordinals as nim-heaps
Yesterday I talked about the game of Nim, which involves two<br>players taking beans from several piles, and an extension that<br>includes green tokens that behave a bit like infinite piles:
When there's a pile with one or more green tokens, it's legal for a<br>player to remove any or all of them, and then to add any number of<br>beans to the pile.
At first it might seem that Nim with !!ω!!-tokens could go on forever.<br>Not so!
If someone gives you a Nim position where all the piles contain beans,<br>you can say ahead of time how long the game might last. A game<br>starting with nim-heaps of size !!\{1, 3, 4, 8\}!! simply can't last<br>more than 16 turns, because each turn removes at least one bean from a<br>pile, and the game ends when someone takes the last bean.
If the game starts with nim-heaps of size !!\{1, 3, 4, 8,<br>\omega\}!!, you can't know how long it might last. If you guess it<br>will be over in<br>!!1,\!000!! turns, the first player might prove you wrong by<br>replacing the<br>!!\omega!!-token with a pile of !!10,\!000!! beans, and then the<br>game might last up to !!10,\!016!! more turns.
If you guessed at the start that<br>the game would last no more than !!10,\!016!! turns, one of the<br>players might replace the token with a<br>pile of !!1,\!000,\!000,\!000,\!000,\!000,\!000!! beans, or even<br>more. Before the first move, there is no bound that can be placed on how long the<br>game will take to finish.
But what you can say<br>about<br>!!\{1, 3, 4, 8,<br>\omega\}!!<br>is that after at most !!17!! moves,<br>someone will have removed the !!ω!!-token and replaced it with some<br>finite number of beans. And that that point you'll be able to say<br>when the game will end.
!!ω·2!!
Similarly, suppose there is are piles !!\{1, 3, 4, 8, \omega·2\}!!.<br>Remember that !!\omega·2!! is simply a stack of two green tokens.<br>What's the longest this game could last?
As before, we can't say. But we can say that after at most !!17!!<br>turns, at least one of the !!ω!! tokens will have been removed, and there<br>will be at most one !!ω!! token and a possibly very large number of<br>beans, say !!b_1!!. And then after at most !!b_1+1!! more moves, the last<br>!!ω!! token will have been taken if it wasn't before, and only beans<br>will be left, possibly a very large number of beans, say !!b_2!!.
And at that point we will be certain that the game can't last more<br>than !!b_2!! more moves.
So with !!\{1, 3, 4, 8, \omega·2\}!! we can't say how long the game<br>will take to finish.
And we can't say when we will be able to say how long the game will<br>take to finish.
But we can say that in at most !!17!! moves, we will be able to say,<br>not how long the game will take to finish, but how long it will be before we can<br>say how long the game will take to finish.
Estimating programming tasks
This reminds me of a story I once heard from another programmer. He<br>told me his boss had come to him to ask him if he could fix a certain<br>bug. He had replied that he could, and the boss had asked him how<br>long he thought it would take.
He said “I don't know, I have to think about it.”
His boss, being a reasonable woman, asked him when he would be able to<br>tell her.
Again he said “I don't know, I have to think about it.”
The boss, having dealt with this guy before, did not lose her<br>temper. Instead, she asked how long it would take him to figure that<br>out.
“Not more than two days,” he said at once.
“Okay,” she said. “Just to make sure there is no miscommunication,<br>are you telling me...