Abstract Algebra/Equivalence relations and congruence classes
From Wikibooks, the open-content textbooks collection
We often wish to describe how two mathematical entities within a set are related. For example, if we were to look at the set of all people on Earth, we could define "is a child of" as a relationship. Similarly, the
operator defines a relation on the set of integers. Formally speaking, a relation is a binary proposition defined on two elements of a set, and is generally written with an infix operator. We will write
for some
and for some relation
.
However, there are very many types of relations. Indeed, further inspection of our earlier examples reveals that the two relations are quite different. In the case of the "is a child of" relationship, we observe that there are some people A,B where neither A is a child of B, nor B is a child of A. In the case of the
operator, we know that for any two integers
exactly one of
or n > m is true. In order to learn anything about relations, we must look at a smaller class of relations.
In particular, we care about the following properties of relations:
- Reflexivity:
for all
. - Symmetry:
for all
. - Transitivity:
for all
.
One should note that in all three of these properties, we quantify across _all_ elements of the set.
A total order relation which exhibits the properties of reflexivity, symmetry and transitivity is called an equivalence relation. Two elements related under an equivalence relation are called equivalent.
Example: For a fixed integer p, we define a relation
on the set of integers such that
if and only if a − b = kp for some
. Prove that this defines an equivalence relation on the set of integers.
Proof:
- Reflexivity: For any
, it follows immediately that a − a = 0 = 0p, and thus
for all
. - Symmetry: For any
, assume that
. It must then be the case that a − b = kp for some integer k, and b − a = ( − k)p. Since k is an integer, − k must also be an integer. Thus,
for all
. - Transivity: For any
, assume that
and
. Then a − b = k1p and b − c = k2p for some integers k1,k2. By adding these two equalities togeter, we get
, and thus 
Q.E.D.
Remark. In elementary number theory we denote this relation
and say a is equivalent to b modulo p.
Congruence classes (sometimes called equivalence classes) are partitionings of a set according to an equivalence relation. In other words, for any element
we define a subset
as:
![\left[ a \right] = \left \{ b \in G | a \sim b \right \}](http://upload.wikimedia.org/math/3/5/a/35aaa9340ddd35d43008d0fbec20076b.png)
Theorem: ![b \in \left[ a \right] \implies \left[ b \right] = \left[ a \right]](http://upload.wikimedia.org/math/f/b/5/fb56c1f7d2d0e3d94a2d53acf22972e0.png)
Proof: Assume
. Then, by construction
.
- [
]: Let p be an arbitrary element of
. Then
by construction of the equivalence class, and
by transitivity of equivalence relations. Thus,
, or that
. - [
]: Let q be an arbitrary element of
. Then, by construction
. By transitivity,
, so
. Thus,
, or that
.
As
and as
, it must be the case that
.
Q.E.D. The text in its current form is incomplete.