Professional Documents
Culture Documents
General Relation:
Relations are sets of ordered pairs. (binary relations)
For example:
{(2, 12), (3, 12), (4, 12), (6, 12), (3, 15), (5, 15) }
The divisibility relation
≤ relation
Subset relation
Authorship Relation:
A relation or mapping from a set A to a set B is a subset of A × B.
Another example includes: { …., {G. Chartrand, Introduction to Graph Theory}, {P. Zhang,
Introduction to Graph Theory}, {C. de Matas, Mazes for the Young and Old}, {A. Samuel, Mazes
for the Young and Old}, {J. Austen, Emma}, {J. Austen, Pride and Prejudice}, … }
This is the Authorship relation which shows a mapping from set of authors to set of books.
Infix Notation:
If R is a relation from a set A to a set B we can write (a, b) ∈ R, or more usually we write:
a R b.
Equality Relation:
If R is a relation from A to A, we say that R is a relation on A.
Equality relation:
Let A = {1, 2, 3, 4, 5}
Equality relation on A is {(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)}.
Properties of Relations:
A relation R on a set A is reflexive iff a R a for all a ∈ A.
A relation R on a set A is symmetric iff a R b ⇒ b R a, for any a, b ∈ A.
A relation R on a set A is transitive iff a R b and b R c ⇒ a R c, for any a, b, c ∈ A.
Equivalence Relations:
A relation which is reflexive, symmetric and transitive is called an equivalence relation.
For example:
Let ℤ be the set of integers and let n be a positive integer.
The relation ≡ (mod n), “congruence modulo n” on ℤ is defined by a ≡ b (mod n) if and only if
a - b is divisible by n.
Important Theorem:
For a given value of n, congruence (mod n) is an equivalence relation.
Proof:
For any x ∈ ℤ, x – x = 0 which is divisible by n, so x ≡ x (mod n) for any x ∈ ℤ.
Therefore, congruence (mod n) is reflexive.
If x ≡ y (mod n), then x – y = kn where k is an integer ⇒ y – x = (-k)n ⇒ y ≡ x (mod n).
Therefore, congruence (mod n) is symmetric.
If x ≡ y (mod n) and y ≡ z (mod n) , then x – y = an and y – z = bn where a and b are integers ⇒
x – z = (x - y) + (y - z) = an + bn = (a + b)n, a multiple of n ⇒ x ≡ z (mod n).
Therefore, congruence (mod n) is transitive.
Hence, congruence (mod n) is an equivalence relation.
Equivalence Classes:
Let R be an equivalence relation on a set A. For any element x ∈ A, the equivalence class of x is
the set of elements that are related to x. We denote the equivalence class of x by [x].
This means, [x] = { 𝑦 ∈ A | y R x}.
[1] = {1, 2, 3}
[2] = {1, 2, 3}
[3] = {1, 2, 3}
[4] = {4, 5}
[5] = {4, 5}
[6] = {6}
We can see the distinct equivalent classes {1, 2, 3}, {4, 5}, {6} partition A.
Important Theorem:
If R is an equivalence relation on a set A, then R induces a partition on A, i.e. the
equivalence classes partition A.
Proof:
For any a ∈ A, a ∈ [a]. So each element of A belongs to at least one equivalence class. A is,
therefore, the union of the equivalence classes. Suppose that a belongs to two equivalence
classes, say a ∈ [b] and a ∈ [c].
Then a R b and a R c.
⇒ b R a since R is symmetric
So, b R a and a R c
⇒ b R c since R is transitive.
We now show that [b] = [c].
Let x ∈ [b], then x R b. So x R b and b R c ⇒ x R c since R is transitive. ⇒ x R c ⇒ x ∈ [c].
Therefore, [b] ⊆ [c]. Similarly, we can show that [c] ⊆ [b]. Hence, [b] = [c].
Therefore a cannot belong to two distinct equivalence classes.
Therefore, the equivalence classes partition A.
(The equivalence classes are either equal or disjoint.)
Note: In any month, the day numbers for each day of the week per week is an equivalence class
depending on what day of the week.