Integer: Difference between revisions
Jump to navigation
Jump to search
imported>Beland |
imported>Tbhotch m Reverted 1 edit by SuperOwl392 (talk) to last revision by Jacobolus |
||
| Line 4: | Line 4: | ||
[[File:NumberLineIntegers.svg|thumb|upright=1.25|The integers arranged on a [[number line]]]] | [[File:NumberLineIntegers.svg|thumb|upright=1.25|The integers arranged on a [[number line]]]] | ||
An '''integer''' is the [[number]] zero ([[0]]), a positive [[natural number]] (1, 2, 3, ...), or the negation of a positive natural number ([[−1]], −2, −3, ...).<ref>{{cite book |title=Science and Technology Encyclopedia |date=September 2000 |publisher=University of Chicago Press |isbn=978-0-226-74267-0 |page=280 |url=https://books.google.com/books?id=PZIdcYCCf2kC&dq=integer&pg=PA280 |language=en}}</ref> The negations or [[additive inverse]]s of the positive natural numbers are referred to as '''negative integers'''.<ref>{{cite book |last1=Hillman |first1=Abraham P. |last2=Alexanderson |first2=Gerald L. |title=Algebra and trigonometry; |date=1963 |publisher=Allyn and Bacon |location=Boston |url=https://archive.org/details/algebratrigonome0000hill/page/42/mode/2up}}</ref> The [[set (mathematics)|set]] of all integers is often denoted by the [[boldface]] {{math|'''Z'''}} or [[blackboard bold]] {{nobr| | An '''integer''' is the [[number]] zero ([[0]]), a positive [[natural number]] (1, 2, 3, ...), or the negation of a positive natural number ([[−1]], −2, −3, ...).<ref>{{cite book |title=Science and Technology Encyclopedia |date=September 2000 |publisher=University of Chicago Press |isbn=978-0-226-74267-0 |page=280 |url=https://books.google.com/books?id=PZIdcYCCf2kC&dq=integer&pg=PA280 |language=en}}</ref> The negations or [[additive inverse]]s of the positive natural numbers are referred to as '''negative integers'''.<ref>{{cite book |last1=Hillman |first1=Abraham P. |last2=Alexanderson |first2=Gerald L. |title=Algebra and trigonometry; |date=1963 |publisher=Allyn and Bacon |location=Boston |url=https://archive.org/details/algebratrigonome0000hill/page/42/mode/2up}}</ref> The [[set (mathematics)|set]] of all integers is often denoted by the [[boldface]] {{math|'''Z'''}} or [[blackboard bold]] {{nobr|{{tmath|\Z}}.<ref name="earliest"/><ref name="Cameron1998">{{cite book |author=Peter Jephson Cameron |title=Introduction to Algebra |url=https://books.google.com/books?id=syYYl-NVM5IC&pg=PA4 |year=1998 |publisher=Oxford University Press |isbn=978-0-19-850195-4 |page=4 |access-date=2016-02-15 |archive-url=https://web.archive.org/web/20161208142220/https://books.google.com/books?id=syYYl-NVM5IC&pg=PA4 |archive-date=2016-12-08 |url-status=live }}</ref>}} | ||
The set of natural numbers | The set of natural numbers {{tmath|\N}} is a [[subset]] of {{tmath|\Z}}, which in turn is a subset of the set of all [[rational number]]s {{tmath|\Q}}, itself a subset of the [[real number]]s {{tmath|\R }}.{{efn|More precisely, each system is [[Embedding|embedded]] in the next, isomorphically mapped to a subset.<ref>{{cite book |last1=Partee |first1=Barbara H. |last2=Meulen |first2=Alice ter |last3=Wall |first3=Robert E. |title=Mathematical Methods in Linguistics |date=30 April 1990 |publisher=Springer Science & Business Media |isbn=978-90-277-2245-4 |pages=78–82 |url=https://books.google.com/books?id=qV7TUuaYcUIC&pg=PA80 |language=en |quote=The natural numbers are not themselves a subset of this set-theoretic representation of the integers. Rather, the set of all integers contains a subset consisting of the positive integers and zero which is isomorphic to the set of natural numbers.}}</ref> The commonly-assumed set-theoretic containment may be obtained by constructing the reals, discarding any earlier constructions, and defining the other sets as subsets of the reals.<ref>{{cite book |last1=Wohlgemuth |first1=Andrew |title=Introduction to Proof in Abstract Mathematics |date=10 June 2014 |publisher=Courier Corporation |isbn=978-0-486-14168-8 |page=237 |url=https://books.google.com/books?id=PEP_AwAAQBAJ&pg=PA237 |language=en}}</ref>}} Like the set of natural numbers, the set of integers {{tmath|\Z}} is [[Countable set|countably infinite]]. An integer may be regarded as a real number that can be written without a [[fraction|fractional component]]. For example, 21, 4, 0, and −2048 are integers, while 9.75, {{sfrac|5|1|2}}, 5/4, and the [[square root of 2]] are not.<ref>{{cite book |last1=Prep |first1=Kaplan Test |title=GMAT Complete 2020: The Ultimate in Comprehensive Self-Study for GMAT |date=4 June 2019 |publisher=Simon and Schuster |isbn=978-1-5062-4844-8 |url=https://books.google.com/books?id=6l_sDwAAQBAJ&pg=PA708 |language=en}}</ref> | ||
The integers form the smallest [[Group (mathematics)|group]] and the smallest [[ring (mathematics)|ring]] containing the [[natural number]]s. In [[algebraic number theory]], | The integers form the smallest [[Group (mathematics)|group]] and the smallest [[ring (mathematics)|ring]] containing the [[natural number]]s. In [[algebraic number theory]], integers are sometimes called '''rational integers''' to distinguish them from the more general [[algebraic integer]]s. In fact, (rational) integers are algebraic integers that are also [[rational number]]s. | ||
== History == | == History == | ||
| Line 16: | Line 16: | ||
The phrase ''the set of the integers'' was not used before the end of the 19th century, when [[Georg Cantor]] introduced the concept of [[infinite set]]s and [[set theory]]. The use of the letter Z to denote the set of integers comes from the [[German language|German]] word ''[[wikt:Zahlen|Zahlen]]'' ("numbers")<ref name="earliest">{{cite web |url=http://jeff560.tripod.com/nth.html |title=Earliest Uses of Symbols of Number Theory |access-date=2010-09-20 |date=2010-08-29 |first=Jeff |last=Miller |archive-url=https://web.archive.org/web/20100131022510/http://jeff560.tripod.com/nth.html |archive-date=2010-01-31 |url-status=dead }}</ref><ref name="Cameron1998">{{cite book |author=Peter Jephson Cameron |title=Introduction to Algebra |url=https://books.google.com/books?id=syYYl-NVM5IC&pg=PA4 |year=1998 |publisher=Oxford University Press |isbn=978-0-19-850195-4 |page=4 |access-date=2016-02-15 |archive-url=https://web.archive.org/web/20161208142220/https://books.google.com/books?id=syYYl-NVM5IC&pg=PA4 |archive-date=2016-12-08 |url-status=live }}</ref> and has been attributed to [[David Hilbert]].<ref>{{cite book |title=The University of Leeds Review |date=1989 |publisher=University of Leeds. |page=46 |url=https://books.google.com/books?id=Z-7kAAAAMAAJ|language=en|volume=31-32|quote=Incidentally, Z comes from "Zahl": the notation was created by Hilbert.}}</ref> The earliest known use of the notation in a textbook occurs in [[Éléments de mathématique|Algèbre]] written by the collective [[Nicolas Bourbaki]], dating to 1947.<ref name="earliest"/><ref>{{cite book |last1=Bourbaki |first1=Nicolas |title=Algèbre, Chapter 1 |date=1951|edition=2nd |publisher=Hermann|location=Paris |page=27|language=fr|url=https://archive.org/details/algebrebour00bour/page/26/mode/2up|quote=Le symétrisé de '''N''' se note '''Z'''; ses éléments sont appelés entiers rationnels.|trans-quote=The group of differences of '''N''' is denoted by '''Z'''; its elements are called the rational integers.}}</ref> The notation was not adopted immediately. For example, another textbook used the letter J,<ref>{{cite book |last1=Birkhoff |first1=Garrett |title=Lattice Theory |date=1948 |publisher=American Mathematical Society |page=63 |edition=Revised |url=https://archive.org/details/in.ernet.dli.2015.166886/page/n63/mode/2up|quote=the set ''J'' of all integers}}</ref> and a 1960 paper used Z to denote the non-negative integers.<ref>{{cite book |last1=Society |first1=Canadian Mathematical |title=Canadian Journal of Mathematics |date=1960 |publisher=Canadian Mathematical Society |page=374 |url=https://books.google.com/books?id=uMAXOmLTCGsC&dq=integer%20set%20Z&pg=PA374 |language=en|quote=Consider the set ''Z'' of non-negative integers}}</ref> But by 1961, Z was generally used by modern algebra texts to denote the positive and negative integers.<ref>{{cite book |last1=Bezuszka |first1=Stanley |title=Contemporary Progress in Mathematics: Teacher Supplement [to] Part 1 and Part 2 |date=1961 |publisher=Boston College |page=69 |url=https://books.google.com/books?id=dhJPAQAAMAAJ&q=integer+set+Z |language=en|quote=Modern Algebra texts generally designate the set of integers by the capital letter Z.}}</ref> | The phrase ''the set of the integers'' was not used before the end of the 19th century, when [[Georg Cantor]] introduced the concept of [[infinite set]]s and [[set theory]]. The use of the letter Z to denote the set of integers comes from the [[German language|German]] word ''[[wikt:Zahlen|Zahlen]]'' ("numbers")<ref name="earliest">{{cite web |url=http://jeff560.tripod.com/nth.html |title=Earliest Uses of Symbols of Number Theory |access-date=2010-09-20 |date=2010-08-29 |first=Jeff |last=Miller |archive-url=https://web.archive.org/web/20100131022510/http://jeff560.tripod.com/nth.html |archive-date=2010-01-31 |url-status=dead }}</ref><ref name="Cameron1998">{{cite book |author=Peter Jephson Cameron |title=Introduction to Algebra |url=https://books.google.com/books?id=syYYl-NVM5IC&pg=PA4 |year=1998 |publisher=Oxford University Press |isbn=978-0-19-850195-4 |page=4 |access-date=2016-02-15 |archive-url=https://web.archive.org/web/20161208142220/https://books.google.com/books?id=syYYl-NVM5IC&pg=PA4 |archive-date=2016-12-08 |url-status=live }}</ref> and has been attributed to [[David Hilbert]].<ref>{{cite book |title=The University of Leeds Review |date=1989 |publisher=University of Leeds. |page=46 |url=https://books.google.com/books?id=Z-7kAAAAMAAJ|language=en|volume=31-32|quote=Incidentally, Z comes from "Zahl": the notation was created by Hilbert.}}</ref> The earliest known use of the notation in a textbook occurs in [[Éléments de mathématique|Algèbre]] written by the collective [[Nicolas Bourbaki]], dating to 1947.<ref name="earliest"/><ref>{{cite book |last1=Bourbaki |first1=Nicolas |title=Algèbre, Chapter 1 |date=1951|edition=2nd |publisher=Hermann|location=Paris |page=27|language=fr|url=https://archive.org/details/algebrebour00bour/page/26/mode/2up|quote=Le symétrisé de '''N''' se note '''Z'''; ses éléments sont appelés entiers rationnels.|trans-quote=The group of differences of '''N''' is denoted by '''Z'''; its elements are called the rational integers.}}</ref> The notation was not adopted immediately. For example, another textbook used the letter J,<ref>{{cite book |last1=Birkhoff |first1=Garrett |title=Lattice Theory |date=1948 |publisher=American Mathematical Society |page=63 |edition=Revised |url=https://archive.org/details/in.ernet.dli.2015.166886/page/n63/mode/2up|quote=the set ''J'' of all integers}}</ref> and a 1960 paper used Z to denote the non-negative integers.<ref>{{cite book |last1=Society |first1=Canadian Mathematical |title=Canadian Journal of Mathematics |date=1960 |publisher=Canadian Mathematical Society |page=374 |url=https://books.google.com/books?id=uMAXOmLTCGsC&dq=integer%20set%20Z&pg=PA374 |language=en|quote=Consider the set ''Z'' of non-negative integers}}</ref> But by 1961, Z was generally used by modern algebra texts to denote the positive and negative integers.<ref>{{cite book |last1=Bezuszka |first1=Stanley |title=Contemporary Progress in Mathematics: Teacher Supplement [to] Part 1 and Part 2 |date=1961 |publisher=Boston College |page=69 |url=https://books.google.com/books?id=dhJPAQAAMAAJ&q=integer+set+Z |language=en|quote=Modern Algebra texts generally designate the set of integers by the capital letter Z.}}</ref> | ||
The symbol | The symbol {{tmath|\Z}} is often annotated to denote various sets, with varying usage amongst different authors: {{tmath|\Z^+}}, {{tmath|\Z_+}}, or {{tmath|\Z^>}} for the positive integers, {{tmath|\Z^{0+} }} or {{tmath|\Z^\geq}} for non-negative integers, and {{tmath|\Z^\neq}} for non-zero integers. Some authors use {{tmath|\Z^*}} for non-zero integers, while others use it for non-negative integers, or for {−1,1} (the [[group of units]] of {{tmath|\Z}}). Additionally, {{tmath|\Z_p}} is used to denote either the set of [[integers modulo n|integers modulo {{math|''p''}}]] (i.e., the set of [[congruence relation|congruence classes]] of integers), or the set of [[p-adic integer|{{math|''p''}}-adic integers]].<ref name=edexcelc1>Keith Pledger and Dave Wilkins, "Edexcel AS and A Level Modular Mathematics: Core Mathematics 1" Pearson 2008</ref><ref>LK Turner, FJ BUdden, D Knighton, "Advanced Mathematics", Book 2, Longman 1975.</ref> | ||
{{anchor|Whole numbers}} | {{anchor|Whole numbers}} | ||
The ''whole numbers'' were synonymous with the integers up until the early 1950s.<ref>{{cite book |last1=Mathews |first1=George Ballard |title=Theory of Numbers |date=1892 |publisher=Deighton, Bell and Company |page=2 |url=https://books.google.com/books?id=iQ_vAAAAMAAJ&pg=PA2 |language=en}}</ref><ref>{{cite book |last1=Betz |first1=William |title=Junior Mathematics for Today |date=1934 |publisher=Ginn |url=https://books.google.com/books?id=RzNCAAAAIAAJ |language=en |quote=The whole numbers, or integers, when arranged in their natural order, such as 1, 2, 3, are called consecutive integers.}}</ref><ref>{{cite book |last1=Peck |first1=Lyman C. |title=Elements of Algebra |date=1950 |publisher=McGraw-Hill |page=3 |url=https://books.google.com/books?id=tclXAAAAYAAJ&q=integers+whole+numbers |language=en |quote=The numbers which so arise are called positive whole numbers, or positive integers.}}</ref> In the late 1950s, as part of the [[New Math]] movement,<ref>{{cite thesis|type=PhD |url= https://dr.lib.iastate.edu/handle/20.500.12876/80303 |title=A history of the "new math" movement in the United States|date=1981|last=Hayden|first=Robert|publisher=Iowa State University |doi=10.31274/rtd-180813-5631|page=145|quote=A much more influential force in bringing news of the "new math" to high school teachers and administrators was the National Council of Teachers of Mathematics (NCTM).|doi-access=free}}</ref> American elementary school teachers began teaching that ''whole numbers'' referred to the [[natural number]]s, excluding negative numbers, while ''integer'' included the negative numbers.<ref>{{cite book |title=The Growth of Mathematical Ideas, Grades K-12: 24th Yearbook |date=1959 |publisher=National Council of Teachers of Mathematics |page=14 |isbn=9780608166186 |url=https://books.google.com/books?id=OO9RAQAAIAAJ&pg=PA14 |language=en}}</ref><ref>{{cite book |last1=Deans |first1=Edwina |title=Elementary School Mathematics: New Directions |date=1963 |publisher=U.S. Department of Health, Education, and Welfare, Office of Education |page=42 |url=https://books.google.com/books?id=bAUJAQAAMAAJ&pg=PA42 |language=en}}</ref> The ''whole numbers'' remain ambiguous to the present day.<ref>{{cite web |title=entry: whole number |url=https://www.ahdictionary.com/word/search.html?q=whole+number |website=The American Heritage Dictionary |publisher=HarperCollins}}</ref> | The ''whole numbers'' were synonymous with the integers up until the early 1950s.<ref>{{cite book |last1=Mathews |first1=George Ballard |title=Theory of Numbers |date=1892 |publisher=Deighton, Bell and Company |page=2 |url=https://books.google.com/books?id=iQ_vAAAAMAAJ&pg=PA2 |language=en}}</ref><ref>{{cite book |last1=Betz |first1=William |title=Junior Mathematics for Today |date=1934 |publisher=Ginn |url=https://books.google.com/books?id=RzNCAAAAIAAJ |language=en |quote=The whole numbers, or integers, when arranged in their natural order, such as 1, 2, 3, are called consecutive integers.}}</ref><ref>{{cite book |last1=Peck |first1=Lyman C. |title=Elements of Algebra |date=1950 |publisher=McGraw-Hill |page=3 |url=https://books.google.com/books?id=tclXAAAAYAAJ&q=integers+whole+numbers |language=en |quote=The numbers which so arise are called positive whole numbers, or positive integers.}}</ref> In the late 1950s, as part of the [[New Math]] movement,<ref>{{cite thesis|type=PhD |url= https://dr.lib.iastate.edu/handle/20.500.12876/80303 |title=A history of the "new math" movement in the United States|date=1981|last=Hayden|first=Robert|publisher=Iowa State University |doi=10.31274/rtd-180813-5631|page=145|quote=A much more influential force in bringing news of the "new math" to high school teachers and administrators was the National Council of Teachers of Mathematics (NCTM).|doi-access=free |archive-url=https://web.archive.org/web/20251008043152/https://dr.lib.iastate.edu/handle/20.500.12876/80303 |archive-date=2025-10-08}}</ref> American elementary school teachers began teaching that ''whole numbers'' referred to the [[natural number]]s, excluding negative numbers, while ''integer'' included the negative numbers.<ref>{{cite book |title=The Growth of Mathematical Ideas, Grades K-12: 24th Yearbook |date=1959 |publisher=National Council of Teachers of Mathematics |page=14 |isbn=9780608166186 |url=https://books.google.com/books?id=OO9RAQAAIAAJ&pg=PA14 |language=en}}</ref><ref>{{cite book |last1=Deans |first1=Edwina |title=Elementary School Mathematics: New Directions |date=1963 |publisher=U.S. Department of Health, Education, and Welfare, Office of Education |page=42 |url=https://books.google.com/books?id=bAUJAQAAMAAJ&pg=PA42 |language=en}}</ref> The ''whole numbers'' remain ambiguous to the present day.<ref>{{cite web |title=entry: whole number |url=https://www.ahdictionary.com/word/search.html?q=whole+number |website=The American Heritage Dictionary |publisher=HarperCollins}}</ref> | ||
== Algebraic properties == | == Algebraic properties == | ||
| Line 26: | Line 26: | ||
{{Ring theory sidebar}} | {{Ring theory sidebar}} | ||
Like the [[natural numbers]], | Like the [[natural numbers]], {{tmath|\Z}} is [[closure (mathematics)|closed]] under the [[binary operation|operations]] of addition and [[multiplication]], that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly, {{num|0}}), {{tmath|\Z}}, unlike the natural numbers, is also closed under [[subtraction]].<ref>{{Cite web|title=Integer {{!}} mathematics|url=https://www.britannica.com/science/integer|access-date=2020-08-11|website=Encyclopedia Britannica|language=en}}</ref> | ||
The integers form a [[ring (mathematics)|ring]] which is the most basic one, in the following sense: for any ring, there is a unique [[ring homomorphism]] from the integers into this ring. This [[universal property]], namely to be an [[initial object]] in the [[category of rings]], characterizes the ring | The integers form a [[ring (mathematics)|ring]] which is the most basic one, in the following sense: for any ring, there is a unique [[ring homomorphism]] from the integers into this ring. This [[universal property]], namely to be an [[initial object]] in the [[category of rings]], characterizes the ring {{tmath|\Z}}. This unique homomorphism is [[injective]] if and only if the [[characteristic (algebra)|characteristic]] of the ring is zero. It follows that every ring of characteristic zero contains a subring isomorphic to {{tmath|\Z}}, which is its smallest subring. | ||
{{tmath|\Z}} is not closed under [[division (mathematics)|division]], since the quotient of two integers (e.g., 1 divided by 2) need not be an integer. Although the natural numbers are closed under [[exponentiation]], the integers are not (since the result can be a fraction when the exponent is negative). | |||
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}}, and {{math|''c''}}: | The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}}, and {{math|''c''}}: | ||
| Line 66: | Line 66: | ||
|} | |} | ||
The first five properties listed above for addition say that | The first five properties listed above for addition say that {{tmath|\Z}}, under addition, is an [[abelian group]]. It is also a [[cyclic group]], since every non-zero integer can be written as a finite sum {{nowrap|1 + 1 + ... + 1}} or {{nowrap|(−1) + (−1) + ... + (−1)}}. In fact, {{tmath|\Z}} under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is [[group isomorphism|isomorphic]] to {{tmath|\Z}}. | ||
The first four properties listed above for multiplication say that | The first four properties listed above for multiplication say that {{tmath|\Z}} under multiplication is a [[commutative monoid]]. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that {{tmath|\Z}} under multiplication is not a group. | ||
All the rules from the above property table (except for the last), when taken together, say that | All the rules from the above property table (except for the last), when taken together, say that {{tmath|\Z}} together with addition and multiplication is a [[commutative ring]] with [[multiplicative identity|unity]]. It is the prototype of all objects of such [[algebraic structure]]. Only those [[equality (mathematics)|equalities]] of [[algebraic expression|expressions]] are true in {{tmath|\Z}} [[for all]] values of variables, which are true in any unital commutative ring. Certain non-zero integers map to [[additive identity|zero]] in certain rings. | ||
The lack of [[zero divisor]]s in the integers (last property in the table) means that the commutative ring | The lack of [[zero divisor]]s in the integers (last property in the table) means that the commutative ring {{tmath|\Z}} is an [[integral domain]]. | ||
The lack of multiplicative inverses, which is equivalent to the fact that | The lack of multiplicative inverses, which is equivalent to the fact that {{tmath|\Z}} is not closed under division, means that {{tmath|\Z}} is ''not'' a [[field (mathematics)|field]]. The smallest field containing the integers as a [[subring]] is the field of [[rational number]]s. The process of constructing the rationals from the integers can be mimicked to form the [[field of fractions]] of any integral domain. And back, starting from an [[algebraic number field]] (an extension of rational numbers), its [[ring of integers]] can be extracted, which includes {{tmath|\Z}} as its [[subring]]. | ||
Although ordinary division is not defined on | Although ordinary division is not defined on {{tmath|\Z}}, the division "with remainder" is defined on them. It is called [[Euclidean division]], and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' {{=}} ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' < {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the [[absolute value]] of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''[[remainder]]'' of the division of {{math|''a''}} by {{math|''b''}}. The [[Euclidean algorithm]] for computing [[greatest common divisor]]s works by a sequence of Euclidean divisions. | ||
The above says that | The above says that {{tmath|\Z}} is a [[Euclidean domain]]. This implies that {{tmath|\Z}} is a [[principal ideal domain]], and any positive integer can be written as the products of [[prime number|primes]] in an [[essentially unique]] way.<ref>{{cite book |first=Serge |last=Lang |author-link=Serge Lang |title=Algebra |edition=3rd |publisher=Addison-Wesley |year=1993 |isbn=978-0-201-55540-0 |pages=86–87}}</ref> This is the [[fundamental theorem of arithmetic]]. | ||
==Order-theoretic properties== | ==Order-theoretic properties== | ||
{{tmath|\Z}} is a [[total order|totally ordered set]] without [[upper and lower bounds|upper or lower bound]]. The ordering of {{tmath|\Z}} is given by: | |||
:<math>\cdots < -3 < -2 < -1 < 0 < 1 < 2 < 3 < \cdots.</math> | |||
An integer is ''positive'' if it is greater than [[0|zero]], and ''negative'' if it is less than zero. Zero is defined as neither negative nor positive. | An integer is ''positive'' if it is greater than [[0|zero]], and ''negative'' if it is less than zero. Zero is defined as neither negative nor positive. | ||
| Line 89: | Line 89: | ||
# If {{math|''a'' < ''b''}} and {{math|0 < ''c''}}, then {{math|''ac'' < ''bc''}} | # If {{math|''a'' < ''b''}} and {{math|0 < ''c''}}, then {{math|''ac'' < ''bc''}} | ||
Thus it follows that | Thus it follows that {{tmath|\Z}} together with the above ordering is an [[ordered ring]]. | ||
The integers are the only nontrivial [[totally ordered]] [[abelian group]] whose positive elements are [[well-ordered]].<ref>{{cite book |title=Modern Algebra |series=Dover Books on Mathematics |first=Seth |last=Warner |publisher=Courier Corporation |year=2012 |isbn=978-0-486-13709-4 |at=Theorem 20.14, p. 185 |url=https://books.google.com/books?id=TqHDAgAAQBAJ&pg=PA185 |access-date=2015-04-29 |archive-url=https://web.archive.org/web/20150906083836/https://books.google.com/books?id=TqHDAgAAQBAJ&pg=PA185|archive-date=2015-09-06 |url-status=live}}.</ref> This is equivalent to the statement that any [[Noetherian ring|Noetherian]] [[valuation ring]] is either a [[Field (mathematics)|field]]—or a [[discrete valuation ring]]. | The integers are the only nontrivial [[totally ordered]] [[abelian group]] whose positive elements are [[well-ordered]].<ref>{{cite book |title=Modern Algebra |series=Dover Books on Mathematics |first=Seth |last=Warner |publisher=Courier Corporation |year=2012 |isbn=978-0-486-13709-4 |at=Theorem 20.14, p. 185 |url=https://books.google.com/books?id=TqHDAgAAQBAJ&pg=PA185 |access-date=2015-04-29 |archive-url=https://web.archive.org/web/20150906083836/https://books.google.com/books?id=TqHDAgAAQBAJ&pg=PA185|archive-date=2015-09-06 |url-status=live}}.</ref> This is equivalent to the statement that any [[Noetherian ring|Noetherian]] [[valuation ring]] is either a [[Field (mathematics)|field]]—or a [[discrete valuation ring]]. | ||
| Line 95: | Line 95: | ||
==Construction== | ==Construction== | ||
=== Traditional development === | === Traditional development === | ||
In elementary school teaching, integers are often intuitively defined as the union of the (positive) natural numbers, [[zero]], and the negations of the natural numbers. This can be formalized as follows.<ref>{{cite book |last1=Mendelson |first1=Elliott |title=Number systems and the foundations of analysis |date=1985 |publisher=Malabar, Fla. : R.E. Krieger Pub. Co. |isbn=978-0-89874-818-5 |page=153 |url=https://archive.org/details/numbersystemsfou0000mend/page/152/mode/2up}}</ref> First construct the set of natural numbers according to the [[Peano axioms]], call this | In elementary school teaching, integers are often intuitively defined as the union of the (positive) natural numbers, [[zero]], and the negations of the natural numbers. This can be formalized as follows.<ref>{{cite book |last1=Mendelson |first1=Elliott |title=Number systems and the foundations of analysis |date=1985 |publisher=Malabar, Fla. : R.E. Krieger Pub. Co. |isbn=978-0-89874-818-5 |page=153 |url=https://archive.org/details/numbersystemsfou0000mend/page/152/mode/2up}}</ref> First construct the set of natural numbers according to the [[Peano axioms]], call this {{tmath|P}}. Then construct a set {{tmath|P^-}} which is [[Disjoint sets|disjoint]] from {{tmath|P}} and in one-to-one correspondence with {{tmath|P}} via a function {{tmath|\psi}}. For example, take {{tmath|P^-}} to be the [[ordered pair]]s {{tmath|(1,n)}} with the mapping {{tmath|1= \psi = n \mapsto (1,n)}}. Finally let 0 be some object not in {{tmath|P}} or {{tmath|P^-}}, for example the ordered pair (0,0). Then the integers are defined to be the union {{tmath|P \cup P^- \cup \{0\} }}. | ||
The traditional arithmetic operations can then be defined on the integers in a [[piecewise]] fashion, for each of positive numbers, negative numbers, and zero. For example [[negation]] is defined as follows: | The traditional arithmetic operations can then be defined on the integers in a [[piecewise]] fashion, for each of positive numbers, negative numbers, and zero. For example [[negation]] is defined as follows: | ||
| Line 138: | Line 138: | ||
Thus, {{math|[(''a'',''b'')]}} is denoted by | Thus, {{math|[(''a'',''b'')]}} is denoted by | ||
:<math>\begin{cases}a-b,&\mbox{if }a\ge b\\-(b-a),&\mbox{if }a<b\end{cases}</math> | :<math>\begin{cases} | ||
a-b,&\mbox{if }a\ge b\\ | |||
-(b-a),&\mbox{if }a<b | |||
\end{cases}</math> | |||
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity. | If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity. | ||
| Line 145: | Line 148: | ||
Some examples are: | Some examples are: | ||
:<math>\begin{ | :<math>\begin{alignat}{3} | ||
0 &= [(0,0)] &&= [(1,1)] &&= \ \cdots \ &&= [(k,k)],\\ | |||
1 &= [(1,0)] &&= [(2,1)] &&= \ \cdots \ &&= [(k+1,k)],\\ | |||
-1 &= [(0,1)] &&= [(1,2)] &&= \ \cdots \ &&= [(k,k+1)],\\ | |||
2 &= [(2,0)] &&= [(3,1)] &&= \ \cdots \ &&= [(k+2,k)],\\ | |||
-2 &= [(0,2)] &&= [(1,3)] &&= \ \cdots \ &&= [(k,k+2)]. | |||
\end{alignat}</math> | |||
=== Other approaches === | === Other approaches === | ||
| Line 153: | Line 162: | ||
There exist at least ten such constructions of signed integers.<ref>{{cite conference |last=Garavel |first=Hubert |title=On the Most Suitable Axiomatization of Signed Integers |conference=Post-proceedings of the 23rd International Workshop on Algebraic Development Techniques (WADT'2016) |year=2017 |publisher=Springer |series=Lecture Notes in Computer Science |volume=10644 |pages=120–134 |doi=10.1007/978-3-319-72044-9_9 |isbn=978-3-319-72043-2 |url=https://hal.inria.fr/hal-01667321 |access-date=2018-01-25 |archive-url=https://web.archive.org/web/20180126125528/https://hal.inria.fr/hal-01667321 |archive-date=2018-01-26 |url-status=live }}</ref> These constructions differ in several ways: the number of basic operations used for the construction, the number (usually, between 0 and 2), and the types of arguments accepted by these operations; the presence or absence of natural numbers as arguments of some of these operations, and the fact that these operations are free constructors or not, i.e., that the same integer can be represented using only one or many algebraic terms. | There exist at least ten such constructions of signed integers.<ref>{{cite conference |last=Garavel |first=Hubert |title=On the Most Suitable Axiomatization of Signed Integers |conference=Post-proceedings of the 23rd International Workshop on Algebraic Development Techniques (WADT'2016) |year=2017 |publisher=Springer |series=Lecture Notes in Computer Science |volume=10644 |pages=120–134 |doi=10.1007/978-3-319-72044-9_9 |isbn=978-3-319-72043-2 |url=https://hal.inria.fr/hal-01667321 |access-date=2018-01-25 |archive-url=https://web.archive.org/web/20180126125528/https://hal.inria.fr/hal-01667321 |archive-date=2018-01-26 |url-status=live }}</ref> These constructions differ in several ways: the number of basic operations used for the construction, the number (usually, between 0 and 2), and the types of arguments accepted by these operations; the presence or absence of natural numbers as arguments of some of these operations, and the fact that these operations are free constructors or not, i.e., that the same integer can be represented using only one or many algebraic terms. | ||
The technique for the construction of integers presented in the previous section corresponds to the particular case where there is a single basic operation '''pair'''<math>(x,y)</math> that takes as arguments two natural numbers | The technique for the construction of integers presented in the previous section corresponds to the particular case where there is a single basic operation '''pair'''<math>(x,y)</math> that takes as arguments two natural numbers {{tmath|x}} and {{tmath|y}}, and returns an integer (equal to {{tmath|x-y}}). This operation is not free since the integer 0 can be written '''pair'''(0,0), or '''pair'''(1,1), or '''pair'''(2,2), etc.. This technique of construction is used by the [[proof assistant]] [[Isabelle (proof assistant)|Isabelle]]; however, many other tools use alternative construction techniques, notable those based upon free constructors, which are simpler and can be implemented more efficiently in computers. | ||
==Computer science== | ==Computer science== | ||
| Line 166: | Line 175: | ||
:{{math|(0, 1), (1, 2), (−1, 3), (2, 4), (−2, 5), }} {{math|(3, 6), . . . ,(1 − ''k'', 2''k'' − 1), (''k'', 2''k'' ), . . .}} | :{{math|(0, 1), (1, 2), (−1, 3), (2, 4), (−2, 5), }} {{math|(3, 6), . . . ,(1 − ''k'', 2''k'' − 1), (''k'', 2''k'' ), . . .}} | ||
More technically, the [[cardinality]] of | More technically, the [[cardinality]] of {{tmath|\Z}} is said to equal {{math|ℵ{{sub|0}}}} ([[Aleph number|aleph-null]]). The pairing between elements of {{tmath|\Z}} and {{tmath|\N}} is called a [[bijection]]. | ||
== See also == | == See also == | ||