Functions
Definition
A function is a special type of relation from to ; intuitively speaking, a totally and well-defined function must have a single output for each input, i.e. is a single element for all . In general, we are only interested in such functions.
Image
For some function , the image of are all elements that are "reached" from , i.e.
Preimage
The preimage of under are all elements in that map to some element in , i.e. .
While the inverse might not be defined, the preimage is always defined.
Note: The inverse exists if the preimage relation is a function.
Special Properties
A function can have "special" properties:
- A function is injective, if any two distinct input elements map to two different outputs (). For "finite" functions (the relation is finite), this is equivalent to .
- A function is surjective if for every element in there exists some element in such that , or equivalently, that
- A function is bijective if it is injective and surjective.
Exercises
Preimage relationSource: Max Obreiter
Show that for every and , the following holds:
If we "removed" the first element from the tuple of the LHS (but retaining the condition that ), we would get the definition of the preimage. This definition is a bit more powerful since we also know which elements map to what.
No bijection to Powerset (Cantor's Theorem)Source: Max Obreiter
Prove that for any set and any function , is not bijective.
(This exercise is quite difficult and the first step might appear "random"; with Hint 1 the exercise should be rather easy.)