Functor: Difference between revisions

From Cattheory
No edit summary
No edit summary
 
Line 4: Line 4:
Suppose <math>\mathcal{C},\mathcal{D}</math> are [[category|categories]]. A '''functor''' (also called '''covariant functor''') <math>\mathcal{F}</math> from <math>\mathcal{C}</math> to <math>\mathcal{D}</math> comprises the following data:
Suppose <math>\mathcal{C},\mathcal{D}</math> are [[category|categories]]. A '''functor''' (also called '''covariant functor''') <math>\mathcal{F}</math> from <math>\mathcal{C}</math> to <math>\mathcal{D}</math> comprises the following data:


* A mapping <math>\mathcal{F}: \operatorname{Ob}\mathcal{C} \to \operatorname{Ob}\mathcal{D}</math>.
* '''Object level mapping''': A mapping <math>\mathcal{F}: \operatorname{Ob}\mathcal{C} \to \operatorname{Ob}\mathcal{D}</math>.
* For any <math>A,B \in \mathcal{C}</math>, a mapping <math>\mathcal{F}: \mathcal{C}(A,B) \to \mathcal{D}(FA,FB)</math>.
* '''Morphism level mapping''': For any <math>A,B \in \mathcal{C}</math>, a mapping <math>\mathcal{F}: \mathcal{C}(A,B) \to \mathcal{D}(FA,FB)</math>.


satisfying the following condition:
satisfying the following condition:


* For any <math>A \in \mathcal{C}</math>, <math>\mathcal{F}(\operatorname{id}_A) = \operatorname{id}_{F(A)}</math>.
* '''It preserves the identity morphism''': For any <math>A \in \mathcal{C}</math>, <math>\mathcal{F}(\operatorname{id}_A) = \operatorname{id}_{F(A)}</math>.
* For any <math>A,B,C \in \mathcal{C}</math>, and <math>f \in \mathcal{C}(A,B), g \in \mathcal{C}(B,C)</math>, we have <math>F(g \circ f) = Fg \circ Ff</math>.
* '''It preserves composition''': For any <math>A,B,C \in \mathcal{C}</math>, and <math>f \in \mathcal{C}(A,B), g \in \mathcal{C}(B,C)</math>, we have <math>F(g \circ f) = Fg \circ Ff</math>.


There is a related notion of [[contravariant functor]]. Note that a contravariant functor between two categories is ''not'' a functor between the categories. To emphasize that a functor is a functor and not a contravariant functor, we use the term ''covariant functor''.
There is a related notion of [[contravariant functor]]. Note that a contravariant functor between two categories is ''not'' a functor between the categories. To emphasize that a functor is a functor and not a contravariant functor, we use the term ''covariant functor''.

Latest revision as of 23:22, 9 December 2008

This article is about a basic definition in category theory. The article text may, however, contain more material. Rate its utility as a basic definition article on the talk page
VIEW: Definitions built on this | Facts about this | Survey articles about this
View a complete list of basic definitions in category theory

Definition

Suppose are categories. A functor (also called covariant functor) from to comprises the following data:

  • Object level mapping: A mapping .
  • Morphism level mapping: For any , a mapping .

satisfying the following condition:

  • It preserves the identity morphism: For any , .
  • It preserves composition: For any , and , we have .

There is a related notion of contravariant functor. Note that a contravariant functor between two categories is not a functor between the categories. To emphasize that a functor is a functor and not a contravariant functor, we use the term covariant functor.