The Timpson Lyceum · Discrete Math (2025)
Equivalence Relations and Partitions - Lecture 8 (Discrete Math)
Equivalence Relations and Partitions – Lecture 8
Overview
This lecture pulls together the three "nice" properties a relation can have — reflexive, symmetric, and transitive — into a single named object: the equivalence relation. We see why these relations are so common (congruence, similarity, "same height," "same last name" all qualify) and study the most important arithmetic example, congruence modulo . From there we build the equivalence class of an element and prove the central structural fact: equivalence classes are nonempty, pairwise disjoint, and cover the whole set — i.e., they form a partition. Conversely, any partition induces an equivalence relation. We close by using equivalence classes as a counting tool to count arrangements of letters with repeats (e.g., the letters of "Mississippi").
Key Concepts
Equivalence relation. Let be a relation on a set . is an equivalence relation if it is:
- Reflexive — for all , (everything is related to itself).
- Symmetric — for all , if then .
- Transitive — for all , if and then .
An equivalence relation is a precise way of saying "two objects are, in some sense, the same." Familiar examples: same height, same last name, geometric congruence, and similarity.
Congruence modulo . Let be a positive integer. For integers and we say is congruent to modulo , written provided — that is, the difference is divisible by . By definition means there exists an integer with .
- is true since and ; but is false since .
- is true since and (it divides four times — a negative result still counts).
- is true since and for every (zero times).
- Any odd integer is any other odd integer , because odd odd is even.
Congruence mod is an equivalence relation (a key theorem of this lecture; transitivity is left as an exercise):
- Reflexive: and , so .
- Symmetric: if , then for some integer ; multiplying by gives , so and .
Equivalence class. Let be an equivalence relation on and let . The equivalence class of is the set of all elements related to :
- Under same last name on a room of people, is the set of everyone sharing 's last name.
- Under congruence mod , = all odd integers, and = all even integers. Note : the relation splits into just two classes, the evens and the odds.
Classes are equal exactly when their reps are related. For : Consequently, if two equivalence classes overlap at all, they are identical — if , then .
Partition. A partition of is a set of nonempty, pairwise-disjoint subsets of (called parts) whose union is all of . No part may be empty, no element may sit in two different parts, and together the parts recover .
The fundamental correspondence (equivalence relations partitions):
- The equivalence classes of any equivalence relation on form a partition of . They are nonempty (each contains by reflexivity), pairwise disjoint (overlapping classes are equal), and their union is (every element lies in its own class).
- Conversely, given a partition , the same-part relation — iff some part of contains both and — is an equivalence relation. Reflexivity follows because the parts cover ; symmetry because membership in a set is unordered; transitivity because two parts sharing the common element must be the same part (pairwise disjoint).
Counting with equivalence classes. To count distinct arrangements when some objects are interchangeable, count all arrangements as if everything were distinct, then divide by the size of each equivalence class (the number of indistinguishable rearrangements that produce the same outcome):
Worked Example
Count the distinct arrangements of the letters of "MISSISSIPPI."
The word has letters with repeats: one , four 's, four 's, and two 's. Treating all tiles as distinct gives orderings, but swapping identical letters among themselves yields the same word. Group orderings into equivalence classes ("spell the same word"); each class has size (the rearrangements of the I's, S's, P's, and the lone M). Divide total by class size:
(The simpler "WORD" version: distinct tiles give words; if one letter were doubled you'd divide by .)
Summary
- An equivalence relation is a relation that is reflexive, symmetric, and transitive; it formalizes "being the same in some respect."
- Congruence mod ( means ) is the headline example and an equivalence relation — proven via reflexivity, symmetry, and (as exercise) transitivity.
- The equivalence class collects everything related to ; , so distinct classes never overlap.
- Equivalence classes always form a partition (nonempty, pairwise disjoint, union is ), and every partition's same-part relation is an equivalence relation — the two notions are interchangeable.
- Equivalence classes give a clean counting tool: distinct outcomes = total arrangements size of each class, which produces the multinomial formula such as for "MISSISSIPPI."