{"id":1008,"date":"2010-08-29T20:20:32","date_gmt":"2010-08-30T00:20:32","guid":{"rendered":"http:\/\/scientopia.org\/blogs\/goodmath\/?p=1008"},"modified":"2016-10-14T14:53:43","modified_gmt":"2016-10-14T18:53:43","slug":"metric-spaces-2","status":"publish","type":"post","link":"http:\/\/www.goodmath.org\/blog\/2010\/08\/29\/metric-spaces-2\/","title":{"rendered":"Metric Spaces"},"content":{"rendered":"<p>One of the things that topologists like to say is that a topological set is just a set with some structure. That structure is, basically, the nearness relation &#8211; a relation that allows us to talk about what points are <em>near<\/em> other points.<\/p>\n<p>So to talk about topology, you need to be able to talk about  nearness. The way that we do that in topology is through a fundamental concept called an <em>open sphere<\/em>. An open sphere defines the set of all points that are <em>close to<\/em> a particular point according to some metric. That&#8217;s not the only way of defining it; there are  various other ways of explaining it, but I find the idea of using a metric to be the easiest one to understand.<\/p>\n<p>Of course, there&#8217;s a catch. (There&#8217;s always a catch, isn&#8217;t there?) The catch is, we need to define just what we mean by &#8220;according to some metric&#8221;.Fundamentally, we need to understand just what we mean by <em>distance<\/em>. Remember &#8211; we&#8217;re starting with a completely pure set of points. Any structure like a plane, or a sphere, or anything like that will be defined in term of our open spheres &#8211; which, in turn, will be defined by the distance metric. So we can&#8217;t use any of that to define distance.<\/p>\n<h2>Defining Distance<\/h2>\n<p>So. Suppose we&#8217;ve got a totally arbitrary set of points, <img src='http:\/\/l.wordpress.com\/latex.php?latex=S&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='S' style='vertical-align:1%' class='tex' alt='S' \/>, consisting of elements <img src='http:\/\/l.wordpress.com\/latex.php?latex=s_1%2C%20s_2%2C%20s_3%2C%20s_4%2C%20...%2C%20s_n%2C%20...&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='s_1, s_2, s_3, s_4, ..., s_n, ...' style='vertical-align:1%' class='tex' alt='s_1, s_2, s_3, s_4, ..., s_n, ...' \/>. What&#8217;s the <em>distance<\/em> between <img src='http:\/\/l.wordpress.com\/latex.php?latex=s_i&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='s_i' style='vertical-align:1%' class='tex' alt='s_i' \/> and <img src='http:\/\/l.wordpress.com\/latex.php?latex=s_j&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='s_j' style='vertical-align:1%' class='tex' alt='s_j' \/>?<\/p>\n<p>Let&#8217;s start by thinking about a simple number line with the set of real numbers. What&#8217;s the distance between two numbers on the number line? It&#8217;s a measure of <em>how far<\/em> over the number line you have to go to get from one point to the other. But that&#8217;s cheating: <em>how far you have to go<\/em> is really just a re-arrangement of the words; it&#8217;s defining distance in terms of distance.<\/p>\n<p>But now, suppose that you&#8217;ve got your real number line, and you&#8217;ve got a ruler. Then you can measure distances over the number line. The ruler defines what distances are. It&#8217;s something <em>in addition to<\/em> the set of pointsthat allows you to define distance.<\/p>\n<p>So what we really want to do is to define an abstract ruler. In pure mathematical terms, that ruler is just a function that takes two elements, <img src='http:\/\/l.wordpress.com\/latex.php?latex=s_i&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='s_i' style='vertical-align:1%' class='tex' alt='s_i' \/> and <img src='http:\/\/l.wordpress.com\/latex.php?latex=s_j&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='s_j' style='vertical-align:1%' class='tex' alt='s_j' \/>, and returns a real number. That real number is the distance between those two points.<\/p>\n<p>To be a metric, a distance function  <img src='http:\/\/l.wordpress.com\/latex.php?latex=d&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='d' style='vertical-align:1%' class='tex' alt='d' \/> needs to have four fundamental properties:<\/p>\n<dl>\n<dt>Non-Negativity<\/dt>\n<dd><img src='http:\/\/l.wordpress.com\/latex.php?latex=%5Cforall%20s_i%2C%20s_j%20%5Cin%20S%3A%20d%28s_i%2C%20s_j%29%20%5Cgeq%200&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='\\forall s_i, s_j \\in S: d(s_i, s_j) \\geq 0' style='vertical-align:1%' class='tex' alt='\\forall s_i, s_j \\in S: d(s_i, s_j) \\geq 0' \/>: distance is never negative.<\/dd>\n<dt>Identity<\/dt>\n<dd> <img src='http:\/\/l.wordpress.com\/latex.php?latex=%5Cforall%20s_i%2C%20s_j%20%5Cin%20S%3A%20d%28s_i%2C%20s_j%29%20%3D%200%20%5Ciff%20i%3Dj&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='\\forall s_i, s_j \\in S: d(s_i, s_j) = 0 \\iff i=j' style='vertical-align:1%' class='tex' alt='\\forall s_i, s_j \\in S: d(s_i, s_j) = 0 \\iff i=j' \/>; that is,<br \/>\n  the distance from a point to itself is 0; and no two distinct points are separated by a 0 distance.<\/dd>\n<dt>Symmetry<\/dt>\n<dd> <img src='http:\/\/l.wordpress.com\/latex.php?latex=%5Cforall%20s_i%2C%20s_j%20%5Cin%20S%3A%20d%28s_i%2C%20s_j%29%20%3D%20d%28s_j%2C%20s_i%29&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='\\forall s_i, s_j \\in S: d(s_i, s_j) = d(s_j, s_i)' style='vertical-align:1%' class='tex' alt='\\forall s_i, s_j \\in S: d(s_i, s_j) = d(s_j, s_i)' \/>. It doesn&#8217;t   matter which way you measure: the distance between two points is always  the same.<\/dd>\n<dt>Triangle Inequality<\/dt>\n<dd> <img src='http:\/\/l.wordpress.com\/latex.php?latex=%5Cforall%20s_i%2C%20s_j%2C%20s_k%20%5Cin%20S%3A%20d%28s_i%2C%20s_j%29%20%2B%20d%28s_j%2C%20s_k%29%20%5Cgeq%20d%28s_i%2C%20s_k%29&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='\\forall s_i, s_j, s_k \\in S: d(s_i, s_j) + d(s_j, s_k) \\geq d(s_i, s_k)' style='vertical-align:1%' class='tex' alt='\\forall s_i, s_j, s_k \\in S: d(s_i, s_j) + d(s_j, s_k) \\geq d(s_i, s_k)' \/>.<\/dd>\n<\/dl>\n<p>A <em>metric space<\/em> is a pair <img src='http:\/\/l.wordpress.com\/latex.php?latex=%28S%2C%20d%29&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='(S, d)' style='vertical-align:1%' class='tex' alt='(S, d)' \/> of a set, and a metric over the set.<\/p>\n<p>For example:<\/p>\n<ol>\n<li> The real numbers are a metric space with the ruler-metric function. You can easily verify that properties of a metric function all work with the ruler-metric. In fact, they are are all things that you can easily check with a ruler and a number-line, to see that they work. The function that you&#8217;re creating with the ruler is: <img src='http:\/\/l.wordpress.com\/latex.php?latex=d%28x%2Cy%29%20%3D%20%7Cx-y%7C&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='d(x,y) = |x-y|' style='vertical-align:1%' class='tex' alt='d(x,y) = |x-y|' \/> (the absolute value of <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' \/>). So the ruler-metric distance from 1 to 3 is 2.<\/li>\n<li> A cartesian plane is a metric space whose distance function is the euclidean distance:  <img src='http:\/\/l.wordpress.com\/latex.php?latex=d%28%28a_x%2Cay_%29%2C%20%28b_x%2Cb_y%29%29%20%3D%20%28%28a_x-b_x%29%5E2%20%2B%20%28a_y-b_y%29%5E2%20%29%5E%7Bfrac%7B1%7D%7B2%7D%7D&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='d((a_x,ay_), (b_x,b_y)) = ((a_x-b_x)^2 + (a_y-b_y)^2 )^{frac{1}{2}}' style='vertical-align:1%' class='tex' alt='d((a_x,ay_), (b_x,b_y)) = ((a_x-b_x)^2 + (a_y-b_y)^2 )^{frac{1}{2}}' \/>.  In fact, for every <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' \/>, the euclidean n-space is a metric space using the euclidean distance.<\/li>\n<li> A checkerboard is a metric space if you use the number of kings moves as the distance function.<\/li>\n<li> The Manhattan street grid is a metric space where the distance function between two intersections is the sum of the number of horizontal blocks and the number of vertical blocks between them.<\/li>\n<\/ol>\n<p>With that, we can define the open spheres.<\/p>\n<h2>Open and Closed Sets<\/h2>\n<p>You can start moving from metric spaces to topological spaces by looking at <em>open sets<\/em>. Take a metric space, <img src='http:\/\/l.wordpress.com\/latex.php?latex=%28S%2Cd%29&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='(S,d)' style='vertical-align:1%' class='tex' alt='(S,d)' \/>, and a point <img src='http:\/\/l.wordpress.com\/latex.php?latex=p%20%5Cin%20S&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='p \\in S' style='vertical-align:1%' class='tex' alt='p \\in S' \/>. An open sphere <img src='http:\/\/l.wordpress.com\/latex.php?latex=B%28p%2Cr%29&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='B(p,r)' style='vertical-align:1%' class='tex' alt='B(p,r)' \/> (a ball of radius r around point p) in <img src='http:\/\/l.wordpress.com\/latex.php?latex=S&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='S' style='vertical-align:1%' class='tex' alt='S' \/>  is the set of points <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' \/> such that <em>d(p,x) &lt; r<\/em>.<\/p>\n<p>Now, think of a subset <img src='http:\/\/l.wordpress.com\/latex.php?latex=T%20%5Csubseteq%20S&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='T \\subseteq S' style='vertical-align:1%' class='tex' alt='T \\subseteq S' \/>. A point <img src='http:\/\/l.wordpress.com\/latex.php?latex=p%20%5Cin%20S&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='p \\in S' style='vertical-align:1%' class='tex' alt='p \\in S' \/> is in the interior of <img src='http:\/\/l.wordpress.com\/latex.php?latex=T&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='T' style='vertical-align:1%' class='tex' alt='T' \/> if\/f there is some point <img src='http:\/\/l.wordpress.com\/latex.php?latex=r&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='r' style='vertical-align:1%' class='tex' alt='r' \/> where <img src='http:\/\/l.wordpress.com\/latex.php?latex=B%28p%2Cr%29%20%5Cin%20T&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='B(p,r) \\in T' style='vertical-align:1%' class='tex' alt='B(p,r) \\in T' \/>. <img src='http:\/\/l.wordpress.com\/latex.php?latex=T&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='T' style='vertical-align:1%' class='tex' alt='T' \/> is an open subset of <img src='http:\/\/l.wordpress.com\/latex.php?latex=S&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='S' style='vertical-align:1%' class='tex' alt='S' \/> if every element of <img src='http:\/\/l.wordpress.com\/latex.php?latex=T&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='T' style='vertical-align:1%' class='tex' alt='T' \/> is in its interior. A subset of space formed by an open ball is always an open subset. An open subset of a metric space <img src='http:\/\/l.wordpress.com\/latex.php?latex=S&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='S' style='vertical-align:1%' class='tex' alt='S' \/> is also called an open space in <img src='http:\/\/l.wordpress.com\/latex.php?latex=S&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='S' style='vertical-align:1%' class='tex' alt='S' \/>.<\/p>\n<p>Here&#8217;s where we can start to do some interesting things, that foreshadow what we&#8217;ll do with topological spaces. If you have two open spaces <img src='http:\/\/l.wordpress.com\/latex.php?latex=T&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='T' style='vertical-align:1%' class='tex' alt='T' \/> and <img src='http:\/\/l.wordpress.com\/latex.php?latex=U&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='U' style='vertical-align:1%' class='tex' alt='U' \/> in a metric space <img src='http:\/\/l.wordpress.com\/latex.php?latex=S&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='S' style='vertical-align:1%' class='tex' alt='S' \/>, then <img src='http:\/\/l.wordpress.com\/latex.php?latex=T%20cup%20U&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='T cup U' style='vertical-align:1%' class='tex' alt='T cup U' \/> is an open space in <img src='http:\/\/l.wordpress.com\/latex.php?latex=S&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='S' style='vertical-align:1%' class='tex' alt='S' \/>. So if you have open spaces, you can glue them together to form other open spaces.<\/p>\n<p>In fact, in a metric space <img src='http:\/\/l.wordpress.com\/latex.php?latex=S&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='S' style='vertical-align:1%' class='tex' alt='S' \/>, every open space is the union of a collection of open spheres in <img src='http:\/\/l.wordpress.com\/latex.php?latex=S&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='S' style='vertical-align:1%' class='tex' alt='S' \/>.<\/p>\n<p>In addition to the simple gluing, we can also prove that every intersection of two open subsets is open. In fact, the intersection of any finite set of open subsets form an open subset. So we can assemble open spaces with all sorts of bizarre shapes by gluing together collections of open balls, and then taking intersections between the shapes we&#8217;ve built.<\/p>\n<p>So now, think about a subspace <img src='http:\/\/l.wordpress.com\/latex.php?latex=T&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='T' style='vertical-align:1%' class='tex' alt='T' \/> of a metric space <img src='http:\/\/l.wordpress.com\/latex.php?latex=S&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='S' style='vertical-align:1%' class='tex' alt='S' \/>. We can say that a point <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 <em>adherent to<\/em> <img src='http:\/\/l.wordpress.com\/latex.php?latex=T&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='T' style='vertical-align:1%' class='tex' alt='T' \/> if <img src='http:\/\/l.wordpress.com\/latex.php?latex=%5Cforall%20r%20%3C%200%3B%20B%28p%2C%20r%29%20%5Ccap%20T%20%5Cneq%20%5Cemptyset&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='\\forall r < 0; B(p, r) \\cap T \\neq \\emptyset' style='vertical-align:1%' class='tex' alt='\\forall r < 0; B(p, r) \\cap T \\neq \\emptyset' \/>. The closure of <img src='http:\/\/l.wordpress.com\/latex.php?latex=T&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='T' style='vertical-align:1%' class='tex' alt='T' \/>, written <img src='http:\/\/l.wordpress.com\/latex.php?latex=%5Coverline%7BT%7D&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='\\overline{T}' style='vertical-align:1%' class='tex' alt='\\overline{T}' \/> is the set of all points adherent to <img src='http:\/\/l.wordpress.com\/latex.php?latex=T&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='T' style='vertical-align:1%' class='tex' alt='T' \/>.<\/p>\n<p>A subset <img src='http:\/\/l.wordpress.com\/latex.php?latex=T&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='T' style='vertical-align:1%' class='tex' alt='T' \/> of <img src='http:\/\/l.wordpress.com\/latex.php?latex=S&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='S' style='vertical-align:1%' class='tex' alt='S' \/> is called a <em>closed<\/em> subset if and only if <img src='http:\/\/l.wordpress.com\/latex.php?latex=T%3D%5Coverline%7BT%7D&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='T=\\overline{T}' style='vertical-align:1%' class='tex' alt='T=\\overline{T}' \/>. Intuitively, <img src='http:\/\/l.wordpress.com\/latex.php?latex=T&#038;bg=FFFFFF&#038;fg=000000&#038;s=0' title='T' style='vertical-align:1%' class='tex' alt='T' \/> is closed if it contains the surface that forms its boundary. So in 3-space, a solid sphere is a closed space. The contents of the sphere (think of the shape formed by the air in a spherical balloon) is not a closed space; it&#8217;s bounded by a surface, but that surface is not part of the space.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the things that topologists like to say is that a topological set is just a set with some structure. That structure is, basically, the nearness relation &#8211; a relation that allows us to talk about what points are near other points. So to talk about topology, you need to be able to talk [&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":true,"_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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[65],"tags":[],"class_list":["post-1008","post","type-post","status-publish","format-standard","hentry","category-topology"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4lzZS-gg","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/1008","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=1008"}],"version-history":[{"count":4,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/1008\/revisions"}],"predecessor-version":[{"id":3316,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/1008\/revisions\/3316"}],"wp:attachment":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/media?parent=1008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/categories?post=1008"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/tags?post=1008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}