News for hackers. Stuff that matters.
Re:A Bad Trip to Infinity by nico on Saturday March 25, 2023 @04:32PM (#35307000)
> What comes after 1?

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.

Re:A Bad Trip to Infinity by LegionMammal978 on Saturday March 25, 2023 @04:48PM (#35307179)
> There is no way for a human to count for infinite time… so we can only speculate about that case.

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.

Re:A Bad Trip to Infinity by nico on Saturday March 25, 2023 @05:31PM (#35307631)
> But for the set of real numbers, no matter what sequence we choose, we will never ever find the diagonalized number in our sequence.

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.

Re:A Bad Trip to Infinity by hgsgm on Saturday March 25, 2023 @05:56PM (#35307857)
We're talking about infinity, not practical considerations.

> (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.

Re:A Bad Trip to Infinity by nico on Saturday March 25, 2023 @10:09PM (#35309951)
The order is arbitrary. What is the order of natural numbers? If you say they are in ascending order, that’s just the order in which you count them.

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.

Re:A Bad Trip to Infinity by LegionMammal978 on Saturday March 25, 2023 @10:20PM (#35310047)
> The same way, I can just generate random real numbers, then define my set as in ascending order, and insert them in that order.

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.

Re:A Bad Trip to Infinity by nico on Sunday March 26, 2023 @01:43AM (#35311403)
What you are saying is:

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.

Re:A Bad Trip to Infinity by LegionMammal978 on Sunday March 26, 2023 @03:23PM (#35318482)
Where did I imply 1)? We never finish producing the numbers, so unless our production order was fixed from the beginning, we never know the full value of the diagonalized number. But the partial diagonalized number (which we refine at each step by looking at the produced number) will gradually converge to a limit, which is a real number different from any number we will ever produce. At no point in the process do we know the limit exactly, but it is there nonetheless.

> 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.

Re:A Bad Trip to Infinity by nico on Sunday March 26, 2023 @04:37PM (#35319306)
You are saying that when you stop counting, the diagonal number will be different.

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.

Re:A Bad Trip to Infinity by LegionMammal978 on Sunday March 26, 2023 @06:52PM (#35320550)
> You are saying that when you stop counting, the diagonal number will be different.

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.

Re:A Bad Trip to Infinity by nico on Monday March 27, 2023 @01:47AM (#35323287)
> Where, in all my comments, do I say that we must stop counting? You're putting words in my mouth here.

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.

Re:A Bad Trip to Infinity by LegionMammal978 on Monday March 27, 2023 @02:30AM (#35323515)
We assign the label ℵ₀ when we want to express the property that any given natural number can eventually be reached if we keep counting for long enough. That's what it means, no more and no less. I don't see what it has to do with "assigning a label to infinity" or "assuming you can finish counting them". We don't use cardinalities to magically make the infinite finite (well, I don't, but I'm sure some pop-math explanations do), we use them to compare and contrast the properties of infinite sets, and refusing to acknowledge these properties doesn't make them go away.
Re:A Bad Trip to Infinity by nico on Monday March 27, 2023 @10:15AM (#35326938)
> We assign the label ℵ₀ to an infinite set when we want to express the property that any given element can eventually be reached in a finite time if we keep counting for long enough.

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.

Re:A Bad Trip to Infinity by LegionMammal978 on Monday March 27, 2023 @08:42PM (#35334244)
Perhaps I have not been as clear as I should be. The sequence of counted numbers is infinite, and we would never be able to finish counting all of it. But all we care about for defining ℵ₀ is whether or not the sequence contains some particular value. If it does contain the value, then we can confirm that in finite time, even though the sequence 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.

Re:A Bad Trip to Infinity by haneul on Sunday March 26, 2023 @12:24AM (#35310914)
Ascending order is just one of many arbitrary orders. An ordering is a first output of a generator function, a second output, a third output, etc, where for any arbitrarily chosen element X of the set (such as the positive integers or reals), we can show that the generator will reach X in N steps, for some finite N.

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.

Re:A Bad Trip to Infinity by nico on Sunday March 26, 2023 @01:33AM (#35311342)
Neither the reals nor the naturals “exist”. We produce them as we need them.

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.

Re:A Bad Trip to Infinity by haneul on Sunday March 26, 2023 @02:43AM (#35311736)
Nono. F(n) where n is the number of steps, not the desired number. You’ve got it backwards. The number is the output, not the input.
Re:A Bad Trip to Infinity by nico on Sunday March 26, 2023 @10:18AM (#35314702)
N was the number of steps, but sure:

F(x)=x, will give you x in one step.

Re:A Bad Trip to Infinity by LegionMammal978 on Saturday March 25, 2023 @06:05PM (#35307932)
> 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.

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.

Re:A Bad Trip to Infinity by haneul on Saturday March 25, 2023 @06:10PM (#35307976)
If as you say, the infinity of the real numbers lacks the property of predefinable order, whereas the infinity of the natural numbers does have that property, does it not strike you that those infinities may be fundamentally different in some way relating to size, and therefore mapability?
Re:A Bad Trip to Infinity by nico on Saturday March 25, 2023 @09:33PM (#35309696)
It only strikes me that we are trying so hard to know the unknowable.

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.

Re:A Bad Trip to Infinity by LegionMammal978 on Saturday March 25, 2023 @10:07PM (#35309942)
> Infinite essentially mean unknown. How could you possible compare the size of two unknowns?

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.

Re:A Bad Trip to Infinity by nico on Sunday March 26, 2023 @01:04AM (#35311155)
Thank you, I really appreciate your thoughtful explanation.

> 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.

Re:A Bad Trip to Infinity by LegionMammal978 on Sunday March 26, 2023 @01:40AM (#35311385)
> 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."

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 existed 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.)

Re:A Bad Trip to Infinity by haneul on Saturday March 25, 2023 @04:51PM (#35307201)
You’re avoiding the difference. You can count (for example via generator function), the natural numbers, though you may never finish. Typically, people generate via numerical order, so 1, 2, 3, 4,…

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.

Re:A Bad Trip to Infinity by roywiggins on Saturday March 25, 2023 @05:08PM (#35307373)
It's not obvious how to order the rationals either, but there are of course loads of orderings that work, and it turns out that they can easily be put into correspondence with the naturals. Such orderings are not from lowest to highest, obviously, but they exist, and you might naturally assume there's one for the reals.

The thing with the reals is that no orderings work, that's what Cantor's diagonalization proof does.

Re:A Bad Trip to Infinity by nico on Sunday March 26, 2023 @12:45AM (#35311044)
As long as you have time and you keep counting, you can count anything.

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.

Re:A Bad Trip to Infinity by denton-scratch on Sunday March 26, 2023 @06:08AM (#35312828)
"Counting", for these purposes, doesn't mean determining how many there are; it means going through them, or a subset of them, in some defined order.
Re:A Bad Trip to Infinity by nico on Sunday March 26, 2023 @10:15AM (#35314675)
You can go through all the reals one by one, in order. As long as you can keep going for infinity.

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 =><=

Re:A Bad Trip to Infinity by denton-scratch on Sunday March 26, 2023 @11:36AM (#35315584)
> You can go through all the reals one by one, in order. As long as you can keep going for infinity.

> 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. The interval between them, B-A, let us call that C. I can divide C by 2, and produce a real 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, so it's impossible to go through the reals in order.

Re:A Bad Trip to Infinity by nico on Sunday March 26, 2023 @01:56PM (#35317363)
> 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.

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 natural numbers.

Re:A Bad Trip to Infinity by denton-scratch on Sunday March 26, 2023 @03:57PM (#35318873)
> There are no reals in between 0.001 and 0.002, unless you generate them.

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.

Re:A Bad Trip to Infinity by nico on Sunday March 26, 2023 @06:12PM (#35320181)
Why would someone need to be a mathematician to think and understand?

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.

Re:A Bad Trip to Infinity by denton-scratch on Monday March 27, 2023 @08:40AM (#35325913)
* * *
Re:A Bad Trip to Infinity by roywiggins on Saturday March 25, 2023 @05:06PM (#35307350)
The idea behind Cantor's diagonalization proof is that you can't find any way to assign "first", "second," "third", etc to the reals. The proof assumes that you can, and that you've already assigned every real number a unique natural number.

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.

Re:A Bad Trip to Infinity by nico on Sunday March 26, 2023 @12:26AM (#35310922)
The proof starts assuming you can count natural numbers, which you can’t.

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?

Re:A Bad Trip to Infinity by roywiggins on Sunday March 26, 2023 @12:38AM (#35311004)
Sure, that way lies intuitionism, which is a perfectly respectable (if not particularly popular) school of mathematics.

> 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 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.

Re:A Bad Trip to Infinity by nico on Sunday March 26, 2023 @10:09AM (#35314625)
> 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.

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?

Re:A Bad Trip to Infinity by filoeleven on Sunday March 26, 2023 @12:32PM (#35316349)
> Why do you have to produce them in some predefined order?

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.