Relations and Functions - Core Definitions
Relations and functions are fundamental constructs in set theory, providing the mathematical framework for describing relationships between objects. In ZFC, all mathematical concepts, including relations and functions, are ultimately defined in terms of sets.
An ordered pair is a mathematical object where order matters. The defining property is that if and only if and . In set theory, we use the Kuratowski definition:
This definition satisfies the required property and constructs ordered pairs purely from sets.
The Kuratowski construction is elegant and minimal. Notice that if , then , and we can still recover both coordinates. The first coordinate is the element that appears in every set in the ordered pair, and the second coordinate is any element that appears.
The Cartesian product of sets and , denoted , is the set of all ordered pairs with first coordinate from and second coordinate from :
By the axioms of pairing, union, and comprehension applied to , this set exists in ZFC.
Consider and . Then:
If either set is empty, the product is empty: for any set . The cardinality satisfies when both sets are finite.
A binary relation from a set to a set is a subset of the Cartesian product: . We write or to denote that is related to under .
The domain of is .
The range of is .
The field of is .
Relations provide a general framework for describing connections between objects. The relation "less than" on natural numbers is , which in set theory means .
Relations are first-class objects in set theoryβthey are simply sets of ordered pairs. This allows us to manipulate relations using standard set-theoretic operations like union, intersection, and complementation. For instance, the inverse relation is also a set.
A function (or mapping) from a set to a set , written , is a relation satisfying:
- Total: For every , there exists such that
- Single-valued: If and , then
We write when . The set is called the domain of , and is called the codomain.
The function concept formalizes the intuitive idea of a rule that assigns to each input exactly one output. The totality condition ensures the function is defined everywhere on its domain, while the single-valued condition ensures uniqueness of outputs.
- The identity function on is
- The constant function mapping everything to is
- The successor function on is
- The characteristic function of is defined by:
Let be a function.
The image of a set under is:
The preimage (or inverse image) of a set under is:
The image and preimage operations have useful properties. For instance, and , showing that preimage preserves all set operations.
In set theory, we distinguish between a function (a set of ordered pairs) and its action (the unique such that ). This distinction is sometimes blurred in informal mathematics, but it is important for foundational clarity. The notation denotes preimage, which exists for any function, while as a function only exists when is bijective.
Functions are the workhorses of mathematics, appearing in every area from analysis to algebra to topology. Understanding their set-theoretic foundation clarifies many subtle points and enables rigorous treatment of infinite function spaces and transfinite constructions.