Relations and Functions

Relations and functions

A binary relation is a rule that connects pairs of elements of two sets. A function is a special kind of relation in which each element of the domain corresponds to exactly one element of the codomain. Relations are classified by their properties (reflexivity, symmetry, transitivity), and functions by bijectivity (injection, surjection, bijection).