Relation

A subset of a Cartesian product A×B, viewed as a set of ordered pairs
Relation

Let AA and BB be . A (binary) relation RR from AA to BB is a RA×BR \subseteq A\times B of the ; its elements are (a,b)(a,b) interpreted as “aa is related to bb.”

A relation on a set AA means a subset RA×AR \subseteq A\times A. A is a relation with a uniqueness/existence property (each input is related to exactly one output).

Examples:

  • The usual \le on R\mathbb{R} is a relation on R\mathbb{R}.
  • Divisibility on N\mathbb{N} is a relation: aRba\,R\,b means “aa divides bb.”
  • If A={1,2}A=\{1,2\}, then R={(1,1),(1,2)}A×AR=\{(1,1),(1,2)\}\subseteq A\times A is a relation on AA.