Whatever I want.
Why do you have to produce them in some predefined order?
You could generate random real numbers, one at a time, and sort them as you add them to your set.
When you stop, you will have a set of real numbers in order. If you want to know where a new one goes, you just generate it, add it to the set and sort it (or just add it in the proper position).
And you will have a finite set of real numbers.
If you never stop, you will keep forever generating real numbers, exactly the same as you would with natural numbers.
The only thing that matters is whether you stop counting or not.
If you stop counting, you get a finite set.
If you don’t stop counting, you get an infinite one (but you’d never finish generating it).
There is no way for a human to count for infinite time… so we can only speculate about that case.
The only case that will ever occur in reality for us, is the finite case.
It then derives a contradiction by proving that there must be reals that aren't in that ordering, without making any assumptions about the ordering. So any ordering has this problem and none of them work.
It’s impossible to have a known cardinality of an “infinite set”.
The definition of set is “a collection of items”. You cannot “have” an infinite collection of items.
You can have a method/function/formula/algorithm that generates as many items as you can in a certain amount of time, but by definition of infinity, you can never “count” an infinite number of elements.
Hence, you can never know the cardinality of an infinite set (like the natural numbers).
Once you think you can reduce something unknowable, to a symbol, you can prove anything.
Like when proving 1=2 by dividing by 0.
But then what’s the point?
> Once you think you can reduce something unknowable, to a symbol, you can prove anything.
That doesn't follow. If ZFC is trivially inconsistent then someone would probably have noticed by now and proved P && !P for some P and brought it crashing down. That hasn't happened though, so even if you have strong aesthetic preferences against infinite sets being actually real, it seems like you can treat them as if they are real and produce a productive and not-obviously-inconsistent mathematical system. Most mathematicians don't really care if the naturals are actually infinite or just can be productively treated as if they are.
Ahh, the classic economic argument, “that’s not a $100 bill on the sidewalk, because if it was, someone else would have picked it up already”.
That’s a great way of accepting everything blindly to justify not questioning things.
It also means you are using popularity as a measure of truth.
It’s fine if mathematicians don’t care if naturals are “actually infinite”, but then what’s the point in reasoning about infinity through math if technically you are not really saying anything, but you’re going in circles around your own definitions instead?
Now try doing that with the real numbers. You explicitly said you can sort them after. So, tell me, what comes immediately after 1, so I can attempt to convince you that it does not.
In other words, that the real numbers only have local sorting, not global sorting, whereas the natural numbers have both.
The thing with the reals is that no orderings work, that's what Cantor's diagonalization proof does.
But eventually you will have to stop.
Counting infinity is a contradiction, as you can never stop. Hence you can never get a final output.
It doesn’t make sense that the cardinality of the set of natural numbers is some finite symbol (aleph-null). We can never truly know the cardinality of that set, because we can’t count to infinity.
There’s an additional issue here. Which is: what does it mean to count?
Because counting natural numbers usually means generating them in a certain order.
The issue is that we cant come up with a way to produce reals in an orderly way one after the other.
But we can always generate a random real number, then add it to a set in a position between a smaller and a bigger number. That way the set will always be in order, even if the number wasn’t produced right after a smaller number and before a bigger number. The order is essentially ad-hoc and varies as you generate the set. And if you kept going “for infinity” you would generate all the real numbers.
But we can never count to infinity, not even for the natural numbers.
Simple: at each step generate a random real number and assign it a natural number.
You will never run out of natural numbers.
And if you keep going to infinity, then the probability of generating all reals is 1. So you would be generating all reals and assigned all of them a natural number.
The issue is that the proofs for uncountability assume we can finish counting natural numbers and after finishing, generate a real that is not in the naturals.
But if we had finished counting, we could do the same for the naturals, just add 1 to the largest number and you’d have something not in the set. Of course you can only do that if you have a finite set, which is not the case for the naturals =><=
> Simple: at each step generate a random real number and assign it a natural number.
This is nonsense. You said you were going to go through the reals "in order". Then you give a procedure that involves generating reals randomly. Just think about what you said.
It's not possible to go through the reals "in order"; that would imply that for any real, there is a "next" real.
Let the starting real be A. Suppose there is a next real; let it be B (generate it using some random process, if that floats your boat). The interval between them, B-A, let us call that C. I can divide C by 2, and produce a new real D=A+(C/2), which is smaller than B and larger than A. Therefore B is not the next real.
This is true for any choice of A and B, so it follows that there cannot be a "next" real, and so it's impossible to go through the reals one by one, in order.
> As long as you can keep going for infinity.
That's irrelevant, even if you restrict yourself to the reals between 0.001 and 0.002, because whatever process you use to select the "next" real, I can find one that is a better candidate, by dividing the difference by two.
The number of reals between 0.001 and 0.002 is the same as the total number of reals, and it's bigger than the number of natural numbers. That's a mind-boggling conclusion; but note that Cantor died with his mind well and truly boggled (he went mad).
You need to decide whether you want to define counting as “there being a next element”, or “being able to produce those elements in a finite way with a predefined order”.
The issue here is that you are trying to make a finite/determinate assertion about an infinite process.
There are no reals in between 0.001 and 0.002, unless you generate them. And when you do, you can count them one by one until you finish generating them.
Just like you could never finish counting infinite real numbers, you could never finish counting infinite natural numbers.
So then what Cantors proof is saying is that if you could somehow count to infinity and get to a result, some infinities would have more elements than others. But that is a contradiction, because you can’t finish counting to infinity.
Hence, you cannot know infinity nor its cardinality. Not for the real numbers and not for the natural numbers either.
You seem to be thinking of a real as a string of digits, or a block of bits, which is just the representation of a real. Like, a number doesn't exist until you think of it. That view doesn't help much in thinking about these matters.
> So then what Cantors proof is saying is that if you could somehow count to infinity and get to a result, some infinities would have more elements than others. But that is a contradiction, because you can’t finish counting to infinity.
So you're saying Cantor's "proof" embodies a contradiction. You must be a very great mathematician. I'm not a mathematician, so I'd better just bow out now. Anyway, I'm way too old to start thinking of numbers as some kind of generative process.
That’s just gate keeping through labels. And probably the reason why so many old ideas go completely unchecked and are taken as gospel for so long with no one questioning them.
You can clearly reason about this stuff, even if you are not a mathematician. But maybe it scares you to think that something that you thought was “true”, is just someone else’s opinion about what they thought it was true.
In fact many proofs went against the opinion of the proof's creator.
So, I'm not "scared"; I'm prefectly prepared to take a stand against unproven orthodoxies. But I have enough humility to realize that if I think I've found a contradiction in a proof by a great mathematician such as Cantor, and nobody else has found it, then it must be me that's wrong.
We can talk about whether or not a countably infinite sequence S contains a given element x. We iterate through each element s of S one-by-one. If x is contained in S, then eventually we will find an element s such that s = x. But if x is not contained in S, then we will keep iterating for all eternity.
For all countably infinite sets, we can always produce such a sequence, where the iteration will eventually halt if and only if the element is contained in the set. But for the set of real numbers, no matter what sequence we choose, we will never ever find the diagonalized number in our sequence. That's why we call the set of real numbers uncountable.
You dispute that we can't physically count through all of the infinite elements in the real world. But math has no problem talking about what would hypothetically happen if we were to try. It lets us prove ahead of time that certain events will eventually happen if we iterate long enough, and other events will never ever happen.
So then it’s only proving that if you choose the ordering ahead of time, you won’t be able to do it, because real numbers don’t have a predefined order. You can only order them as you produce them.
If you re-sort after each iteration (or insert them in order), you can count as many real numbers as you want.
In any case, for practical applications, you could never count anything infinite, at some point you’d run out of physical storage to keep the count.
How many bits can be encoded in the universe? That will give the limit of what could ever be counted. And it’s not infinite.
What's the problem? You just produce the diagonalized number at the same time as you produce your order. Every order you produce them in has its own corresponding diagonalized number that will never be produced.
> If you re-sort after each iteration (or insert them in order), you can count as many real numbers as you want.
You can count as many real numbers as you want, but none of them will ever be equal to the diagonalized number. (That is, in finite time, you will always be able to find a digit that differs between the two numbers.)
> How many bits can be encoded in the universe? That will give the limit of what could ever be counted. And it’s not infinite.
How do you know the universe isn't infinite?
Regardless, I don't see why we shouldn't consider formal systems in which infinite amounts of information can be manipulated. Even in our finite light cone, mathematical statements about infinite sets can help us separate the possible from the impossible. For instance, mathematics tells us that adding 1 to any integer will never produce the same integer. There are infinitely many integers, so we can't experimentally verify this in the real world. But if we accept that abstract statement, then we know what to expect when we do try to physically add one object to a group of objects.
Infinite essentially mean unknown. How could you possible compare the size of two unknowns?
You just can’t, but we want to be able to reduce something infinite/unknowable, to a finite symbol that we can use in our limited language.
Edit: for sibling comment -> how would you know the cardinality of a set without counting it? And if you have two infinite sets, how would you ever finish counting them to determine their cardinality and compare them?
It doesn’t even make sense to talk about the cardinality of an infinite set, infinity is not a number.
We pretend that the infinity symbol can somehow magically summarize and quantize something that is essentially unknowable.
The infinity symbol doesn’t make something magically finite.
The cardinality of an infinite set is unknowable. It is not “infinity”.
The point is, that's not really what infinite means. A set being infinite just means that we can start listing elements, and we'll always be able to find a new element that we haven't listed before.
To compare two infinite sets A and B, we can consider functions F that take any element from A and output some element from B.
If A and B have the same cardinality, then we can always describe a certain function F that can potentially output any element from B, if we know the right input from A.
But if B has a greater cardinality than A, then we cannot find any such function. No matter which function F we choose, there will always be certain values in B that can never be output by F given any input in A. Thus, we say that B has "more elements" than A in a certain sense.
In the case of Cantor's argument, A is the set of natural numbers, B is the set of real numbers, and F is the ordering we choose.
A variation of Cantor's argument can be expressed fully in terms of finite objects. Suppose we have a function F such that F(i) = f_i, where f_i is a function such that f_i(j) represents the jth digit of the ith real number in the sequence.
Then, we can write a new function g(j) = (F(j)(j) + 2) mod 10, or some variation. This function g(j) similarly represents a real number.
Now, we can take any i we want and start comparing f_i(1) vs. g(1), f_i(2) vs. g(2), etc. After a finite amount of time, we'll always reach a point where the two functions differ. This means that the two functions represent two different real numbers.
Therefore, the real number represented by g is not represented by any of the f_i, no matter which function F we start with.
> A set being infinite just means that we can start listing elements, and we'll always be able to find a new element that we haven't listed before.
You can do that for the real numbers, by keeping a set of all the unique real numbers you’ve produced before, then adding one random real number at a time, always checking that is not in the set already.
And if you could go forever, then the probability of generating every real number is 1.
However, infinity is unknowable. You can’t just say that the “infinite” cardinality of a set can just be reduced to a symbol, that is like saying you finished doing the calculation and that you know there’s a final result. But there isn’t a final result.
The arguments in your explanation only prove that you cannot predict or choose an ordering for the real numbers before counting them. But if you produce random real numbers at each step and re-order them, you don’t need a predefined order. In fact the order can just be the order in which the real number was generated, regardless of its value, then you don’t even need to reorder them.
Edit: replying to reply to this by LegionMammal978 as the nesting level doesn’t let me reply under it
Thank you for the engaging conversation.
You found the issue: Cantors argument assumes you can finish an infinite process and then add an extra step…
Please see this other comment: https://news.ycombinator.com/item?id=35311403
We put a symbol on cardinality because it lets us make statements about the properties of sets, like whether or not we're able to map them one-to-one with other sets. In turn, this often helps us with proving statements about finite objects. (Technically, they let us quantify over different scenarios: say what can't happen, or can happen, or might not happen, or must always happen.) To repeat my example, we say with symbols that x + 1 > x for all the infinitely many numbers x, even though we can't physically check all of them. But if you hand me some physical number X and I add 1 to it, I can apply the abstract statement to know that I'll get a bigger number in that scenario.
> The arguments in your explanation only prove that you cannot predict or choose an ordering for the real numbers before counting them. But if you produce random real numbers at each step and re-order them, you don’t need a predefined order. In fact the order can just be the order in which the real number was generated, regardless of its value, then you don’t even need to reorder them.
I don't understand what you're trying to say here. In more finite terms (given that random real numbers already contain infinite information), the diagonalization argument says, "You can keep generating individual real numbers as long as you want, by any process. But there'll always be at least one real number that you'll never ever count to, no matter how long you keep generating numbers." (You can't say the same thing about the natural numbers: some methods of counting them will, in fact, reach every number sooner or later. That's the crucial distinction.)
This does not require any kind of "predefined order". In fact, the diagonalization has to listen to all the numbers we generate just to provide an example of an unreachable number. So at any given point in the process, we can't know in full what the unreachable number is (without knowing the generation process); we only know its initial digits. But the limit of these partial answers is the full unreachable number, which had already been there in the first place.
(I hope you accept the idea of an arithmetic limit; without it, we'd have trouble with basic things like justifying that 0.999... = 1, or resolving Zeno's paradoxes of motion. It's an intrinsic part of what a real number is.)
> (or insert them in order),
There is no order. You can't describe one, and it is proven that no order exists.
> you can count as many real numbers as you want
No, you can't count more than 0% of them, even in infinite steps.
The same way, I can just generate random real numbers, then define my set as in ascending order, and insert them in that order.
Which is what we essentially do with natural numbers as well. Except that the order is a sort of mainstream standard and has been drilled into our minds since babies.
That is why ascending order is the norm for the positive integers. For any positive integer X, it is clear that we will reach it in X steps using that generator function. So, it’s not a matter of being mainstream, it’s just the simplest.
The difference between the infinity of the reals and the positive integers is that there is no such generator function for the reals. No matter what function you give me, I can write a finite number that you will not reach in a finite number of steps.
Feel free to give me a generator function and I will give you a finite number that it cannot reach in finite steps. On the other hand, try giving me a finite positive integer that I cannot reach in finite steps.
Reals and naturals both have the same number of symbols: unknowable (“infinity”).
> Feel free to give me a generator function and I will give you a finite number that it cannot reach in finite steps.
f(n)=n
If you give n to that formula, it will generate n in 1 step.
> On the other hand, try giving me a finite positive integer that I cannot reach in finite steps.
Can’t come up with one. As long as is finite you can always just output the number itself.
Anything finite is countable. Anything infinite is unknowable.
F(x)=x, will give you x in one step.
To perform the diagonalization, we can simply look at each real number that you randomly generate and add digits to the diagonalized number based on that order. It doesn't matter how much you shuffle them around afterward: the diagonalized number will still be different from all the generated numbers.
1) I will produce an infinite amount of numbers, then stop
2) I will look at the infinite amount of numbers and then produce a number which is not within the infinite numbers
3) Hey look, the number I produced in 2) is not within the infinite set, so there must be a larger infinite set
The issue is that you can never finish 1). That’s the error/illusion.
But if you get to cheat, then I can also add a step 4) As long as you add digits to my numbers to generate an additional number, I will reorder the set of generated real numbers and assign each of them a natural number.
Of course the order will change from iteration to iteration. But in this way the generated real numbers will always have a corresponding natural number.
> Of course the order will change from iteration to iteration. But in this way the generated real numbers will always have a corresponding natural number.
The real numbers that you generate will always have a corresponding natural number. But the diagonalized number will never have a corresponding natural number, no matter how much you shuffle your generated values.
That means that you stop. Which implies you are not going to infinity.
If you are going to infinity, there is no side that “wins” (real or naturals). You can always keep generating an additional one for either side.
The same way, we could continue this discussion forever if we just want to keep going back and forth (although HN does impose a limit of replies). And you could only make an assertion about the length of each side of the conversations, after the conversation ends. But if the conversation keeps going forever, you could never say to talked more than the other. Unless you specify a finite range for which you want to measure.
Naturals and Reals are both infinite. Saying that the cardinality of one is different than the cardinality of the other, is just comparing the ideas of cardinality about them that we have come with, but their actual cardinality can never be known.
Where, in all my comments, do I say that we must stop counting? You're putting words in my mouth here.
Since we don't stop counting, we never know the diagonal number's full value (unless our order is predefined). All we know is that the diagonal number exists, and it is different from all the real numbers we will ever count.
> If you are going to infinity, there is no side that “wins” (real or naturals). You can always keep generating an additional one for either side.
Of course. I am not disputing this. If we count through two different sets in the same way, then the subsets of values we count through will have the same cardinality (equal to the cardinality of the set of natural numbers).
But there's an important distinction. If we count through the natural numbers one-by-one without stopping, it's possible to exhaust the whole set of natural numbers, such that every single number will eventually get counted to.
Meanwhile, if we count through the real numbers one-by-one, it is impossible to reach all of them. There will always be a bunch of real numbers that we will never ever count to. That's why we say that there are more real numbers than can be counted: there are uncountably many.
You didn’t say it explicitly. But you are implying it when you assume you can count the naturals.
By assigning a label (eg. aleph-null) to infinity, is assuming you can finish counting them. The only way to finish is by stopping.
Look at your definition: “if we keep counting long enough”
You are reducing infinity to “long enough” and using that as a label for infinity.
You can’t know ahead of time that you will be able to finish without finishing.
You are saying you can know the unknown. But you won’t until you go and try to count the numbers.
You will never be able to count all the natural numbers. Regardless of what you think the formulas/symbols mean.
Math doesn’t happen by itself, it needs an interpreter to “execute the operations”. Without an operator, math is just a bunch of symbols.
The operator will never finish counting natural numbers. Or any other sequence/set/group of numbers that is infinite.
Let me try reframing it a bit. First, you think of some natural number N (e.g., 978) and keep it to yourself. Then, I start counting, "0, 1, 2, 3, 4, 5, ..." and never stop. You listen to me count until you hear N. Then, you can stop listening, even though I'll never stop counting. At that point, you already know that my sequence contains N, and you don't have to keep listening.
I hope you agree that no matter which N you choose, you'll hear me say it sooner or later, as long as I keep counting up by 1. If N is a smaller number, you'll hear me say it sooner; if N is a bigger number, you'll hear me say it later. But there's no N you can choose that forces you to listen to me forever. (And again, just because you stop listening doesn't keep me from talking forever.)
The same thing cannot be done with the real numbers. If you think of some real number R that I don't know, then there's no way for me to count through the real numbers to guarantee that you will eventually hear R and stop listening. Even if I do try to pick a certain sequence, there's a very good chance that you'll never hear R and you'll have to keep listening forever.
That’s not counting. You were asked to count. If we are just going to make stuff up, let’s just use a different language instead of co-opting concepts from natural language.