Composition and Function Spaces
The composition of functions and the structure of function spaces are central to modern mathematics. These concepts allow us to treat functions themselves as mathematical objects, leading to powerful abstract constructions.
Let and be functions. The composition of and , denoted (read "g after f" or "g composed with f"), is the function defined by:
As a set of ordered pairs: .
Composition captures the idea of applying functions sequentially. The output of becomes the input to , producing a new function from to . Note that the order matters: means "first , then ," which may seem backwards from the notation.
-
If is and is , then:
Note that in general!
-
For any function :
- (identity on the left)
- (identity on the right)
-
If is bijective with inverse , then:
Composition of functions is associative. For functions , , and :
Thus we can write without ambiguity.
Both sides are functions from to . For any :
Since both give the same result for every , the functions are equal.
Given sets and , the function space (or set of all functions) from to is denoted:
This notation suggests exponentiation, and indeed, when and are finite, .
The function space is itself a set (by the axioms of ZFC), which allows us to consider functions between function spaces, leading to higher-order functions and functional analysis.
-
If and , then . The nine functions are all possible ways to assign elements of to elements of :
-
The set is the set of all functions from to . This is naturally bijective with via characteristic functions:
where if and if .
-
For infinite sets, is the set of all sequences of real numbers, while is the (much larger) set of all functions from to .
Let be a function and .
The restriction of to is the function defined by:
Conversely, if and satisfy , we say is an extension of to .
Restrictions always exist (by comprehension), but extensions may not be unique. Given , there are typically many ways to extend it to a function , unless additional constraints are imposed.
Given families of functions , the product function is:
Given families with disjoint domains, the coproduct function is:
These constructions are fundamental in category theory and universal algebra.
In type theory and logic, there is a deep correspondence:
- Types correspond to sets
- Terms correspond to elements
- Function types correspond to function spaces
- Composition corresponds to modus ponens
- The identity corresponds to axioms of identity
This Curry-Howard correspondence connects set theory, type theory, and logic, showing that:
For sets , , :
- (distributivity over products)
- (currying)
- where denotes disjoint union
- (uncurrying)
These isomorphisms explain why function space notation uses exponents.
The study of function spaces leads naturally to functional analysis, where we consider infinite-dimensional spaces of functions with topological and algebraic structure. Understanding composition, restriction, and these exponential laws provides the foundation for advanced mathematical constructions throughout pure and applied mathematics.