8.3 Relations
Now we have more examples to play with, we return to thinking about “sameness" more formally. But in order to conclude whether two objects are the same, we need a criteria against which they are being compared.
Definition 8.16 (Relation).
A relation on the set is a subset of the product set . If such that then we write and we say “ is related to under ”.
Even though the relation itself is a set, for some common relations, we may use a particular symbol in place of the set name to indicate when one element is related to another. One example of this is the strict inequality.
Example 8.17.
The strict inequality is an example of a relation on , defined by the set
For example, (so ) but (so ). In particular, we say that is incomparable to itself under the relation .
The relation “” on is another example: two real numbers are related via “” if they are equal. Another example is the relationship that one real number is at most another, and we write when we want to say and are related in this way. A less mathematical example is the relation “daughter of”, so for example “ is the daughter of ”.
Exercise 8.18.
Express the relations and “daughter of” as sets.
Solution (please try for yourself before looking)
For , we can consider
For “daughter of”, let be the set of all people. Then:
Exercise 8.19.
Can you think of a relation on a set such that every pair of elements in are related under ?
Solution (please try for yourself before looking)
There are many possible relations here but one of the simplest is
8.3.1 Graphically representing relations
Any function can be used to define a relation. Let be a function and consider the set . Then we consider the following relation on :
Limiting ourselves to real functions for a moment, the graph of the function is a subset of which graphically represents the associated function.
We can extend this: you may be familiar with graphically representing inequalities to show subsets of the Cartesian plane. For example, the inequality can be represented by the blue region below:
Exercise 8.20.
Represent another relation on graphically on the Cartesian plane.
Solution (please try for yourself before looking)
By shading the area below the line in the above graph instead, we obtain a graphical representation of the inequality on .
Exercise 8.21.
The two images in Figure 8.6 represent familiar relations on as a shaded region of . What are the relations?
Solution (please try for yourself before looking)
For , the first figure in Figure 8.6 demonstrates the relation while the second represents .
We can also use directed graphs (with nodes and edges22 2 Don’t worry if you haven’t seen graphs like this before.) to represent a relation on a finite set. The nodes of the graph are the elements in the set while the (directed) edges are placed between nodes whose elements are related to each other. So if , where is the relation we want to represent, then we would draw an arrow from the node to the node .
For example, consider the set and the relation on . We can represent this as in Figure 8.7.
8.3.2 Properties of Relations
Given a relation, there are several properties which we are interested in:
Definition 8.22 (Properties of Relations).
Let be a set and be a relation on . We say is:
-
•
reflexive if for each , ;
-
•
symmetric if for every such that , then ;
-
•
transitive if for all such that and , then .
Example 8.23.
The relation “” on is a reflexive relation as for all , . It is also symmetric as if , then . Finally, it is transitive as if and , then we have .
Proving a relation has (or does not have) one of these properties usually involves using both the definition of the property and relation carefully.
Lemma 8.24.
The relation on is transitive.
Proof.
To show is transitive, we need to show that if and , then for some . Therefore, we assume and .
By definition of (see Example 8.17), we have and where are positive real numbers. Then, substituting for , we obtain
where . As the sum of two positive real numbers is also a positive real number, is a positive real number so, by definition of , we also have .
Therefore, is transitive.
Exercise 8.25.
Find counterexamples to show that is neither reflexive nor symmetric on .
Solution (please try for yourself before looking)
For example, so is not reflexive. Also, even though , we have , and thus is not symmetric.
Lemma 8.26.
The relation on the set consisting of all sets is transitive and reflexive.
Proof.
To show is transitive, we need to show that if and , then for some . Therefore, we assume and .
By definition of (Definition 4.7), if , then every element in also belongs to . Similarly, if , then every element in belongs to the set . Therefore, all the elements in the set , are also in the set so must also be in set meaning, by Definition 4.7, and thus is a transitive relation.
For reflexivity, we need to show that for all sets , . Every element of the set is an element of the set so, by Definition 4.7, . Therefore is reflexive.
Note that this proof only uses the definition of the and the definition of the relation property we are trying to show.
Exercise 8.27.
Prove that is not symmetric.
Solution (please try for yourself before looking)
As a counterexample, consider the sets . Then but because . So is not symmetric.
Lemma 8.28.
The relation on is symmetric.
Proof.
To show is symmetric, we need to show that for all , then if , we have .
Assume , then there exists a non-zero number such that . Rearranging this, we have . As is a non-zero number, then is also a non-zero number so . This means is symmetric.
Exercise 8.29.
Find counterexamples to show that is neither reflexive nor transitive on .
Solution (please try for yourself before looking)
Since , we do not have and thus is not reflexive on . Also, even though we have and , we don’t have . Thus, is not transitive on .