Home page for accesible maths 6 Equivalence relations and their applications

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

6.1 Introduction to relations

We begin with a fundamental definition.

Definition 6.1.1

Let SS be a non-empty set. A relation on SS is a statement concerning pairs of elements of SS, which may be true for some pairs and false for others.

Example 6.1.2
  1. (i)

    If S=ℝS=\mathbb{R}, we could take the relation ‘‘a⩽ba\leqslant b’’ on SS.

  2. (ii)

    If S=ℝS=\mathbb{R}, we could take the relation ‘‘|a|=|b||a|=|b|’’ on SS.

  3. (iii)

    If S=ℤS=\mathbb{Z}, we could take the relation ‘‘a|ba|b’’ on SS.

  4. (iv)

    If S=ℕS=\mathbb{N}, we could take the relation ‘‘aa has one more prime factor than bb’’ on SS.

  5. (v)

    If S=ℤS=\mathbb{Z}, we could take the relation ‘‘a≡bmod5a\equiv b\bmod 5’’ on SS.

  6. (vi)

    If SS is the set of first-year MATH modules taught here, we could take the relation ‘‘aa is lectured earlier in the year than bb’’ on SS.

  7. (vii)

    If SS is the set of all people in the world, we could take the relation ‘‘aa is related (in the usual sense of the word) to bb’’ on SS.

In general, we write ‘‘a∼ba\sim b’’ to mean ‘‘aa is related to bb’’ (that is, the relation holds for the pair (a,b)(a,b)), and we write ‘‘a≁ba\not\sim b’’ to mean ‘‘aa is not related to bb’’ (i.e., the relation does not hold for the pair (a,b)(a,b)). For instance, in Example 6.1.2(iii) above, we have the following:

3∼12,  3≁14,  2∼2,  1∼n⁢ for all ⁢n∈S.3{}\sim{}12,\qquad 3{}\not\sim{}14,\qquad 2{}\sim{}2,\qquad 1{}\sim{}n\hbox{ % for all }n\in S.

There are certain properties that a relation may or may not possess. We shall define each in turn; for convenience we take three examples of relations on the set S=ℤS=\mathbb{Z}, and for each we decide whether or not it has the property, giving either a (short) proof that it does or exhibiting a case which shows that it does not (a counterexample). The three examples we take are the following:

  1. (i)

    a∼ba\sim b if a+b>7a+b>7;

  2. (ii)

    a∼ba\sim b if a|ba|b;

  3. (iii)

    a∼ba\sim b if a≡bmod5a\equiv b\bmod 5.

Definition 6.1.3

A relation ∼\sim on a non-empty set SS is reflexive if a∼aa\sim a for each a∈Sa\in S; in symbols

(∀a∈S)(a∼a).(\forall\,a\in S)(a\sim a).
Example 6.1.4
  1. (i)

    a+a>7a+a>7 is true for some a∈ℤa\in\mathbb{Z} (e.g., a=4a=4), but not for all a∈ℤa\in\mathbb{Z}; indeed, it is false for a=1a=1 because 1+1=2<71+1=2<7. Hence the relation is not reflexive.

  2. (ii)

    a|aa|a is true for all a∈ℤa\in\mathbb{Z} because a=a⋅1a=a\cdot 1, so the relation is reflexive.

  3. (iii)

    a≡amod5a\equiv a\bmod 5 is true for all a∈ℤa\in\mathbb{Z} because 55 divides a-a=0a-a=0, so the relation is reflexive.

This property actually requires the relation to hold between certain pairs of elements of SS (those where the two elements are the same). The other properties are a little different; they require that if certain pairs of elements are related, then something must follow.

Definition 6.1.5

A relation ∼\sim on a non-empty set SS is symmetric if, whenever a,b∈Sa,b\in S satisfy a∼ba\sim b, we have b∼ab\sim a; in symbols

(∀a,b∈S)((a∼b)⇒(b∼a)).(\forall\,a,b\in S)\bigl((a\sim b)\Rightarrow(b\sim a)\bigr).
Example 6.1.6
  1. (i)

    If a+b>7a+b>7, then certainly b+a>7b+a>7; so the relation is symmetric.

  2. (ii)

    If a|ba|b it need not be the case that b|ab|a; indeed, we have 3∼63\sim 6 because 6=2⋅36=2\cdot 3, but 6| 36\!\!\!\!\;\not\!\!\!\;|\!\;3, so 6≁36\not\sim 3, and thus the relation is not symmetric.

  3. (iii)

    If a≡bmod5a\equiv b\bmod 5, then Lemma 5.1.7 implies that b≡amod5b\equiv a\bmod 5; so the relation is symmetric.

The third property concerns trios of elements.

Definition 6.1.7

A relation ∼\sim on a non-empty set SS is transitive if, whenever a,b,c∈Sa,b,c\in S satisfy a∼ba\sim b and b∼cb\sim c, we have a∼ca\sim c; in symbols

(∀a,b,c∈S)(((a∼b)&(b∼c))⇒(a∼c)).(\forall\,a,b,c\in S)\bigl(\bigl((a\sim b)\ \&\ (b\sim c)\bigr)\Rightarrow(a% \sim c)\bigr).
Example 6.1.8
  1. (i)

    If a+b>7a+b>7 and b+c>7b+c>7, we cannot deduce that a+c>7a+c>7, as the example a=3a=3, b=6b=6 and c=2c=2 shows; so the relation is not transitive.

  2. (ii)

    If a|ba|b and b|cb|c, Proposition 4.1.6(i) gives that a|ca|c; so the relation is transitive.

  3. (iii)

    If a≡bmod5a\equiv b\bmod 5 and b≡cmod5b\equiv c\bmod 5, then a≡cmod5a\equiv c\bmod 5 by Lemma 5.1.9; so the relation is transitive.

We now take two further examples and examine them for all our three properties together.

Example 6.1.9

Define the relation ∼\sim on ℝ\mathbb{R} by a∼ba\sim b if |a-b|⩽1|a-b|\leqslant 1. Then:

  1. (i)

    For each a∈ℝa\in\mathbb{R} we have |a-a|=0⩽1|a-a|=0\leqslant 1, so a∼aa\sim a. Thus the relation is reflexive.

  2. (ii)

    If a∼ba\sim b then |a-b|⩽1|a-b|\leqslant 1, so |b-a|=|a-b|⩽1|b-a|=|a-b|\leqslant 1 and b∼ab\sim a. Thus the relation is symmetric.

  3. (iii)

    If a=2a=2, b=1b=1 and c=0c=0, then |a-b|=1|a-b|=1 so a∼ba\sim b, |b-c|=1|b-c|=1 so b∼cb\sim c, but |a-c|=2|a-c|=2 so a≁ca\not\sim c. Thus the relation is not transitive.

Example 6.1.10

Define the relation ∼\sim on ℝ\mathbb{R} by a∼ba\sim b if a⩽ba\leqslant b. Then:

  1. (i)

    For all a∈ℝa\in\mathbb{R} we have a⩽aa\leqslant a, so a∼aa\sim a — thus the relation is reflexive.

  2. (ii)

    If a⩽ba\leqslant b, we cannot deduce that b⩽ab\leqslant a, as the example a=1a=1 and b=3b=3 shows. Thus the relation is not symmetric.

  3. (iii)

    If a⩽ba\leqslant b and b⩽cb\leqslant c, then we know that a⩽ca\leqslant c. Thus the relation is transitive.

We summarize our findings so far and consider further examples in the following table.

Smeaning of ⁢a∼breflexivesymmetrictransitiveℤa+b>7×√×ℤa|b√×√ℤa≡bmod5√√√ℝ|a-b|⩽1√√×ℝa⩽b√×√ℝa>b××√ℤ6|(a+b)×√×MATH111 studentsa⁢ is sat next to ⁢b×√×MATH111 studentsa⁢ is in bb’s college√√√\begin{array}[]{|c|c|c|c|c|}\hline S&\hbox{meaning of }a\sim b&\hbox{reflexive% }&\hbox{symmetric}&\hbox{transitive}\\ \hline\mathbb{Z}&a+b>7&\times&\surd&\times\\ \mathbb{Z}&a|b&\surd&\times&\surd\\ \mathbb{Z}&a\equiv b\bmod 5&\surd&\surd&\surd\\ \mathbb{R}&|a-b|\leqslant 1&\surd&\surd&\times\\ \mathbb{R}&a\leqslant b&\surd&\times&\surd\\ \mathbb{R}&a>b&\times&\times&\surd\\ \mathbb{Z}&6|(a+b)&\times&\surd&\times\\ \hbox{MATH111 students}&a\hbox{ is sat next to }b&\times&\surd&\times\\ \hbox{MATH111 students}&a\hbox{ is in $b$'s college}&\surd&\surd&\surd\\ \hline\end{array}

In the next section we shall consider a special type of relation which is defined in terms of these properties.