Skip to main content
Logo image

Section 18.3 Classes, partitions, and quotients

As desired (see Section 18.1), an equivalence relation can be used to group equivalent objects together.

Example 18.3.1.

Consider 5 on N. Notice that the elements in each of the following sets are all equivalent to each other with respect to 5.
{0,5,10,15,}{1,6,11,16,}{2,7,12,17,}{3,8,13,18,}{4,9,14,19,}
Also notice that N is the disjoint union of the above sets.
In fact, we could do the same for every divisor n, not just for n=5, as N is also the disjoint union of the sets
{0,n,2n,3n,},{1,n+1,2n+1,3n+1,},{2,n+2,2n+2,3n+2,},{n1,n+(n1),2n+(n1),3n+(n1),},
and again elements in each of the above sets are all equivalent to each other with respect to n.
equivalence class (of an element a)
the subset of A consisting of all elements that are equivalent to the given element aA, relative to a specific equivalence relation on A; i.e. the set
{xA|xa}
[a]
the equivalence class of the element aA relative to some specific equivalence relation on A

Example 18.3.2. Equivalence classes of natural numbers modulo 5.

If we divide 8 by 5, we get 1 with 3 remainder. So the equivalence class of 8 relative to 5 consists of all natural numbers that have remainder 3 when divided by 5:
[8]={3,8,13,18,}.
Now, 3 is in this class because when we divide 3 by 5 we get 0 with 3 remainder. But if we had started with 3 instead of 8, we would have also said that the equivalence class of 3 relative to 5 consists of all natural numbers that have remainder 3 when divided by 5:
[3]={3,8,13,18,}.
This is just the reflexive property, aa.
If a1,a2[a], then by definition we have both a1a and a2a. Applying symmetry to the latter equivalence, we may write a1aa2, to which we may apply transitivity to obtain a1a2, as desired.

(⇒) 

Suppose a1a2. To verify [a1]=[a2], we follow the Test for Set Equality. First, assume x is an arbitrary element in [a1]. Then xa1a2, so xa2 by the transitive property. Therefore, x[a2], as required. This shows that [a1][a2]; the argument to show [a2][a1] is almost exactly the same, just using the symmetric property to first obtain a2a1.

(⇐) 

By Statement 1 of this proposition, we have a1[a1]. If we assume [a1]=[a2], then we also have a1[a2], which means that a1a2, as required.
Let us prove the equivalent “double contrapositive” biconditional a1a2[a1][a2]. (See Worked Example 2.1.4.)

(⇒) 

Suppose a1a2. Then [a1]=[a2] by Statement 3, so
[a1][a2]=[a1][a1]=[a1].
But [a1] is nonempty by Statement 1.

(⇐) 

Suppose [a1][a2]. Then there exists some element xA that is in both [a1] and [a2], so that both xa1 and xa2. By the symmetric property, we have a1x, and combining this with xa2 in the transitive property gives a1a2.
Statement 3 of Proposition 18.3.3 tells us that any member of an equivalence class may be used to define the class.
equivalence class representative
an element aA used to define the equivalence class
[a]={xA|xa}
complete set of equivalence class representatives
a subset CA so that for each xA there exists exactly one aC so that x[a]
Remember that elements that are equivalent to one another relative to some equivalence relation are viewed to be “essentially the same” from the point of view of the property used to define the equivalence relation. So different but equivalent elements become interchangeable (see Section 18.1). When we have a complete set of representatives for the equivalence classes, we are deciding to always interchange an element for the chosen representative of the class containing that element.

Example 18.3.4. A complete set of equivalence class representatives for natural numbers modulo 5.

Continuing Example 18.3.2, we could represent the class of numbers that have remainder 3 by the number 8:
[8]={3,8,13,18,}.
But it seems more “natural” to represent this class by the number 3:
[3]={3,8,13,18,}.
Notice that each of the numbers 0,1,2,3,4 has a different remainder when divided by 5, so no two of them are equivalent. That also means that each is in a different class (Statement 4 of Proposition 18.3.3). But when we go past 4, the remainders when divided by 5 start repeating: each of the numbers in the list 5,6,7,8,9 has the same remainder as the number in the corresponding position in the list 0,1,2,3,4. And then the remainders repeat again when we go past 9. And so on. So it seems “natural” to use 0,1,2,3,4 as a complete set of representatives of the equivalence classes for N modulo 5:
[0]={0,5,10,15,},[1]={1,6,11,16,},[2]={2,7,12,17,},[3]={3,8,13,18,},[4]={4,9,14,19,}.
The definition of complete set of equivalence class representatives implicitly assumes that the equivalence classes “fill up” the whole set A. But that is always precisely the case.
partition
a collection of subsets of a set A that are pairwise disjoint and whose union is A
partition cell
one of the subsets that make up a partition of a set
A diagram illustrating a partition of a set.
Figure 18.3.5. A diagram illustrating a partition of a set, so that A=A1A2A3An.

Remark 18.3.6.

In essence, partition is just a synonym for disjoint union. So a collection of subsets form a partition when each element of the set is in exactly one partition cell.

Note 18.3.7.

It is not necessary for a partition of a set to be made up of a finite (or even countable) number of cells; see the examples below.
This theorem claims that every element of A is in exactly one equivalence class. But this follows from the statements of Proposition 18.3.3.

Example 18.3.9. Equivalence classes modulo n.

Generalizing Example 18.3.4, each of the numbers 0,1,2,3,,n1 is its own remainder when divided by n. And then the pattern of remainders repeats, starting over at remainder 0, when we continue on to the numbers n,n+1,. So 0,1,2,3,,n1 is a complete set of equivalence class representatives, and the classes modulo n partition N into the disjoint subsets
[0]={0,n,2n,3n,},[1]={1,n+1,2n+1,3n+1,},[2]={2,n+2,2n+2,3n+2,},[0][n1]={n1,2n1,3n1,4n1,}.

Example 18.3.10.

Let L be the set of all lines in the plane, and consider 12 if 1,2 are parallel. Then partitions L into sets of parallel lines.

Example 18.3.11.

Recall that for alphabet Σ, Σn is the subset of Σ consisting of all words whose length is exactly n. Then
Σ0,Σ1,Σ2,
is a partition of Σ. (See Exercise 9.9.9.)
Recall that a relation on Σ can be defined as a subset of Σ×Σ. So consider the relation R on Σ defined by
R=(Σ0×Σ0)(Σ1×Σ1)(Σ2×Σ2)
Then R is the equivalence relation on Σ where wRy if |w|=|y|, and its equivalence classes are precisely the sets Σn, n0.
Given a partition of A, for each aA there exists exactly one partition cell containing a. So define a1a2 to mean “elements a1,a2 are contained in the same partition cell of A.

Remark 18.3.13.

Theorem 18.3.8 and Theorem 18.3.12 combine to provide, for each set A, a bijective correspondence
{equivalence relations on A}{partitions of A}.

Worked Example 18.3.14. Determining an equivalence relation from a partition.

Determine an explicit equivalence relation on Z for which the equivalence classes give the following partition.
Z={3,2,1}{0,1,2}{3,4,5}
Solution.
Notice that each cell in the partition contains a multiple of 3 along with the next two consecutive integers. So one way to explicitly define the corresponding equivalence relation is: for a,bZ, define ab to be true if there exists nZ such that 3na,b3n+2. (Note: Details showing that this is an equivalence relation are omitted.)
quotient (of a set A relative to an equivalence relation )
the subset of P(A) whose elements are the equivalence classes of
A/
the quotient of A relative to equivalence relation , so that
(A/)={[a]|aA}

Example 18.3.15. A quotient described by class representatives.

Consider the partition of Z from Worked Example 18.3.14, and the corresponding equivalence relation . To describe Z/, we just need to pick a representative of each class. The most obvious way in this case is
(Z/)={,[3],[0],[3],[6],}.

Worked Example 18.3.16. Determining a quotient.

Let represent the equivalence relation on Z defined by
  1. 00, and
  2. for non-zero m,nZ,
    mnifm|m|=n|n|.
Determine the corresponding partition and quotient of Z.
Solution.
First notice that 0 will be in an equivalence class all by itself. Next, consider the values that m/|m| can possibly take.
  • If m>0, then |m|=m so m/|m|=1.
  • If m<0, then |m|=m so m/|m|=1.
So this equivalence relation is just a fancy way of saying that m,n have the same sign. Therefore, all positive numbers will be in the same equivalence class, and all negative numbers will be in the same equivalence class. It now makes sense that 0 is in a class by itself, since 0 is neither positive nor negative. The partition of Z corresponding to is then
Z={,3,2,1}{0}{1,2,3,}.
To describe Z/, we just need to pick a representative of each equivalence class. One possibility is
Z=[1][0][1],
so that
(Z/)={[1],[0],[1]}.
natural projection (on a set A relative to an equivalence relation )
the function A(A/) defined by a[a]

Note 18.3.17.

The natural projection A(A/) is always surjective, but it is almost never injective.

Example 18.3.18. Natural projection modulo-5.

Recall that 5 represents the modulo-5 equivalence relation on N. In Example 18.3.4 we determined that there are five equivalence classes, represented by elements 0,1,2,3,4, so that
(N/5)={[0],[1],[2],[3],[4]}.
Below are some examples of images of elements under the natural projection.
2[2]7[2]104[4]76[1]2045[0].