TheoremBase

Writing b-a as the image of some d in N0N_0, the map k to a+k-1 is shown to be a bijection from [d+1] onto the integers between a and b, so the set is finite with d+1 = b-a+1 elements.

Proof

Each result cited below is universally quantified over the data in its own statement, and is applied to the data named where it is cited. Throughout, an element kk of N0\mathbb{N}_{0} standing where an integer is required, in particular as an operand next to an integer, stands for ι0(k)\iota_{0}(k), as in The Integers and the Rational Numbers, with the Natural Numbers and the Integers Identified with Subsets of the Rationals §identification and The Integers and the Rational Numbers, with the Natural Numbers and the Integers Identified with Subsets of the Rationals §numerals. By The Integers and the Rational Numbers, with the Natural Numbers and the Integers Identified with Subsets of the Rationals §embeddings, ι0:N0→Z\iota_{0}:\mathbb{N}_{0}\to\mathbb{Z} is injective and preserves 00, 11, sums and the order in both directions, and its image is the set of nonnegative integers, that is {x∈Z:0Z≤x}\{x\in\mathbb{Z}:0_{\mathbb{Z}}\le x\} by Positive, Nonnegative, Negative and Nonpositive Elements of an Ordered Ring §sign. By The Integers Form an Ordered Ring Containing the Natural Numbers as Its Positive Elements §ring, Z\mathbb{Z} is a commutative ring with u+(−u)=0Zu+(-u)=0_{\mathbb{Z}}, and u−v=u+(−v)u-v=u+(-v) by The Integers §operations. By the ring laws we mean the identities of Commutative Rings §ring (associativity and commutativity of ++, and u+0Z=uu+0_{\mathbb{Z}}=u) together with u+(−u)=0Zu+(-u)=0_{\mathbb{Z}}. They give, for all u,v∈Zu,v\in\mathbb{Z},

u−u=0Z,(u+v)−v=u,(v+u)−v=u,(u−v)+v=u,v+(u−v)=u,u-u=0_{\mathbb{Z}},\qquad(u+v)-v=u,\qquad(v+u)-v=u,\qquad(u-v)+v=u,\qquad v+(u-v)=u,

since u−u=u+(−u)=0Zu-u=u+(-u)=0_{\mathbb{Z}}, (u+v)−v=u+(v+(−v))=u+0Z=u(u+v)-v=u+(v+(-v))=u+0_{\mathbb{Z}}=u, (v+u)−v=(u+v)−v(v+u)-v=(u+v)-v, (u−v)+v=u+((−v)+v)=u+(v+(−v))=u(u-v)+v=u+((-v)+v)=u+(v+(-v))=u, and v+(u−v)=(u−v)+vv+(u-v)=(u-v)+v. By The Integers Form an Ordered Ring Containing the Natural Numbers as Its Positive Elements §ordered-ring, ≤\le is a total order on Z\mathbb{Z} and Z\mathbb{Z} is an ordered ring, so for u,v,w∈Zu,v,w\in\mathbb{Z} with u≤vu\le v we have u+w≤v+wu+w\le v+w by Ordered Rings §ordered-ring, hence w+u≤w+vw+u\le w+v by commutativity, and u−w≤v−wu-w\le v-w, taking −w-w in place of ww.

The difference b−ab-a. From a≤ba\le b, subtracting aa gives a−a≤b−aa-a\le b-a, that is 0Z≤b−a0_{\mathbb{Z}}\le b-a by the ring laws. Hence b−ab-a lies in the image of ι0\iota_{0}, and we choose d∈N0d\in\mathbb{N}_{0} with ι0(d)=b−a\iota_{0}(d)=b-a.

The number b−a+1b-a+1. Let n=d+1n=d+1. Here N0\mathbb{N}_{0} is the set ω\omega of The Class Omega of Natural Numbers with Zero §omega, as in The Natural Numbers and the Natural Numbers with Zero: Arithmetic, Order, Induction and Recursion §sets, and N=N0∖{0}\mathbb{N}=\mathbb{N}_{0}\setminus\{0\} with 1∈N1\in\mathbb{N} by the same clause, so 1≠01\neq0. Hence d+1≠0d+1\neq0 by Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order §zero-sum, and so n∈Nn\in\mathbb{N}, again by The Natural Numbers and the Natural Numbers with Zero: Arithmetic, Order, Induction and Recursion §sets. As ι0\iota_{0} preserves sums and 11, ι0(n)=ι0(d)+ι0(1)=(b−a)+1Z\iota_{0}(n)=\iota_{0}(d)+\iota_{0}(1)=(b-a)+1_{\mathbb{Z}}. Thus the integer b−a+1b-a+1 is the image under ι0\iota_{0} of the natural number nn; by The Integers and the Rational Numbers, with the Natural Numbers and the Integers Identified with Subsets of the Rationals §identification it stands for nn, and in this sense b−a+1∈Nb-a+1\in\mathbb{N}.

The map. Let I={x∈Z:a≤x≤b}I=\{x\in\mathbb{Z}:a\le x\le b\}, a set as a subset of Z\mathbb{Z} formed by Sets and Maps: Ordinary Notation §set-builder. By Intervals of Natural Numbers §segment and Intervals of Natural Numbers §interval, [n]={k∈N0:1≤k≤n}[n]=\{k\in\mathbb{N}_{0}:1\le k\le n\}. Let k∈[n]k\in[n]. Then 1≤k≤n1\le k\le n in N0\mathbb{N}_{0}, hence 1Z≤k≤ι0(n)1_{\mathbb{Z}}\le k\le\iota_{0}(n) in Z\mathbb{Z}, as ι0\iota_{0} preserves 11 and the order. Adding aa on the left and then subtracting 1Z1_{\mathbb{Z}} gives

(a+1Z)−1Z≤(a+k)−1Z≤(a+ι0(n))−1Z.(a+1_{\mathbb{Z}})-1_{\mathbb{Z}}\le(a+k)-1_{\mathbb{Z}}\le(a+\iota_{0}(n))-1_{\mathbb{Z}}.

Here (a+1Z)−1Z=a(a+1_{\mathbb{Z}})-1_{\mathbb{Z}}=a by the ring laws, and, as ι0(n)=(b−a)+1Z\iota_{0}(n)=(b-a)+1_{\mathbb{Z}}, associativity gives a+ι0(n)=(a+(b−a))+1Z=b+1Za+\iota_{0}(n)=(a+(b-a))+1_{\mathbb{Z}}=b+1_{\mathbb{Z}} by the ring laws, so (a+ι0(n))−1Z=b(a+\iota_{0}(n))-1_{\mathbb{Z}}=b. Hence a≤(a+k)−1Z≤ba\le(a+k)-1_{\mathbb{Z}}\le b and (a+k)−1Z∈I(a+k)-1_{\mathbb{Z}}\in I. By Sets and Maps: Ordinary Notation §maps, f:[n]→If:[n]\to I, k↦(a+k)−1Zk\mapsto(a+k)-1_{\mathbb{Z}}, is a map.

Injectivity. Let k,k′∈[n]k,k'\in[n] with f(k)=f(k′)f(k)=f(k'). Adding 1Z1_{\mathbb{Z}} gives a+k=a+k′a+k=a+k' by the ring laws, as ((a+k)−1Z)+1Z=a+k((a+k)-1_{\mathbb{Z}})+1_{\mathbb{Z}}=a+k; subtracting aa gives ι0(k)=ι0(k′)\iota_{0}(k)=\iota_{0}(k'), as (a+k)−a=ι0(k)(a+k)-a=\iota_{0}(k) by the ring laws. Hence k=k′k=k', ι0\iota_{0} being injective, and ff is injective.

Surjectivity. Let x∈Ix\in I. From a≤xa\le x, subtracting aa gives 0Z=a−a≤x−a0_{\mathbb{Z}}=a-a\le x-a, so we may choose e∈N0e\in\mathbb{N}_{0} with ι0(e)=x−a\iota_{0}(e)=x-a. From x≤bx\le b, subtracting aa gives ι0(e)=x−a≤b−a=ι0(d)\iota_{0}(e)=x-a\le b-a=\iota_{0}(d), so e≤de\le d in N0\mathbb{N}_{0}, as ι0\iota_{0} reflects the order. Let k=e+1∈N0k=e+1\in\mathbb{N}_{0}. As 0≤e0\le e, 00 being the least element of N0\mathbb{N}_{0} by The Natural Numbers and the Natural Numbers with Zero: Arithmetic, Order, Induction and Recursion §order, Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order §order and Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order §commutative give 0+1≤e+10+1\le e+1 and e+1≤d+1e+1\le d+1, and 0+1=10+1=1 by Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order §zero; so 1≤k≤n1\le k\le n and k∈[n]k\in[n]. Finally ι0(k)=ι0(e)+1Z=(x−a)+1Z\iota_{0}(k)=\iota_{0}(e)+1_{\mathbb{Z}}=(x-a)+1_{\mathbb{Z}}, as ι0\iota_{0} preserves sums and 11, so by associativity and the ring laws

f(k)=(a+((x−a)+1Z))−1Z=((a+(x−a))+1Z)−1Z=(x+1Z)−1Z=x.f(k)=(a+((x-a)+1_{\mathbb{Z}}))-1_{\mathbb{Z}}=((a+(x-a))+1_{\mathbb{Z}})-1_{\mathbb{Z}}=(x+1_{\mathbb{Z}})-1_{\mathbb{Z}}=x.

Hence ff is surjective, and so a bijection from [n][n] onto II.

Clause count. As n∈N⊆N0n\in\mathbb{N}\subseteq\mathbb{N}_{0} and ff is a bijection from [n][n] onto II, the set II is finite. By The Number of Elements of a Finite Set §cardinality, #I\#I is the unique element of N0\mathbb{N}_{0} for which there is a bijection from its segment onto II, unique by Finite Sets: the Pigeonhole Principle, Uniqueness of the Length, Subsets, Unions, Products, Images, Bounded Sets of Natural Numbers, Extreme Elements, Sets of Maps, Finite Unions and Finite Choice §unique; as ff is such a bijection for nn, #I=n\#I=n. Since b−a+1b-a+1 stands for nn, as shown above, #I=b−a+1\#I=b-a+1; read in Z\mathbb{Z}, this says ι0(#I)=ι0(n)=(b−a)+1Z\iota_{0}(\#I)=\iota_{0}(n)=(b-a)+1_{\mathbb{Z}}, equality agreeing in N0\mathbb{N}_{0} and in Z\mathbb{Z} by The Integers and the Rational Numbers, with the Natural Numbers and the Integers Identified with Subsets of the Rationals §agreement. We already showed b−a+1∈Nb-a+1\in\mathbb{N}, which completes the clause.

Citations

Loading…

Dependencies

Uses0

Loading…

Comments

Log in to comment.

Loading…