Abstract Algebra/Equivalence relations and congruence classes
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. A binary relation, hereafter referred to simply as a relation, is a binary proposition defined on any selection of the elements of two sets.
Formally, a relation is any arbitrary subset of the Cartesian product between two sets X and Y so that, for a relation R,
. In this case, X is referred to as the domain of the relation and Y is referred to as its codomain. If an ordered pair (x,y) is an element of R (where, by the definition of R,
and
), then we say that x is related to y by R. We will use R(x) to denote the set
.
In other words, R(x) is used to denote the set of all elements in the codomain of R to which some x in the domain in related.
[edit] Equivalence relations
To denote that two elements x and y are related for a relation R which is a subset of some Cartesian product
, we will use an infix operator. We write x∼y for some
and
.
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 about relations, we must look at a smaller class of relations.
In particular, we care about the following properties of relations:
- Reflexivity: A relation
is reflexive if a∼a for all
. - Symmetry: A relation
is symmetric if
for all
. - Transitivity: A relation
is transitive if
for all
.
One should note that in all three of these properties, we quantify across all elements of the set X.
Any relation
which exhibits the properties of reflexivity, symmetry and transitivity is called an equivalence relation on X. Two elements related by an equivalence relation are called equivalent under the equivalence relation. We write
to denote that a and b are equivalent under R. If only one equivalence relation is under consideration, we can instead write simply
.
Example: For a fixed integer p, we define a relation ∼p on the set of integers such that a∼pb 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 a∼pa for all
. - Symmetry: For any
, assume that a∼pb. 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
. - Transitivity: For any
, assume that a∼pb and b∼pc. Then a − b = k1p and b − c = k2p for some integers k1,k2. By adding these two equalities together, we get
, and thus a∼pc.
Q.E.D.
Remark. In elementary number theory we denote this relation
and say a is equivalent to b modulo p.
[edit] Congruence classes
Congruence classes, also called equivalence classes, are partitionings of a set according to some equivalence relation
. In other words, for any element
we define a subset
as:
We refer to this as the R-equivalence class of a.
Theorem: ![b \in \left[ a \right] \implies \left[ b \right] = \left[ a \right]](http://upload.wikimedia.org/wikibooks/en/math/f/b/5/fb56c1f7d2d0e3d94a2d53acf22972e0.png)
Proof: Assume
. Then, by construction
.
- We first prove that
. Let p be an arbitrary element of
. Then
by construction of the equivalence class, and
by transitivity of equivalence relations. Thus,
. - We now prove that
Let q be an arbitrary element of
. Then, by construction
. By transitivity,
, so
. Thus,
.
As
and as
, it must be the case that
.
Q.E.D. The text in its current form is incomplete.
.
for all
.
for all
.
.
for all
.
, and thus ![\left[ a \right] = \left \{ b \in X | a \equiv b (R)\right \}](http://upload.wikimedia.org/wikibooks/en/math/0/0/3/0032236bfc72d94bdad3486c534c85cd.png)
. Then
by construction of the equivalence class, and
by transitivity of equivalence relations. Thus,
.
. Then, by construction
. By transitivity,
, so
. Thus,
.