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. 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 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 , we define a relation on the set of integers such that if and only if for some . Prove that this defines an equivalence relation on the set of integers.
Proof:
- Reflexivity: For any , it follows immediately that , and thus for all .
- Symmetry: For any , assume that . It must then be the case that for some integer , and . Since is an integer, must also be an integer. Thus, for all .
- Transivity: For any , assume that and . Then and for some integers . 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:
Theorem:
Proof: Assume . Then, by construction .
- []: Let be an arbitrary element of . Then by construction of the equivalence class, and by transitivity of equivalence relations. Thus, , or that .
- []: Let 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.