Skip to main content

Section 17.2 Operations on relations

Viewing relations as subsets of Cartesian products suggests ways to build new relations from old.
union (of relations \(R_1,R_2 \))
the relation where \(a \mathrel{(R_1 \union R_2)} b \) means that at least one of \(a \mathrel{R_1} b \) or \(a \mathrel{R_2} b \) is true
intersection (of relations \(R_1,R_2 \))
the relation where \(a \mathrel{(R_1 \intersection R_2)} b \) means that both \(a \mathrel{R_1} b \) and \(a \mathrel{R_2} b \) are true
complement (of relation \(R \))
the relation where \(a \mathrel{\cmplmnt{R}} b \) means that \(a \mathrel{R} b \) is not true
\(a \nmathrel{R} b \)
alternative notation for \(a \mathrel{\cmplmnt{R}} b \)

Note 17.2.1.

Considering relations as subsets of Cartesian products, the above relation operations mean precisely the same thing as the corresponding set operations.

Example 17.2.2. Union of β€œless than” and β€œequal to” relations.

Consider the relations \(\mathord{\lt} \) and \(\mathord{=} \) on \(\R \text{,}\) and let \(R \) be the union \(\mathord{\lt} \cup \mathord{=} \text{.}\) Then \(x \mathrel{R} y \) means that at least one of \(x \lt y \) or \(x = y \) is true. That is, \(R \) is the same as the relation \(\mathord{\le} \text{.}\)

Example 17.2.3. Sibling relations.

Let \(H \) represent the set of all living humans. Let relations \(R_F, R_M \subseteq H \cartprod H \) be defined by
  • \(a \mathrel{R_F} b \) if \(a,b \) have the same father; and
  • \(a \mathrel{R_M} b \) if \(a,b \) have the same mother.
Set \(R_P = R_F \intersection R_M \text{.}\) Then \(a \mathrel{R_P} b \) means that \(a,b \) have the same parents.

Example 17.2.4. Complement of the subset relation.

Let \(U \) be a universal set and consider the relation \(\mathord{\subseteq} \) on \(\powset{U} \text{.}\) Then \(A \mathrel{\cmplmnt{\mathord{\subseteq}}} B \) means that \(A \) is not a subset of \(B \text{,}\) which can only happen if some elements of \(A \) are not in \(B \text{.}\) In other words, \(A \mathrel{\cmplmnt{\mathord{\subseteq}}} B \) means that \(A \cap \cmplmnt{B} \ne \varnothing \text{.}\)

Aside: Careful.

Unlike functions, which can only be reversed if bijective, every relation can be reversed by simply stating the relationship in the reverse order.
inverse (of a relation \(R \))
the relation where \(b \mathrel{\inv{R}} a \) means that \(a \mathrel{R} b \) is true

Note 17.2.5.

  • As subsets of Cartesian products, if \(R \subseteq A \cartprod B \text{,}\) then \(\inv{R} \subseteq B \cartprod A \text{,}\) and \((a,b) \in R \) if and only if \((b,a) \in \inv{R} \text{.}\)
  • A relation \(R \) and its inverse \(\inv{R} \) express the same relationship between elements of two sets \(A \) and \(B \text{,}\) just phrased in the opposite order. In logical terms, \({b \mathrel{\inv{R}} a} \lgcequiv {a \mathrel{R} b} \text{.}\)

Example 17.2.6. Parent/child relations.

Let \(H \) represent the set of all living humans, and let \(R \) represent the relation on \(H \) where \(h_1 \mathrel{R} h_2 \) means human \(h_1 \) is the parent of human \(h_2 \text{.}\) Then \(h_2 \mathrel{\inv{R}} h_1 \) means human \(h_2 \) is the child of human \(h_1 \text{.}\) Both relations express the same information, but in a different order.

Example 17.2.7. Inverse of division relation.

Recall that \(\mid \) is a relation on \(\posset{\N} \) where \(m \mid n \) means that \(m \) divides \(n \text{.}\) Then for the inverse relation, \(n \inv{\mid} m \) means \(n \) is a multiple of \(m \text{.}\) Both relations express the same information, but in a different order.

Example 17.2.8. Inverse of logical equivalence.

Let \(\mathscr{L} \) represent the set of all possible logical statements. We have a relation \(\equiv \) on \(\mathscr{L} \text{,}\) where \(A \equiv B \) means that logical statement \(A \) involves the same statement variables and has the same truth table as logical statement \(B \text{.}\) Since \(A \equiv B \) if and only if \(B \equiv A \text{,}\) we conclude that the logical equivalence relation on \(\mathscr{L} \) is its own inverse.
There are two more set-theoretic ideas we can reinterpret as relations.
empty relation
the relation between sets \(A \) and \(B \) corresponding to the empty subset \(\emptyset \subseteq A \cartprod B \text{,}\) so that \(a \mathrel{\emptyset} b \) is always false
universal relation
the relation between sets \(A \) and \(B \) corresponding to the full subset \(U = {A \cartprod B} \subseteq {A \cartprod B} \text{,}\) so that \(a \mathrel{U} b \) is always true