Finite and infinite sets [00LW]
- January 28, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Now that we have learned about isomorphisms, we are ready to replace our intuitive/informal understanding of finite sets and finite cardinality with a formal one.
Definition Finite set [00LX]
- January 28, 2024
- Jon Sterling, with contributions from Marcelo Fiore
A set A is said to be finite or have finite cardinality when it is isomorphic to a set of the form {\mathopen {}\left [n\right ]\mathclose {}} for some n: \mathbb {N}; in this case, we therefore have \mathord {\#}{A}=n. (Recall that {\mathopen {}\left [n\right ]\mathclose {}} is the standard n-element set {\mathopen {}\left \{i:\mathbb {N}\,\middle \vert \,0\leq i < n\right \}\mathclose {}}.)
There are many identities that relate set-theoretic operations on finite sets to arithmetic operations on their cardinalities. We will illustrate a few of them here.
Example Cardinality of the product [00LY]
- January 28, 2024
- Jon Sterling
For all m,n:\mathbb {N}, we have {\mathopen {}\left [m\right ]\mathclose {}}\times {\mathopen {}\left [n\right ]\mathclose {}} \cong {\mathopen {}\left [m\cdot n\right ]\mathclose {}}.
We can prove this from a combinatoric point of view.
Proof.
- January 28, 2024
- Jon Sterling
To choose a pair {\mathopen {}\left (i,j\right )\mathclose {}}:{\mathopen {}\left [m\right ]\mathclose {}}\times {\mathopen {}\left [n\right ]\mathclose {}}, we first choose an element of {\mathopen {}\left [m\right ]\mathclose {}} and we second choose an element of {\mathopen {}\left [n\right ]\mathclose {}}. There are m possibilities for the first choice and n possibilities for the second choice; as these choices are independent, we simply have m\cdot n choices in total.
We can also prove this isomorphism more formally by means of a specific bijection.
Proof.
- January 28, 2024
- Jon Sterling
We can think of the product {\mathopen {}\left [m\right ]\mathclose {}}\times {\mathopen {}\left [n\right ]\mathclose {}} as the set of cells in table or matrix with m columns and n rows — and then an element {\mathopen {}\left (i,j\right )\mathclose {}} with i:{\mathopen {}\left [m\right ]\mathclose {}} and j:{\mathopen {}\left [n\right ]\mathclose {}} is the coordinate of a given cell. Naturally, the total number of cells would be m\cdot n, but we can prove this formally by constructing the function that takes a coordinate {\mathopen {}\left (i,j\right )\mathclose {}} to its absolute index in the counting of cells from left to right and top to bottom:
\begin {aligned} I &\colon {\mathopen {}\left [m\right ]\mathclose {}}\times {\mathopen {}\left [n\right ]\mathclose {}}\to {\mathopen {}\left [m\cdot n\right ]\mathclose {}}\\ I{\mathopen {}\left (i,j\right )\mathclose {}} &= m\cdot j + i \end {aligned}We do need to check that I{\mathopen {}\left (i,j\right )\mathclose {}}< m\cdot n for all i<m and j<n. The maximimum value of I is naturally I{\mathopen {}\left (m-1,n-1\right )\mathclose {}}:
\begin {aligned} I{\mathopen {}\left (m-1,n-1\right )\mathclose {}} &= m\cdot {\mathopen {}\left (n-1\right )\mathclose {}} + {\mathopen {}\left (m-1\right )\mathclose {}} \\ &= m\cdot n - m + m - 1 \\ &= m\cdot n - 1 \\ &< m\cdot n \end {aligned}The inverse function I^{-1}\colon {\mathopen {}\left [m\cdot n\right ]\mathclose {}}\to {\mathopen {}\left [m\right ]\mathclose {}}\times {\mathopen {}\left [n\right ]\mathclose {}} takes i<m\cdot n to the pair {\mathopen {}\left (\operatorname {rem}{\mathopen {}\left (i,m\right )\mathclose {}}, \operatorname {quo}{\mathopen {}\left (i,m\right )\mathclose {}}\right )\mathclose {}}.
Example Cardinality of the disjoint sum [00LZ]
- January 28, 2024
- Jon Sterling, with contributions from Marcelo Fiore
For all m,n:\mathbb {N}, we have {\mathopen {}\left [m\right ]\mathclose {}}+{\mathopen {}\left [n\right ]\mathclose {}} \cong {\mathopen {}\left [m+n\right ]\mathclose {}}.
Proof.
- January 28, 2024
- Jon Sterling
We can think of {\mathopen {}\left [m\right ]\mathclose {}}+{\mathopen {}\left [n\right ]\mathclose {}} as the set of coordinates into two strips of cells, the first of which has m cells and the second of which has n cells. Conversely, we can think of {\mathopen {}\left [m+n\right ]\mathclose {}} as the set of coordinates a single strip of m+n cells. A function I\colon {\mathopen {}\left [m\right ]\mathclose {}}+{\mathopen {}\left [n\right ]\mathclose {}}\to {\mathopen {}\left [m+n\right ]\mathclose {}} could then be thought of as witnessing a method to lay out the two strips in serial; we will define such a function and show that it is a bijection.
\begin {aligned} I &\colon {\mathopen {}\left [m\right ]\mathclose {}}+{\mathopen {}\left [n\right ]\mathclose {}} \to {\mathopen {}\left [m+n\right ]\mathclose {}}\\ I{\mathopen {}\left (0,i<m\right )\mathclose {}} &= i\\ I{\mathopen {}\left (1,j<n\right )\mathclose {}} &= m+j \end {aligned}The function I places a cell from the first strip sequentially after the first m cells of the serialised strip. The inverse can be defined as follows:
I{\mathopen {}\left (k\right )\mathclose {}} = \begin {cases} {\mathopen {}\left (0,k\right )\mathclose {}} &\text {when } k < m\\ {\mathopen {}\left (1,k-m\right )\mathclose {}} &\text {when } k \geq m \end {cases}Definition Infinite set [00M1]
- January 28, 2024
- Jon Sterling, with contributions from Marcelo Fiore
A set A is called infinite when it is not finite in the sense of Definition [00LX].
The basic axioms of set theory that we have learned in this course so far do not in fact guarantee the existence of any infinite sets. For this reason, one usually adds the axiom of infinity below to set theory.
Axiom The axiom of infinity [00M0]
- January 28, 2024
- Jon Sterling, with contributions from Marcelo Fiore
The natural numbers form a set.