{"id":2980,"date":"2014-05-26T20:56:02","date_gmt":"2014-05-27T00:56:02","guid":{"rendered":"http:\/\/www.goodmath.org\/blog\/?p=2980"},"modified":"2014-05-27T10:53:11","modified_gmt":"2014-05-27T14:53:11","slug":"you-cant-even-describe-most-numbers","status":"publish","type":"post","link":"http:\/\/www.goodmath.org\/blog\/2014\/05\/26\/you-cant-even-describe-most-numbers\/","title":{"rendered":"You can&#8217;t even describe most numbers!"},"content":{"rendered":"<p> <em>(This is a revised version of an old post; you can see the original <a href=\"http:\/\/www.goodmath.org\/blog\/?s=undescribable\">here<\/a>.)<\/em><\/p>\n<p><b>Please read the addendum at the bottom &#8211; I got carried away with computability, and ended up screwing up quite badly.<\/b><\/p>\n<p> In the comments on my last post, a bit of discussion came up about some of the strange properties of real numbers, and that made me want to go back and get this old post about numbers that can&#8217;t even be <em>described<\/em>, and update it.<\/p>\n<p> In those comments, we were talking about whether or not &pi; contains all sorts of interesting subsequences. The fact is, when it comes to &pi;, we just don&#8217;t know.<\/p>\n<p> But&#8230; We do know that there are many numbers that <em>do<\/em>. There&#8217;s a property called <em>normality<\/em>. Informally, normality just says that taken to infinity, all sequences of digits are equally likely to occur. In an infinitely long normal number, that means that any finite length subsequence <em>will<\/em> occur, given enough time. My name, your name, the complete video of the original version of Star Wars, a photograph of the dinner I just ate and never took a photo of &#8211; it&#8217;s all there, in any normal number.<\/p>\n<p> If you think about that, at first, it might seem profound: there are numbers that contain  absolutely <em>everything<\/em> that ever did exist, and that ever <em>could<\/em> exist. That seems like it should be amazing. If the numbers were at all special, it might be. But they aren&#8217;t. Normality isn&#8217;t a rare property that&#8217;s only possessed by a special meaningful number like &pi;.  It&#8217;s a property that&#8217;s possessed by almost <em>every<\/em> number. If you could create a randomly selected list of a billion real numbers (you can&#8217;t in reality, but you can mathematically, using a finite version of the axiom of choice), odds are, <em>all<\/em> of them would be normal &#8211; all of them would have this property.<\/p>\n<p> But here&#8217;s where it gets really strange. Those numbers, those normal numbers that contain everything? Most of them can&#8217;t even be <em>described<\/em>.<\/p>\n<p> It gets stranger than that. We know that we can&#8217;t really write down an irrational number. We can write down successively more and more precise approximations, but any finite representation won&#8217;t work. So we can&#8217;t actually write down the overwhelming majority of real numbers. But in fact, not only can&#8217;t we write them down, we can&#8217;t <em>describe<\/em> the vast majority of numbers.<\/p>\n<p> Numbers are something that we deal with every day, and we think we understand them. Over the ages, people have invented a variety of notations that allow us to write those numbers down: the familiar arabic notation, roman numerals, fractions, decimals, continued fractions, algebraic series, etc. I could easily spend months on this blog just writing about different notations that we use to write numbers, and the benefits and weaknesses of each notation.<\/p>\n<p> But the fact is, when it comes to the vast, overwhelming majority of numbers, all of those notations are utterly useless! That statement seems bizarre at best. As strange as it it seems, though it&#8217;s true. In order to understand it, though, we have to start at the very beginning: What does it mean for a number to be <em>describable<\/em>?<\/p>\n<p><!--more--><\/p>\n<p> The basics are really easy to explain: A <em>describable<\/em> number is a number for which there is some finite representation. An indescribable number is a number for which there is <em>no<\/em> finite notation. <\/p>\n<ul>\n<li> Integers are all describable.<\/li>\n<li> Finite length decimals are all describable.<\/li>\n<li> Fractions are all describable.<\/li>\n<li> Infinite repeating decimals are describable. First, they&#8217;re all fractions,<br \/>\n    so they can be written as fractions. But even without using fractions, you can<br \/>\n    use a notation to express the repetition.<\/li>\n<li> Many irrational numbers &#8211; like &pi; and <em>e<\/em> are describable: we can&#8217;t<br \/>\n    write down the sequence of digits, because they go on forever without repeating;<br \/>\n    we can&#8217;t write them as a fraction; but we can write an <em>algorithm<\/em><br \/>\n    that will generate the digits.<\/li>\n<\/ul>\n<p> All of those are describable. What isn&#8217;t? I can&#8217;t describe them to you &#8211; because, by definition, that&#8217;s impossible. They&#8217;re numbers whose digits aren&#8217;t predictable &#8211; not by <em>any<\/em> possible definition of <em>predictable<\/em>: there&#8217;s no algorithm, no process, no pattern &#8211; there is simple no way, in a finite amount of space, to describe how to write them down.<\/p>\n<p> To show that <em>most<\/em> numbers are undescribable, I come at it from a computational perspective. When you say that a number is describable if there&#8217;s a finite process for describing how to write it down, what you&#8217;re really saying is that there&#8217;s a <em>program<\/em> that will generate it: if you can write a finite program that will generate a representation of the number, it&#8217;s describable. It doesn&#8217;t matter whether that program ever finishes or not &#8211; so if it takes it an infinite amount of time to compute the number, that&#8217;s fine &#8211; so long as the <em>program<\/em> is finite. According to this definition, &pi; is describable: it&#8217;s notation in decimal form is infinite, but the program to generate that representation is finite.<\/p>\n<p> An indescribable number is, therefore, a number for which there is no possible program which will ever generate the number in any form. <\/p>\n<p> How can we show that the vast majority of numbers are not describable? It&#8217;s easy. In a branch of theoretical computer science called <em>recursive function theory<\/em>, we talk about <em>program numberings<\/em>. Basically, for any computing device, we can assign numbers to its programs. Every program is just a number.<\/p>\n<p> This isn&#8217;t just an abstraction &#8211; it&#8217;s realy. Take a program &#8211; any program, written in any language. It&#8217;s a series of characters that can be written into a file. Each character is represented by a group of 8 bits. Take that set of numbers, and line their bits up, one after another. The result is a huge positive binary number. Taken this way, every sequence of characters is represented by exactly one unique natural number &#8211; and every number represents exactly one sequence of characters. Thus, every program that can be represented in a file &#8211; which is <em>every<\/em> possible computer program, valid or invalid &#8211; is represented by exactly one natural number.<\/p>\n<p> Using this system, the set of all possible computer programs is a subset of the set of natural numbers. That means that the set of all possible computer programs is, at most, countably infinite.<\/p>\n<p> The set (or more properly class) of all real numbers is not countably infinite. It&#8217;s much, much larger than that. That means that <em>most<\/em> real numbers cannot be described by any computable algorithm. They&#8217;re indescribable. There&#8217;s no process you can use to uniquely specify them: if there was, there&#8217;d be a computer program describing that process &#8211; but there can&#8217;t be any program for <em>most<\/em> numbers.<\/p>\n<p> If we could write infinitely long computer programs, then the undescribable numbers would be describable &#8211; but their descriptions would, obviously, be infinitely long. Most numbers <em>cannot<\/em> be described in a finite amount of space. We can&#8217;t compute with them, we can&#8217;t describe them, we can&#8217;t identify them. We know that they&#8217;re there; we can <em>prove<\/em> that they&#8217;re there. All sorts of things that we count on as properties of real numbers wouldn&#8217;t work if the indescribable numbers weren&#8217;t there. But they&#8217;re totally inaccessible.<\/p>\n<h3>ADDENDUM: I screwed up.<\/h3>\n<p><em>I&#8217;m a computer science guy, and I love the theory of computability. I let that take over, without thinking enough about it, and managed to make a huge mistake here!<\/em><\/p>\n<p> <em>What I described above as <em>describable<\/em> numbers isn&#8217;t right. It&#8217;s the set of <em>computable<\/em> numbers. The set of computable numbers is a strict subset of the set of describable numbers. As several commenters pointed out, there are many numbers that are <b>describable<\/b> but not computable.<\/em><\/p>\n<p><em>The describable numbers are all numbers for which there is <em>any possible<\/em> finite description that uniquely identifies the number. The countability argument still works: you can still enumerate all possible finite-length strings that could be descriptions, and define a one-to-one correspondence between strings that could be descriptions and natural numbers. The set of describable numbers is, thus, still countable, and the set of undescribables is not, which implies that the set of undescribables is far, far larger that the describables.<\/em><\/p>\n<p><em>But my original explanation was stupidly wrong. I apologize for the error. I&#8217;m not editing the text of the original post, except to put a pointer to this addendum: in a case like this, I think editing it would be dishonest, a way of covering up my serious error.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>(This is a revised version of an old post; you can see the original here.) Please read the addendum at the bottom &#8211; I got carried away with computability, and ended up screwing up quite badly. In the comments on my last post, a bit of discussion came up about some of the strange properties [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[43],"tags":[],"class_list":["post-2980","post","type-post","status-publish","format-standard","hentry","category-numbers"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4lzZS-M4","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/2980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/comments?post=2980"}],"version-history":[{"count":4,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/2980\/revisions"}],"predecessor-version":[{"id":2984,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/2980\/revisions\/2984"}],"wp:attachment":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/media?parent=2980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/categories?post=2980"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/tags?post=2980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}