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 ‘‘aba\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 ‘‘abmod5a\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 ‘‘aba\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:

312,  3≁14,  22,  1n for all nS.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)

    aba\sim b if a+b>7a+b>7;

  2. (ii)

    aba\sim b if a|ba|b;

  3. (iii)

    aba\sim b if abmod5a\equiv b\bmod 5.

Definition 6.1.3

A relation \sim on a non-empty set SS is reflexive if aaa\sim a for each aSa\in S; in symbols

(aS)(aa).(\forall\,a\in S)(a\sim a).
Example 6.1.4
  1. (i)

    a+a>7a+a>7 is true for some aa\in\mathbb{Z} (e.g., a=4a=4), but not for all aa\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 aa\in\mathbb{Z} because a=a1a=a\cdot 1, so the relation is reflexive.

  3. (iii)

    aamod5a\equiv a\bmod 5 is true for all aa\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,bSa,b\in S satisfy aba\sim b, we have bab\sim a; in symbols

(a,bS)((ab)(ba)).(\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 363\sim 6 because 6=236=2\cdot 3, but 6| 36\!\!\!\!\;\not\!\!\!\;|\!\;3, so 6≁36\not\sim 3, and thus the relation is not symmetric.

  3. (iii)

    If abmod5a\equiv b\bmod 5, then Lemma 5.1.7 implies that bamod5b\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,cSa,b,c\in S satisfy aba\sim b and bcb\sim c, we have aca\sim c; in symbols

(a,b,cS)(((ab)&(bc))(ac)).(\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 abmod5a\equiv b\bmod 5 and bcmod5b\equiv c\bmod 5, then acmod5a\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 aba\sim b if |a-b|1|a-b|\leqslant 1. Then:

  1. (i)

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

  2. (ii)

    If aba\sim b then |a-b|1|a-b|\leqslant 1, so |b-a|=|a-b|1|b-a|=|a-b|\leqslant 1 and bab\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 aba\sim b, |b-c|=1|b-c|=1 so bcb\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 aba\sim b if aba\leqslant b. Then:

  1. (i)

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

  2. (ii)

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

  3. (iii)

    If aba\leqslant b and bcb\leqslant c, then we know that aca\leqslant c. Thus the relation is transitive.

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

Smeaning of abreflexivesymmetrictransitivea+b>7××a|b×abmod5|a-b|1×ab×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.