12

My friend and I were discussing infinity and stuff about it and ran into some disagreements regarding countable and uncountable infinity.

As far as I understand, the list of all natural numbers is countably infinite and the list of reals between 0 and 1 is uncountably infinite. Cantor's diagonal proof shows how even a theoretically complete list of reals between 0 and 1 would not contain some numbers.

My friend understood the concept, but disagreed with the conclusion. He said you can assign every real between 0 and 1 to a natural number, by listing them like so:

0, .1, .2, .3, .4, .5, .6, .7, .8, .9, .01, .11, .21, .31, .41, .51, .61, .71, .81, .91, .02...

Basically, take any natural number, reverse it, and put a decimal place at the beginning, and the result is the real at that index position. For instance, the real at index 628 is 0.826, and the real at index 1000 is 0.0001. This way, each natural number is paired with a real. Therefore, there are the same amount of real numbers in [0,1] as there are natural numbers.

It made sense to me at first, but we came up with two issues:

  1. It appears that there is still no way to list ALL real numbers using this method, and thus the two types of infinity are still separate.

  2. If you try to use Cantor's diagonal proof to generate a one-digit number not on the list, you can't because the first ten numbers on the list cover every one-digit possibility. If you use it to generate a two-digit number, you can't because the first 100 numbers on the list cover all possibilities. As you try to generate an N-digit number, you need 10^N numbers on the list to cover every possibility. Since N grows constantly but 10^N grows exponentially, I feel like it wouldn't work as you approach infinity.

We're obviously not math experts, so we're trying to seek out those who know more about the topic.

What is the accuracy of either of our claims, and why?

tryashtar
  • 255
  • Regarding #2, you definitely need to continue along infinitely many digits on the diagonal to get a number with a non-terminal decimal expansion that will not be on the list. – angryavian Nov 05 '15 at 02:39
  • 11
    Ask your friend where 1/3 and $1/\sqrt 2$ appear on his list. – DanielWainfleet Nov 05 '15 at 02:40
  • 1
    The method does not provide a bijection from $\mathbb{N}$ to the real interval $[0,1]$. Every natural number indeed has an image in $[0,1]$, but not every real number in $[0,1]$ has a pre-image in $\mathbb{N}$. For example, what natural number corresponds to the real number $\frac{\pi}{10}=0.314159265...$? You're excluding infinitely many real numbers! – Corellian Nov 05 '15 at 02:40
  • Ask your friend which natural number is assigned to the real number $1/3=0.33333333\dots$. – Thomas Andrews Nov 05 '15 at 02:40
  • 2
    Cantor's proof can't result in a one-digit number, but that's why it is a diagonal proof. It is certainly possible to list all numbers that have finite decimal digits, as your friend has noticed. You need all the digits to get a larger infinity. – Thomas Andrews Nov 05 '15 at 02:43
  • 2
    Tell your friend to avoid becoming a Cantor Crank. Cantor is right and one needs to understand Cantor's proof before trying to come up with a "list of real number". – cr001 Nov 05 '15 at 02:44
  • 9
    Too early to think about anybody being a crank, @cr001. Lots of us had confusion the first time we encountered Cantor, for a variety of reasons. – Thomas Andrews Nov 05 '15 at 02:47
  • @Brody So basically, every natural number pairs with a real, but not vice versa, because most reals don't terminate? – tryashtar Nov 05 '15 at 02:50
  • 1
    @Trystan That's right. To show $\mathbb{N}$ and $[0,1]$ have the same size, you need to find a function that maps every element in $\mathbb{N}$ to exactly one element in $[0,1]$, and every element in $[0,1]$ must be "covered" under this function.Your function fails the latter condition. In technical terms, you established a "one-one" function (injection) but NOT an "onto" function (surjection). A function must satisfy both conditions to be a "one-to-one correspondence" (bijection), and no such bijection $f:\mathbb{N}\to[0,1]$ exists! – Corellian Nov 05 '15 at 03:06
  • @cr001 One doesn't have to understand Cantor's proof before trying to come up with a list of real numbers. In fact, I think it's much easier to understand Cantor's proof if you try to come up with a list of real numbers first! Experimenting with stuff and seeing what works and what doesn't and then trying to find out why is a great way to learn mathematics. – JiK Nov 06 '15 at 10:43
  • 1
    @ JiK Yes that can be right but my point is one need to have an attitude to agree with Cantor's conclusion and when trying to make such a list, one need to first apply Cantor's algorithm on it and not insisting on how the list is correct like the friend of $OP$ did. – cr001 Nov 06 '15 at 10:53

2 Answers2

18

Your friend's method fails immediately for any number whose decimal expansion does not terminate. What is the index of $\pi $? For that matter, what is the index of $\frac13=0.333...$? In this sense, your friend's method fails for almost all rationals even.

Shaun
  • 44,997
Théophile
  • 24,627
  • While I agree with the sentiment saying "almost all" seems ill advised. In terms of cardinality the size of the sets is the same obviously and there is even an extremely natural bijection when one thinks about the sets in terms of decimal expansions. I suppose you can think of the types of fractions allowable, in which case any fraction in minimal form where the denominator has a factor distinct from 5 or 2 is uncovered, but that still abuses the notion of almost all in my opinion. – DRF Nov 05 '15 at 09:15
  • 1
    @DRF 'Almost all' has a well-defined meaning (or rather meanings – depending on a field of mathematics), and Théophile used it correctly. See https://en.wikipedia.org/wiki/Almost_all for more info. – CiaPan Nov 05 '15 at 09:17
  • 2
    @CiaPan Yes I know that almost all has a well defined meaning which is exactly why I disagree. In the way he presents the claim none of the standard definitions work. You could argue for the Number theoretic version but then you have to give some encoding for rationals in integers first for that approach to make sense. (And you can certainly create an encoding for which you don't get almost all). – DRF Nov 05 '15 at 09:22
  • 2
    @DRF Fix a denominator $N$. What is the probability that $a/N$ terminates, for a randomly chosen $a \in [1,N]$? What happens as $N \to \infty$? – Théophile Nov 05 '15 at 17:47
  • @Théophile Less condescension would be nice. The answer to your first question is between [0,1], 0 never occurs ($N/N=1$) unlike 1 which occurs for every number of the form $2^k5^l$. As $N$ goes to infinity you get 1's infinitely often for your probability so the limit of the probability does not exist. – DRF Nov 05 '15 at 21:10
  • I'm assuming you want your $p(N)$ (in the notation of the number theoretic definition of almost all as defined on wikipedia: note only one of three definitions) to be true iff the probability that $a/N$ terminates for a random $a\in[1,N]$ is greater then $1/2$. Then you will get the result you want. Having said that though this is not a great way to look at almost all in this case IMO. – DRF Nov 05 '15 at 21:21
  • 2
    @DRF I apologize. I had little time when I wrote my comment, so I was aiming for brevity, not for condescension. The limit I mentioned indeed does not exist; what I meant to write was this: Fix $N$, then choose a denominator $b \in [1,N]$ and a numerator $a \in [1,b]$. Then the probability that $a/b$ terminates approaches $0$ as $N \to \infty$. There are two natural ways to choose $a$ and $b$, either by choosing $b$ uniformly and then $a$ next, or by choosing $(a,b)$ uniformly from legal pairs. In both cases, the probability approaches $0$, and it seems to me that this justifies "almost all". – Théophile Nov 08 '15 at 17:22
2

(Migrated from the comments.)

Since you only have terminating decimals, you could just as well end each of them with an infinite string of zeroes. This does not change the value of any of the numbers that you had included, so if you had them all, then you will still have them all!

(For example: $0.31$ would become $0.31000\ldots$)

Once you have re-written the numbers as above, you can essentially apply Cantor's diagonal argument to these decimal representations to produce a number that is not found in your list.