Cardinality
Finite & infinite sets
A finite set is any non-infinite set with the following properties:
- iff there exists an injection .
- iff there exists a bijection .
Countable sets
A set is called countably infinite iff it has the same cardinality as the positive integers. A set is called countable iff it is either finite or countably infinite.
To show a set is countably infinite, construct a bijection from the positive integers to the set. For example, the set of even numbers can be defined by:
Finite strings
The set of all finite strings over alphabet is countably infinite. To prove this, define an alphabetical ordering on the symbols in . The strings can be listed in sequence:
- First of length 0
- Then all strings of length 1 in lexicographic order
- Then all strings of length 1 in lexicographic order
- And so on for a countable number of lengths
Each of these sets is countable and so their union is also countable.
Uncountable sets
Imagine an infinite length string of bits 10010…
This string is a function .
The set of infinite binary strings is uncountable. This can be proved using diagonalization.
We have a set of infinite binary strings:
The function of has the property is the th symbol.
Assume there is a bijection from . Suppose so . So each is each is a digit.
Consider taking the diagonal of these s and creating a new binary string with them. We would be able to form a and by creating the string with the diagonal s and flipping them.
So . Every would have at least one digit different to . Thus and is a contradiction. There is no bijection and the set of infinite binary strings is uncountable.
A similar argument shows that via is uncountable using infinite decimal strings, as seen in the textbook.
Theorems
-
Schröder-Bernstein theorem
If and then . -
Cantor’s theorem
Cantor’s theorem has some implications:
-
is not countable, in fact .
-
The continuum Hypothesis claims there is no set with .
-
There exists an infinite hierarchy of sets of even larger cardinality: