Consider a set If contains exactly elements, where then we say that the set is finite and its cardinality is equal to the number of elements The cardinality of a set is denoted by For example,
Recall that we count only distinct elements, so
The cardinality of the empty set is equal to zero:
The concept of cardinality can be generalized to infinite sets.
Two infinite sets and have the same cardinality (that is, ) if there exists a bijection This bijection-based definition is also applicable to finite sets. A bijection between finite sets and will exist if and only if
If no bijection exists from to then the sets have unequal cardinalities, that is,
If sets and have the same cardinality, they are said to be equinumerous. In this case, we write More formally,
Equinumerosity is an equivalence relation on a family of sets. The equivalence class of a set under this relation contains all sets with the same cardinality
Examples of Sets with Equal Cardinalities
The Sets and
The mapping between the set of natural numbers and the set of odd natural numbers is defined by the function where This function is bijective. Therefore both sets and have the same cardinality:
Two Finite Intervals
Let and be two open finite intervals on the real axis. We show that any intervals and have the equal cardinality.
The mapping from and is given by the function
where and \(y \in \left( {c,d} \right).
Check the mapping of the endpoints:
Prove that the function is injective. The contrapositive statement is for If so, then we have
This is a contradiction. Therefore the function is injective.
Make sure that is surjective. Take a number from the codomain and find the preimage
The preimage lies in the domain and
We see that the function is surjective. Since is both injective and surjective, it is bijective. Hence, the intervals and are equinumerous.
The Sets and
This canonical example shows that the sets and are equinumerous. To prove this, we need to find a bijective function from to (or from to ).
Let's arrange all integers in the following order:
Now we numerate this sequence with natural numbers . As a result, we get a mapping from to that is described by the function
The function is injective because whenever It is also surjective because, given any natural number there is an integer such that Hence, the function is bijective, which means that both sets and are equinumerous:
Cardinality of the Sets and
It is interesting to compare the cardinalities of two infinite sets: and It turns out that This was proved by Georg Cantor in who showed that there are infinite sets which do not have a bijective mapping to the set of natural numbers This proof is known as Cantor's diagonal argument.
Consider an arbitrary function Suppose the function has the following values for the first few entries
Figure 1.
We now construct a diagonal that covers the decimal place of for each This diagonal helps us find a number in the codomain that does not match any value of
Take, the first number and change the decimal place value to something different, say Similarly, take the second number and change the decimal place: Continue this process for all The number will consist of the modified values in each cell of the diagonal. It is clear that for any This means that the function is not surjective. Hence, there is no bijection from to Therefore