Lecture 16: isomorphisms, equivalence relations, and partitions [00KX]
- January 26, 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.
Sections and retractions [00LD]
- January 25, 2024
- Jon Sterling
Definition Section-retraction pair [00KS]
- January 23, 2024
- Jon Sterling
A section-retraction pair is defined to be a pair of functions s\colon B \to A and r\colon A \to B such that r\circ s =\mathsf {id}_{B}. In this case, s is referred to as a section of r, and r is referred to as a retraction of s.
Definition Idempotent function [00LA]
- January 25, 2024
- Jon Sterling
A function f\colon A\to A is called idempotent when we have f\circ f = f.
Lemma The idempotent determined by a section-retraction pair [00LB]
- January 25, 2024
- Jon Sterling
Every section-retraction pair determines an idempotent. In particular, when s\colon B\to A is a section of r\colon A \to B, the composite s\circ r\colon A\to A is idempotent.
Proof.
- January 25, 2024
- Jon Sterling
We proceed by calculation:
\begin {aligned} {\mathopen {}\left (s\circ r\right )\mathclose {}}\circ {\mathopen {}\left (s\circ r\right )\mathclose {}} &= s\circ {\mathopen {}\left (r\circ s\right )\mathclose {}}\circ r \\ &= s\circ \mathsf {id}_{B} \circ r \\ &= s\circ r \end {aligned}Lemma Splitting idempotents [00LC]
- January 25, 2024
- Jon Sterling
It happens that every idempotent arises from a section-retraction pair in the manner of Lemma [00LB].
Proof.
- January 25, 2024
- Jon Sterling
Let f\colon A\to A be an idempotent on a set A. Let B be the subset {\mathopen {}\left \{f{\mathopen {}\left (a\right )\mathclose {}}\,\middle \vert \,a:A\right \}\mathclose {}}\subseteq A, sometimes called the direct image of f in A. Then f\colon A\to A factors, by definition, through some unique r\colon A \to B, where r{\mathopen {}\left (x\right )\mathclose {}} = f{\mathopen {}\left (x\right )\mathclose {}} for all x:A. We define s\colon B\to A to be be the subset inclusion.
We must check that r\circ s = \mathsf {id}_{B}; in other words, we fix b:B to check that r{\mathopen {}\left (s{\mathopen {}\left (b\right )\mathclose {}}\right )\mathclose {}} = b. By definition, the subset inclusion s\colon B\to A takes b to the corresponding element s{\mathopen {}\left (b\right )\mathclose {}}:A such that b=f{\mathopen {}\left (s{\mathopen {}\left (b\right )\mathclose {}}\right )\mathclose {}}. By definition of r\colon A \to B, we therefore have r{\mathopen {}\left (s{\mathopen {}\left (b\right )\mathclose {}}\right )\mathclose {}}=f{\mathopen {}\left (s{\mathopen {}\left (b\right )\mathclose {}}\right )\mathclose {}}=b.
Isomorphisms [00KQ]
- January 23, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Definition Isomorphism [00KR]
- January 23, 2024
- Jon Sterling, with contributions from Marcelo Fiore
A function f\colon A \to B is said to be an isomorphism whenever there exists a (necessarily unique) function g\colon B\to A (referred to as the inverse of f) that is simultaneously a retraction and a section of f\colon A \to B in the sense that g\circ f=\mathsf {id}_{A} and f\circ g = \mathsf {id}_{B}.
We will often write f^{-1}\colon B\to A for the inverse to an isomorphism f\colon A \to B.
Proof.
- January 23, 2024
- Jon Sterling
To see that g\colon B\to A is unique, we fix any other g' that is simultaneously a retraction and a section of f and show that g=g':
\begin {aligned} g &= \mathsf {id}_{A}\circ g\\ &= {\mathopen {}\left (g'\circ f\right )\mathclose {}} \circ g\\ &= g'\circ {\mathopen {}\left (f\circ g\right )\mathclose {}}\\ &= g'\circ \mathsf {id}_{B}\\ &= g' \end {aligned}Proposition Counting isomorphisms between finite sets [00KT]
- January 23, 2024
- Jon Sterling, with contributions from Marcelo Fiore
For all finite sets A and B, we have:
\mathord {\#}{\mathrm {Iso}{\mathopen {}\left (A,B\right )\mathclose {}}} = \begin {cases} 0 &\text {if } \mathord {\#}{A}\not =\mathord {\#}{B}\\ n!&\text {if } \mathord {\#}{A}=\mathord {\#}{B}=n \end {cases}Proof.
- January 23, 2024
- Jon Sterling
A isomorphism between two sets is a way of associating precisely one element of the first set with precisely one element of the second set. These associations are embodied in the functions f\colon A\to B and g\colon B\to A, and the uniqueness of the associations is expressed by the conditio that g be simultaneously a section and a retraction of f. Two sets of different cardinality can not be associated in this way, because there would always be left over elements that are not associated to any corresponding element. In this way, we see that a isomorphism exists between two sets if and only if they have the same cardinality.
Assuming two finite sets A,B with cardinality \mathord {\#}{A}=\mathord {\#}{B}=n, we must now count precisely how many isomorphisms there are from A to B. To construct such a isomorphism, we put all the elements B into a pile. Then, for each element of A we must successively choose and then discard an element of B; we have to discard the element because we are not allowed to choose it again (for, if we did, the association would not be an isomorphism). At the beginning (“round k=0”), there are n many choices we could make; in the next round k=1, there are n-1 many choices that we could make; in the kth round, there are n-k many choices that we could make. At the very end (after the n-1th round), we shall have constructed a isomorphism after making n! = \prod _{0\leq k<n} n-k choices in total. Thus the number of distinct isomorphisms from A to B is n!.
Theorem Closure of isomorphisms under identity and composition [00KZ]
- January 23, 2024
- Jon Sterling, with contributions from Marcelo Fiore
The identity function is an isomorphism, and the composition of isomorphisms yields an isomorphism.
Proof.
- January 23, 2024
- Jon Sterling
The inverse to the identity function \mathsf {id}_{A}\colon A\to A is simply itself.
Fix isomorphisms f\colon A\to B and g\colon B\to C, so that we have inverses f^{-1}\colon B\to A and g^{-1}\colon C\to B. The inverse to the composite function g\circ f\colon A \to C is the composite f^{-1}\circ g^{-1}\colon C \to A. The section/retraction conditions follow by those for f and g using the associative and unit laws of composition.
Definition Isomorphic sets [00L0]
- January 23, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Two sets A and B are said to be isomorphic (and have the same cardinality) whenever there is an isomorphism between them. In this case, we write A\cong B or \mathord {\#}{A}=\mathord {\#}{B}
Example Examples of isomorphic sets [00L1]
- January 23, 2024
- Jon Sterling, with contributions from Marcelo Fiore
an isomorphism between finite sets is just a “relabeling” of its elements: for example, we have {\mathopen {}\left \{0,1\right \}\mathclose {}}\cong {\mathopen {}\left \{\mathsf {false},\mathsf {true}\right \}\mathclose {}}. Isomorphism of infinite sets can be more confusing: for example, we have \mathbb {N}\cong {\mathopen {}\left \{n:\mathbb {N}\,\middle \vert \,n>0\right \}\mathclose {}}, \mathbb {N}\cong \mathbb {Z}, \mathbb {N}\cong \mathbb {N}\times \mathbb {N}, \mathbb {N}\cong \mathbb {Q}, and even {\mathopen {}\left (\mathbb {N}\to \mathbb {N}\right )\mathclose {}}\cong \mathbb {R}.
Remark Which isomorphism? [00L2]
- January 23, 2024
- Jon Sterling
Although we are speaking of “being isomorphic” as the property of there being an isomorphism between them, in practice, it is almost never useful to know that there exists some undetermined isomorphism between given sets; it is always important to know which isomorphism. Indeed, we have seen in Proposition [00KT] that there can be many distinct isomorphisms between two sets.
Equivalence relations and set partitions [00L3]
- January 23, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Definition Equivalence relation [00L4]
- January 23, 2024
- Jon Sterling, with contributions from Marcelo Fiore
A relation E\colon A\mathbin {\nrightarrow } A is called an equivalence relation when it is reflexive, transitive, and symmetric:
\forall x:A\mathpunct {.} x\mathrel {E}x \forall x,y,z:A\mathpunct {.} x\mathrel {E} y \land y \mathrel {E} z \implies x \mathrel {E} z \forall x,y:A\mathpunct {.} x \mathrel {E} y \implies y\mathrel {E}xWe will write \mathrm {EqRel}{\mathopen {}\left (A\right )\mathclose {}} for the set of all equivalence relations on A.
Definition Equivalence class [00L6]
- January 23, 2024
- Jon Sterling
Let E\colon A\mathbin {\nrightarrow } A be an equivalence relation on a set A. The equivalence class of a given element a:A in E is the subset {\mathopen {}\left [a\right ]\mathclose {}}_{E}\subseteq A spanned by elements related to a in E, i.e. {\mathopen {}\left [a\right ]\mathclose {}}_{E} = {\mathopen {}\left \{x: A\,\middle \vert \,x\mathrel {E}a\right \}\mathclose {}}.
You may hear some people say “an equivalence” instead of “an equivalence relation”. This usage is wrong and leads to extremely confused thinking: you must not repeat it!
Definition Set partition [00L5]
- January 23, 2024
- Jon Sterling, with contributions from Marcelo Fiore
A partition of a set A is a set P\subseteq \mathcal {P}{\mathopen {}\left (A\right )\mathclose {}} of non-empty subsets of A whose elements are referred to as blocks, satisfying the following conditions:
- the union of all blocks is all of A, i.e. \bigcup P = A;
- the blocks are pairwise disjoint, i.e. for all b_1\not = b_2\in P we have b_1\cap b_2 = \varnothing .
We will write \mathrm {Part}{\mathopen {}\left (A\right )\mathclose {}} for the set of partitions of A.
Theorem Bijection between equivalence relations and partitions [00L7]
- January 23, 2024
- Jon Sterling
For every set A, we can define a bijection \Phi \colon \mathrm {EqRel}{\mathopen {}\left (A\right )\mathclose {}}\to \mathrm {Part}{\mathopen {}\left (A\right )\mathclose {}} sending every equivalence relation E on A to the partition \Phi {\mathopen {}\left (E\right )\mathclose {}} = {\mathopen {}\left \{{\mathopen {}\left [a\right ]\mathclose {}}_{E}\,\middle \vert \,a:A\right \}\mathclose {}} whose blocks consist of the equivalence classes of each element of A.
Proof.
- January 23, 2024
- Jon Sterling
We must first argue that {\mathopen {}\left \{{\mathopen {}\left [a\right ]\mathclose {}}_{E}\,\middle \vert \,a:A\right \}\mathclose {}} in fact constitutes a partition; the union of all equivalence classes is indeed all of A, and we can see that any two distinct equivalence classes have null intersection — since, if there were an intersection, the two equivalence classes would be identical.
The inverse \Phi ^{-1} sends a partition P to the following equivalence relation:
x \mathrel {{\mathopen {}\left (\Phi ^{-1}{\mathopen {}\left (P\right )\mathclose {}}\right )\mathclose {}}} y\Longleftrightarrow \exists b: P\mathpunct {.} x\in b \land y \in bTo check that \Phi ^{-1} is a section of \Phi , we fix a partition P to check that \Phi {\mathopen {}\left (\Phi ^{-1}{\mathopen {}\left (P\right )\mathclose {}}\right )\mathclose {}} = P.
\begin {aligned} \Phi {\mathopen {}\left (\Phi ^{-1}{\mathopen {}\left (P\right )\mathclose {}}\right )\mathclose {}} &= {\mathopen {}\left \{ {\mathopen {}\left [a\right ]\mathclose {}}_{\Phi ^{-1}{\mathopen {}\left (P\right )\mathclose {}}} \,\middle \vert \,a:A\right \}\mathclose {}} \\ &= {\mathopen {}\left \{ {\mathopen {}\left \{x: A\,\middle \vert \,x \mathrel {{\mathopen {}\left (\Phi ^{-1}{\mathopen {}\left (P\right )\mathclose {}}\right )\mathclose {}}} a\right \}\mathclose {}} \,\middle \vert \,a:A\right \}\mathclose {}} \\ &= {\mathopen {}\left \{ {\mathopen {}\left \{x: A\,\middle \vert \, \exists b: P\mathpunct {.} x\in b \land a \in b \right \}\mathclose {}} \,\middle \vert \,a:A\right \}\mathclose {}} \end {aligned}As P is a partition, there is exactly one block containing a given element a:A — no more than one by disjointness, and no fewer than one because the union of a partition must be the entire set. Therefore, the set {\mathopen {}\left \{x: A\,\middle \vert \,\exists b: P\mathpunct {.} x\in b \land a \in b\right \}\mathclose {}} is precisely the unique block of P containing a. Thus we have \Phi {\mathopen {}\left (\Phi ^{-1}{\mathopen {}\left (P\right )\mathclose {}}\right )\mathclose {}} = P.
Conversely, we must show that \Phi ^{-1} is a retraction of \Phi . Fixing an equivalence relation E\colon A\mathbin {\nrightarrow } A, we must check that \Phi ^{-1}{\mathopen {}\left (\Phi {\mathopen {}\left (E\right )\mathclose {}}\right )\mathclose {}} = E. Fixing x,y:A, we proceed using relational extensionality:
\begin {aligned} x\mathrel {{\mathopen {}\left (\Phi ^{-1}{\mathopen {}\left (\Phi {\mathopen {}\left (E\right )\mathclose {}}\right )\mathclose {}}\right )\mathclose {}}}y &\Longleftrightarrow \exists b: \Phi {\mathopen {}\left (E\right )\mathclose {}}\mathpunct {.} x\in b \land y \in b \\ &\Longleftrightarrow \exists a:A\mathpunct {.} x\in {\mathopen {}\left [a\right ]\mathclose {}}_{E} \land y\in {\mathopen {}\left [a\right ]\mathclose {}}_{E} \\ &\Longleftrightarrow \exists a :A\mathpunct {.} x\mathrel {E}a\land y\mathrel {E}a \\ &\Longleftrightarrow x \mathrel {E} y \end {aligned}