Cardinality: Applications

We want to introduce the concept of cardinality to describe the size of a set. According to Theorem 6(6) in this article, we know that for any finite set A, there exists a unique natural number n such that AN<n. We call n as the number of elements of the set A. Therefore, it is natural to define the cardinality of a finite set as its number of elements. Clearly, two finite sets have the same cardinality if and only if these two sets are equinumerous.

Similarly, the concept of cardinality can be extended to infinite sets. However, since infinite sets do not have a specific "number of elements", it is not as straightforward to rigorously define the cardinality of them. However, we can still choose some infinite sets and specially assign a cardinality to them. Thus, we can define cardinality as follows.

Definition 1: Cardinality

The cardinality of a finite set is defined as its number of elements. Specially, we define the cardinality of N as 0, and the cardinality of R as c. We use |A| to denote the cardinality of A.

Nevertheless, by analogy with finite sets, two sets have the same cardinality if and only if they are equinumerous (i.e., in a one-to-one correspondence). Additionally, if one set precedes another, we say that the cardinality of the first set is less than that of the second. Thus, we can define the equivalence and partial order in terms of cardinalities.

Definition 2: Equivalence and Partial Order

We define the equivalence relation =c and the partial order c on caidinalities as
=c..={(|A|,|B|)AB}c..={(|A|,|B|)AB}

Since is an equivalence relation and is a total order, =c and c are equivalence and total order respectively. If |A|=c|B|, we say A,B have the same cardinality. Similarly, if |A|c|B|, we say the cardinality of A is less than the cardinality of B. In the future, if no confusion arises, we will always denote =c as =, and c as .

Let us further examine the addition, multiplication, and exponentiation of cardinal numbers. According to Corollary 1 in this article, the sum of the cardinalities of two disjoint finite sets equals the cardinality of their union, the product of the cardinalities of two finite sets equals the cardinality of their Cartesian product, and the exponentiation of the cardinalities of two finite sets equals the cardinality of their power. Following these patterns, we can similarly define addition, multiplication, and exponentiation for arbitrary sets.

Definition 3: Binary Operations

The addition, multiplication, and exponentiation of cardinalities are defined as
+c(|A|,|B|)=|A×{0}B×{1}|×c(|A|,|B|)=|A×B|P(|A|,|B|)=|AB|

By convention, when no ambiguity arises, we may also write +c(|A|,|B|) as |A|+c|B| or |A|+|B|, ×c(|A|,|B|) as |A|×c|B| or |A|×|B|, P(|A|,|B|) as |A||B|. Hereafter, unless otherwise specified, we will always use the notations |A|+|B|, |A|×|B|, and |A||B|.

For example, using the notations defined above, since we have discussed that 2NR, it follows that c=|R|=|2N|=20.

Next, we will prove the inclusion-exclusion principle for finite sets.

Theorem 1: Inclusion-Exclusion Principle

If A, B are finite sets, then:
|AB|=|A|+|B||AB|

Since A=(AB)(AB), we have |A|=|AB|+|AB|. Also, since AB=(AB)B, we have |AB|=|AB|+|B|. Therefore, |AB|=|A|+|B||AB|. Q.E.D.

By repeatedly applying Theorem 1, we can also extend the inclusion-exclusion principle to the union of n sets. We will not elaborate further here.

In the second half of this section, we will calculate the cardinalities of some important sets.

Theorem 2:

|N|=|Z|=|Q|=0

Since f:NZ, nn+12[2n]n2[2n] is a bijection from N to Z, it follows that NZ, i.e., |N|=|Z|. Let g:N2Q, (m,n)mn; it is evident that g is a surjection. Therefore, NQN2N. By antisymmetry, we have QN. Thus, |N|=|Z|=|Q|=0. Q.E.D.

Theorem 3:

|R|=|C|=c

Since f:R2C, (a,b)a+bi is a bijection from R2 to C, it follows that CR2R, i.e., |R|=|C|=c. Q.E.D.

If we denote the set of all prime numbers as P, then we have

Theorem 4: Euclid's theorem

|P|=0

Assume |P|<0. Let n be the number of elements of P, P can be written as {p1,,pn}. Let
N..=i=1npi+1Obviously, N is greater than any prime number in P, so N must be composite. Therefore there exists a natural number m such that
pmN=i=1npi+1Then pm1, which leads to a contradiction. Therefore, |P|0. On the other hand, since PN, we have |P|0. By antisymmetry, we conclude that |P|=0. Q.E.D.

If x is a real root of a polynomial with integer coefficients, then x is called an algebraic number. Next, we will prove that the cardinality of the algebraic set A is also 0.

Theorem 5:

|A|=0

Since A..=pZ[x]{xRp(x)=0}according to Corollary 2 in this article, |Z[x]|=|Z|=0. Since A is a union of countably many countable sets, |A|0. On the other hand, since NA, we have |A|0. By antisymmetry, we conclude that |A|=0. Q.E.D.

We will now prove a somewhat counterintuitive theorem: the set of all sequences of natural numbers is equinumerous with the set of all sequences of real numbers. Equivalently, this means |N|=|R|.

Theorem 6:

|N|=|R|=c

|N|=00=20=c|R|=(20)0=202=20=cQ.E.D.

The last two theorems we prove require some preliminaries in calculus.

Theorem 7:

Let a<b, and let C[a,b] denote the set of all continuous functions on [a,b]. Then:
|C[a,b]|=c

We can define
S..={fQfC[a,b]}Let
φ:C[a,b]S, ffQTherefore,
φ1:SC[a,b], f{(c,limxcf(x))|c[a,b]}|C[a,b]|=|S||RQ|=cOn the other hand, since there exists a function ψ such that
ψ:RC[a,b], n{(c,n)c[a,b]}and ψ is clearly injective, it follows that |C[a,b]|c. By antisymmetry, we obtain |C[a,b]|=cQ.E.D.

Theorem 8:

Let a<b, and let R[a,b] denote the set of all Riemann integrable functions on [a,b]. Then:
|R[a,b]|=2c

Let φ:R[a,b]R[0,1], f(x)f((ba)x+a), then ψ is clearly a bijection from R[a,b] to R[0,1]. Hence, |R[a,b]|=|R[0,1]|. Let fR[0,1], and let C be the Cantor set on [0,1]. Then we can define
g..=f([0,1]C){ghhRC}R[0,1]2c=cc=|RC|=|{ghhRC}||R[0,1]|Since R[0,1]R[0,1], we also have |R[0,1]|cc=2c. Thus, by antisymmetry, we get 2c=|R[0,1]|=|R[a,b]|Q.E.D.

Therefore, based on Theorem 7 and Theorem 8, it is easy to determine the cardinality of some sets of functions with conditions that are weaker than continuity or stronger than Riemann integrability.