[motivation]
### The problem of redundant representations
Mathematics is full of situations where distinct objects encode the same information. The integers $3$ and $10$ are different, but modulo $7$ they behave identically: they leave the same remainder, and any arithmetic statement about remainders that holds for one holds for the other. The matrices
\begin{align*}
A = \begin{pmatrix} 1 & 0 \\ 0 & 2 \end{pmatrix}, \qquad B = \begin{pmatrix} 5 & -4 \\ 4 & -2 \end{pmatrix}
\end{align*}
are different as arrays of numbers, but they represent the same linear transformation in different bases ($B$ has eigenvalues $1$ and $2$ as well). The pairs $(1, 2)$ and $(3, 6)$ in $\mathbb{Z} \times (\mathbb{Z} \setminus \{0\})$ are different, but both represent the rational number $\frac{1}{2}$. In each example, we want to declare certain distinct objects to be "equivalent" and then work with the resulting collapsed collection.
### Ad hoc identification fails
Without a unifying framework, each branch of mathematics must independently invent its own procedure for collapsing redundant representations. Number theorists define congruence classes. Linear algebraists define similarity classes. Topologists define homotopy classes. Each time, the same pattern appears: define a relation, verify that it behaves well (in particular, that "equivalent to equivalent" remains equivalent), form the collection of classes, and check that operations on the original objects descend to operations on classes. The logical structure is identical in every case, which suggests that a single definition should capture all of them.
### Three properties, one definition
What properties must a relation $\sim$ on a set $X$ satisfy for "collapsing $X$ by $\sim$" to be sensible? First, every object should be equivalent to itself, since no representation should be excluded from its own equivalence class --- this is reflexivity. Second, if $a$ is equivalent to $b$, then $b$ should be equivalent to $a$, since equivalence is a symmetric notion --- this is symmetry. Third, if $a$ is equivalent to $b$ and $b$ is equivalent to $c$, then $a$ should be equivalent to $c$, since chains of equivalences should not break --- this is transitivity. These three conditions turn out to be exactly the right axioms. Any relation satisfying all three induces a clean decomposition of $X$ into non-overlapping classes, and conversely, any such decomposition arises from a unique equivalence relation. This is the content of the fundamental correspondence between equivalence relations and partitions.
[/motivation]