Skip to content

Cardinality#

Comparing the sizes of sets is easy when they are finite but gets tricky when dealing with sets with infinitely many elements because, as it turns out, some infinite sets are actually "bigger" than others.

Definition: Cardinality

The cardinality of a set \(S\) is the mathematical notion of the number of elements in \(S\).

Note

There is no precise definition of "cardinality". Rather, the word is always used in certain mathematical expressions with a fixed meaning and does not really have any other meaning on its own.

Definition: Size Comparisons of Sets

Let \(A\) and \(B\) be two sets.

We say that:

Notation

\[ |A| = |B| \]

Notation

\[ |A| \le |B| \]

Notation

\[ |A| \lt |B| \]

Definition: Finite Set

A set \(S\) is finite if there exists some integer \(n \in \mathbb{N}_0\) such that \(S\) has the same cardinality as the set \(\{1,2,\dotsc,n\}\).

Notation

\[ |S| = n \]

Theorem: Cardinality of Finite Sets

If \(A\) and \(B\) are finite sets, then the cardinalities of their union, difference and Cartesian product are:

\[ \begin{aligned} &|A \cup B| = |A| + |B| - |A \cap B| \\ &|A \setminus B| = |A| - |A \cap B| \\ &|A \times B| = |A| \times |B| \\ \end{aligned} \]

Moreover, the cardinality of the intersection \(A \cap B\) is zero if and only if \(A\) and \(B\) are disjoint:

\[ |A \cap B| = 0 \iff A \cap B = \varnothing \]
Proof

TODO

Infinite Sets#

Definition: Infinite Set

A set is infinite if it is not finite.

Definition: Countable Set

A set \(S\) is countable if it has the same cardinality as the set of natural numbers \(\mathbb{N}\).

Notation

\[ |S| = \aleph_0 \]

The symbol \(\aleph_0\) is read as "aleph null".

Definition: Uncountable Set

A set \(S\) is uncountable if it is infinite but not countable.