Relation

A set of ordered pairs encoding which elements are related.
Relation

A relation from a set AA to a set BB is a set RR with

RA×B, R\subseteq A\times B,

where A×BA\times B is the . If (a,b)R(a,b)\in R, one often writes aRba\,R\,b.

A relation on a set AA means a relation from AA to itself, i.e. a subset of A×AA\times A. Special kinds of relations include , which encode “having the same type” in a precise sense.

Examples:

  • The “less than or equal to” relation on Z\mathbb{Z} is R={(m,n)Z×Z:mn}R=\{(m,n)\in\mathbb{Z}\times\mathbb{Z}: m\le n\}.
  • For any set AA, the equality relation on AA is {(a,a):aA}A×A\{(a,a): a\in A\}\subseteq A\times A.