TheoremBase

The pairs of natural numbers are enumerated along the diagonals by an explicit bijection built from the triangular numbers; the other clauses compose surjections from the natural numbers with maps defined by cases or by formulas, without any choice.

Proof

For (i): the identity idN\mathrm{id}_{\mathbb{N}} is a bijective map N→N\mathbb{N}\to\mathbb{N} by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction (iii), hence surjective by Injective, Surjective and Bijective Functions between Classes (iii), so N\mathbb{N} is countable by Countable Set (i).

For (ii), ≤\le and << denote the order and the strict order of N\mathbb{N}, as in The Natural Numbers and the Natural Numbers with Zero: Arithmetic, Order, Induction and Recursion (v). Sums of natural numbers are rearranged by Arithmetic and Order of the Natural Numbers (i) and Arithmetic and Order of the Natural Numbers (ii), cancelled by Arithmetic and Order of the Natural Numbers (v) and compared by Arithmetic and Order of the Natural Numbers (ix), and inequalities are chained and compared by Arithmetic and Order of the Natural Numbers (vi) and Arithmetic and Order of the Natural Numbers (vii). Two further consequences are used throughout: for a,b∈Na,b\in\mathbb{N} we have a<a+ba<a+b, by Arithmetic and Order of the Natural Numbers (viii); and if a<ba<b, then a+1≤ba+1\le b, since b=a+db=a+d for some d∈Nd\in\mathbb{N} by Arithmetic and Order of the Natural Numbers (viii), 1≤d1\le d by Arithmetic and Order of the Natural Numbers (x), and so a+1≤a+da+1\le a+d.

Triangular numbers. The map N×N→N\mathbb{N}\times\mathbb{N}\to\mathbb{N}, (k,u)↦u+(k+1)(k,u)\mapsto u+(k+1), exists (Maps and Relations Given by Formulas (ii)), its values lying in N\mathbb{N} 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 (vi) (under the guard k∈N∧u∈Nk\in\mathbb{N}\wedge u\in\mathbb{N}, kk, uu and 11 are terms of type N\mathbb{N} by Typed Terms under a Predicative Guard: Variables, Parameters, Values of Maps and Ordered Pairs, and Predicative Equations and Memberships between Them (i) and Typed Terms under a Predicative Guard: Variables, Parameters, Values of Maps and Ordered Pairs, and Predicative Equations and Memberships between Them (ii), so u+(k+1)u+(k+1) is one by Sums and Differences of Natural Numbers as Typed Terms (i)). By Recursion on the Natural Numbers Starting at One (i), applied with the set N\mathbb{N}, the element 11 and this map, there is a map T:N→NT:\mathbb{N}\to\mathbb{N} with T(1)=1T(1)=1 and T(k+1)=T(k)+(k+1)T(k+1)=T(k)+(k+1) for every k∈Nk\in\mathbb{N}. It has three properties. First, T(k)<T(k+1)T(k)<T(k+1) for every k∈Nk\in\mathbb{N}, as T(k)<T(k)+(k+1)T(k)<T(k)+(k+1). Second, k≤T(k)k\le T(k) for every k∈Nk\in\mathbb{N}: T(1)=1T(1)=1, and if k≠1k\neq1, then k=i+1k=i+1 for some i∈Ni\in\mathbb{N} by Arithmetic and Order of the Natural Numbers (xii), and T(k)=T(i)+k=k+T(i)T(k)=T(i)+k=k+T(i), so k<T(k)k<T(k). Third, if i,k∈Ni,k\in\mathbb{N} and i<ki<k, then T(i)<T(k)T(i)<T(k), and hence i≤ki\le k implies T(i)≤T(k)T(i)\le T(k). Indeed, fix ii and let A={d∈N:T(i)<T(i+d)}A=\{d\in\mathbb{N}:T(i)<T(i+d)\}, a set (by The Order on Omega (ii) its condition is the membership (T(i),T(i+d))∈<(T(i),T(i+d))\in{<} of a pair term in the class <<: under the guard d∈Nd\in\mathbb{N}, dd and ii are terms of type N\mathbb{N} by Typed Terms under a Predicative Guard: Variables, Parameters, Values of Maps and Ordered Pairs, and Predicative Equations and Memberships between Them (i) and Typed Terms under a Predicative Guard: Variables, Parameters, Values of Maps and Ordered Pairs, and Predicative Equations and Memberships between Them (ii), i+di+d is one by Sums and Differences of Natural Numbers as Typed Terms (i), T(i)T(i) and T(i+d)T(i+d) are terms of type N\mathbb{N} by Typed Terms under a Predicative Guard: Variables, Parameters, Values of Maps and Ordered Pairs, and Predicative Equations and Memberships between Them (iii), and their pair is a term by Typed Terms under a Predicative Guard: Variables, Parameters, Values of Maps and Ordered Pairs, and Predicative Equations and Memberships between Them (iv); the membership is expressed by a predicative formula by Typed Terms under a Predicative Guard: Variables, Parameters, Values of Maps and Ordered Pairs, and Predicative Equations and Memberships between Them (vi), so AA is a set of the form {x∈D:t∈C}\{x\in D:t\in C\} of Typed Terms under a Predicative Guard: Variables, Parameters, Values of Maps and Ordered Pairs, and Predicative Equations and Memberships between Them (vii)). Then 1∈A1\in A by the first property, and if d∈Ad\in A, then T(i)<T(i+d)<T((i+d)+1)=T(i+(d+1))T(i)<T(i+d)<T((i+d)+1)=T(i+(d+1)), so d+1∈Ad+1\in A. By Arithmetic and Order of the Natural Numbers (xiii), A=NA=\mathbb{N}; and if i<ki<k, then k=i+dk=i+d for some d∈Nd\in\mathbb{N} by Arithmetic and Order of the Natural Numbers (viii), so T(i)<T(k)T(i)<T(k).

The diagonal of a pair. Let m,n∈Nm,n\in\mathbb{N}. Since 1≤m1\le m by Arithmetic and Order of the Natural Numbers (x) and m<m+nm<m+n, we have 1<m+n1<m+n, so m+n≠1m+n\neq1, and by Arithmetic and Order of the Natural Numbers (xii) there is j∈Nj\in\mathbb{N} with m+n=j+1m+n=j+1; it is unique by cancellation, and we write jm,nj_{m,n} for it. As 1≤m1\le m, n+1≤n+m=jm,n+1n+1\le n+m=j_{m,n}+1, so n≤jm,nn\le j_{m,n}. Hence n≤T(jm,n)n\le T(j_{m,n}) by the second property of TT, and, adding m+nm+n to both sides by Arithmetic and Order of the Natural Numbers (ix),

T(m+n)=T(jm,n+1)=T(jm,n)+(m+n)≥n+(m+n),T(m+n)=T(j_{m,n}+1)=T(j_{m,n})+(m+n)\ge n+(m+n),

so (m+n)+n<T(m+n)+1(m+n)+n<T(m+n)+1, as T(m+n)<T(m+n)+1T(m+n)<T(m+n)+1 by Arithmetic and Order of the Natural Numbers (xi).

The map σ\sigma. For m,n∈Nm,n\in\mathbb{N} let σ(m,n)=(T(m+n)+1)−((m+n)+n)\sigma(m,n)=(T(m+n)+1)-((m+n)+n), the difference in N0\mathbb{N}_{0}; it is defined because (m+n)+n≤T(m+n)+1(m+n)+n\le T(m+n)+1 in the order of N0\mathbb{N}_{0}, which agrees with that of N\mathbb{N} by The Natural Numbers and the Natural Numbers with Zero: Arithmetic, Order, Induction and Recursion (x). Thus σ(m,n)∈N0\sigma(m,n)\in\mathbb{N}_{0} and ((m+n)+n)+σ(m,n)=T(m+n)+1((m+n)+n)+\sigma(m,n)=T(m+n)+1, by The Difference of Two Natural Numbers with Zero (i). Here σ(m,n)≠0\sigma(m,n)\neq0, since ((m+n)+n)+0=(m+n)+n((m+n)+n)+0=(m+n)+n by Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order (i), which differs from T(m+n)+1T(m+n)+1, since (m+n)+n<T(m+n)+1(m+n)+n<T(m+n)+1 excludes equality by Arithmetic and Order of the Natural Numbers (vii); so σ(m,n)∈N\sigma(m,n)\in\mathbb{N}, as N=N0∖{0}\mathbb{N}=\mathbb{N}_{0}\setminus\{0\} by The Natural Numbers and the Natural Numbers with Zero: Arithmetic, Order, Induction and Recursion (ii). This defines a map σ:N×N→N\sigma:\mathbb{N}\times\mathbb{N}\to\mathbb{N} (Maps and Relations Given by Formulas (ii); under the guard m∈N∧n∈Nm\in\mathbb{N}\wedge n\in\mathbb{N}, mm, nn and 11 are terms of type N\mathbb{N} by Typed Terms under a Predicative Guard: Variables, Parameters, Values of Maps and Ordered Pairs, and Predicative Equations and Memberships between Them (i) and Typed Terms under a Predicative Guard: Variables, Parameters, Values of Maps and Ordered Pairs, and Predicative Equations and Memberships between Them (ii), m+nm+n, (m+n)+n(m+n)+n and T(m+n)+1T(m+n)+1 are terms of type N\mathbb{N} by Sums and Differences of Natural Numbers as Typed Terms (i) and Typed Terms under a Predicative Guard: Variables, Parameters, Values of Maps and Ordered Pairs, and Predicative Equations and Memberships between Them (iii), and, as (m+n)+n≤T(m+n)+1(m+n)+n\le T(m+n)+1 for all m,n∈Nm,n\in\mathbb{N}, the difference defining σ(m,n)\sigma(m,n) is a term of type N0\mathbb{N}_{0} by Sums and Differences of Natural Numbers as Typed Terms (ii)), N×N\mathbb{N}\times\mathbb{N} being a set by Membership in a Cartesian Product, and the Cartesian Product of Two Sets Is a Set (ii). For N∈NN\in\mathbb{N}, the uniqueness in The Difference of Two Natural Numbers with Zero (i) gives σ(m,n)=N\sigma(m,n)=N if and only if ((m+n)+n)+N=T(m+n)+1((m+n)+n)+N=T(m+n)+1. Since ((m+n)+n)+N=(m+n)+(N+n)((m+n)+n)+N=(m+n)+(N+n) and, by the display above, T(m+n)+1=(m+n)+(T(jm,n)+1)T(m+n)+1=(m+n)+(T(j_{m,n})+1), cancelling m+nm+n shows that, for N∈NN\in\mathbb{N},

σ(m,n)=N  ⟺  N+n=T(jm,n)+1.\sigma(m,n)=N\iff N+n=T(j_{m,n})+1.

Where σ(m,n)\sigma(m,n) lies. Let m,n∈Nm,n\in\mathbb{N}, N=σ(m,n)N=\sigma(m,n) and j=jm,nj=j_{m,n}. Then N≤T(j)N\le T(j), and T(i)<NT(i)<N for every i∈Ni\in\mathbb{N} with i<ji<j. For the first, N+1≤N+n=T(j)+1N+1\le N+n=T(j)+1, as 1≤n1\le n by Arithmetic and Order of the Natural Numbers (x), so N≤T(j)N\le T(j). For the second, let i∈Ni\in\mathbb{N} with i<ji<j. Then j≠1j\neq1, as 1≤i1\le i, so j=i′+1j=i'+1 for some i′∈Ni'\in\mathbb{N} by Arithmetic and Order of the Natural Numbers (xii); and i≤i′i\le i', since i′<ii'<i would give j=i′+1≤ij=i'+1\le i. As n≤jn\le j, n+1≤j+1n+1\le j+1 by Arithmetic and Order of the Natural Numbers (ix), and with T(j)=T(i′)+jT(j)=T(i')+j this gives, by Arithmetic and Order of the Natural Numbers (ii) and Arithmetic and Order of the Natural Numbers (i) for the equalities and Arithmetic and Order of the Natural Numbers (ix) for the inequality,

(T(i′)+1)+n=T(i′)+(n+1)≤T(i′)+(j+1)=T(j)+1=N+n,(T(i')+1)+n=T(i')+(n+1)\le T(i')+(j+1)=T(j)+1=N+n,

so T(i′)+1≤NT(i')+1\le N by Arithmetic and Order of the Natural Numbers (ix), and therefore T(i′)<NT(i')<N. By the third property of TT, T(i)≤T(i′)T(i)\le T(i'), so T(i)<NT(i)<N.

σ\sigma is injective. Every element of N×N\mathbb{N}\times\mathbb{N} is a pair (m,n)(m,n) with m,n∈Nm,n\in\mathbb{N}, by The Cartesian Product of Two Classes (i) and Membership in a Cartesian Product, and the Cartesian Product of Two Sets Is a Set (i). Let m,n,m′,n′∈Nm,n,m',n'\in\mathbb{N} with σ(m,n)=σ(m′,n′)=N\sigma(m,n)=\sigma(m',n')=N, and let j=jm,nj=j_{m,n} and j′=jm′,n′j'=j_{m',n'}. If j<j′j<j', the previous paragraph applied to (m′,n′)(m',n') and i=ji=j gives T(j)<NT(j)<N, while applied to (m,n)(m,n) it gives N≤T(j)N\le T(j), which is impossible; likewise j′<jj'<j is impossible, so j=j′j=j' by Arithmetic and Order of the Natural Numbers (vii). Then N+n=T(j)+1=N+n′N+n=T(j)+1=N+n', so n=n′n=n', and m+n=j+1=m′+nm+n=j+1=m'+n, so m=m′m=m'. Hence (m,n)=(m′,n′)(m,n)=(m',n'), and σ\sigma is injective by Injective, Surjective and Bijective Functions between Classes (i).

σ\sigma is surjective. Let N∈NN\in\mathbb{N}. The set S={k∈N:N≤T(k)}S=\{k\in\mathbb{N}:N\le T(k)\} (by The Order on Omega (i) its condition is the membership (N,T(k))∈≤(N,T(k))\in{\le} of a pair term in the class ≤\le: under the guard k∈Nk\in\mathbb{N}, kk and NN are terms of type N\mathbb{N} by Typed Terms under a Predicative Guard: Variables, Parameters, Values of Maps and Ordered Pairs, and Predicative Equations and Memberships between Them (i) and Typed Terms under a Predicative Guard: Variables, Parameters, Values of Maps and Ordered Pairs, and Predicative Equations and Memberships between Them (ii), T(k)T(k) is one by Typed Terms under a Predicative Guard: Variables, Parameters, Values of Maps and Ordered Pairs, and Predicative Equations and Memberships between Them (iii), and the pair is a term by Typed Terms under a Predicative Guard: Variables, Parameters, Values of Maps and Ordered Pairs, and Predicative Equations and Memberships between Them (iv); the membership is expressed by a predicative formula by Typed Terms under a Predicative Guard: Variables, Parameters, Values of Maps and Ordered Pairs, and Predicative Equations and Memberships between Them (vi), so SS is a set of the form {x∈D:t∈C}\{x\in D:t\in C\} of Typed Terms under a Predicative Guard: Variables, Parameters, Values of Maps and Ordered Pairs, and Predicative Equations and Memberships between Them (vii)) contains NN by the second property of TT, so by Arithmetic and Order of the Natural Numbers (xv) it has an element jj with j≤kj\le k for every k∈Sk\in S. As N≤T(j)<T(j)+1N\le T(j)<T(j)+1, there is n∈Nn\in\mathbb{N} with T(j)+1=N+nT(j)+1=N+n, by Arithmetic and Order of the Natural Numbers (viii). We show n≤jn\le j. If j=1j=1, then N≤T(1)=1≤NN\le T(1)=1\le N, so N=1N=1, and 1+n=T(1)+1=1+11+n=T(1)+1=1+1, so n=1=jn=1=j. If j≠1j\neq1, then j=i+1j=i+1 for some i∈Ni\in\mathbb{N} by Arithmetic and Order of the Natural Numbers (xii), and i<ji<j by Arithmetic and Order of the Natural Numbers (xi); so i∉Si\notin S, since i∈Si\in S would give j≤ij\le i. Hence T(i)<NT(i)<N by Arithmetic and Order of the Natural Numbers (vii), and so T(i)+1≤NT(i)+1\le N. With T(j)=T(i)+jT(j)=T(i)+j this gives, by Arithmetic and Order of the Natural Numbers (ii) and Arithmetic and Order of the Natural Numbers (i) for the equalities and Arithmetic and Order of the Natural Numbers (ix) for the inequality,

N+n=T(j)+1=(T(i)+1)+j≤N+j,N+n=T(j)+1=(T(i)+1)+j\le N+j,

so n≤jn\le j, by Arithmetic and Order of the Natural Numbers (i) and Arithmetic and Order of the Natural Numbers (ix). Therefore n<j+1n<j+1, as j<j+1j<j+1 by Arithmetic and Order of the Natural Numbers (xi), and so j+1=n+mj+1=n+m for some m∈Nm\in\mathbb{N}, by Arithmetic and Order of the Natural Numbers (viii). Then m+n=j+1m+n=j+1, so jm,n=jj_{m,n}=j by the uniqueness of jm,nj_{m,n}, and N+n=T(j)+1N+n=T(j)+1 gives σ(m,n)=N\sigma(m,n)=N, where (m,n)∈N×N(m,n)\in\mathbb{N}\times\mathbb{N} by Membership in a Cartesian Product, and the Cartesian Product of Two Sets Is a Set (i). So σ\sigma is surjective by Injective, Surjective and Bijective Functions between Classes (ii).

Thus σ\sigma is a bijection by Injective, Surjective and Bijective Functions between Classes (iii), and its inverse τ=σ−1:N→N×N\tau=\sigma^{-1}:\mathbb{N}\to\mathbb{N}\times\mathbb{N} is a bijection by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction (vi). Explicitly, for N∈NN\in\mathbb{N}, τ(N)\tau(N) is the pair (m,n)(m,n) found in the previous paragraph: with jj the least k∈Nk\in\mathbb{N} such that N≤T(k)N\le T(k), nn is given by N+n=T(j)+1N+n=T(j)+1 and mm by m+n=j+1m+n=j+1 (the least such kk is unique by Arithmetic and Order of the Natural Numbers (vi), and nn and mm exist by Arithmetic and Order of the Natural Numbers (viii), as in the previous paragraph, and are unique by Arithmetic and Order of the Natural Numbers (v)). Since τ\tau is surjective, N×N\mathbb{N}\times\mathbb{N} is countable by Countable Set (i).

For (iii), let XX be finite: by Finite Sets (i) there are n∈N0n\in\mathbb{N}_{0} and a bijection h:[n]→Xh:[n]\to X, where [n]={k∈N:k≤n}[n]=\{k\in\mathbb{N}:k\le n\} by Intervals of Natural Numbers: Initial Segments, Adding One Element, Splitting and Shifting (i) (a set by Routine Facts Used Without Citation: Arithmetic, Maps, Predicativity and Indices (v), with [n]⊆N[n]\subseteq\mathbb{N} by Elements of a Segment Are Natural Numbers, and Mixed Transitivity of the Order on the Natural Numbers (i)). If X=∅X=\emptyset, then XX is countable by Countable Set (i). Otherwise fix x0∈Xx_{0}\in X. By Maps Defined by Cases (i) there is a map f:N→Xf:\mathbb{N}\to X with f(k)=h(k)f(k)=h(k) for k∈Nk\in\mathbb{N} with k∈[n]k\in[n], and f(k)=x0f(k)=x_{0} for the other k∈Nk\in\mathbb{N}, as h(k)∈Xh(k)\in X for k∈[n]k\in[n] by Values, Restriction and Equality of a Map, and the Map u↦t(u)u\mapsto t(u) as a Defined Set Symbol (ii). Every x∈Xx\in X is h(k)h(k) for some k∈[n]k\in[n], by Injective, Surjective and Bijective Functions between Classes (iii) and Injective, Surjective and Bijective Functions between Classes (ii); then k∈Nk\in\mathbb{N} and f(k)=h(k)=xf(k)=h(k)=x. So ff is surjective, and XX is countable by Countable Set (i).

For (iv), let XX be countable and Y⊆XY\subseteq X. If Y=∅Y=\emptyset, then YY is countable by Countable Set (i). Otherwise fix y0∈Yy_{0}\in Y. Then X≠∅X\neq\emptyset, as y0∈Xy_{0}\in X, so by Countable Set (i) there is a surjective map f:N→Xf:\mathbb{N}\to X. By Maps Defined by Cases (i) there is a map g:N→Yg:\mathbb{N}\to Y with g(n)=f(n)g(n)=f(n) for n∈Nn\in\mathbb{N} with f(n)∈Yf(n)\in Y, and g(n)=y0g(n)=y_{0} for the other n∈Nn\in\mathbb{N}. Every y∈Yy\in Y lies in XX, so y=f(n)y=f(n) for some n∈Nn\in\mathbb{N}, by Injective, Surjective and Bijective Functions between Classes (ii); then f(n)∈Yf(n)\in Y, so g(n)=f(n)=yg(n)=f(n)=y. So gg is surjective, and YY is countable by Countable Set (i).

For (v), let XX be countable and g:X→Yg:X\to Y surjective. If X=∅X=\emptyset, then Y=∅Y=\emptyset, since every y∈Yy\in Y is g(x)g(x) for some x∈Xx\in X, by Injective, Surjective and Bijective Functions between Classes (ii); so YY is countable by Countable Set (i). Otherwise there is a surjective map f:N→Xf:\mathbb{N}\to X, by Countable Set (i), and the composite g∘f:N→Yg\circ f:\mathbb{N}\to Y is a surjective map by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction (ii) and Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction (viii); so YY is countable by Countable Set (i).

For (vi), let X⊆AX\subseteq A be countable. The image g(X)=g[X]g(X)=g[X] is a set, by Sets and Maps: Ordinary Notation (vii). For x∈Xx\in X we have (x,g(x))∈g(x,g(x))\in g by Values, Restriction and Equality of a Map, and the Map u↦t(u)u\mapsto t(u) as a Defined Set Symbol (ii), so g(x)∈g[X]g(x)\in g[X] by The Image and the Preimage of a Class under a Class (i); hence there is a map h:X→g(X)h:X\to g(X) with h(x)=g(x)h(x)=g(x) for every x∈Xx\in X (Maps and Relations Given by Formulas (i)). Every v∈g[X]v\in g[X] satisfies (u,v)∈g(u,v)\in g for some u∈Xu\in X, by The Image and the Preimage of a Class under a Class (i), and then v=g(u)=h(u)v=g(u)=h(u) by Values, Restriction and Equality of a Map, and the Map u↦t(u)u\mapsto t(u) as a Defined Set Symbol (i), as u∈Au\in A. So hh is surjective, and g(X)g(X) is countable by (v).

For (vii), let XX and YY be countable; X×YX\times Y is a set by Membership in a Cartesian Product, and the Cartesian Product of Two Sets Is a Set (ii), and every element of it is a pair (u,v)(u,v) with u∈Xu\in X and v∈Yv\in Y, by The Cartesian Product of Two Classes (i) and Membership in a Cartesian Product, and the Cartesian Product of Two Sets Is a Set (i). If X=∅X=\emptyset or Y=∅Y=\emptyset, then X×Y=∅X\times Y=\emptyset, which is countable by Countable Set (i). Otherwise there are surjective maps f:N→Xf:\mathbb{N}\to X and g:N→Yg:\mathbb{N}\to Y, by Countable Set (i). Since (f(a),g(b))∈X×Y(f(a),g(b))\in X\times Y for a,b∈Na,b\in\mathbb{N}, by Values, Restriction and Equality of a Map, and the Map u↦t(u)u\mapsto t(u) as a Defined Set Symbol (ii) and Membership in a Cartesian Product, and the Cartesian Product of Two Sets Is a Set (i), there is a map h:N×N→X×Yh:\mathbb{N}\times\mathbb{N}\to X\times Y with h(a,b)=(f(a),g(b))h(a,b)=(f(a),g(b)) (Maps and Relations Given by Formulas (ii)). For (u,v)∈X×Y(u,v)\in X\times Y there are a,b∈Na,b\in\mathbb{N} with f(a)=uf(a)=u and g(b)=vg(b)=v, by Injective, Surjective and Bijective Functions between Classes (ii), and then h(a,b)=(u,v)h(a,b)=(u,v). So hh is surjective, and X×YX\times Y is countable by (ii) and (v).

For (viii): Z\mathbb{Z} is a set whose elements are the classes [a,b][a,b] with a,b∈Na,b\in\mathbb{N}, by The Integers (i), so there is a map q:N×N→Zq:\mathbb{N}\times\mathbb{N}\to\mathbb{Z} with q(a,b)=[a,b]q(a,b)=[a,b] (Maps and Relations Given by Formulas (ii); under the guard a∈N∧b∈Na\in\mathbb{N}\wedge b\in\mathbb{N}, aa and bb are terms of type N\mathbb{N} by Typed Terms under a Predicative Guard: Variables, Parameters, Values of Maps and Ordered Pairs, and Predicative Equations and Memberships between Them (i), so [a,b][a,b] is a term of type Z\mathbb{Z} by Integer and Rational Brackets as Typed Terms (i)). It is surjective, since every u∈Zu\in\mathbb{Z} is [a,b][a,b] for some a,b∈Na,b\in\mathbb{N} by The Integers (ii). Hence Z\mathbb{Z} is countable by (ii) and (v).

For (ix): Q\mathbb{Q} is a set whose elements are the classes [x,m][x,m] with x∈Zx\in\mathbb{Z} and m∈Nm\in\mathbb{N}, by The Rational Numbers (i), so there is a map r:Z×N→Qr:\mathbb{Z}\times\mathbb{N}\to\mathbb{Q} with r(x,m)=[x,m]r(x,m)=[x,m] (Maps and Relations Given by Formulas (ii); under the guard x∈Z∧m∈Nx\in\mathbb{Z}\wedge m\in\mathbb{N}, xx is a term of type Z\mathbb{Z} and mm one of type N\mathbb{N} by Typed Terms under a Predicative Guard: Variables, Parameters, Values of Maps and Ordered Pairs, and Predicative Equations and Memberships between Them (i), so [x,m][x,m] is a term of type Q\mathbb{Q} by Integer and Rational Brackets as Typed Terms (ii)). It is surjective, since every u∈Qu\in\mathbb{Q} is [x,m][x,m] for some x∈Zx\in\mathbb{Z} and m∈Nm\in\mathbb{N} by The Rational Numbers (ii). The set Z×N\mathbb{Z}\times\mathbb{N} is countable by (viii), (i) and (vii), so Q\mathbb{Q} is countable by (v).

For (x): Q×Q\mathbb{Q}\times\mathbb{Q} is countable by (ix) and (vii).

Citations

Loading…

Dependencies

Uses0

Loading…

Comments

Log in to comment.

Loading…