Skip to main content
Logo image

Applied Discrete Structures

Section 6.3 Properties of Relations

Subsection 6.3.1 Individual Properties

Consider the set B={1,2,3,4,6,12,36,48} and the relations “divides” and on B. We notice that these two relations on B have three properties in common:
  • Every element in B divides itself and is less than or equal to itself. This is called the reflexive property.
  • If we search for two elements from B where the first divides the second and the second divides the first, then we are forced to choose the two numbers to be the same. In other words, no two different numbers are related in both directions. The reader can verify that a similar fact is true for the relation on B. This is called the antisymmetric property.
  • Next if we choose three values (not necessarily distinct) from B such that the first divides the second and the second divides the third, then we always find that the first number divides the third. Again, the same is true if we replace “divides” with “is less than or equal to.” This is called the transitive property.
Relations that satisfy these properties are of special interest to us. Formal definitions of the properties follow.

Definition 6.3.1. Reflexive Relation.

Let A be a set and let r be a relation on A. Then r is reflexive if and only if ara for all aA.

Definition 6.3.2. Antisymmetric Relation.

Let A be a set and let r be a relation on A. Then r is antisymmetric if and only if whenever arb and ab then bra is false.
An equivalent condition for antisymmetry is that if arb and bra then a=b. You are encouraged to convince yourself that this is true. This condition is often more convenient to prove than the definition, even though the definition is probably easier to understand.
A word of warning about antisymmetry: Students frequently find it difficult to understand this definition. Keep in mind that this term is defined through an “If...then...” statement. The question that you must ask is: Is it true that whenever there are elements a and b from A where arb and ab, it follows that b is not related to a? If so, then the relation is antisymmetric.
Another way to determine whether a relation is antisymmetric is to examine (or imagine) its digraph. The relation is not antisymmetric if there exists a pair of vertices that are connected by edges in both directions.

Definition 6.3.3. Transitive Relation.

Let A be a set and let r be a relation on A. r is transitive if and only if whenever arb and brc then arc.

Subsection 6.3.2 Partial Orderings

Not all relations have all three of the properties discussed above, but those that do are a special type of relation.

Definition 6.3.4. Partial Ordering.

A relation on a set A that is reflexive, antisymmetric, and transitive is called a partial ordering on A. A set on which there is a partial ordering relation defined is called a partially ordered set or poset.

Example 6.3.5. Set Containment as a Partial Ordering.

Let A be a set. Then P(A) together with the relation (set containment) is a poset. To prove this we observe that the three properties hold, as discussed in Chapter 4.
  • Let BP(A). The fact that BB follows from the definition of subset. Hence, set containment is reflexive.
  • Let B1,B2P(A) and assume that B1B2 and B1B2 . Could it be that B2B1? No. There must be some element aA such that aB1, but aB2. This is exactly what we need to conclude that B2 is not contained in B1. Hence, set containment is antisymmetric.
  • Let B1,B2,B3P(A) and assume that B1B2 and B2B3 . Does it follow that B1B3 ? Yes, if aB1, then aB2 because B1B2. Now that we have aB2 and we have assumed B2B3, we conclude that aB3. Therefore, B1B3 and so set containment is transitive.
Figure 6.2.6 is the graph for the “set containment” relation on the power set of {1,2}.
Figure 6.2.6 is helpful insofar as it reminds us that each set is a subset of itself and shows us at a glance the relationship between the various subsets in P({1,2}). However, when a relation is a partial ordering, we can streamline a graph like this one. The streamlined form of a graph is called a Hasse diagram or ordering diagram. A Hasse diagram takes into account the following facts.
  • By the reflexive property, each vertex must be related to itself, so the arrows from a vertex to itself (called “self-loops”) are not drawn in a Hasse diagram. They are simply assumed.
  • By the antisymmetry property, connections between two distinct elements in a directed graph can only go one way, if at all. When there is a connection, we agree to always place the second element above the first (as we do above with the connection from {1} to {1,2}). For this reason, we can just draw a connection without an arrow, just a line.
  • By the transitive property, if there are edges connecting one element up to a second element and the second element up to a third element, then there will be a direct connection from the first to the third. We see this in Figure 6.2.6 with connected to {1}and then {1} connected to {1,2}. Notice the edge connecting to {1,2}. Whenever we identify this situation, remove the connection from the first to the third in a Hasse diagram and simply observe that an upward path of any length implies that the lower element is related to the upper one.
Using these observations as a guide, we can draw a Hasse diagram for on {1,2} as in Figure 6.3.6.
described in detail following the image
Hasse diagram for set containment on subsets of {1,2}
Figure 6.3.6. Hasse diagram for set containment on subsets of {1,2}

Example 6.3.7. Definition of a relation using a Hasse diagram.

Consider the partial ordering relation s whose Hasse diagram is Figure 6.3.8.
Hasse diagram for the pentagonal poset
Figure 6.3.8. Hasse diagram for the pentagonal poset
How do we read this diagram? What is A? What is s? What does the digraph of s look like? Certainly A={1,2,3,4,5} and 1s2, 3s4, 1s4, 1s5, etc., Notice that 1s5 is implied by the fact that there is a path of length three upward from 1 to 5. This follows from the edges that are shown and the transitive property that is presumed in a poset. Since 1s3 and 3s4, we know that 1s4. We then combine 1s4 with 4s5 to infer 1s5. Without going into details why, here is a complete list of pairs defined by s.
s={(1,1),(2,2),(3,3),(4,4),(5,5),(1,3),(1,4),(1,5),(1,2),(3,4),(3,5),(4,5),(2,5)}
A digraph for s is Figure 6.3.9. It is certainly more complicated to read and difficult to draw than the Hasse diagram.
Digraph for the pentagonal poset
Figure 6.3.9. Digraph for the pentagonal poset
A classic example of a partial ordering relation is on the real numbers, R. Indeed, when graphing partial ordering relations, it is natural to “plot” the elements from the given poset starting with the “least” element to the “greatest” and to use terms like “least,” “greatest,” etc. Because of this the reader should be forewarned that some texts use the symbol for arbitrary partial orderings. This can be quite confusing for the novice, so we continue to use generic letters r, s, etc.

Subsection 6.3.3 Equivalence Relations

Another common property of relations is symmetry.

Definition 6.3.10. Symmetric Relation.

Let r be a relation on a set A. r is symmetric if and only if whenever arb, it follows that bra.
Consider the relation of equality defined on any set A. Certainly a=b implies that b=a so equality is a symmetric relation on A.
Surprisingly, equality is also an antisymmetric relation on A. This is due to the fact that the condition that defines the antisymmetry property, a=b and ab, is a contradiction. Remember, a conditional proposition is always true when the condition is false. So a relation can be both symmetric and antisymmetric on a set! Again recall that these terms are not negatives of one other. That said, there are very few important relations other than equality that are both symmetric and antisymmetric.

Definition 6.3.11. Equivalence Relation.

A relation r on a set A is called an equivalence relation if and only if it is reflexive, symmetric, and transitive.
The classic example of an equivalence relation is equality on a set A. In fact, the term equivalence relation is used because those relations which satisfy the definition behave quite like the equality relation. Here is another important equivalence relation.

Example 6.3.12. Equivalent Fractions.

Let Z be the set of nonzero integers. One of the most basic equivalence relations in mathematics is the relation q on Z×Z defined by (a,b)q(c,d) if and only if ad=bc. We will leave it to the reader to, verify that q is indeed an equivalence relation. Be aware that since the elements of Z×Z are ordered pairs, proving symmetry involves four numbers and transitivity involves six numbers. Two ordered pairs, (a,b) and (c,d), are related if the fractions ab and cd are numerically equal.
Reflecting on these comments on fractions, we see that any fraction is a member of a set of equivalent fractions that can be exchanged for one another when doing arithmetic. This is an instance of an important property of all equivalence relations that motivates the following definition.

Definition 6.3.13. Equivalence Classes.

Let r be an equivalence relation on A, and aA. The equivalence class of a is the set, [a], of all elements to which a is related.
[a]={bA:arb}
The set of all equivalence classes with respect to r is denoted A/r, read “A mod r.
When we want to make it clear that an equivalence class defined by an element a is based on a specific equivalence relation r we would refer to it as “the equivalence class of a under r.” Whenever we encounter an equivalence relation on a set, we should immediately think about how the set is partitioned because of the following theorem.

Proof.

We leave it to the reader to prove this theorem. All three properties of an equivalence relation play a role in the proof.
Our next example involves the following fundamental relations on the set of integers.

Definition 6.3.15. Congruence Modulo n.

Let n be a positive integer, n2. We define congruence modulo n to be the relation n defined on the integers by
anbn(ab)
We observe the following about congruence modulo n:
  • This relation is reflexive, for if aZ, n(aa)ana.
  • This relation is symmetric. We can prove this through the following chain of implications.
    anbn(ab)For some kZ,ab=nkba=n(k)n(ba)bna.
  • Finally, this relation is transitive. We leave it to the reader to prove that if anb and bnc, then anc.
Frequently, you will see the equivalent notation ab(mod n) for congruence modulo n.

Example 6.3.16. Random Relations usually have no properties.

Consider the relation s described by the digraph in Figure 6.3.17. This was created by randomly selecting whether or not two elements from {a,b,c} were related or not. Convince yourself that the following are true:
  • This relation is not reflexive.
  • It is not antisymmetric.
  • Also, it is not symmetric.
  • It is not transitive.
  • Is s an equivalence relation or a partial ordering?
described in detail following the image
A random relation
Figure 6.3.17. Digraph of a random relation r
Not every random choice of a relation will be so totally negative, but as the underlying set increases, the likelihood any of the properties are true begins to vanish.

Exercises 6.3.4 Exercises

1.

Prove that Definition 6.1.5 on the set of positive integers is a partial ordering. Note that this will imply that the relation is a partial ordering on any subset of the positive integers as well.
Answer.
  1. “Divides” is reflexive because, if i is any positive integer, i1=i and so ii
  2. “Divides” is antisymmetric. Suppose i and j are two distinct positive integers. One of them has to be less than the other, so we will assume i<j. If ij, then for some positive integer k, where k1 we have ik=j. But this means that j1k=i and since 1k is not a positive integer, ji.
  3. “Divides” is transitive. If h, i and j are positive integers such that hi and ij, there must be two positive integers k1 and k2 such that hk1=i and ik2=j. Combining these equalities we get h(k1k2)=j and so hj.

2.

  1. Let B={a,b} and U=P(B). Draw a Hasse diagram for on U.
  2. Let A={1,2,3,6}. Draw a Hasse diagram for divides on A.
  3. Compare the graphs of parts a and b. What can you observe?
  4. Repeat the previous steps with B={a,b,c} and A={1,2,3,5,6,10,15,30}.

3.

Consider the relations defined by the digraphs in Figure 6.3.18.
  1. Determine whether the given relations are reflexive, symmetric, antisymmetric, or transitive. Try to develop procedures for determining the validity of these properties from the graphs,
  2. Which of the graphs are of equivalence relations or of partial orderings?
described in detail following the image
Some digraphs of relations for exercise 3 of section 6.3
Figure 6.3.18. Some digraphs of relations
Answer.
Table 6.3.19. Properties of relations defined by digraphs
Part reflexive? symmetric? antisymmetric? transitive?
i yes no no yes
ii yes no yes yes
iii no no no no
iv no yes yes yes
v yes yes no yes
vi yes no yes yes
vii no no no no
  1. Graphs ii and vi show partial ordering relations. Graph v is of an equivalence relation.

4.

Determine which of the following are equivalence relations and/or partial ordering relations for the given sets:
  1. A={ lines in the plane}, and r defined by xry if and only if x is parallel to y. Assume every line is parallel to itself.
  2. A=R and r defined by xry if and only if |xy|7.

5.

Consider the relation on {1,2,3,4,5,6} defined by r={(i,j):|ij|=2}.
  1. Is r reflexive?
  2. Is r symmetric?
  3. Is r transitive?
  4. Draw a graph of r.
Answer.
  1. No, since 11∣=02, for example
  2. Yes, because ij∣=ji.
  3. No, since 24∣=2 and 46∣=2, but 26∣=42, for example.
described in detail following the image
Solution to number 5c of section 6.3
Figure 6.3.20.

6.

Let A={0,1,2,3} and let
r={(0,0),(1,1),(2,2),(3,3),(1,2),(2,1),(3,2),(2,3),(3,1),(1,3)}
  1. Verify that r is an equivalence relation on A.
  2. Find [a] for each element aA, and observe that {[a]aA} forms a partition of A.

7.

Let r be an equivalence relation on an arbitrary nonempty set A. Prove that the set of all equivalence classes under r constitutes a partition of A.
Answer.
Let a be any element of A. a[a] since r is reflexive, so each element of A is in some equivalence class. Therefore, the union of all equivalence classes equals A. Next we show that any two equivalence classes are either identical or disjoint and we are done. Let [a] and [b] be two equivalence classes, and assume that [a][b]. We want to show that [a]=[b]. To show that [a][b], let x[a]. x[a]arx. Also, there exists an element, y, of A that is in the intersection of [a] and [b] by our assumption. Therefore,
arybryaryyrbr is symmetricarb transitivity of r
Next,
arxarbxraarbxrbbrxx[b]
Similarly, [b][a].

8.

Define r on the power set of some set U by ArB|A|=|B|. Prove that r is an equivalence relation. What are the equivalence classes under r if U={1,2,3}?

9.

Consider the following relations on Z8={0,1,...,7}. Which are equivalence relations? For the equivalence relations, list the equivalence classes.
  1. arb iff the English spellings of a and b begin with the same letter.
  2. asb iff ab is a positive integer.
  3. atb iff ab is an even integer.
Answer.
  1. Equivalence Relation, [0]={0},[1]={1},[2]={2,3}=[3],[4]={4,5}=[5], and [6]={6,7}=[7]
  2. Not an Equivalence Relation.
  3. Equivalence Relation, [0]={0,2,4,6}=[2]=[4]=[6] and [1]={1,3,5,7}=[3]=[5]=[7]

10.

Let n be a positive integer greater than or equal to two.
  1. Prove that congruence modulo n is transitive.
  2. What are the equivalence classes under congruence modulo 2? How many distinct equivalence classes are there?
  3. What are the equivalence classes under congruence modulo 10? How many distinct equivalence classes are there?

11.

In this exercise, we prove that implication is a partial ordering. Let A be any set of propositions, no two of which is equivalent to one another.
  1. Verify that qq is a tautology, thereby showing that is a reflexive relation on A.
  2. Prove that is antisymmetric on A. Note: we do not use = when speaking of propositions, but rather equivalence, .
  3. Prove that is transitive on A.
  4. Given that qi is the proposition n<i on N, draw the Hasse diagram for the relation on {q1,q2,q3,}.
Answer.
  1. The proof follows from the biconditional equivalence in Table 3.4.4.
  2. Apply the chain rule.
described in detail following the image
Solution to number 11 of Section 6.3
Figure 6.3.21.
You have attempted of activities on this page.