Ordered sets and relations
The reason why ordered pairs, and ordered sets in general, are useful, is because they allow us to encode more structured information than just normal, unordered sets. For example, suppose we want to represent the fact that for three people, Jamal, Kerry, and Zoltan, some are friends with one another, and some aren’t. For each person, we can create the set of friends of that particular person with normal sets.
Suppose the following. Jamal is friends with Kerry, Zoltan is friends with Jamal, but Kerry is not friends with Zoltan. For each person, we may specify the set of friends they have, so that , and . These would be the properties ‘is the friend of Jamal’, ‘is the friend of Kerry’ and ‘is the friend of Zoltan’, respectively.
However, with ordered sets, we can do all of this in one set, representing the relation ‘is friends with’. First, we can immediately specify: Note that we included, for both Jamal and Kerry, and Jamal and Zoltan, the two names in both configurations. This is useful, since we may desire to add lopsided relations that are not mutual. For example, suppose we want to represent that Jamal is friends with Kerry, and Kerry is friends with Jamal, Zoltan is friends with Jamal and Jamal is friends with Zoltan, and also that Kerry thinks Zoltan is her friend, but Zoltan does not view Kerry as a friend. Then, we can encode this as: Here, represents the ‘is friends with’ relation again (in a different situation). But using this blueprint, any relation can be represented, starting from such pairs to more elaborate ones, like ‘ is in between and ’, which would be a set of triples, and so on.
Related to sets of ordered pairs are three important notions that are usually specified. First, a relation may be reflexive. This means that for any (that occurs in the ‘field’ of a relation , see below), . For example, if encodes the ‘loves’ relation, and everyone loves themselves, then for every person , . This way, would be reflexive. On the other hand, if there is a person such that , then would not be reflexive, because there would be a person who does not love themself.
Second, a relation may be symmetric, if whenever , as well. This was already illustrated above with our three friends, Jamal, Kerry, and Zoltan. Specifically, was a relation that was symmetric, since whenever was a friend of , was a friend of . On the other hand, was not symmetric, since there was a person, Kerry, who was friends with Zoltan, but Zoltan was not friends with Kerry.
Finally, a relation may be transitive. Transitive relations are everywhere in logic, though they are not always apparent. A transitive relation is more elaborate than the above two, since it is specified between three things. Namely, a transitive relation is such that if , and , then . One relation that is usually transitive is airplane travel with connections. Suppose you can travel by plane from New York to Los Angeles, and from Los Angeles to Tokyo. Then, that also means that you can travel from New York to Tokyo (with a connecting flight in Los Angeles). In other words if represents the set of all pairs of cities reachable by air travel, if , and , then . Since this holds for every three cities, the relation is transitive. Incidentally, this relation is also symmetric, since flights go back and forth (or perhaps in larger circles).
If you have taken an introductory logic course before, you may remember the connective ‘’, standing for ‘if …, then …’. You may also remember that in your proof system, you could show that if you had as premises and , then you could derive . Some systems even have a dedicated rule for this, called the ‘hypothetical syllogism’ or ‘chain rule’. Now all this rule says is that is transitive! In other words, if you take the set of all pairs , of propositions where , and , then (at least in classical logic).
Note that relations can have many ‘places’, meaning they may be said to hold between several different things. A -place relation, as noted above, is a set of pairs, since it holds (or does not hold) between two things. But you may take other relations like ‘ is in between, and ’, which would be a -place relation, and its representation would be a set of triples , because it holds (or does not hold) between 3 things. So in general, an -place relation will be identified with a set of -tuples, since it holds (or does not hold) between different things. Notice that in each case, an -place relation is a subset of some set taken times with itself, i.e., .
Definition 3.3. Let be any set. An -place relation defined on is a subset of the Cartesian product , that is, the product of taken times with itself. In such cases, we call the field of .
If is a two-place relation with field , then:
-
if for all , , then is reflexive;
-
if for all , if , then , is symmetric;
-
if for all , if , then , is transitive.
If the relation is reflexive, symmetric, and transitive, we say it is an equivalence relation.
Exercise 3.6. Determine for each claim whether it is true or false. Don’t forget to explain your reasoning, using the above definitions! Note: these are more philosophical questions regarding the exact meaning of some relations expressed in English. There may not be a single correct answer for each.
-
the relation ‘ is related to by blood’ is transitive;
-
the relation ‘ is an ancestor of ’ is transitive;
-
the relation ‘ is right of ’ is transitive on a 1-dimensional plane;
-
the relation ‘ is right of ’ is transitive on a 2-dimensional plane;
-
the relation ‘ is a brother of ’ is symmetric;
-
the relation ‘ is a sibling of ’ is symmetric;
-
the identity relation ‘’ is reflexive, symmetric, and transitive.