TheoremBase

The Natural Numbers with Zero as a Type

Defines the type Natural of natural numbers with zero, with the operations, order and numerals of the natural numbers with zero, under which it is a commutative semiring with cancellation and a linearly ordered additive structure.

Statement

In the setting of Routine Facts Used Without Citation: Arithmetic, Maps, Predicativity and Indices, with N0\mathbb{N}_{0}, 00 and 11 as in The Natural Numbers and the Natural Numbers with Zero: Arithmetic, Order, Induction and Recursion (ii):

The type. Natural\mathrm{Natural} is the type whose elements are the natural numbers with zero: an element of Natural\mathrm{Natural} is a set n∈N0n\in\mathbb{N}_{0}, carried with the fact that it lies in N0\mathbb{N}_{0}, and two elements are equal when their sets are (the one place where a natural number is handled as a set, as a type requires).

Operations. The elements 00 and 11, the operations a+ba+b and aβ‹…ba\cdot b and the relations a≀ba\le b and a<ba<b of Natural\mathrm{Natural} are those of N0\mathbb{N}_{0}: the sets of 00 and 11 are 00 and 11; the set of a+ba+b is the sum of the sets of aa and bb under the addition, which lies in N0\mathbb{N}_{0} by that definition; the set of aβ‹…ba\cdot b is their product under the multiplication, which also lies in N0\mathbb{N}_{0}; and a≀ba\le b, respectively a<ba<b, holds when the sets of aa and bb are related by the order, respectively the strict order, of N0\mathbb{N}_{0}. In particular the set of a+1a+1 is the successor of the set of aa, by Natural Numbers Are the Successors in Omega: One Is Least and Not a Successor of a Natural Number, the Successor Is Injective, and N Is Closed under Addition and Multiplication (v).

Numerals. Numerals kk (natural numbers of the ambient mathematics, not elements of N0\mathbb{N}_{0}) and powers are read recursively: the numeral 00 is read as 00, 11 as 11 and k+2k+2 as (k+1)+1(k+1)+1; a0=1a^{0}=1 and ak+1=akβ‹…aa^{k+1}=a^{k}\cdot a; and kβ‹…ak\cdot a is the product of the reading of kk with aa.

Since an element of Natural\mathrm{Natural} is determined by its set, the laws of N0\mathbb{N}_{0} hold for these operations and this order; below, aa, bb and cc are elements of Natural\mathrm{Natural}.

Commutative semiring. The laws of a commutative semiring hold:

(a+b)+c=a+(b+c),a+b=b+a,a+0=a,(aβ‹…b)β‹…c=aβ‹…(bβ‹…c),aβ‹…b=bβ‹…a,aβ‹…1=1β‹…a=a,(a+b)+c=a+(b+c),\quad a+b=b+a,\quad a+0=a,\quad (a\cdot b)\cdot c=a\cdot(b\cdot c),\quad a\cdot b=b\cdot a,\quad a\cdot1=1\cdot a=a, aβ‹…0=0β‹…a=0,aβ‹…(b+c)=aβ‹…b+aβ‹…c,(a+b)β‹…c=aβ‹…c+bβ‹…ca\cdot0=0\cdot a=0,\quad a\cdot(b+c)=a\cdot b+a\cdot c,\quad (a+b)\cdot c=a\cdot c+b\cdot c

(Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order (iii), Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order (iv), Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order (i), Arithmetic of Multiplication on Omega: Recursion Rules, Distributivity, Associativity, Commutativity, No Zero Divisors, Cancellation and Compatibility with the Order (v), Arithmetic of Multiplication on Omega: Recursion Rules, Distributivity, Associativity, Commutativity, No Zero Divisors, Cancellation and Compatibility with the Order (vi), Arithmetic of Multiplication on Omega: Recursion Rules, Distributivity, Associativity, Commutativity, No Zero Divisors, Cancellation and Compatibility with the Order (iii) as 11 is the successor of 00 by The Set of Natural Numbers and the Number One (ii), Arithmetic of Multiplication on Omega: Recursion Rules, Distributivity, Associativity, Commutativity, No Zero Divisors, Cancellation and Compatibility with the Order (i), Arithmetic of Multiplication on Omega: Recursion Rules, Distributivity, Associativity, Commutativity, No Zero Divisors, Cancellation and Compatibility with the Order (iv)); and the reading of a numeral k+1k+1 is the reading of kk plus 11 (for k=0k=0 because 0+1=10+1=1).

Cancellation. Addition cancels on both sides: a+c=b+ca+c=b+c implies a=ba=b, and c+a=c+bc+a=c+b implies a=ba=b (Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order (v), with Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order (iv)).

Order. ≀\le on Natural\mathrm{Natural} is reflexive, antisymmetric, transitive and total, as ≀\le is a well-order on N0\mathbb{N}_{0} (The Order on Omega Is a Well-Order with Membership as Its Strict Order, and Nothing Lies between n and Its Successor (i)) and hence a total order (Well-Orders on a Set (i)); a<ba<b holds exactly when a≀ba\le b and not b≀ab\le a (The Order on Omega Is a Well-Order with Membership as Its Strict Order, and Nothing Lies between n and Its Successor (ii), with antisymmetry); and

0≀a,a<a+1,a<bβ€…β€ŠβŸΊβ€…β€Ša+1≀b0\le a,\qquad a<a+1,\qquad a<b\iff a+1\le b

(The Order on Omega Is a Well-Order with Membership as Its Strict Order, and Nothing Lies between n and Its Successor (iii), The Order on Omega Is a Well-Order with Membership as Its Strict Order, and Nothing Lies between n and Its Successor (iv) and The Order on Omega Is a Well-Order with Membership as Its Strict Order, and Nothing Lies between n and Its Successor (vi), as a+1a+1 is the successor of aa by Natural Numbers Are the Successors in Omega: One Is Least and Not a Successor of a Natural Number, the Successor Is Injective, and N Is Closed under Addition and Multiplication (v)).

Order and addition. a≀ba\le b if and only if a+c≀b+ca+c\le b+c (Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order (vi), with Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order (iv)), and a≀ba\le b if and only if b=a+cb=a+c for some cc (Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order (vii)); in particular a≀a+ba\le a+b, and if a<ba<b then b=a+cb=a+c for some cc with 0<c0<c (take c=1+dc=1+d, where b=(a+1)+db=(a+1)+d as a+1≀ba+1\le b; then 0<c0<c by (vi), as 0+1=1≀1+d0+1=1\le 1+d).

In Lean these clauses are the classes Lean.Grind.CommSemiring\mathtt{Lean.Grind.CommSemiring}; Lean.Grind.AddRightCancel\mathtt{Lean.Grind.AddRightCancel}; Std.IsLinearOrder\mathtt{Std.IsLinearOrder} and Std.LawfulOrderLT\mathtt{Std.LawfulOrderLT}; and Lean.Grind.OrderedAdd\mathtt{Lean.Grind.OrderedAdd} and Lean.Grind.ExistsAddOfLT\mathtt{Lean.Grind.ExistsAddOfLT}.

Citations

Loading…

Dependencies

Loading…

Related

0 relations

Curated associations between results. These are editable and subjective β€” they do not replace the dependency graph, which is derived from the references in the text.

No relations recorded yet.

Comments

Log in to comment.

Loading…