The real numbers as a Lean type, with the operations and order of ℝ, declared a commutative ring with a compatible total order so that ring and order arithmetic on real numbers can be done by Lean's algebra procedures.
In the setting of The Real Numbers, with the Natural Numbers, Integers and Rationals Identified with Subsets of the Reals, and Completeness, where is an ordered field by The Real Numbers Form an Ordered Field in Which Every Nonempty Set Bounded Above Has a Supremum (i): is the type whose elements are the real numbers: an element of is a set , carried with the fact that it lies in , and two elements are equal when their sets are (the one place where a real number is handled as a set, as a type requires). The elements and , the operations and and the order of are those of (The Real Numbers (iii), The Real Numbers (iv)); is the negative, which lies in by Negatives, Reciprocals and the Strict Order in an Ordered Field, as Values (i), and the difference ; is the strict relation of . Reciprocals and quotients are not operations of ; they are taken in . Numerals and powers are read recursively: the natural number is , is and is ; an integer is read as the natural number , and as the negative of ; and ; and and , for a natural number and an integer , are the products of their readings with . Since an element of is determined by its set and is an ordered field, the laws of hold for these operations and this order: the laws of a commutative ring hold for , , and on , among them , and (Rules of Arithmetic and Order in an Ordered Field (i), Rules of Arithmetic and Order in an Ordered Field (ii)) and (Negatives, Reciprocals and the Strict Order in an Ordered Field, as Values (i)); on is reflexive, antisymmetric, transitive and total, as is a total order on , and holds exactly when and not (Negatives, Reciprocals and the Strict Order in an Ordered Field, as Values (iii)); the laws of an ordered ring hold, in the forms if and only if (Rules of Order in an Ordered Ring: Differences, Sums, Negatives, Products and Squares (ii)), (Rules of Arithmetic and Order in an Ordered Field (vii)), and, if and , then (Rules of Arithmetic and Order in an Ordered Field (vi)) and hence, by commutativity, . In Lean these clauses are the classes ; and ; and and .
Loading…
No relations recorded yet.