Equivalence Relations
A relation is an equivalence relation if it is reflex, symmetric and transitive. To show that the relation is an equivalence relation, we can write instead of , or if the relation is clear and is related to . If the relation is not clear, we can write or .
Therefore we know that a relation is an equivalence relation if it satisfies the following properties:
- (reflexive)
- (symmetric)
- (transitive)
This makes sense if we think of we compare it to our normal understandin of "equivalence":
- We say that two things that are the same are equivalent to each other (reflexive).
- If something is equivalent to something else, then that something else is equivalent to the first thing (symmetric).
- If something is equivalent to something else, and that something else is equivalent to another thing, then the first thing is equivalent to the other thing (transitive).
For the set , the relation is an equivalence relation.
- The relation is reflexive because .
- The relation is symmetric because . and do not have to be in .
- The relation is transitive because and .
Equivalence Classes
Given an equivalence relation on a set , the equivalence class is a subset of that contains all the elements that are equivalent to a given element . The equivalence class of is denoted by if the relation is clear, or if the relation is not clear. More formally, the equivalence class of is defined as:
Because of the reflexive, symmetric and transitive properties of the equivalence relation, the equivalence classes partition the set into subsets that must either be equal or disjoint. So for any elements :
- If , then
- Or if , then .
For the set and the equivalence relation , the equivalence classes are:
As we can see, and and therefore the equivalence classes partition the set .
Equivalence Classes as Modulo
interesting but not really important