01 / 21

Equivalence Relations
& Partitions

Discover how reflexive, symmetric, and transitive relations split sets into non-overlapping groups: the powerful link between equivalence relations and partitions.

Discrete Math

What Is a Relation?

A relation \( R \) on a set \( S \) is a subset of the Cartesian product \( S \times S \). If \( (a, b) \in R \), we write \( a \mathrel{R} b \) and say "\( a \) is related to \( b \)."

S a b c d Relation pairs:
\( (a, b) \in R \)
\( (a, c) \in R \)
\( (c, d) \in R \)
Arrows show which pairs are related.

The Three Key Properties

Reflexive
For every \( a \in S \): \( a \mathrel{R} a \). Every element is related to itself.
Symmetric
If \( a \mathrel{R} b \), then \( b \mathrel{R} a \). The relation goes both ways.
Transitive
If \( a \mathrel{R} b \) and \( b \mathrel{R} c \), then \( a \mathrel{R} c \). You can chain connections.

An Everyday Example

Consider the relation "has the same birthday month as" on a set of people. Is it an equivalence relation?

1
Reflexive: You share a birthday month with yourself. ✓
2
Symmetric: If Alice shares a month with Bob, then Bob shares with Alice. ✓
3
Transitive: If Alice and Bob share a month, and Bob and Carol share it, then Alice and Carol share it. ✓

Equivalence Classes

Given an equivalence relation \( \sim \) on \( S \), the equivalence class of an element \( a \) is the set of all elements related to \( a \):

[a] a d f [b] b e [c] c

Every element belongs to exactly one equivalence class. The classes are disjoint and their union is the entire set \( S \).

What Is a Partition?

A partition of a set \( S \) is a collection of non-empty subsets \( \{A_1, A_2, \ldots, A_k\} \) such that:

1
Cover: every element of \( S \) belongs to some \( A_i \): \( A_1 \cup A_2 \cup \cdots \cup A_k = S \).
2
Disjoint: no element belongs to two different blocks: \( A_i \cap A_j = \emptyset \) whenever \( i \neq j \).
3
Non-empty: every block \( A_i \neq \emptyset \).

The Fundamental Theorem

Equivalence Relation Reflexive Symmetric Transitive induces defines Partition Cover S Disjoint blocks Non-empty

This is a two-way street: start with either concept and you automatically get the other.

Why the Theorem Works

1
Classes cover \( S \): Reflexivity guarantees every \( a \in [a] \), so no element is left out.
2
Classes are disjoint: Suppose \( [a] \cap [b] \neq \emptyset \). Then some \( c \in [a] \cap [b] \). By symmetry and transitivity, every element of \( [a] \) is in \( [b] \) and vice versa, so \( [a] = [b] \).
3
Classes are non-empty: \( a \in [a] \) always, so each class has at least one element.

Equivalence vs. Partial Order

Equivalence Relation Partial Order
Reflexive ✓ Yes ✓ Yes
Symmetric ✓ Yes ✕ No (antisymmetric)
Transitive ✓ Yes ✓ Yes
Creates Partition (groups) Hierarchy (ordering)
Example "same remainder mod 3" \( \leq \) on integers

How to Verify Step-by-Step

1
Write the relation formally. State what \( a \sim b \) means in precise terms.
2
Check reflexive. Pick an arbitrary \( a \in S \) and show \( a \sim a \).
3
Check symmetric. Assume \( a \sim b \) and prove \( b \sim a \).
4
Check transitive. Assume \( a \sim b \) and \( b \sim c \), then prove \( a \sim c \).
5
List the equivalence classes to identify the induced partition.

Example: Congruence Mod 3

Define \( a \sim b \iff 3 \mid (a - b) \) on \( \mathbb{Z} \). In other words, \( a \) and \( b \) have the same remainder when divided by 3.

R
Reflexive: \( a - a = 0 \), and \( 3 \mid 0 \). ✓
S
Symmetric: If \( 3 \mid (a - b) \), then \( 3 \mid (-(a-b)) = (b - a) \). ✓
T
Transitive: If \( 3 \mid (a - b) \) and \( 3 \mid (b - c) \), then \( 3 \mid ((a-b)+(b-c)) = (a-c) \). ✓

Visualizing Mod 3 Classes

0 1 2 3 4 5 6 [0] ... , -6 , -3 , 0 , 3 , 6 , 9 , ... [1] ... , -5 , -2 , 1 , 4 , 7 , 10 , ... [2] ... , -4 , -1 , 2 , 5 , 8 , 11 , ...

Example: Finite Set Partition

Let \( S = \{1, 2, 3, 4, 5, 6\} \) with partition \( \{\{1, 3, 5\},\ \{2, 4\},\ \{6\}\} \). What equivalence relation does this define?

{1, 3, 5} 1 3 5 {2, 4} 2 4 {6} 6

Example: Not an Equivalence Relation

On \( \mathbb{Z} \), define \( a \mathrel{R} b \iff |a - b| \leq 1 \). Is this an equivalence relation?

R
Reflexive: \( |a - a| = 0 \leq 1 \). ✓
S
Symmetric: \( |a - b| = |b - a| \). ✓
T
Transitive: \( 1 \mathrel{R} 2 \) and \( 2 \mathrel{R} 3 \), but \( |1 - 3| = 2 > 1 \). ✕ Fails!

Common Mistakes

✕ Forgetting Reflexivity
Assuming "obviously every element relates to itself" without checking. Some relations (e.g., strict \( < \)) are not reflexive.
✕ Confusing Symmetric and Transitive
Symmetry: \( a \sim b \Rightarrow b \sim a \). Transitivity: \( a \sim b \) and \( b \sim c \Rightarrow a \sim c \). They test different things.
✕ Overlapping Blocks
If you write a "partition" where an element appears in two blocks, it is not a valid partition, hence cannot come from an equivalence relation.

Summary at a Glance

Concept Equivalence Relation Partition
Definition Reflexive + Symmetric + Transitive relation on \( S \) Collection of disjoint, non-empty subsets covering \( S \)
Notation \( a \sim b \) \( \{A_1, A_2, \ldots\} \)
Key object Equivalence class \( [a] \) Block \( A_i \)
Connection One-to-one correspondence (Fundamental Theorem)
Example \( a \equiv b \pmod{n} \) Remainder classes \( [0], [1], \ldots, [n-1] \)

Question 1 of 5

Which of the following is not a required property of an equivalence relation?

Question 2 of 5

On \( S = \{1, 2, 3, 4\} \), which collection is a valid partition?

Question 3 of 5

Under the equivalence relation \( a \sim b \iff a \equiv b \pmod{4} \), which element is in the equivalence class \( [3] \)?

Question 4 of 5

A relation \( R \) on \( \mathbb{R} \) is defined by \( a \mathrel{R} b \iff a^2 = b^2 \). Which property does it satisfy?

Question 5 of 5

If an equivalence relation on a set of 10 elements has exactly 4 equivalence classes, what can we say about the class sizes?