News for hackers. Stuff that matters.
Re:Hilbert's Paradox of the Grand Hotel by rightbyte on Saturday June 12, 2021 @09:06AM (#27484203)
> moving every guest from their current room n to room n+1

The whole setup of the paradox is bad. There a infinit amount of rooms, all are full, but somehow atleast one room is not. The guests and rooms operate under different rules.

Re:Hilbert's Paradox of the Grand Hotel by MereInterest on Saturday June 12, 2021 @09:13AM (#27484269)
That's sort of the entire point of the paradox. Every room is full at the start. Not "somehow at least one is not", but every single room is full. Then, by having guests move to different rooms, you can rearrange such that there is an empty room.

The guests are markers to indicate a bijective function between room numbers. Each guest represents a (before, after) tuple.

Re:Hilbert's Paradox of the Grand Hotel by rightbyte on Saturday June 12, 2021 @09:38AM (#27484397)
A point of a paradox can also be to invalidate the assumptions made. I mean, mathematicians are getting away with way too much nonsense by using diffucult words.

The hotel paradox is essentially equivalent to:

    I can add a natural number to the set of all natural numbers which is not in the set allready.
Re:Hilbert's Paradox of the Grand Hotel by MereInterest on Saturday June 12, 2021 @09:59AM (#27484558)
I think I would call that a contradiction rather than a paradox. A conclusion that is a contradiction means that one of your starting assumptions is incorrect. A conclusion that is a paradox means that your intuition about the problem was incorrect.
Re:Hilbert's Paradox of the Grand Hotel by morelisp on Saturday June 12, 2021 @09:41AM (#27484420)
No, the paradox is that there are the same number of even natural numbers and natural numbers, yet the former is a strict subset of the latter.
Re:Hilbert's Paradox of the Grand Hotel by rightbyte on Saturday June 12, 2021 @10:07AM (#27484613)
Ye sorry I was refering to the hotel paradox. Edited.
Re:Hilbert's Paradox of the Grand Hotel by danbruc on Saturday June 12, 2021 @09:15AM (#27484282)
No, you are trying to use your intuition for finite sets on infinite sets. Subsets of infinite sets can have the same size as the entire set. There are as many odd natural numbers as there are natural numbers even if your intuition tries to tell you that this can not be true because the natural numbers additionally contain all the even natural numbers.
Re:Hilbert's Paradox of the Grand Hotel by rightbyte on Saturday June 12, 2021 @09:25AM (#27484323)
I am buying that.

In the hotel case, it would be like claiming I can add a natural number to the set of all natural numbers which is not in the set allready. All guest are allready at the hotel ...

Re:Hilbert's Paradox of the Grand Hotel by lupire on Saturday June 12, 2021 @09:47AM (#27484465)
Which number are you adding? In the problem, you are adding 1 to the set, but it's already there, so you remove it by replacing it by adding 2, and n by n+1 for all n
Re:Hilbert's Paradox of the Grand Hotel by rightbyte on Saturday June 12, 2021 @09:53AM (#27484505)
Ye well my point is there is no number to add that is not allrady in the set and that the hotel clerk can't change that by rearranging guests. I.e. there are no guests that are not allready checked in (each guest need a room with a natural number on the door).

Edit: I.e. the error in the paradox is assuming that there can be any more guests to check in when the hotel is full.

Re:Hilbert's Paradox of the Grand Hotel by danbruc on Saturday June 12, 2021 @10:34AM (#27484762)
Just imagine all the even numbers are currently in the hotel, zero is in room zero, two is in room one, four is in room two...2n is in room n. Now all the odd numbers arrive at the hotel, maybe one after another, maybe all at the same time, but you can apply one of the procedure to fit them in. You must not confuse the numbers occupying each room with the numbers of the rooms, the room numbers are all the natural numbers but they can all be occupied by the even numbers alone. Because, as I said, there are as many odd numbers as there are even numbers as there are natural numbers.
Re:Hilbert's Paradox of the Grand Hotel by rightbyte on Saturday June 12, 2021 @10:49AM (#27484864)
> the room numbers are all the natural numbers but they can all be occupied by the even numbers alone

Hmm ... that is an interesting take on it. I.e. guests with even customer id:s can have all rooms.

Maybe I just have to accept the paradox to be a property of infinite sets by definition.

Re:Hilbert's Paradox of the Grand Hotel by danbruc on Saturday June 12, 2021 @11:30AM (#27485139)
It's not really a paradox, just some things that work for finite sets no longer work for infinite sets. The sets { A, B, C, D } and { 1, 2, 3, 4 } have the same size because they both have four elements. Another way to see that they have the same size is that you can provide a one to one mapping between them, for example A - 4, B - 3, C - 2, D - 1.

For infinite sets the first option no longer works, you can not write down a specific number for the number of elements in a set and then see that two sets have the same size because you wrote down the same number for both of them. But the second option still works, you can provide a one to one mapping between the elements of two sets, for example n - 2n to match all natural numbers with all even numbers. Each natural number n has an associated even number 2n and each even number 2n has an associated natural number n.

And this is then just the definition of what it means for two sets to have the same size, there is a one to one mapping between their elements. And this works for finite sets as well as for infinite sets. Everything else are consequences of that. Take the natural numbers and take the natural numbers with the first k of them removed, the two sets still have the same size because you can pair n with n + k even if it is against your intuition that the size of a set does not change when you remove some of its elements.