1.3Functions of Sets
Chapter (PDF)A function is a map between sets in which each element is mapped to exactly one . The graph of a function is defined by
As notation, note means a “maps to” , and
diagrammatically notes is mapped to by the function .
Suppose and . The composition can be drawn by a commutative diagram.
A diagram is said to commute if, when going through any path prescribed by the diagram between two endpoints, the result is the same.
Suppose .
Note the diagram is commutative, and accordingly, . The associativity of function compositions is trivial and left without proof.
A function is:
injective if, for every such that , it follows that . Equivalently, for every such that , it follows that .
surjective if, for every , there exists some such that . Equivalently, if .
Injections and surjections are noted by and respectively, a homage to the notation of monomorphisms and epimorphisms (an equivalent categorization in the category of sets, ).
If is both injective and surjective, it is indeed bijective, and accordingly and are isomorphic as sets. We say , or .
Suppose is bijective. Then, we are justified in “flipping” the diagram that defines to produce such that whenever . Diagrammatically,
commutes, so and . The first diagram says is a left-inverse of (as reference to being left to in composition notation, which is read right-to-left), and conversely the second diagram says is a right-inverse of . Indeed, we simply say is the inverse of , for which we write since two-sided inverses are unique (this is trivial and left without proof).
Suppose with . Then
has a left-inverse if and only if it is injective.
has a right-inverse if and only if it is surjective.
has a (unique) two-sided inverse if and only if it is bijective.
This is trivial and left without proof.