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}