<?xml version="1.0" encoding="UTF-8"?>

<record version="3" id="1093">
 <title>functor</title>
 <name>Functor</name>
 <created>2001-12-12 01:37:33</created>
 <modified>2002-02-03 01:05:25</modified>
 <type>Definition</type>
 <creator id="62" name="nerdy2"/>
 <author id="62" name="nerdy2"/>
 <classification>
	<category scheme="msc" code="18-00"/>
 </classification>
 <synonyms>
	<synonym concept="functor" alias="covariant functor"/>
	<synonym concept="functor" alias="contravariant functor"/>
 </synonyms>
 <related>
	<object name="Endofunctor"/>
	<object name="Monad"/>
 </related>
 <keywords>
	<term>category</term>
 </keywords>
 <preamble>\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{xypic}</preamble>
 <content>Given two categories $\mathcal{C}$ and $\mathcal{D}$, a covariant\ {\em functor} $T:\mathcal{C}\to\mathcal{D}$ consists of an assignment for each object $X$ of $\mathcal{C}$ an object $T(X)$ of $\mathcal{D}$ (i.e. a ``function'' $T:{\rm Ob}(\mathcal{C})\to{\rm Ob}(\mathcal{D})$) together with an assignment for every morphism $f\in{\rm Hom}_{\mathcal{C}}(A,B)$, to a morphism $T(f)\in{\rm Hom}_{\mathcal{D}}(T(A),T(B))$, such that:
\begin{itemize}
\item $T(1_A) = 1_{T(A)}$ where $1_X$ denotes the identity morphism on the object $X$ (in the respective category).
\item $T(g \circ f) = T(g)\circ T(f)$, whenever the composition $g\circ f$ is defined.
\end{itemize}

A contravariant functor $T :\mathcal{C}\to\mathcal{D}$ is just a covariant functor $T:\mathcal{C}^{\rm op}\to\mathcal{D}$ from the opposite category.  In other words, the assignment reverses the direction of maps.  If $f\in{\rm Hom}_{\mathcal{C}}(A,B)$, then $T(f)\in{\rm Hom}_{\mathcal{D}}(T(B),T(A))$ and $T(g\circ f) = T(f)\circ T(g)$ whenever the composition is defined (the domain of $g$ is the same as the codomain of $f$).

Given a category $\mathcal{C}$ and an object $X$ we always have the functor $T : \mathcal{C}\to{\bf Sets}$ to the category of sets defined on objects by $T(A) = {\rm Hom}(X, A)$.  If $f : A \to B$ is a morphism of $\mathcal{C}$, then we define $T(f) : {\rm Hom}(X,A)\to {\rm Hom}(X,B)$ by $g\mapsto f\circ g$.  This is a covariant functor, denoted by ${\rm Hom}(X,-)$.

Similarly, one can define a contravariant functor ${\rm Hom}(-,X) :\mathcal{C}\to{\bf Sets}$.</content>
</record>
