Skip to main content
\( \newcommand{\lt}{ < } \newcommand{\gt}{ > } \newcommand{\amp}{ & } \)

Section6Relations

Imagine that you are in 30-year high school reunion gathering and all guests are your high school classmates. Some of your high school classmate fell in love with others 30 years ago. We can describe this social dynamic by means of a mathematical concept called relation. We form an ordered pair (John, Emily) to mean that John fell in love with Emily 30 years ago. (Is this the same as (Emily, John)?)

Friends in Facebook can also be described using relation as well. We form an order pair (John, Emily) to meant that Emily is a friend of John in Facebook. (Is this the same as (Emily, John)?)

Subsection6.1Relations

Definition6.1

Let \(A\) and \(B\) be two sets. A relation \(\mathcal{R}\) between \(A\) and \(B\) is a subset of \(A \times B\). We write \((a,b) \in \mathcal{R}\) or \(a \mathcal{R} b\) if \((a,b)\) is an element of the relation. We say that \(a\) is \(\mathcal{R}\)-related to \(b\) or simply just \(a\) is related to \(b\) if the relation \(\mathcal{R}\) is clear from the context. In the event that \(A = B\), we also say that \(\mathcal{R}\) is a relation on \(A\).

Figure6.4A telephone keypad
Definition6.7

Let \(\mathcal{R}\) be a relation on two sets \(A\) and \(B\). For any element \(a\) in \(A\), the relation class of \(a\), denoted by \([a]\), is a subset of \(B\) defined by \begin{equation*}[a]= \{ b \in B \; | \; a\mathcal{R}b\}.\end{equation*}

Subsection6.2Equivalence Relations

Definition6.12

Let \(\mathcal{R}\) be a relation on a set \(A\).

  1. \(\mathcal{R}\) is reflexive provided that for all \(a \in A\), we have \(a\mathcal{R}a\).
  2. \(\mathcal{R}\) is symmetric provided that for all \(a, b \in A\), if \(a\mathcal{R}b\), then \(b\mathcal{R}a\).
  3. \(\mathcal{R}\) is antisymmetric provided that all \(a, b \in A\), if \(a\mathcal{R}b\) and \(b\mathcal{R}a\), then \(a=b\).
  4. \(\mathcal{R}\) is transitive provided that for all \(a, b, c \in A\), if \(a\mathcal{R}b\) and \(b\mathcal{R}c\), then \(a\mathcal{R}c\).

For each one of the following relations, decide if they are reflexive, symmetric, antisymmetric or transitive, and explain your answers.

Definition6.19

A relation is called an equivalence relation if it is reflexive, symmetric, and transitive. The relation class \([a]\) will be called the equivalence class of \(a\).

We will use the notation \(\sim\) to denote an equivalence relation for the rest of this notes.

Subsection6.3Partitions

We first extend our set operations such as union and intersection to index set.

Definition6.23

Let \(U\) be a (universal) set. We say that \(\{A_i \; | \; i \in I\}\) is a family of subsets of \(U\) if for each \(i \in I\), we have \(A_i \subset U\). Here the set \(I\) is called the index set.

Definition6.24

Let \(\{A_i \; | \; i \in I\}\) be a family of subsets of a set \(U\).

  1. The union of the family is defined as \begin{equation*}\bigcup_{i \in I} A_i = \{x \in U \; | \; x \in A_i \; \text{for some} \; i \in I\}.\end{equation*}
  2. The intersection of the family is defined as \begin{equation*}\bigcap_{i \in I} A_i = \{x \in U \; | \; x \in A_i \; \text{for all} \; i \in I\}.\end{equation*}
Definition6.28

Let \(\mathcal{P} = \{A_i \; | \; i \in I\}\) be family of subsets of a set \(A\). We say that \(\mathcal{P}\) is a partition of \(A\) if

  1. For every \(i \in I\), we have \(A_i \neq \emptyset\).
  2. For all \(i, j \in I\), either \(A_i = A_j\) or \(A_i \cap A_j = \emptyset\).
  3. \(\displaystyle A = \bigcup_{i \in I} A_i.\)

Partitions and equivalence relations are very much related. Given an equivalence relation, we will get a partition.

Given a partition \(\mathcal{P} = \{A_i \; | \; i \in I\}\) of a set \(A\), we define a relation \(\sim_{\mathcal{P}}\) as follows. For \(x, y \in A\), define \(x \sim_{\mathcal{P}} y\) if and only if there exists \(i \in I\) such that \(x, y \in A_i\). We call \(\sim_{\mathcal{P}}\) the relation induced by the partition \(\mathcal{P}\).