Skip to main content
Logo image

Section 17.2 Operations on relations

Viewing relations as subsets of Cartesian products suggests ways to build new relations from old.
union (of relations R1,R2)
the relation where a(R1βˆͺR2)b means that at least one of aR1b or aR2b is true
intersection (of relations R1,R2)
the relation where a(R1∩R2)b means that both aR1b and aR2b are true
complement (of relation R)
the relation where aRcb means that aRb is not true
a RΜΈ b
alternative notation for aRcb

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 < and = on R, and let R be the union <βˆͺ=. Then xRy means that at least one of x<y or x=y is true. That is, R is the same as the relation ≀.

Example 17.2.3. Sibling relations.

Let H represent the set of all living humans. Let relations RF,RMβŠ†HΓ—H be defined by
  • aRFb if a,b have the same father; and
  • aRMb if a,b have the same mother.
Set RP=RF∩RM. Then aRPb 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 βŠ† on P(U). Then AβŠ†cB means that A is not a subset of B, which can only happen if some elements of A are not in B. In other words, AβŠ†cB means that A∩Bcβ‰ βˆ….
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 bRβˆ’1a means that aRb is true

Note 17.2.5.

  • As subsets of Cartesian products, if RβŠ†AΓ—B, then Rβˆ’1βŠ†BΓ—A, and (a,b)∈R if and only if (b,a)∈Rβˆ’1.
  • A relation R and its inverse Rβˆ’1 express the same relationship between elements of two sets A and B, just phrased in the opposite order. In logical terms, bRβˆ’1a⇔aRb.

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 h1Rh2 means human h1 is the parent of human h2. Then h2Rβˆ’1h1 means human h2 is the child of human h1. Both relations express the same information, but in a different order.

Example 17.2.7. Inverse of division relation.

Recall that ∣ is a relation on N>0 where m∣n means that m divides n. Then for the inverse relation, nβˆ£βˆ’1m means n is a multiple of m. Both relations express the same information, but in a different order.

Example 17.2.8. Inverse of logical equivalence.

Let L represent the set of all possible logical statements. We have a relation ≑ on L, where A≑B means that logical statement A involves the same statement variables and has the same truth table as logical statement B. Since A≑B if and only if B≑A, we conclude that the logical equivalence relation on 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 βˆ…βŠ†AΓ—B, so that aβˆ…b is always false
universal relation
the relation between sets A and B corresponding to the full subset U=AΓ—BβŠ†AΓ—B, so that aUb is always true