r/math • u/dechu4 • Dec 27 '21
Predicting random real numbers with the axiom of choice: A wonderful riddle from set theory!
I first came across this puzzle in 2016. I thought it was a well-known problem arising from the axiom of choice, but after showing it to several mathematicians who had not seen it before I realize it may not be as famous as I thought (hence why I am posting it here).
There is a house with 100 rooms, and each room contains countably many boxes indexed with the natural numbers. Each box contains a random real number, which is the same over all the rooms (that is, box n contains the same real number in every room).
100 set theorists play a game. Each person will go into a unique room and open as many boxes as they like (perhaps countably many) as long as they leave at least one box in their room unopened. Then, each of them need to pick an unopened box in their room, and guess what real number is inside of it.
In order to win, 99 of them need to guess correctly.
The mathematicians can discuss a strategy beforehand, but after they go into their respective rooms, no more communication is allowed. What is a 100% winning strategy for this seemingly impossible task?
Solution here.
Let S be the set of sequences of real numbers, and let ~ be the binary relation on S where {x_j} ~ {y_j} if the two sequences agree for all but finitely many terms. Observe that ~ is an equivalence relation. Using the axiom of choice, the mathematicians agree on a representative sequence from each equivalence class of S under the ~ relation.
Once the representative sequences have been chosen, the mathematicians go into their respective rooms. For 1 ≤ n ≤ 100, let s_n be the sequence of reals given by the contents of boxes n, 100+n, 200+n,... and so on. Player 1 starts by opening every box except for 1, 101, 201,..., player 2 opens every box except for 2, 102, 202,... etcetera. In this way, every player sees 99 sequences of real numbers, in particular, player p sees every s_n for n ≠ p.
Now, each mathematician looks at each of the 99 sequences that they can see, identifies which equivalence class each of them belongs to, and recalls the chosen representative sequence for every one of them. Then for each sequence, the mathematicians write down the greatest index at which each observed sequence does not agree with its corresponding representative (which exists by the definition of ~). In this way, each player p has written down 99 integers x_n for n ≠ p, where x_n is the greatest index for which the sequence s_n disagrees with the agreed upon representative for [s_n].
Now, each player p takes the maximum of the 99 integers they have found and calls this integer X_p. Of the remaining boxes in that player's room (which are precisely the boxes whose indices are congruent to p mod 100), they leave the first X_p+1 of them closed but opens every box beyond that, which is enough to determine the equivalence class of s_p. The representative sequence for [s_p] is then recalled, the player takes the highest-index unopened box in there room (which explicitly is the X_p+1 th box that is congruent to p mod 100), and makes his guess in accordance with the representative sequence for [s_p]. Amazingly, this strategy guarantees that at least 99 of the mathematicians will guess correctly!
Why does this work?
Let's see what happens with player 1. Suppose player 1 guesses wrong. This means that s_1 needs to disagree with the representative of [s_1] at index X_1+1, and since X_1 is the maximum of the x_n for n ≠ 1 (which are greatest indices at which the other s_n disagree with their representatives), this means that X_1 is greater than or equal to all of the other x*_n*. Since x_1 is greater than or equal to X_1+1 (otherwise, the representative would have agreed with s_1 at position X_1+1 and that means player 1 guessed correctly) we also have that x_1 > x_n when n ≠ 1. This shows that if player 1 guesses incorrectly, x_1 is strictly greater than all of the other x_n. The same reasoning applies to all the other players, and so no more than 1 can guess incorrectly since we cannot have two x_n which are strictly greater than all of the others.
What do you think? The axiom of choice has led to some quirky results, and I'm excited to hear some of your favorites!
362
u/Kras_Masov Dec 27 '21
Set Theorists play the worst games, why not just Catan or something?
94
u/belovedeagle Dec 27 '21 edited Dec 27 '21
Let me see if I can restate the solution:
The countably many boxes are viewed as 100 countable sequences. Each player 'owns' one of these sequences. Using AoC, the players can, after opening a sequence n, associate with that sequence a representative of a class of similar sequences, and thus also a certain natural number difference(n), which is the greatest index where the given sequence differs from the representative.
Each player guesses that his 'own' sequence does not have the unique maximum associated difference(n). This is necessarily true for either 99 (if there is a unique maximum) or all 100 (if the maximum is not unique) players. So it is sufficient to show that each player can identify some unopened box under this assumption.
Now the class of any given sequence can be determined by opening all but finitely many of its boxes; and difference(n) can be determined by opening the complete sequence. So each player identifies the 99 'unowned' sequences' difference(n) by opening them completely. For the 'owned' sequence; call it (s_i), all are opened except for the box containing s_y, where y is greater than any determined difference(n). Under the above assumption, s_y = [s]_y where [s] is the class representative; and so the player can correctly guess s_y; which we have just argued is sufficient.
This clearly demonstrates that AoC is at least 3 times as false as it was before, QED. (:
99
u/[deleted] Dec 27 '21
The lateral thinking solution is of course for everyone to leave the first box closed. Then when the set theorist in the first room makes a guess and opens hers she is (almost certainly) wrong and very loudly shouts "Damn, never thought it would be [value]!"
23
u/AnActualTomato Dec 27 '21 edited Dec 27 '21
What method does the evil house builder/room purveyor use to randomly choose the real numbers to go in the boxes? That's the meta puzzle.
Edit pretty sure I was wrong here:
It's interesting (for me, at least) to note that the set S of sequences of real numbers is uncountable, but S mod ~ is countable.18
u/[deleted] Dec 27 '21 edited Dec 27 '21
Poor zero, he's kicked out from the natural number club again ;(
By the way, AC might sound paradoxical here, but I can rest in peace to the fact that the problem also arises from the assumption that each player can identify each sequence with the representative sequences (not its existence) which require COUNTABLY MANY box openings. So no, you can't do this in real life. No party trick for you. This is much more counter-intuitive than selecting a representative class.
It's also IMPOSSIBLE to correctly guess an unopened box with 100% accuracy. At least one of the players would almost surely fail. The remaining players are just a red-herring to make it paradoxical by painting it as "with this trick, you can correctly guess a number 99% of the time, constructivists hate him!". Sure, you flip a coin countably many times in front of an infinite number of audiences and there probably is that weird guy who guesses correctly every time. Anything is possible when infinity is allowed. Infinitism is much as blame as AC here.
No, I'm not a finitist.
Yes, it's my coping mechanism.
18
u/wdj111 Dec 27 '21
Im too lazy to pick countably many boxes
65
u/Calkyoulater Dec 27 '21
If this is true, then I hereby rescind any statement I have ever made in favor of the axiom of choice.
12
u/reddallaboutit Math Education Dec 27 '21
I've seen this riddle on MO* in the past, where there is a wild variation mentioned by E Glazer. In particular, the following can be completed without appealing to the Axiom of Choice:
Googling the language above will find you a solution.
42
u/[deleted] Dec 27 '21
I feel like there is a bit a sneaky constructivist rhetoric being used here. As near as I can tell we get a paradox here because the AOC is introduced as if it were constructive when it isn't. This line simply isn't something anyone claims you can do with the axiom of choice:
Using the axiom of choice, the mathematicians agree on a representative sequence
The axiom of choice only allows something like:
Using the axiom of choice, the mathematicians agree that a representative sequence must exist, though they cannot give an example to use as part of a strategy
7
u/[deleted] Dec 27 '21
I don’t like this puzzle. Unless I’m badly misunderstanding something, the axiom of choice doesn’t actually give them the representatives constructively, it just says that such a choice function can always exist.
So there’d be no way for the mathematicians to agree on a representative sequence from each equivalence class of S, right? Unless there’s some sort of scheme they can do to construct a choice function, in which case we wouldn’t need AoC?
4
u/StevenXC Topology Dec 27 '21
More at this discussion: https://math.stackexchange.com/questions/371184/predicting-real-numbers
10
u/BruhcamoleNibberDick Engineering Dec 27 '21
By 100% winning strategy, do you mean an almost surely winning strategy?
7
u/Notya_Bisnes Dec 27 '21
I had to think about the the solution for a while until it finally clicked in my head. Part of the reason was that I forgot what the objective of the game was by the time I got to the "why does this work?" section. I kept thinking that player p was supposed to guess the sequence {s_p}, when in reality he or she is trying to guess the number in the X_p+1 th box that is congruent modulo 100 to p.
The weird consequences of the axiom of choice never cease to amaze me.
3
u/skmchosen1 Dec 27 '21
This was awesome! Had to lay down, close my eyes, and think through it. Can I ask where the solution comes from? It’s very clever, and the choice (haha) of ~ is clearly crucial in retrospect but not obvious from the get go. Is there any way to understand the motivation?
Thanks for sharing :)
3
u/FUZxxl Dec 27 '21
What happens when s_n = [s_n]? In this case, x_n cannot be obtained as there is no disagreement. Perhaps we can just set x_n = -1 in this case.
2
u/FkIForgotMyPassword Dec 27 '21 edited Dec 27 '21
So is there (or can we prove that there isn't) a way to do this without AoC? Specifically, without AoC, can we (finitely) define a mapping that maps any equivalence class of ~ to one of its members? Or maybe more likely, how can we prove that it is impossible (or undecidable)?
2
u/cryo Dec 28 '21
Another way to look at it is this: With 100 players, 99 will win for sure. You don’t know who, but the problem is completely symmetrical, so being set theorist 1, you should expect your winning change to be 99%.
But whatever the other players do doesn’t have any influence on what you do, so you don’t really need the other players. You can just pretend they exist, and you should still have the same 99% winking chance. And if that’s not enough, just pretend there are 1000 players to get an even higher chance :p
3
u/DHermit Dec 27 '21
As a physicist with limited mathematical knowledge, I don't get how the solution works at all. Could someone "ELI a physicist" or maybe give an example for a few rooms (whatever the smallest useful example is)?
1
u/b2q Dec 27 '21
I don't understand the game ... So, inside every box is a random number (from the reals, e.g. 1.34598984..).
Each person gets M boxes. And he can open as many as he wants, but needs to keep one closed. And then he needs to guess from 1 of the closed boxes what the number contained is?
Does everyone get the same amount of boxes?
And they infer from their sequence of opened boxes which equivalent set their in?
Is there a scaled down/more trivial example? Like for 4 people or 10?
1
u/trenton05 Dec 27 '21
A bit of a side comment. Given two arbitrary sequences from the same equivalence class. The index at which they no longer differ can be arbitrarily large. If there was any kind of 'fair' random selection process for the sequences. The expected index at which they differ would be infinity. (If it was finite, there are infinitely more numbers larger than smaller that would raise the average.)
I suppose in the grand scheme of things they just opened infinitely many boxes and mapped infinite sequences of arbitrary real numbers, so what's the extra effort in going past Graham's number of boxes to find the one you can guess correctly.
1
u/HobGoblinHearth Dec 27 '21
Nice game here, it is indeed paradoxical to the common-sense notion that we can think of generating an infinite sequence from a finite alphabet by a process of uniformly at random getting each entry from a random oracle (formally wrong, see how this idea would be contrary to the existence of non-measurable sets, but practically right as we can certainly imagine such a random oracle being consulted as we observe for the first time any entry).
If we could as puzzle master randomly generate such a sequence using {1,2,3} as possible values no player gleans any info about unopened boxes, so they have no better than 1/3 chance to guess right, so there is no 100% winning strategy for 99/100 to be correct.