133. Partitions give equivalence relations
For a partition $\Pi$ of a set $S$, we will use the notation $[x]_\Pi$ or just $[x]$ if the context makes clear which partition is being used, to denote the (unique) block of $\Pi$ that has $x$ as an element. Given a partition $\Pi$, you get an equivalence relation $\mathrm{E}_\Pi$ by the definition:
$$x\mathrm{E}_\Pi y\Leftrightarrow(x\in[y]_\Pi) \tag{133.1}$$
133.1 Theorem
If $\Pi$ is a partition of a set $S$, then the relation $\mathrm{E}_\Pi$ defined by (133.1) is an equivalence relation.
Proof To see that $x\mathrm{E}_\Pi x$ requires $x\in[x]$, which is true by definition of $[x]$. Hence $\mathrm{E}_\Pi$ is reflexive. If $x\mathrm{E}_\Pi y$ then $x\in[y]$. That means $[x]=[y]$, since by definition of partition an element is in only one block. Since $y\in[y]$ by definition and $[x]=[y]$, we know that $y\in[x]$, so $y\mathrm{E}_\Pi x$. Hence $\mathrm{E}_\Pi$ is symmetric. Note that we now know that $x\mathrm{E}_\Pi y$ if and only if $x$ and $y$ are in the same block of $\Pi$. To prove transitivity, suppose $x\mathrm{E}_\Pi y$ and $y\mathrm{E}_\Pi z$. Then $x$ and $y$ are in the same block, and $y$ and $z$ are in the same block, so $[x]=[y]=[z]$. This means $x\mathrm{E}_\Pi z$, so $\mathrm{E}_\Pi$ is transitive.
133.2 The fundamental theorem on equivalence relations
We gave two constructions in the preceding sections. Given an equivalence relation $E$, in Definition 132.1 we constructed a partition $S/E$, and given a partition $\Pi$, in Section 133 we constructed an equivalence relation $\mathrm{E}_\Pi$.
If we let $\pi S$ denote the set of partitions of $S$ (this is standard notation) and $E(S)$ denote the set of equivalence relations on $S$ (there is no standard notation for this), we now have functions $E\mapsto S/E:E(S)\to\pi S$ and $\Pi\mapsto\mathrm{E}_\Pi:\pi S\to E(S)$, where $\mathrm{E}_\Pi$ is defined in formula (133.1) above. The basic fact about these constructions is that these two functions are bijections and each is the inverse of the other. This fact is the “fundamental theorem on equivalence relations.”
In other words, if you have an equivalence relation $E$, construct the quotient set $S/E$, which is a partition, and then construct the equivalence relation $E_{S/E}$ corresponding to that partition, you get the equivalence relation $E$ you started with. And if you have a partition $\Pi$ of $S$, construct the corresponding equivalence relation $\mathrm{E}_\Pi$, and then construct the quotient set $S/\mathrm{E}_\Pi$ of $E$, you get the partition $\Pi$ back again. The proof of the fundamental theorem involves the same sort of arguments given earlier, and is left as a problem.
133.2.1 Exercise Prove the fundamental theorem on equivalence relations.
133.2.2 Exercise Prove that any partition of a set $A$ is the quotient of some function with domain $A$.
Pages 205–206 of the book (PDF).