Relation
A subset of a Cartesian product, viewed as a set of ordered pairs.
Relation
Let and be sets. A relation from to is a subset
If , one often writes . A relation on is a subset .
Relations generalize functions by allowing an input to be related to zero, one, or many outputs . Equivalence relations and order relations are special kinds of relations that structure sets.
Examples:
- The “less-than-or-equal” relation on is , where iff .
- A function can be identified with its graph , which is a relation satisfying a uniqueness property.
- The divisibility relation on is , where iff divides .