In set theory, a binary relation between two sets and is a subset of the Cartesian product .