Definition. Relation [00I7]

A (binary) relation R from a set A to a set B, written R\colon A\mathbin {\nrightarrow } B or R: \mathrm {Rel}{\mathopen {}\left (A,B\right )\mathclose {}} is defined to be a subset R\subseteq A\times B. We shall typically write a\mathrel {R}b for {\mathopen {}\left (a,b\right )\mathclose {}}: R. More generally, a relation between multiple sets {\mathopen {}\left (A_i\right )\mathclose {}}_{i: I} is defined to be a subset of the product \prod _{i: I} A_i.