The product of $R$ and $S$1 is the relation $R\times S$ from $A\times X$ to $B\times Y$ defined as follows:
-
•
Viewing relations from $A\times X$ to $B\times Y$ as subsets of $(A\times X)\times (B\times Y)$, we define $R\times S$ as the Cartesian product of $R$ and $S$ as subsets of $A\times X$ and $B\times Y$.2
-
•
Viewing relations from $A\times X$ to $B\times Y$ as functions $A\times X\to \mathcal{P}(B\times Y)$, we define $R\times S$ as the composition
\[ A\times X \overset {R\times S}{\to } \mathcal{P}(B)\times \mathcal{P}(Y) \overset {\mathcal{P}^{\otimes }_{B,Y}}{\hookrightarrow } \mathcal{P}(B\times Y) \]in $\mathsf{Sets}$, i.e. by
\[ [R\times S](a,x) \mathrel {\smash {\overset {\mathclap {\scriptscriptstyle \text{def}}}=}}R(a)\times S(x) \]for each $(a,x)\in A\times X$.
- 1Further Terminology: Also called the binary product of $R$ and $S$, for emphasis.
- 2That is, $R\times S$ is the relation given by declaring $(a,x)\sim _{R\times S}(b,y)$ iff $a\sim _{R}b$ and $x\sim _{S}y$.