Cardinality measures the size of a set — how many elements it contains. For finite sets, cardinality is simply a count. For infinite sets, the situation becomes more subtle: different infinite sets can have different sizes, and comparing them requires the concept of one-to-one correspondence. This leads to the distinction between countable and uncountable infinities.
Definition of Cardinality
The cardinality of a set A, denoted ∣A∣, measures the number of elements in A.
For finite sets, cardinality is determined by counting. If A={a,b,c}, then ∣A∣=3. If B={1,2,3,4,5}, then ∣B∣=5.
The empty set contains no elements:
∣∅∣=0
Two sets have the same cardinality when a bijection (one-to-one correspondence) exists between them. For finite sets, this simply means they have the same count. For infinite sets, this definition becomes the primary tool for comparing sizes.
Finite Sets
A set is finite if its elements can be counted with a natural number. Formally, a set A is finite if there exists some n∈N such that:
∣A∣=n
This means a bijection exists between A and the set {1,2,3,…,n}.
This inclusion-exclusion principle accounts for elements counted twice when sets overlap.
Infinite Sets
A set is infinite if it is not finite — no natural number can express its size.
The standard number sets are all infinite:
N={0,1,2,3,…} — the natural numbers
Z={…,−2,−1,0,1,2,…} — the integers
Q — the rational numbers
R — the real numbers
A defining property of infinite sets: an infinite set can be put into one-to-one correspondence with a proper subset of itself. For example, the function f(n)=2n maps N bijectively onto the even numbers, which form a proper subset of N.
Not all infinite sets have the same cardinality. The integers and rationals turn out to be the same size as the natural numbers, but the real numbers form a strictly larger infinity.
Countable Sets
A set is countably infinite if its elements can be put in one-to-one correspondence with the natural numbers N. Such a set can be listed as a sequence:
a1,a2,a3,…
where every element appears exactly once.
The integers Z are countable. The listing:
0,1,−1,2,−2,3,−3,…
establishes a bijection with N.
The rationals Q are countable despite appearing denser than Z. By arranging positive rationals in a grid and traversing diagonally, every rational is eventually listed.
A set is called countable if it is either finite or countably infinite. Some authors reserve "countable" for countably infinite sets only — context determines the convention.
The union of countably many countable sets remains countable. This is why Q is countable: it is a countable union of countable sets (rationals with each fixed denominator).
Uncountable Sets
A set is uncountable if it is infinite but not countable — its elements cannot be listed in a sequence that covers them all.
The real numbers R are uncountable. Cantor's diagonal argument proves this: assume a listing of all real numbers between 0 and 1 exists. Construct a new number by making its n-th decimal digit different from the n-th digit of the n-th number in the list. This new number differs from every listed number, contradicting the assumption that the list was complete.
Any interval (a,b) with a<b is uncountable. In fact, every such interval has the same cardinality as R itself — a bijection exists between them.
The cardinality of R is denoted c (for continuum) or 2ℵ0, indicating it equals the cardinality of the power set of N.
Comparing Cardinalities
Cardinalities are compared using functions between sets:
∣A∣=∣B∣ when a bijection exists between A and B
∣A∣≤∣B∣ when an injection (one-to-one function) exists from A to B
∣A∣<∣B∣ when ∣A∣≤∣B∣ and ∣A∣=∣B∣
The Cantor-Schröder-Bernstein theorem states: if ∣A∣≤∣B∣ and ∣B∣≤∣A∣, then ∣A∣=∣B∣.
Cantor's theorem establishes a fundamental inequality for any set A:
∣A∣<∣P(A)∣
The power set always has strictly greater cardinality than the original set. For finite sets, this is immediate: 2n>n. For infinite sets, the proof uses a diagonal argument similar to the uncountability of R.
This theorem implies there is no largest cardinality — given any set, its power set is strictly larger, producing an endless hierarchy of infinite sizes.