Preliminaries. Sums and products of natural numbers are natural numbers by The Natural Numbers and the Natural Numbers with Zero: Arithmetic, Order, Induction and Recursion §operations, so every bracket [k,l] below has k,l∈N and is an integer by The Integers §integers. By Construction of the Integers: Pairs of Natural Numbers up to Equal Differences, with Sum, Product, Negation and Order §equal, every integer is [k,l] for some k,l∈N, and for all k,l,m,n∈N,
[k,l]=[m,n]if and only ifk+n=l+m.(E)
In particular [k,k]=[1,1]=0Z for every k∈N, since k+1=k+1; call this (Z0). The formulas for +, ⋅, − and ≤ of Construction of the Integers: Pairs of Natural Numbers up to Equal Differences, with Sum, Product, Negation and Order §operations (which are the operations of The Integers §operations), the constants 0Z=[1,1] and 1Z=[2,1] of The Integers §constants, where 2=1+1 by Arithmetic and Order of the Natural Numbers §digits, and ι(n)=[n+1,1] from The Integers §embedding are used without further mention. By the order formula, 0Z=[1,1]≤[k,l] if and only if 1+l≤1+k, that is, by Arithmetic and Order of the Natural Numbers §commutative and Arithmetic and Order of the Natural Numbers §order, if and only if
l≤k.(P)
In the proofs of the clauses ring, ordered-ring and negation, x=[u1,u2], y=[v1,v2] and z=[w1,w2] with u1,u2,v1,v2,w1,w2∈N.
The clause ring above. Z is a set, + and ⋅ are binary operations on it and 0Z,1Z∈Z, by The Integers §integers, Construction of the Integers: Pairs of Natural Numbers up to Equal Differences, with Sum, Product, Negation and Order §operations and The Integers §constants. We check the conditions of Commutative Rings §ring.
Sums: (x+y)+z=[(u1+v1)+w1,(u2+v2)+w2] and x+(y+z)=[u1+(v1+w1),u2+(v2+w2)] coincide by Arithmetic and Order of the Natural Numbers §associative; x+y=[u1+v1,u2+v2] and y+x=[v1+u1,v2+u2] coincide by Arithmetic and Order of the Natural Numbers §commutative. Next, x+0Z=[u1+1,u2+1], which is [u1,u2]=x by (E), since (u1+1)+u2=(u2+1)+u1 by Arithmetic and Order of the Natural Numbers §commutative and Arithmetic and Order of the Natural Numbers §associative. Finally x+(−x)=[u1,u2]+[u2,u1]=[u1+u2,u2+u1]=[u1+u2,u1+u2]=0Z by Arithmetic and Order of the Natural Numbers §commutative and (Z0); so −x is an additive inverse of x, and the identity x+(−x)=0Z of the clause holds.
Products: x⋅y=[u1v1+u2v2,u1v2+u2v1] and y⋅x=[v1u1+v2u2,v1u2+v2u1] coincide by Arithmetic and Order of the Natural Numbers §commutative. Further,
(x⋅y)⋅z=[(u1v1+u2v2)w1+(u1v2+u2v1)w2,(u1v1+u2v2)w2+(u1v2+u2v1)w1],
x⋅(y⋅z)=[u1(v1w1+v2w2)+u2(v1w2+v2w1),u1(v1w2+v2w1)+u2(v1w1+v2w2)],
and by Arithmetic and Order of the Natural Numbers §distributive, Arithmetic and Order of the Natural Numbers §commutative and Arithmetic and Order of the Natural Numbers §associative both first entries equal u1v1w1+u1v2w2+u2v1w2+u2v2w1 and both second entries equal u1v1w2+u1v2w1+u2v1w1+u2v2w2. Next, x⋅1Z=[u1(1+1)+u21,u11+u2(1+1)]=[(u1+u1)+u2,u1+(u2+u2)] by Arithmetic and Order of the Natural Numbers §distributive and Arithmetic and Order of the Natural Numbers §one, which is [u1,u2]=x by (E), since ((u1+u1)+u2)+u2=(u1+(u2+u2))+u1 by Arithmetic and Order of the Natural Numbers §commutative and Arithmetic and Order of the Natural Numbers §associative. Finally,
x⋅(y+z)=[u1(v1+w1)+u2(v2+w2),u1(v2+w2)+u2(v1+w1)],
x⋅y+x⋅z=[(u1v1+u2v2)+(u1w1+u2w2),(u1v2+u2v1)+(u1w2+u2w1)],
and by the same three clauses both first entries equal u1v1+u1w1+u2v2+u2w2 and both second entries equal u1v2+u1w2+u2v1+u2w1. Hence Z, with +, ⋅, 0Z and 1Z, is a commutative ring by Commutative Rings §ring.
A consequence used below: for g,h∈Z, if g−h=0Z, then, by the clause ring above,
g=g+0Z=g+((−h)+h)=(g+(−h))+h=0Z+h=h+0Z=h.(D)
The clause ordered-ring above. By Construction of the Integers: Pairs of Natural Numbers up to Equal Differences, with Sum, Product, Negation and Order §operations, ≤ is a relation on Z.
Reflexivity: x≤x means u1+u2≤u2+u1, which holds by Arithmetic and Order of the Natural Numbers §commutative and Arithmetic and Order of the Natural Numbers §partial-order. Antisymmetry: if x≤y and y≤x, then u1+v2≤u2+v1 and v1+u2≤v2+u1, that is, u2+v1≤u1+v2 by Arithmetic and Order of the Natural Numbers §commutative; so u1+v2=u2+v1 by Arithmetic and Order of the Natural Numbers §partial-order, and x=y by (E). Transitivity: if x≤y and y≤z, then u1+v2≤u2+v1 and v1+w2≤v2+w1, so (u1+v2)+w2≤(u2+v1)+w2 and (v1+w2)+u2≤(v2+w1)+u2 by Arithmetic and Order of the Natural Numbers §order; as (u2+v1)+w2=(v1+w2)+u2 by Arithmetic and Order of the Natural Numbers §commutative and Arithmetic and Order of the Natural Numbers §associative, Arithmetic and Order of the Natural Numbers §partial-order gives (u1+v2)+w2≤(v2+w1)+u2, that is, (u1+w2)+v2≤(u2+w1)+v2, so u1+w2≤u2+w1 by Arithmetic and Order of the Natural Numbers §order, which is x≤z. Thus ≤ is reflexive, antisymmetric and transitive, hence a partial order on Z. Totality: by Arithmetic and Order of the Natural Numbers §trichotomy and Arithmetic and Order of the Natural Numbers §partial-order, u1+v2≤u2+v1 or u2+v1≤u1+v2; the former is x≤y, and the latter, being v1+u2≤v2+u1, is y≤x. So ≤ is a total order on Z by Partial and Total Orders on a Set and the Associated Strict Relation §total.
Strict relation: by Partial and Total Orders on a Set and the Associated Strict Relation §strict, every element of the strict relation associated with ≤ is a pair (g,h) with g≤h, so with g,h∈Z, as ≤ is a relation on Z; and by Uniqueness of Least and Greatest Elements, Properties of the Strict Order, and Trichotomy for Total Orders §strict-characterization, for g,h∈Z the pair (g,h) belongs to it if and only if g≤h and g=h, which by The Integers §operations is exactly g<h. So < is the strict relation associated with ≤.
Compatibility with sums: if x≤y, that is, u1+v2≤u2+v1, then (u1+v2)+(w1+w2)≤(u2+v1)+(w1+w2) by Arithmetic and Order of the Natural Numbers §order, that is, (u1+w1)+(v2+w2)≤(u2+w2)+(v1+w1) by Arithmetic and Order of the Natural Numbers §commutative and Arithmetic and Order of the Natural Numbers §associative; this is [u1+w1,u2+w2]≤[v1+w1,v2+w2], that is, x+z≤y+z.
Compatibility with products: let 0Z≤x and 0Z≤y, so u2≤u1 and v2≤v1 by (P); recall x⋅y=[u1v1+u2v2,u1v2+u2v1]. If u1=u2, the entries are u1v1+u1v2 and u1v2+u1v1; if v1=v2, they are u1v1+u2v1 and u1v1+u2v1; in both cases x⋅y=0Z by Arithmetic and Order of the Natural Numbers §commutative and (Z0), and 0Z≤x⋅y by reflexivity. Otherwise u2<u1 and v2<v1 by Arithmetic and Order of the Natural Numbers §partial-order, and by Arithmetic and Order of the Natural Numbers §difference there are s,t∈N with u1=u2+s and v1=v2+t. By Arithmetic and Order of the Natural Numbers §distributive, Arithmetic and Order of the Natural Numbers §commutative and Arithmetic and Order of the Natural Numbers §associative,
u1v2+u2v1=(u2+s)v2+u2(v2+t)=u2v2+sv2+u2v2+u2t,
u1v1+u2v2=(u2+s)(v2+t)+u2v2=(u2v2+sv2+u2v2+u2t)+st=(u1v2+u2v1)+st,
so u1v2+u2v1<u1v1+u2v2 by Arithmetic and Order of the Natural Numbers §difference, hence u1v2+u2v1≤u1v1+u2v2 by Arithmetic and Order of the Natural Numbers §partial-order, and 0Z≤x⋅y by (P). With the clause ring above, Z, with +, ⋅, 0Z, 1Z and ≤, is an ordered ring by Ordered Rings §ordered-ring.
The clause negation above. −(−x)=−[u2,u1]=[u1,u2]=x. Next, 0Z⋅x=[1u1+1u2,1u2+1u1]=[u1+u2,u2+u1] by Arithmetic and Order of the Natural Numbers §one, which is [u1+u2,u1+u2]=0Z by Arithmetic and Order of the Natural Numbers §commutative and (Z0). Finally (−x)⋅y=[u2,u1]⋅[v1,v2]=[u2v1+u1v2,u2v2+u1v1] and −(x⋅y)=−[u1v1+u2v2,u1v2+u2v1]=[u1v2+u2v1,u1v1+u2v2], the same class by Arithmetic and Order of the Natural Numbers §commutative.
The clause embedding above. By The Integers §embedding, ι:N→Z is a map. Let m,n∈N. If ι(m)=ι(n), then [m+1,1]=[n+1,1], so (m+1)+1=1+(n+1)=(n+1)+1 by (E) and Arithmetic and Order of the Natural Numbers §commutative, and two applications of Arithmetic and Order of the Natural Numbers §cancellation give m=n; so ι is injective by Injective, Surjective and Bijective Functions between Classes §injective. Next, ι(1)=[1+1,1]=[2,1]=1Z. For a,b∈N, ι(a)+ι(b)=[(a+1)+(b+1),1+1], which equals ι(a+b)=[(a+b)+1,1] by (E), since ((a+b)+1)+(1+1)=1+((a+1)+(b+1)) by Arithmetic and Order of the Natural Numbers §commutative and Arithmetic and Order of the Natural Numbers §associative. Further, by Arithmetic and Order of the Natural Numbers §distributive, Arithmetic and Order of the Natural Numbers §one, Arithmetic and Order of the Natural Numbers §commutative and Arithmetic and Order of the Natural Numbers §associative,
ι(a)⋅ι(b)=[(a+1)(b+1)+1⋅1,(a+1)1+1(b+1)]=[(ab+a+b+1)+1,(a+1)+(b+1)],
which equals ι(ab)=[ab+1,1] by (E), since (ab+1)+((a+1)+(b+1)) and 1+((ab+a+b+1)+1) both equal ab+a+b+1+1+1 by the same clauses. Finally, ι(a)≤ι(b) means (a+1)+1≤1+(b+1), that is, (a+1)+1≤(b+1)+1 by Arithmetic and Order of the Natural Numbers §commutative, which by two applications of Arithmetic and Order of the Natural Numbers §order holds if and only if a≤b; and ι(a)=ι(b) if and only if a=b, by injectivity. By The Integers §operations, ι(a)<ι(b) if and only if a≤b and a=b, which by Arithmetic and Order of the Natural Numbers §partial-order and Arithmetic and Order of the Natural Numbers §trichotomy holds if and only if a<b.
The clause difference above. ι(a)−ι(b)=[a+1,1]+(−[b+1,1])=[a+1,1]+[1,b+1]=[(a+1)+1,1+(b+1)], which equals [a,b] by (E), since ((a+1)+1)+b=(1+(b+1))+a by Arithmetic and Order of the Natural Numbers §commutative and Arithmetic and Order of the Natural Numbers §associative.
The clause trichotomy above. Choose k,l∈N with x=[k,l]. By Arithmetic and Order of the Natural Numbers §trichotomy, l<k, k=l or k<l. If l<k, then k=l+n for some n∈N by Arithmetic and Order of the Natural Numbers §difference, and x=[l+n,l]=[n+1,1]=ι(n) by (E), since (l+n)+1=l+(n+1) by Arithmetic and Order of the Natural Numbers §associative. If k=l, then x=0Z by (Z0). If k<l, then l=k+n for some n∈N, and −ι(n)=−[n+1,1]=[1,n+1], which equals x=[k,k+n] by (E), since k+(n+1)=(k+n)+1 by Arithmetic and Order of the Natural Numbers §associative. So at least one alternative holds. For exclusivity let m,n∈N. If ι(n)=0Z, then (n+1)+1=1+1 by (E), so n+1=1 by Arithmetic and Order of the Natural Numbers §cancellation, contradicting Arithmetic and Order of the Natural Numbers §successor. If −ι(m)=[1,m+1]=0Z, then 1+1=(m+1)+1 by (E), so m+1=1, the same contradiction. If ι(n)=−ι(m), then (n+1)+(m+1)=1+1 by (E); the left side is ((n+m)+1)+1 by Arithmetic and Order of the Natural Numbers §commutative and Arithmetic and Order of the Natural Numbers §associative, so (n+m)+1=1 by Arithmetic and Order of the Natural Numbers §cancellation, contradicting Arithmetic and Order of the Natural Numbers §successor. Hence exactly one alternative holds.
The clause positive above. For n∈N, 0Z≤ι(n)=[n+1,1] by (P), since 1≤n+1 by Arithmetic and Order of the Natural Numbers §least, and ι(n)=0Z by the clause trichotomy above; so 0Z<ι(n) by The Integers §operations. Conversely let 0Z<x, so 0Z≤x and x=0Z by The Integers §operations. If x=−ι(m)=[1,m+1] for some m∈N, then 0Z≤x gives m+1≤1 by (P), while 1≤m+1 by Arithmetic and Order of the Natural Numbers §least, so m+1=1 by Arithmetic and Order of the Natural Numbers §partial-order, contradicting Arithmetic and Order of the Natural Numbers §successor. By the clause trichotomy above, x=ι(n) for some n∈N.
The clause no-zero-divisors above. Suppose x=0Z and y=0Z. By the clause trichotomy above, x is ι(m) or −ι(m) and y is ι(n) or −ι(n), for some m,n∈N. By the clauses ring, negation and embedding above,
ι(m)⋅ι(n)=ι(mn),(−ι(m))⋅ι(n)=−(ι(m)⋅ι(n))=−ι(mn),ι(m)⋅(−ι(n))=(−ι(n))⋅ι(m)=−ι(nm),
(−ι(m))⋅(−ι(n))=−(ι(m)⋅(−ι(n)))=−(−ι(nm))=ι(nm).
So x⋅y is ι(k) or −ι(k) with k∈N, and x⋅y=0Z by the clause trichotomy above. This is the contrapositive of the claim.
The clause cancellation above. Let z=0Z and x⋅z=y⋅z. By the clauses ring and negation above,
(x−y)⋅z=z⋅(x+(−y))=z⋅x+z⋅(−y)=x⋅z+(−y)⋅z=x⋅z+(−(y⋅z))=y⋅z+(−(y⋅z))=0Z.
By the clause no-zero-divisors above, x−y=0Z, and x=y by (D).
The clause order-product above. Let x<y and 0Z<z, so x≤y and x=y by The Integers §operations, and put r=y−x. By the clause ring and the compatibility of ≤ with sums in the clause ordered-ring above, 0Z=x+(−x)≤y+(−x)=r; and r=0Z, since otherwise y=x by (D). So 0Z<r by The Integers §operations, and by the clause positive above r=ι(m) and z=ι(n) for some m,n∈N; then r⋅z=ι(mn) by the clause embedding above, so 0Z<r⋅z by the clause positive above, that is, 0Z≤r⋅z and r⋅z=0Z.
By the clauses ring and negation above,
r⋅z=z⋅(y+(−x))=z⋅y+z⋅(−x)=y⋅z+(−x)⋅z=y⋅z−x⋅z.
By compatibility with sums, 0Z+x⋅z≤(y⋅z−x⋅z)+x⋅z, that is, x⋅z≤y⋅z, since the left side is x⋅z and the right side is y⋅z+((−(x⋅z))+x⋅z)=y⋅z+0Z=y⋅z by the clause ring above. If x⋅z=y⋅z, then r⋅z=y⋅z−x⋅z=0Z by the clause ring above, a contradiction. Hence x⋅z<y⋅z by The Integers §operations.
The clause positive-factor above. Let 0Z<z. Suppose x≤y. If x=y, then x⋅z=y⋅z, and x⋅z≤y⋅z by reflexivity of ≤ (clause ordered-ring above). Otherwise x<y by The Integers §operations, so x⋅z<y⋅z by the clause order-product above, and x⋅z≤y⋅z by The Integers §operations. Conversely suppose x⋅z≤y⋅z and that x≤y fails. As ≤ is total (clause ordered-ring above), y≤x, and y=x, since x≤x; so y<x by The Integers §operations. By the clause order-product above, y⋅z<x⋅z, so y⋅z≤x⋅z and y⋅z=x⋅z by The Integers §operations; but x⋅z≤y⋅z and antisymmetry of ≤ give x⋅z=y⋅z, a contradiction. Hence x≤y.