2 ms·
> Not every string of 0s and 1s actually represents an integer. Is that to say that only the finite ones are? Since an infinitely long string that starts with
by danielheath 3y ago
> Not every string of 0s and 1s actually represents an integer.
Is that to say that only the finite ones are? Since an infinitely long string that starts with 1 is infinite in size?
Otherwise I can’t make sense of this statement.
- owalt 3y agoYes, for instance ...101010 (the pattern 10 repeated infinitely) isn't an integer. It's maybe easier to think of the argument as working on sequences: From a sequence (x_0, x_1, x_2, ...) with each x_n a binary digit (i.e. 0 or 1) you can always construct a real number x = Sum(x_n / 2^n, n = 0, 1, 2, ...). The integer you'd want to construct from such a sequence would be Sum(x_n * 2^n, n = 0, 1, 2, ...), but this only works if there's some N such that x_n = 0 for all n > N. Otherwise you would have an "infinite integer" (whatever that means). Valid positive integers are all on the form Sum(x_n * 2^n, n = 0, 1, 2, ..., N), i.e. the binary expansion is finite. The subtlety of the diagonal argument (why it works for reals but not for integers/rationals) is that while it always produces _some_ string of digits, only the real numbers are defined such that the string of digits is itself always a real number. In the integer/rational case, you can construct a number "outside" the set you started from. (In fact you always do if the original list really was of all integers/rationals. Given any enumeration of the rationals, the diagonal argument can actually be used constructively to produce an irrational number.)