The Timpson Lyceum seal

The Timpson Lyceum · Discrete Math (2025)

Relations - Lecture 7 (Discrete Math)

Relations – Lecture 7

Overview

This lecture introduces relations as the basic set-theoretic objects that underlie familiar ideas like "less than or equal to," "divides," and "congruent to." A relation is nothing more than a set of ordered pairs, and once we adopt that view we can write notation for membership, define what it means for a relation to live "on" or "between" sets, form the inverse of a relation, and classify relations by five standard properties. These tools let us treat everyday comparisons with full rigor and set the stage for studying orderings and equivalences. By the end you should be able to test whether a set is a relation, take inverses, and decide which of the five properties any given relation has.

Key Concepts

Relation. A relation is simply a set of ordered pairs. To check whether a set is a relation, inspect its elements: if every element is an ordered pair, the set is a relation.

Membership notation. If a relation is named RR, we write x R yx\,R\,y to mean (x,y)∈R(x,y)\in R, read "xx is related to yy." To deny it, strike the symbol: x ̸ ⁣R yx\,\not\!R\,y means (x,y)∉R(x,y)\notin R. Order matters, so (1,2)∈R(1,2)\in R does not imply (2,1)∈R(2,1)\in R.

Defining a relation by a rule. A relation can be specified by a condition rather than listed. For example, Q={(x,y):x,y∈Z and y−x∈N}.Q=\{(x,y): x,y\in\mathbb{Z}\ \text{and}\ y-x\in\mathbb{N}\}. Here Z\mathbb{Z} is the integers and N={0,1,2,3,… }\mathbb{N}=\{0,1,2,3,\dots\} the naturals. Since y−x≥0y-x\ge 0 exactly when x≤yx\le y, the relation QQ is the usual ≤\le on the integers — a familiar comparison rewritten as an explicit set of ordered pairs.

Relation on a set / from one set to another. Let AA and BB be sets.

A single relation may satisfy several, one, or none of these descriptions, depending on its pairs and the sets involved. The empty relation qualifies on/from any sets, vacuously.

Inverse of a relation. The inverse R−1R^{-1} is obtained by swapping every ordered pair: R−1={(y,x):(x,y)∈R}.R^{-1}=\{(y,x):(x,y)\in R\}. The "−1-1" is notation, not an exponent or reciprocal. Some relations equal their own inverse (e.g. {(1,1),(2,2)}\{(1,1),(2,2)\}). The inverse of ≤\le is ≥\ge. Taking the inverse twice returns the original: (R−1)−1=R(R^{-1})^{-1}=R.

Five properties of a relation RR on a set AA.

Sample classifications (intuition builders):

Worked Example

Claim. For any relation RR, (R−1)−1=R(R^{-1})^{-1}=R.

We prove the two sets contain exactly the same ordered pairs, using the inverse rule (a,b)∈S−1  ⟺  (b,a)∈S(a,b)\in S^{-1}\iff(b,a)\in S at each step.

(x,y)∈R  ⟹  (y,x)∈R−1  ⟹  (x,y)∈(R−1)−1,(x,y)∈(R−1)−1  ⟹  (y,x)∈R−1  ⟹  (x,y)∈R.\begin{aligned} (x,y)\in R \;&\Longrightarrow\; (y,x)\in R^{-1} \;\Longrightarrow\; (x,y)\in (R^{-1})^{-1}, \\ (x,y)\in (R^{-1})^{-1} \;&\Longrightarrow\; (y,x)\in R^{-1} \;\Longrightarrow\; (x,y)\in R. \end{aligned}

The first line shows R⊆(R−1)−1R\subseteq(R^{-1})^{-1}; the second shows (R−1)−1⊆R(R^{-1})^{-1}\subseteq R. Since each set contains the other, (R−1)−1=R(R^{-1})^{-1}=R. ■\qquad\blacksquare

Summary