{"id":1958,"date":"2013-01-13T08:57:47","date_gmt":"2013-01-13T13:57:47","guid":{"rendered":"http:\/\/scientopia.org\/blogs\/goodmath\/?p=1958"},"modified":"2013-01-13T08:57:47","modified_gmt":"2013-01-13T13:57:47","slug":"define-distance-differently-the-p-adic-norm","status":"publish","type":"post","link":"http:\/\/www.goodmath.org\/blog\/2013\/01\/13\/define-distance-differently-the-p-adic-norm\/","title":{"rendered":"Define Distance Differently: the P-adic norm"},"content":{"rendered":"<p> As usual, sorry for the delay. Most of the time when I write this blog, I&#8217;m writing about stuff that I know about.  I&#8217;m learning about the p-adic numbers as I write these posts, so it&#8217;s a lot more work for me.  But I think many of you will be happy to hear about the other reason for the delay: I&#8217;ve been working on a book based on some of my favorite posts from the history of this blog. It&#8217;s nearly ready!  I&#8217;ll have more news about getting pre-release versions of it later this week!  <\/p>\n<p> But now, back to p-adic numbers!<\/p>\n<p> In the last post, we looked a bit at the definition of the p-adic numbers, and how p-adic arithmetic works. But what makes p-adic numbers really interesting and valuable is <em>metrics<\/em>.<\/p>\n<p> Metrics are one of those ideas that are simultaneously simple and astonishingly complicated. The basic concept of a metric is straightforward: I&#8217;ve got two numbers, and I want to know how far apart they are. But it becomes complicated because it turns out that there are many different ways of defining metrics. We tend to think of metrics in terms of euclidean geometry and distance &#8211; the words that I to describe metrics &#8220;how far apart&#8221; come from our geometric intuition. In math, though, you can&#8217;t ever just rely on intuition: you need to be able to define things precisely.  And precisely defining a metric is difficult. It&#8217;s also fascinating: you can create the real numbers from the integers and rationals by defining a metric, and the metric will reveal the gaps between the rationals. Completing the metric &#8211; filling in those gaps &#8211; gives you the real numbers. Or, in fact, if you fill them in differently, the p-adic numbers. <\/p>\n<p> To define just what a metric is, we need to start with fields and norms.  A field is an abstract algebraic structure which describes the behavior of numbers.  It&#8217;s an abstract way of talking about the basic structure of numbers with addition and multiplication operations. I&#8217;ve talked about fields before, most recently when I was debunking the crackpottery of E. E. Escultura <a href=\"http:\/\/scientopia.org\/blogs\/goodmath\/2011\/02\/10\/e-e-escultura-and-the-field-axioms\/metrics\">here<\/a>.  <\/p>\n<p> A norm is a generalization of the concept of absolute value. If you&#8217;ve got a field <img src='http:\/\/l.wordpress.com\/latex.php?latex=F&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='F' style='vertical-align:1%' class='tex' alt='F' \/>, then a norm of <img src='http:\/\/l.wordpress.com\/latex.php?latex=F&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='F' style='vertical-align:1%' class='tex' alt='F' \/> is a function, the norm of is a function <img src='http:\/\/l.wordpress.com\/latex.php?latex=%7C%20cdot%20%7C&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='| cdot |' style='vertical-align:1%' class='tex' alt='| cdot |' \/> from values in <img src='http:\/\/l.wordpress.com\/latex.php?latex=F&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='F' style='vertical-align:1%' class='tex' alt='F' \/> to non-negative numbers. <\/p>\n<ol>\n<li> <img src='http:\/\/l.wordpress.com\/latex.php?latex=%7C%20x%20%7C%20%3D%200&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='| x | = 0' style='vertical-align:1%' class='tex' alt='| x | = 0' \/> if and only if <img src='http:\/\/l.wordpress.com\/latex.php?latex=x%20%3D%200&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='x = 0' style='vertical-align:1%' class='tex' alt='x = 0' \/>. <\/li>\n<li> <img src='http:\/\/l.wordpress.com\/latex.php?latex=%20%7Cx%20y%7C%20%3D%20%7Cx%7C%20%7Cy%7C&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title=' |x y| = |x| |y|' style='vertical-align:1%' class='tex' alt=' |x y| = |x| |y|' \/> <\/li>\n<li> <img src='http:\/\/l.wordpress.com\/latex.php?latex=%7Cx%20%2B%20y%7C%20le%20%7Cx%7C%20%2B%20%7Cy%7C&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='|x + y| le |x| + |y|' style='vertical-align:1%' class='tex' alt='|x + y| le |x| + |y|' \/> <\/li>\n<\/ol>\n<p> A norm on <img src='http:\/\/l.wordpress.com\/latex.php?latex=F&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='F' style='vertical-align:1%' class='tex' alt='F' \/> can be used to define a distance metric <img src='http:\/\/l.wordpress.com\/latex.php?latex=d%28x%2C%20y%29&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='d(x, y)' style='vertical-align:1%' class='tex' alt='d(x, y)' \/> between <img src='http:\/\/l.wordpress.com\/latex.php?latex=x&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='x' style='vertical-align:1%' class='tex' alt='x' \/> and <img src='http:\/\/l.wordpress.com\/latex.php?latex=y&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='y' style='vertical-align:1%' class='tex' alt='y' \/> in <img src='http:\/\/l.wordpress.com\/latex.php?latex=F&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='F' style='vertical-align:1%' class='tex' alt='F' \/> as <img src='http:\/\/l.wordpress.com\/latex.php?latex=%7C%20x%20-%20y%7C&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='| x - y|' style='vertical-align:1%' class='tex' alt='| x - y|' \/>.<\/p>\n<p> For example, the absolute value is clearly a norm over the real numbers, and it defines the euclidean distance between them.<\/p>\n<p> So where do the gaps come from?<\/p>\n<p> You can define a sequence <img src='http:\/\/l.wordpress.com\/latex.php?latex=a&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='a' style='vertical-align:1%' class='tex' alt='a' \/> of values in <img src='http:\/\/l.wordpress.com\/latex.php?latex=F&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='F' style='vertical-align:1%' class='tex' alt='F' \/> as <img src='http:\/\/l.wordpress.com\/latex.php?latex=a%20%3D%20%7B%20a_i%20%7D&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='a = { a_i }' style='vertical-align:1%' class='tex' alt='a = { a_i }' \/><br \/>\nfor some set of values <img src='http:\/\/l.wordpress.com\/latex.php?latex=i&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='i' style='vertical-align:1%' class='tex' alt='i' \/>. There&#8217;s a special kind of sequence called<br \/>\na <em>Cauchy sequence<\/em>, which is a sequence where <img src='http:\/\/l.wordpress.com\/latex.php?latex=lim_%7Bi%2Cj%20rightarrow%20infty%7D%20%7Ca_n%20-%20a_m%7C%20%3D%200&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='lim_{i,j rightarrow infty} |a_n - a_m| = 0' style='vertical-align:1%' class='tex' alt='lim_{i,j rightarrow infty} |a_n - a_m| = 0' \/>.<\/p>\n<p> You can show that any Cauchy sequence converges to a real number.  But even if every element of a Cauchy sequence is a rational number, it&#8217;s pretty easy to show that many (in fact, most!) Cauchy sequences do <em>not<\/em> converge to rational numbers. There&#8217;s something in between the rational numbers which Cauchy sequences of rational numbers can converge to, but it&#8217;s not a rational number. When we talk about the gaps in the rational numbers, that&#8217;s what we mean. (Yes, I&#8217;m hand-waving a bit, but getting into the details<br \/>\nwould be a distraction, and this is the basic idea!)\n<\/p>\n<p> When you&#8217;re playing with number fields, the fundamental choice that you get is just how to fill in those gaps. If you fill them in using a metric based on a Euclidean norm, you get the real numbers. What makes the p-adic numbers is just a different norm, which defines a different metric.\n<\/p>\n<p> The idea of the p-adic metric is that there&#8217;s another way of describing the distance between numbers. We&#8217;re used to thinking about distance measured like a ruler on a numberline, which is what gives us the reals. For the p-adics, we&#8217;re going to define distance in a different way, based on the structure of numbers. The way that the p-adic metric works is based on how a number is built relative to the prime-number base. <\/p>\n<p> We define the p-adic metric in terms of the p-adic norm exactly the way that we defined Euclidean distance in terms of the absolute value norm.  For the p-adic number, we start off with a norm on the integers, and then generalize it. In the P-adic integers, the norm of a number is based around the largest power of the base that&#8217;s a factor of that number: for an integer <img src='http:\/\/l.wordpress.com\/latex.php?latex=x&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='x' style='vertical-align:1%' class='tex' alt='x' \/>, if <img src='http:\/\/l.wordpress.com\/latex.php?latex=p%5En&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='p^n' style='vertical-align:1%' class='tex' alt='p^n' \/> is the largest power of <img src='http:\/\/l.wordpress.com\/latex.php?latex=p&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='p' style='vertical-align:1%' class='tex' alt='p' \/> that&#8217;s a factor of <img src='http:\/\/l.wordpress.com\/latex.php?latex=x&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='x' style='vertical-align:1%' class='tex' alt='x' \/>, then the the p-adic norm of <img src='http:\/\/l.wordpress.com\/latex.php?latex=x&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='x' style='vertical-align:1%' class='tex' alt='x' \/> (written <img src='http:\/\/l.wordpress.com\/latex.php?latex=%7Cx%7C_p&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='|x|_p' style='vertical-align:1%' class='tex' alt='|x|_p' \/>) is <img src='http:\/\/l.wordpress.com\/latex.php?latex=p%5E%7B-n%7D&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='p^{-n}' style='vertical-align:1%' class='tex' alt='p^{-n}' \/>. So the more times you multiply a number by the p-adic base, the <em>smaller<\/em> the p-adic norm of that number is.<\/p>\n<p> The way we apply that to the rationals is to extend the definition of p-factoring: if <img src='http:\/\/l.wordpress.com\/latex.php?latex=p&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='p' style='vertical-align:1%' class='tex' alt='p' \/> is our p-adic base, then we can define the p-adic norm of a rational number as:<\/p>\n<ul>\n<li> <img src='http:\/\/l.wordpress.com\/latex.php?latex=%7C0%7C_p%20%3D%200&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='|0|_p = 0' style='vertical-align:1%' class='tex' alt='|0|_p = 0' \/><\/li>\n<li> For other rational numbers <img src='http:\/\/l.wordpress.com\/latex.php?latex=x&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='x' style='vertical-align:1%' class='tex' alt='x' \/>: <img src='http:\/\/l.wordpress.com\/latex.php?latex=%7Cx%7C_p%20%3D%20p%5E%7B-text%7Bord%7D_p%28x%29%7D&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='|x|_p = p^{-text{ord}_p(x)}' style='vertical-align:1%' class='tex' alt='|x|_p = p^{-text{ord}_p(x)}' \/> where:\n<ul>\n<li> If <img src='http:\/\/l.wordpress.com\/latex.php?latex=x&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='x' style='vertical-align:1%' class='tex' alt='x' \/> is a natural number, then <img src='http:\/\/l.wordpress.com\/latex.php?latex=text%7Bord%7D_p%28x%29&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='text{ord}_p(x)' style='vertical-align:1%' class='tex' alt='text{ord}_p(x)' \/> is the exponent of the largest power of <img src='http:\/\/l.wordpress.com\/latex.php?latex=p&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='p' style='vertical-align:1%' class='tex' alt='p' \/> that divides <img src='http:\/\/l.wordpress.com\/latex.php?latex=x&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='x' style='vertical-align:1%' class='tex' alt='x' \/>.\n     <\/li>\n<li> If <img src='http:\/\/l.wordpress.com\/latex.php?latex=x&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='x' style='vertical-align:1%' class='tex' alt='x' \/> is a rational number <img src='http:\/\/l.wordpress.com\/latex.php?latex=a%2Fb&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='a\/b' style='vertical-align:1%' class='tex' alt='a\/b' \/>, then <img src='http:\/\/l.wordpress.com\/latex.php?latex=text%7Bord%7D%28a%2Fb%29%20%3D%20ord%28a%29%20-%20ord%28b%29&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='text{ord}(a\/b) = ord(a) - ord(b)' style='vertical-align:1%' class='tex' alt='text{ord}(a\/b) = ord(a) - ord(b)' \/>.\n    <\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p> Another way of saying that is based on a property of rational numbers and primes. For any prime number <img src='http:\/\/l.wordpress.com\/latex.php?latex=p&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='p' style='vertical-align:1%' class='tex' alt='p' \/>, you can take any rational number <img src='http:\/\/l.wordpress.com\/latex.php?latex=x&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='x' style='vertical-align:1%' class='tex' alt='x' \/>, and represent it as a p-based ratio <img src='http:\/\/l.wordpress.com\/latex.php?latex=p%5Enfrac%7Ba%7D%7Bb%7D&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='p^nfrac{a}{b}' style='vertical-align:1%' class='tex' alt='p^nfrac{a}{b}' \/>, where neither <img src='http:\/\/l.wordpress.com\/latex.php?latex=a&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='a' style='vertical-align:1%' class='tex' alt='a' \/> nor <img src='http:\/\/l.wordpress.com\/latex.php?latex=b&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='b' style='vertical-align:1%' class='tex' alt='b' \/> is divisible by <img src='http:\/\/l.wordpress.com\/latex.php?latex=p&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='p' style='vertical-align:1%' class='tex' alt='p' \/>. That representation is unique &#8211; there&#8217;s only one possible set of values for <img src='http:\/\/l.wordpress.com\/latex.php?latex=a&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='a' style='vertical-align:1%' class='tex' alt='a' \/>, <img src='http:\/\/l.wordpress.com\/latex.php?latex=b&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='b' style='vertical-align:1%' class='tex' alt='b' \/>, and <img src='http:\/\/l.wordpress.com\/latex.php?latex=n&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='n' style='vertical-align:1%' class='tex' alt='n' \/> where that&#8217;s true. In that case, p-adic norm of <img src='http:\/\/l.wordpress.com\/latex.php?latex=x&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='x' style='vertical-align:1%' class='tex' alt='x' \/>,<br \/>\n<img src='http:\/\/l.wordpress.com\/latex.php?latex=%7Cx%7C_p%20%3D%3D%20p%5E%7B-n%7D&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='|x|_p == p^{-n}' style='vertical-align:1%' class='tex' alt='|x|_p == p^{-n}' \/>.\n<\/p>\n<p> Ok, that&#8217;s a nice definition, but what on earth does it mean?<\/p>\n<p> Two p-adic numbers <img src='http:\/\/l.wordpress.com\/latex.php?latex=x&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='x' style='vertical-align:1%' class='tex' alt='x' \/> and <img src='http:\/\/l.wordpress.com\/latex.php?latex=y&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='y' style='vertical-align:1%' class='tex' alt='y' \/> are close together if <img src='http:\/\/l.wordpress.com\/latex.php?latex=x%20-%20y&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='x - y' style='vertical-align:1%' class='tex' alt='x - y' \/> is divisible by a large power of <img src='http:\/\/l.wordpress.com\/latex.php?latex=p&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='p' style='vertical-align:1%' class='tex' alt='p' \/>.<\/p>\n<p> In effect, this is the exact opposite of what we&#8217;re used to.  In the real numbers written out in decimal for as a series of digits, the metric says that the more digits numbers have in common moving from left to right, the closer together they are.  So 9999 and 9998 are closer than 9999 and 9988.  <\/p>\n<p> But with P-adic numbers, it doesn&#8217;t work that way. The P-adic numbers are closer together if, moving right to left, they have a common prefix.  The distance ends up looking very strange. In 7-adic, the distance between 56666 and 66666 is <emph>smaller<\/emph> than the distance between 66665 and 66666!\n<\/p>\n<p> As strange as it looks, it does make a peculiar kind of sense. The p-adic distance is measuring a valuable and meaningful kind of distance between numbers &#8211; their distance in terms of<br \/>\ntheir relationship to the base prime number p. That leads to a lot of interesting stuff, much of which is, to be honest, well beyond my comprehension! For example, the Wiles proof of Fermat&#8217;s last theorem uses properties of the P-adic metric!\n<\/p>\n<p> Without getting into anything as hairy as FLT, there are still ways of seeing why the p-adic metric is valuable. Next post, we&#8217;ll look at something called Hensel&#8217;s lemma, which both shows how something like Newton&#8217;s method for root-finding works in the p-adic numbers, and also shows some nice algebraic properties of root-finding that aren&#8217;t nearly as clear for the real numbers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As usual, sorry for the delay. Most of the time when I write this blog, I&#8217;m writing about stuff that I know about. I&#8217;m learning about the p-adic numbers as I write these posts, so it&#8217;s a lot more work for me. But I think many of you will be happy to hear about the [&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-1958","post","type-post","status-publish","format-standard","hentry","category-numbers"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4lzZS-vA","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/1958","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=1958"}],"version-history":[{"count":0,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/1958\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/media?parent=1958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/categories?post=1958"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/tags?post=1958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}