Lecture 17: isomorphisms, indicators, finite cardinality, infinity axiom [00LH]
- January 29, 2024
- Jon Sterling, with contributions from Marcelo Fiore
These lecture notes were prepared by Jon Sterling using Marcelo Fiore’s lectures as source material. Any mistakes were introduced by Jon Sterling. Generative AI was not used to write these lecture notes.
Calculus of isomorphisms, I [00LI]
- January 25, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Lemma Properties of isomorphism [00LJ]
- January 25, 2024
- Jon Sterling
The concept of isomorphism between two sets satisfies laws like those of an equivalence relation. In particular:
- reflexivity: A\cong A;
- transitivity: A\cong B \land B \cong C \implies A \cong C;
- symmetry: A\cong B \implies B\cong A.
Example Invariance under isomorphism [00LK]
- January 25, 2024
- Jon Sterling, with contributions from Marcelo Fiore
For all sets A,B,X,Y, we have A\cong X \land B\cong Y\implies \mathrm {Rel}{\mathopen {}\left (A,B\right )\mathclose {}}\cong \mathrm {Rel}{\mathopen {}\left (X,Y\right )\mathclose {}}.
Proof.
- January 25, 2024
- Jon Sterling
Fix isomorphisms f\colon A\to X and g\colon B \to Y. We will define a bijection H\colon \mathrm {Rel}{\mathopen {}\left (A,B\right )\mathclose {}}\to \mathrm {Rel}{\mathopen {}\left (X,Y\right )\mathclose {}}.
Given R\colon A\mathbin {\nrightarrow } B, we define H{\mathopen {}\left (R\right )\mathclose {}}\colon X\mathbin {\nrightarrow } Y to be the relational composite g\circ R\circ f^{-1}. The inverse mapping H^{-1}\colon \mathrm {Rel}{\mathopen {}\left (X,Y\right )\mathclose {}}\to \mathrm {Rel}{\mathopen {}\left (A,B\right )\mathclose {}} is defined to take S\colon X\mathbin {\nrightarrow } Y to the relational composite g^{-1} \circ S\circ f.
Next, we check that H^{-1} is simulatneously a retraction and a section of H.
\begin {aligned} H^{-1}{\mathopen {}\left (H{\mathopen {}\left (R\right )\mathclose {}}\right )\mathclose {}} &= g^{-1}\circ H{\mathopen {}\left (R\right )\mathclose {}}\circ f\\ &= g^{-1}\circ {\mathopen {}\left (g\circ R\circ f^{-1}\right )\mathclose {}}\circ f\\ &= {\mathopen {}\left (g^{-1}\circ g\right )\mathclose {}}\circ R\circ {\mathopen {}\left (f^{-1}\circ f\right )\mathclose {}}\\ &= \mathsf {id}_{B}\circ R\circ \mathsf {id}_{A}\\ &= R \\ H{\mathopen {}\left (H^{-1}{\mathopen {}\left (S\right )\mathclose {}}\right )\mathclose {}} &= g\circ H^{-1}{\mathopen {}\left (S\right )\mathclose {}}\circ f^{-1}\\ &= g\circ {\mathopen {}\left (g^{-1}\circ S\circ f\right )\mathclose {}}\circ f^{-1}\\ &= {\mathopen {}\left (g\circ g^{-1}\right )\mathclose {}}\circ S\circ {\mathopen {}\left (f\circ f^{-1}\right )\mathclose {}}\\ &= \mathsf {id}_{Y}\circ S\circ \mathsf {id}_{X}\\ &= S \end {aligned}Indicator functions and comprehension [00LL]
- January 25, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Definition Predicate [00LO]
- January 25, 2024
- Jon Sterling
A predicate on a set A is defined to be a function \phi \colon A\to {\mathopen {}\left [2\right ]\mathclose {}} from A to the two-element set {\mathopen {}\left [2\right ]\mathclose {}}={\mathopen {}\left \{0,1\right \}\mathclose {}}. We say that a predicate \phi holds of a given element a:A when \phi {\mathopen {}\left (a\right )\mathclose {}}=1.
Definition The indicator function of a subset [00LM]
- January 25, 2024
- Jon Sterling, with contributions from Marcelo Fiore
The indicator function or characteristic function of S\subseteq A is defined to be the predicate \chi _S\colon A\to {\mathopen {}\left [2\right ]\mathclose {}} defined piecewise below:
\chi _S{\mathopen {}\left (a\right )\mathclose {}} = \begin {cases} 1 & \text {if } a \in S\\ 0 & \text {if } a \not \in S \end {cases}Definition The comprehension of a predicate [00LP]
- January 25, 2024
- Jon Sterling
Let \phi \colon A\to {\mathopen {}\left [2\right ]\mathclose {}} be a predicate on a set A. The comprehension of \phi is defined to be the following subset {\mathopen {}\left [\phi \right ]\mathclose {}}\subseteq A spanned by elements at which \phi holds, as specified below:
{\mathopen {}\left [\phi \right ]\mathclose {}} = {\mathopen {}\left \{a: A\,\middle \vert \,\phi {\mathopen {}\left (a\right )\mathclose {}}=1\right \}\mathclose {}}Theorem Universal property of indicator functions [00LN]
- January 25, 2024
- Jon Sterling, with contributions from Marcelo Fiore
The mappings \chi _{{\mathopen {}\left (-\right )\mathclose {}}}\colon \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}\to {\mathopen {}\left (A\to {\mathopen {}\left [2\right ]\mathclose {}}\right )\mathclose {}} and {\mathopen {}\left [-\right ]\mathclose {}}\colon {\mathopen {}\left (A\to {\mathopen {}\left [2\right ]\mathclose {}}\right )\mathclose {}}\to \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} given by indicator functions and comprehension are mutually inverse. Thus we have \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}}\cong {\mathopen {}\left (A\to {\mathopen {}\left [2\right ]\mathclose {}}\right )\mathclose {}}.
Proof.
- January 25, 2024
- Jon Sterling
Fixing S\subseteq A, we compute:
\begin {aligned} {\mathopen {}\left [\chi _{S}\right ]\mathclose {}} &= {\mathopen {}\left \{a: A\,\middle \vert \,\chi _S{\mathopen {}\left (a\right )\mathclose {}}=1\right \}\mathclose {}}\\ &= {\mathopen {}\left \{a: A\,\middle \vert \,a\in S\right \}\mathclose {}}\\ &= S \end {aligned}Conversely, we fix \phi \colon A \to {\mathopen {}\left [2\right ]\mathclose {}} and compute:
\begin {aligned} \chi _{{\mathopen {}\left [\phi \right ]\mathclose {}}}{\mathopen {}\left (a\right )\mathclose {}} &= \begin {cases} 1 & \text {if } a \in {\mathopen {}\left [\phi \right ]\mathclose {}}\\ 0 & \text {if } a \not \in {\mathopen {}\left [\phi \right ]\mathclose {}} \end {cases} \\ &= \begin {cases} 1 &\text {if } \phi {\mathopen {}\left (a\right )\mathclose {}}=1\\ 0 &\text {if } \phi {\mathopen {}\left (a\right )\mathclose {}}\not =1 \end {cases} \\ &= \begin {cases} 1 &\text {if } \phi {\mathopen {}\left (a\right )\mathclose {}}=1\\ 0 &\text {if } \phi {\mathopen {}\left (a\right )\mathclose {}}=0 \end {cases} \\ &= \phi {\mathopen {}\left (a\right )\mathclose {}} \end {aligned}Example An identity involving indicator functions [00LQ]
- January 25, 2024
- Jon Sterling
For any set X, we have \mathcal {P}{\mathopen {}\left (X+{\mathopen {}\left [1\right ]\mathclose {}}\right )\mathclose {}} \cong \mathcal {P}{\mathopen {}\left (X\right )\mathclose {}}+\mathcal {P}{\mathopen {}\left (X\right )\mathclose {}}, where + denotes disjoint union.
Proof.
- January 25, 2024
- Jon Sterling
We first note that \mathcal {P}{\mathopen {}\left (X+{\mathopen {}\left [1\right ]\mathclose {}}\right )\mathclose {}}\cong {\mathopen {}\left ({\mathopen {}\left (X+{\mathopen {}\left [1\right ]\mathclose {}}\right )\mathclose {}}\to {\mathopen {}\left [2\right ]\mathclose {}}\right )\mathclose {}} by Theorem [00LN]. A map out of a disjoint union is given by one map for each side, so this is isomorphic to {\mathopen {}\left (X\to {\mathopen {}\left [2\right ]\mathclose {}}\right )\mathclose {}}\times {\mathopen {}\left ({\mathopen {}\left [1\right ]\mathclose {}}\to {\mathopen {}\left [2\right ]\mathclose {}}\right )\mathclose {}}. Applying Theorem [00LN] again in the other direction, this is isomorphic to \mathcal {P}{\mathopen {}\left (X\right )\mathclose {}}\times {\mathopen {}\left [2\right ]\mathclose {}}. We finally compute:
\begin {aligned} \mathcal {P}{\mathopen {}\left (X\right )\mathclose {}}\times {\mathopen {}\left [2\right ]\mathclose {}} &= \mathcal {P}{\mathopen {}\left (X\right )\mathclose {}}\times {\mathopen {}\left ({\mathopen {}\left [1\right ]\mathclose {}}+{\mathopen {}\left [1\right ]\mathclose {}}\right )\mathclose {}}\\ &= \mathcal {P}{\mathopen {}\left (X\right )\mathclose {}}\times {\mathopen {}\left [1\right ]\mathclose {}}+\mathcal {P}{\mathopen {}\left (X\right )\mathclose {}}\times {\mathopen {}\left [1\right ]\mathclose {}}\\ &= \mathcal {P}{\mathopen {}\left (X\right )\mathclose {}}+\mathcal {P}{\mathopen {}\left (X\right )\mathclose {}} \end {aligned}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.