Equivalence Relations
Definition A relation R on a set A that is reflexive, symmetric, and transitive is called an equivalence relation.
In the last section we saw several equivalence relations. We shall revisit one of them.
Let A = Z and define a binary relation R on A as follows:
"
m, n Î A, m R n Û 3|(m – n).This is called congruence modulo 3 and is an equivalence relation. We usually write
m º n (mod 3)
instead of m R n. [Recall the quotient remainder theorem: m = dq + r,
where d=3, m, q, r Î Z, 0 £ r < d. Equivalently, m º r (mod 3) and m – r = 3q or simply 3|(m – r).]
Proof: Let m, n, s Î Z be arbitrary.
|
m – s |
= |
(m – s) + 0 |
|
|
= |
(m – s) + (n – n) |
|
|
= |
(m – n) + (-s –(-n)) |
|
|
= |
(m – n) + (n – s) |
|
|
= |
3k1 + 3k2 |
|
|
= |
3(k1 + k2) |
|
|
= |
3k |
So 3|(m – s) and R is transitive. \ R is an equivalence relation. //
We have 0 º 0 (mod 3), 1 º 1 (mod 3), 2 º 2 (mod 3), 3 º 0 (mod 3), 4 º 1 (mod 3),
5 º 2 (mod 3), 6 º 0 (mod 3).
Question: If m º n (mod 3), and r º s (mod 3), is m + r º n + s (mod 3)?
Yes. Proof: Let m, n, r, s Î Z, with m º n (mod 3), and r º s (mod 3). [We must show that m + r º n + s (mod 3), that is 3|[(m + r) – (n + s)] ].
Now m º n (mod 3) ® 3|(m – n), and r º s (mod 3) ® 3|(r – s).
Thus $ k1, k2 Î Z such that m – n = 3k1, and r – s = 3k2. Add these two equations:
|
(m – n) + (n – s) |
= |
3k1 + 3k2 |
|
(m + n) + (-n – s) |
= |
3(k1 + k2) |
|
(m + n) – (n + s) |
= |
3k |
So 3 | [(m + r) – (n + s)] and m + r º n + s (mod 3). //
Definition: Suppose A is a set and R is an equivalence relation on A. For each element a in A, the equivalence class of a, denoted [a] and called the class of a for short, is the set of all elements x in A such that x is related to a by R.
Lemma 10.3.2 (page 563) Suppose A is a set, R is an equivalence relation on A, and a and b are elements of A. If a R b, then [a] = [b].
Lemma 10.3.3 (page 564) If A is a set, R is an equivalence relation on A, and a and b are elements of A, then
either [a] Ç [b] = Æ or [a] = [b].
Theorem 10.3.4 (page 565) If A is a nonempty set and R is an equivalence relation on A, then the distinct equivalence classes of R form a partition of A; that is, the union of the equivalence classes is all of A and the intersection of any two distinct classes is empty.
What are the equivalence classes of Congruence Modulo 3? Into which of these classes do 4, -8, 7, 11 fall?
Example 10.3.9 Equivalence Classes of Digital Logic Circuits
Let S be the set of all digital logic circuits with exactly two inputs and one output. The binary relation E
is defined on S as follows: for all C1 and C2 in S,
C1 E C2 « C1 has the same input/output table as C2.
Describe the equivalence classes of this relation. How many distinct equivalence classes are there? Write representative circuits for two members of a distinct class.
Solution
Given a circuit C, the equivalence class of C is the set of all circuits with two input signals and one output signal that have the same input/output table as C. Recall that for two inputs four rows are required to represent the four possible combinations of inputs: 11, 10, 01, and 00. There are sixteen distinct classes of logic circuits in S. Consider column 15: Ø
(p Ú
q) the truth table is
|
Input |
Output |
|
|
p |
q |
r |
|
1 |
1 |
0 |
|
1 |
0 |
0 |
|
0 |
1 |
0 |
|
0 |
0 |
1 |
Two distinct representatives for this circuit are

Since these two circuits share the same truth table, they are of course equivalent. Another way to verify they are equivalent would be to apply logical equivalence, in particular De Morgan's law.
Example
Given the set H = {1, 2, 3}, Determine which of the following relations exhibit reflexive, symmetric, and/or transitive properties. Which are equivalence relations?
|
|
|
|
|
|
|
|
|
|