As it is, what is the difference between functor and function? As far as I know, they look really similar.
And is functor used in set theory? I know that function is used in set theory.
Thanks.
As it is, what is the difference between functor and function? As far as I know, they look really similar.
And is functor used in set theory? I know that function is used in set theory.
Thanks.
To elaborate on Qiaochu's comment:
A (covariant) functor $F:\cal C\to D$ of categories sends objects of $\cal C$ to those of $\cal D$, and similarly morphisms in $\cal C$ to morphisms of $\cal D$, such that the following three hold true:
Note that the functor sends an object $A$ to $FA$ and morphism $f$ to $Ff$; this is our given notational convention. Alternatively, the latter two may be stated non-diagramatically:
$~~$ 2. If $f\in\hom(A,B)$ then $Ff\in\hom(FA,FB)$.
$~~$ 3. If $f\in\hom(A,B)$ and $g\in\hom(B,C)$, then $F(g\circ f)=Fg\circ Ff$ inside $\cal D$. (Note the order.)
These properties ensure that commutative diagrams are preserved by functors. A contra${}$variant functor is defined similarly, except order of composition is reversed, ie $F(g\circ f)=Ff\circ Fg$ in $\cal D$.
So, like functions between sets, functors map the entities inside one category to another. The difference is that categories have more structure than sets, and indeed can be "bigger" than sets, and further that functors must preserve the internal structure of the categories.
A simpler explanation:
Functions map arguments to values while functors map arguments and functions defined over the arguments to values and functions defined over the values, respectively.
Moreover, the functor mappings preserve function composition over the functions on arguments and values.
Briefly, functions map element while Functors map systems (=elements+functions over them).