{"id":301,"date":"2007-02-05T08:30:00","date_gmt":"2007-02-05T08:30:00","guid":{"rendered":"http:\/\/scientopia.org\/blogs\/goodmath\/2007\/02\/05\/basics-real-numbers\/"},"modified":"2007-02-05T08:30:00","modified_gmt":"2007-02-05T08:30:00","slug":"basics-real-numbers","status":"publish","type":"post","link":"http:\/\/www.goodmath.org\/blog\/2007\/02\/05\/basics-real-numbers\/","title":{"rendered":"Basics: Real Numbers"},"content":{"rendered":"<p> What are the real numbers?<\/p>\n<p> Before I go into detail, I need to say up front that I <em>hate<\/em> the term<br \/>\n<em>real number<\/em>. It implies that other kinds of numbers are <em>not<\/em> real,<br \/>\nwhich is silly, annoying, and frustrating. But we&#8217;re pretty much stuck with it.<\/p>\n<p> There are a couple of ways of describing the real numbers. I&#8217;m going to take you through a couple of them: first,  an informal  intuitive description; then  an <em>axiomatic<\/em> definition, and finally, a <em>constructive<\/em> definition.<\/p>\n<p><!--more--><\/p>\n<h3>The Reals, Informally<\/h3>\n<p> The informal, intuitive description is the basic number line. Think about<br \/>\na line, that goes on forever in both directions. There&#8217;s one spot on it labeled 0,<br \/>\nand on either side of zero it&#8217;s labeled like a ruler. Every point on that line is<br \/>\na number. And given any two points on the line, there&#8217;s an infinite number of points<br \/>\nbetween them. The numbers that make up that line are the real numbers.<\/p>\n<p><!-- picture --><br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"number-line.jpg\" src=\"https:\/\/i0.wp.com\/scientopia.org\/img-archive\/goodmath\/img_145.jpg?resize=368%2C48\" width=\"368\" height=\"48\" class=\"inset\" \/><\/p>\n<p> The intuition of the number line is a good one &#8211; most of the important properties<br \/>\nof the real numbers can be described in very nice, intuitive ways using the number<br \/>\nline. The ideas of addition, subtraction, ordering, and contintuity are all very<br \/>\nclear in the intuition of the number line; multiplication seems tricky, but that can be explained in terms of the number line (you can look at my posts about <a href=\"http:\/\/scientopia.org\/blogs\/goodmath\/2006\/09\/manual-calculation-using-a-slide-rule-part-1\">slide rules<\/a> to get an idea of how.)<\/p>\n<p> Assuming you&#8217;re not an insane math geek, you probably want to stop reading right here; I&#8217;m going to move on to more formal definitions of the reals, which most people probably don&#8217;t want to bother with. \ud83d\ude42<\/p>\n<h3>The Reals, Axiomatically<\/h3>\n<p> The <em>axiomatic<\/em> definition is, in many ways, quite similar to the definition<br \/>\nof the reals in terms of the number line &#8211; it just does it in a very formal way. An<br \/>\n<em>Axiomatic<\/em> definition doesn&#8217;t tell you how to get the real numbers &#8211; it just<br \/>\ndescribes them in terms of a set of rules in terms of simple set theory and logic.<\/p>\n<p> The reals are defined by a tuple: (<b>R<\/b>,+,0,&times;,1,&le;), where <b>R<\/b> is an infinite set; &#8220;+&#8221; and &times; are binary operators on members of <b>R<\/b>;<br \/>\n&#8220;0&#8221; and &#8220;1&#8221; are special distinguished elements of <b>R<\/b>; and &le; is a binary<br \/>\nrelation over members of <b>R<\/b>. The elements of the tuple must satisfy the following<br \/>\naxioms:<\/p>\n<ul>\n<li> (<b>R<\/b>,+,&times;) are a field. What this means is:\n<ol>\n<li> &#8220;+&#8221; and &#8220;&times;&#8221; are closed, total, and onto in <b>R<\/b>.<\/li>\n<li> &#8220;+&#8221; and &#8220;&times;&#8221; are commutative: a+b=b+a, a&times;b=b&times;a.<\/li>\n<li> &#8220;&times;&#8221; is distributive with respect to each &#8220;+&#8221;: (3+4)&times;5 = 3&times;5 + 4&times;5.<\/li>\n<li> 0 is the only identity value for &#8220;+&#8221;: For all a, a+0=a.<\/li>\n<li> For every member i&isin;<b>R<\/b>, there is <em>exactly one<\/em><br \/>\nvalue -i. called the <em>additive inverse<\/em> of i, so that<br \/>\ni+-i=0,  and for all i&ne;0, i&ne;-i.<\/li>\n<li> 1 is the only identity value for &#8220;&times;&#8221;; for all a, a&times;1=a.<\/li>\n<li> For every member i&isin;<b>R<\/b> <em>except 0<\/em>, there is<br \/>\n<em>exactly one<\/em><br \/>\nvalue i<sup>-1<\/sup>, called the <em>multiplicative inverse<\/em> of i,\t\t       such that i&times;i<sup>-1<\/sup>=1. For all i&ne;1, i&ne;i<sup>-1<\/sup>.<\/li>\n<\/ol>\n<li> (<b>R<\/b>,&le;) is a total order:\n<ol>\n<li> For all members a,b&isin; R, a&le;b or b&le;a.<\/li>\n<li> &#8220;&le;&#8221; is transitive: if a&le;b and b&le;c then a&le;c.<\/li>\n<li> &#8220;&le;&#8221; is antisymmetric: if a&le;b, and a&ne;b, then &not;(b&le;a)<\/li>\n<\/ol>\n<\/li>\n<li> &#8220;&le;&#8221; is compatible with &#8220;+&#8221; and &#8220;&times;&#8221;:\n<ol>\n<li> If i&le;j then (i+1)&le;(j+1)<\/li>\n<li> If i&le;j, then &forall;x&ge;0, (i&times;x)&le;(j&times;x)<\/li>\n<li> If i&le;j, then &forall;x&le;0, (j&times;x)&le;(i&times;x)<\/li>\n<\/ol>\n<\/li>\n<li> For every subset S&sub;<b>R<\/b> where S&ne;&empty;, if S has an upper bound, then<br \/>\nit has a <em>least upper bound<\/em> l such that for any x&isin;<b>R<\/b> that<br \/>\nis an upper bound for S, l&le;x.<\/li>\n<\/ul>\n<p> That&#8217;s an extremely concise version of the axiomatic definition of reals. It describes what properties the real numbers <em>must<\/em> have, in terms of statements<br \/>\nthat <em>could<\/em> be written out in first-order predicate logic form. An actual set of values that match that description is called a <em>model<\/em> for the definition;<br \/>\nyou can show that there <em>are<\/em> models that match the definition, and that<br \/>\nall of the models that match the definition are equivalent.<\/p>\n<h3>The Reals, Constructively<\/h3>\n<p> Finally, the <em>constructive<\/em> definition. A constructive definitions is a<br \/>\nprocedure for creating the set of real numbers.<\/p>\n<p> We&#8217;ll start with the set of natural numbers. All of the natural numbers<br \/>\nare real numbers, with exactly the properties that they had as natural numbers.<\/p>\n<p> Then we&#8217;ll add <em>rational<\/em> numbers. A <em>positive<\/em> rational number is defined by a <em>pair<\/em> of <em>non-zero<\/em> natural numbers called a <em>ratio<\/em>. A ratio <em>n\/d<\/em> represents a real number which, when multiplied by &#8220;d&#8221;, gives the value &#8220;n&#8221;. The set of ratios numbers constructed this way ends up with lots of duplicates &#8211; 1\/2, 2\/4, 3\/6, etc; so we &#8216;ll define the rationals as a set of <em>equivalence classes<\/em> over the ratios. To define ratio equality, we need to have <em>multiplicative inverses<\/em>: given a ratio a\/b, the its inverse (a\/b)<sup>-1<\/sup> is b\/a. Using this, we can say that two ratios n\/d and m\/e are equivalent if n\/d &times; (m\/e)<sup>-1<\/sup> = 1. Using this, we can also see that every natural number <em>except zero<\/em> has a multiplicative inverse &#8211; N<sup>-1<\/sup>= 1\/N, because N&times;1\/N = 1.<\/p>\n<p> So each of the equivalence classes of the rationals is a real number. Now we&#8217;ve got the positive rationals. Next, we add the <em>additive inverses<\/em> of all of the reals we&#8217;ve accumulated so far: for every positive real number N, there is exactly one <em>negative<\/em> real number -N, such that N+-N=0.<\/p>\n<p> That gives us the complete set of rationals. For convenience, we&#8217;ll use <b>Q<\/b> to represent the set of rational numbers. Now we&#8217;re kind of stuck. We know that there <em>are<\/em> irrational numbers &#8211; we can define them axiomatically, and they fit the axiomatic definition of reals. So we need to be able to construct them. But how?<\/p>\n<p> There are a bunch of tricks. The one I&#8217;m going to use is based on something called <em>Dedekind cuts<\/em>. Dedekind cuts basically says that you can define a real number r as a pair (A,B) of sets: A is the set of rational numbers <em>smaller<\/em> than r; B is the set of real numbers <em>larger than<\/em> r. Because of the nature of the rationals, these two sets have really peculiar properties. The set A is a set<br \/>\ncontaining values <em>smaller than<\/em> some number r; but there is no <em>largest value<\/em> or A. B is similar &#8211; there is no <em>smallest<\/em> value in B. r<br \/>\nis the number in the <em>gap<\/em> between the two sets in the cut.<\/p>\n<p> How does that get us the irrational numbers? Here&#8217;s a simple example: let&#8217;s define<br \/>\nthe square root of two using a Dedekind cut: <\/p>\n<ul>\n<li> A = { r : r&times;r &lt; 2 or r &lt; 0}<\/li>\n<li> B = { r : r&times;r &gt; 2 and r &gt; 0}<\/li>\n<\/ul>\n<p> So we can say that the set of real numbers is: the set of numbers that can be defined using Dedekind cuts of the rationals. <\/p>\n<p> We know that addition, multiplication, and comparisons work nicely on the rationals &#8211; they form a field, and they are totally ordered. Just to give you a sense of how we can show that the cuts also fit into that, we can show the definitions of &#8220;=&#8221;, &#8220;+&#8221;, and &#8220;&le;&#8221; in terms of cuts.<\/p>\n<dl>\n<dt> Addition<\/dt>\n<dd> The sum X+Y of two cuts X=(X<sub>L<\/sub>,X<sub>R<\/sub>) and Y=(Y<sub>L<\/sub>,Y<sub>R<\/sub>) = (Z<sub>L<\/sub>,Z<sub>R<\/sub>) where Z<sub>R<\/sub> = { x+y | x &isin; X<sub>R<\/sub> and y &isin; Y<sub>R<\/sub>}.<\/dd>\n<dt>Equality<\/dt>\n<dd> Two cuts X=(X<sub>L<\/sub>,X<sub>R<\/sub>) and Y=(Y<sub>L<\/sub>,Y<sub>R<\/sub>) are equal if and only if X<sub>L<\/sub> &sube; Y<sub>L<\/sub> and X<sub>R<\/sub> &sube; Y<sub>R<\/sub>.<\/dd>\n<dt>Ordering<\/dt>\n<dd> Given two cuts X=(X<sub>L<\/sub>,X<sub>R<\/sub>) and Y=(Y<sub>L<\/sub>,Y<sub>R<\/sub>), X &le; Y if and only if X<sub>L<\/sub> &sube; Y<sub>L<\/sub> and Y<sub>R<\/sub> &sube; X<sub>R<\/sub>.<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>What are the real numbers? Before I go into detail, I need to say up front that I hate the term real number. It implies that other kinds of numbers are not real, which is silly, annoying, and frustrating. But we&#8217;re pretty much stuck with it. There are a couple of ways of describing 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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[74,43],"tags":[],"class_list":["post-301","post","type-post","status-publish","format-standard","hentry","category-basics","category-numbers"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4lzZS-4R","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/301","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=301"}],"version-history":[{"count":0,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/301\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/media?parent=301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/categories?post=301"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/tags?post=301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}