Introduction to Category Theory/Functors

From testwiki
Revision as of 16:00, 19 April 2023 by imported>7bdIa9 (β†’Natural Transformations: SVG version of the diagram.)
(diff) ← Older revision | Latest revision (diff) | Newer revision β†’ (diff)
Jump to navigation Jump to search

Functor

A structure-preserving map between categories is called functor. A (covariant) functor F from category π’ž to category π’Ÿ satisfies

  • F sends objects of π’ž to objects of π’Ÿ.
  • F sends arrows of π’ž to arrows of π’Ÿ.
  • If m is an arrow from A to B in π’ž, then F(m) is an arrow from F(A) to F(B) in π’Ÿ.
  • F sends identity arrows to identity arrows: F(1A)=1F(A).
  • F preserves compositions: F(gf)=F(g)F(f).

A contravariant functor reverses arrows:

  • If m is an arrow from A to B in π’ž, then F(m) is an arrow from F(B) to F(A) in π’Ÿ.
  • F preserves compositions: F(gf)=F(f)F(g).

Natural Transformations

If F and G are covariant functors between the categories π’ž and π’Ÿ, then a natural transformation η from F to G associates to every object X in π’ž a morphism ηX:F(X)G(X) in π’Ÿ called the component of η at X, such that for every morphism f:XY in π’ž we have ηYF(f)=G(f)ηX. This equation can conveniently be expressed by the commutative diagram

diagram defining natural transformations
diagram defining natural transformations

If both F and G are contravariant, the horizontal arrows in this diagram are reversed. If η is a natural transformation from F to G, we also write η:FG. This is also expressed by saying the family of morphisms ηX:F(X)G(X) is natural in X.

If, for every object X in C, the morphism ηX is an isomorphism in π’Ÿ, then η is said to be a natural isomorphism (or sometimes natural equivalence or isomorphism of functors). Two functors F and G are called naturally isomorphic or simply isomorphic if there exists a natural isomorphism from F to G.

Natural transformations are usually far more natural than the definition above.