Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Functor

From Wikipedia, the free encyclopedia
Mapping between categories
This article is about the mathematical concept. For other uses, seeFunctor (disambiguation).
"Functoriality" redirects here. For the Langlands functoriality conjecture in number theory, seeLanglands program § Functoriality.

Inmathematics, specificallycategory theory, afunctor is amapping betweencategories. Functors were first considered inalgebraic topology, where algebraic objects (such as thefundamental group) are associated totopological spaces, and maps between these algebraic objects are associated tocontinuous maps between spaces. Nowadays, functors are used throughout modern mathematics to relate various categories. Thus, functors are important in all areas within mathematics to whichcategory theory is applied.

The wordscategory andfunctor were borrowed by mathematicians from the philosophersAristotle andRudolf Carnap, respectively.[1] The latter usedfunctor in alinguistic context;[2]seefunction word.

Definition

[edit]
A category with objects X, Y, Z and morphisms f, g, g ∘ f
FunctorF{\displaystyle F} must preserve the composition of morphismsg{\displaystyle g} andf{\displaystyle f}

LetC andD becategories. AfunctorF fromC toD is a mapping that[3]

That is, functors must preserveidentity morphisms andcomposition of morphisms.

Covariance and contravariance

[edit]
See also:Covariance and contravariance (computer science)

There are many constructions in mathematics that would be functors but for the fact that they "turn morphisms around" and "reverse composition". We then define acontravariant functorF fromC toD as a mapping that

Variance of functor (composite)[4]

Note that contravariant functors reverse the direction of composition.

Ordinary functors are also calledcovariant functors in order to distinguish them from contravariant ones. Note that one can also define a contravariant functor as acovariant functor on theopposite categoryCop{\displaystyle C^{\mathrm {op} }}.[5] Some authors prefer to write all expressions covariantly. That is, instead of sayingF:CD{\displaystyle F\colon C\to D} is a contravariant functor, they simply writeF:CopD{\displaystyle F\colon C^{\mathrm {op} }\to D} (or sometimesF:CDop{\displaystyle F\colon C\to D^{\mathrm {op} }}) and call it a functor.

Contravariant functors are also occasionally calledcofunctors.[6]

There is a convention which refers to "vectors"—i.e.,vector fields, elements of the space of sectionsΓ(TM){\displaystyle \Gamma (TM)} of atangent bundleTM{\displaystyle TM}—as "contravariant" and to "covectors"—i.e.,1-forms, elements of the space of sectionsΓ(TM){\displaystyle \Gamma {\mathord {\left(T^{*}M\right)}}} of acotangent bundleTM{\displaystyle T^{*}M}—as "covariant". This terminology originates in physics, and its rationale has to do with the position of the indices ("upstairs" and "downstairs") inexpressions such asxi=Λjixj{\displaystyle {x'}^{\,i}=\Lambda _{j}^{i}x^{j}} forx=Λx{\displaystyle \mathbf {x} '={\boldsymbol {\Lambda }}\mathbf {x} } orωi=Λijωj{\displaystyle \omega '_{i}=\Lambda _{i}^{j}\omega _{j}} forω=ωΛT.{\displaystyle {\boldsymbol {\omega }}'={\boldsymbol {\omega }}{\boldsymbol {\Lambda }}^{\textsf {T}}.} In this formalism it is observed that the coordinate transformation symbolΛij{\displaystyle \Lambda _{i}^{j}} (representing the matrixΛT{\displaystyle {\boldsymbol {\Lambda }}^{\textsf {T}}}) acts on the "covector coordinates" "in the same way" as on the basis vectors:ei=Λijej{\displaystyle \mathbf {e} _{i}=\Lambda _{i}^{j}\mathbf {e} _{j}}—whereas it acts "in the opposite way" on the "vector coordinates" (but "in the same way" as on the basis covectors:ei=Λjiej{\displaystyle \mathbf {e} ^{i}=\Lambda _{j}^{i}\mathbf {e} ^{j}}). This terminology is contrary to the one used in category theory because it is the covectors that havepullbacks in general and are thuscontravariant, whereas vectors in general arecovariant since they can bepushed forward. See alsoCovariance and contravariance of vectors.

Opposite functor

[edit]

Every functorF:CD{\displaystyle F\colon C\to D} induces theopposite functorFop:CopDop{\displaystyle F^{\mathrm {op} }\colon C^{\mathrm {op} }\to D^{\mathrm {op} }}, whereCop{\displaystyle C^{\mathrm {op} }} andDop{\displaystyle D^{\mathrm {op} }} are theopposite categories toC{\displaystyle C} andD{\displaystyle D}.[7] By definition,Fop{\displaystyle F^{\mathrm {op} }} maps objects and morphisms in the identical way as doesF{\displaystyle F}. SinceCop{\displaystyle C^{\mathrm {op} }} does not coincide withC{\displaystyle C} as a category, and similarly forD{\displaystyle D},Fop{\displaystyle F^{\mathrm {op} }} is distinguished fromF{\displaystyle F}. For example, when composingF:C0C1{\displaystyle F\colon C_{0}\to C_{1}} withG:C1opC2{\displaystyle G\colon C_{1}^{\mathrm {op} }\to C_{2}}, one should use eitherGFop{\displaystyle G\circ F^{\mathrm {op} }} orGopF{\displaystyle G^{\mathrm {op} }\circ F}. Note that, following the property ofopposite category,(Fop)op=F{\displaystyle \left(F^{\mathrm {op} }\right)^{\mathrm {op} }=F}.

Bifunctors and multifunctors

[edit]

Abifunctor (also known as abinary functor) is a functor whose domain is aproduct category. For example, theHom functor is of the typeCop ×CSet. It can be seen as a functor intwo arguments; it is contravariant in one argument, covariant in the other.

Amultifunctor is a generalization of the functor concept ton variables. So, for example, a bifunctor is a multifunctor withn = 2.

Properties

[edit]

Two important consequences of the functoraxioms are:

One can compose functors, i.e. ifF is a functor fromA toB andG is a functor fromB toC then one can form the composite functorGF fromA toC. Composition of functors is associative where defined. Identity of composition of functors is the identity functor. This shows that functors can be considered as morphisms in categories of categories, for example in thecategory of small categories.

A small category with a single object is the same thing as amonoid: the morphisms of a one-object category can be thought of as elements of the monoid, and composition in the category is thought of as the monoid operation. Functors between one-object categories correspond to monoidhomomorphisms. So in a sense, functors between arbitrary categories are a kind of generalization of monoid homomorphisms to categories with more than one object.

Examples

[edit]
Diagram
For categoriesC andJ, a diagram of typeJ inC is a covariant functorD:JC{\displaystyle D\colon J\to C}.
(Category theoretical) presheaf
For categoriesC andJ, aJ-presheaf onC is a contravariant functorD:CJ{\displaystyle D\colon C\to J}.
In the special case when J isSet, the category of sets and functions,D is called apresheaf onC.
Presheaves (over a topological space)
IfX is atopological space, then theopen sets inX form apartially ordered set Open(X) under inclusion. Like every partially ordered set, Open(X) forms a small category by adding a single arrowUV if and only ifUV{\displaystyle U\subseteq V}. Contravariant functors on Open(X) are calledpresheaves onX. For instance, by assigning to every open setU theassociative algebra of real-valued continuous functions onU, one obtains a presheaf of algebras onX.
Constant functor
The functorCD which maps every object ofC to a fixed objectX inD and every morphism inC to the identity morphism onX. Such a functor is called aconstant orselection functor.
Endofunctor
A functor that maps a category to that same category; e.g.,polynomial functor.
Identity functor
In categoryC, written 1C or idC, maps an object to itself and a morphism to itself. The identity functor is an endofunctor.
Diagonal functor
Thediagonal functor is defined as the functor fromD to the functor categoryDC which sends each object inD to the constant functor at that object.
Limit functor
For a fixedindex categoryJ, if every functorJC has alimit (for instance ifC is complete), then the limit functorCJC assigns to each functor its limit. The existence of this functor can be proved by realizing that it is theright-adjoint to thediagonal functor and invoking theFreyd adjoint functor theorem. This requires a suitable version of theaxiom of choice. Similar remarks apply to the colimit functor (which assigns to every functor its colimit, and is covariant).
Power sets functor
The power set functorP :SetSet maps each set to itspower set and each functionf:XY{\displaystyle f\colon X\to Y} to the map which sendsUP(X){\displaystyle U\in {\mathcal {P}}(X)} to its imagef(U)P(Y){\displaystyle f(U)\in {\mathcal {P}}(Y)}. One can also consider thecontravariant power set functor which sendsf:XY{\displaystyle f\colon X\to Y} to the map which sendsVY{\displaystyle V\subseteq Y} to itsinverse imagef1(V)X.{\displaystyle f^{-1}(V)\subseteq X.}
For example, ifX={0,1}{\displaystyle X=\{0,1\}} thenF(X)=P(X)={{},{0},{1},X}{\displaystyle F(X)={\mathcal {P}}(X)=\{\{\},\{0\},\{1\},X\}}. Supposef(0)={}{\displaystyle f(0)=\{\}} andf(1)=X{\displaystyle f(1)=X}. ThenF(f){\displaystyle F(f)} is the function which sends any subsetU{\displaystyle U} ofX{\displaystyle X} to its imagef(U){\displaystyle f(U)}, which in this case means{}f({})={}{\displaystyle \{\}\mapsto f(\{\})=\{\}}, where{\displaystyle \mapsto } denotes the mapping underF(f){\displaystyle F(f)}, so this could also be written as(F(f))({})={}{\displaystyle (F(f))(\{\})=\{\}}. For the other values,{0}f({0})={f(0)}={{}}, {\displaystyle \{0\}\mapsto f(\{0\})=\{f(0)\}=\{\{\}\},\ }{1}f({1})={f(1)}={X}, {\displaystyle \{1\}\mapsto f(\{1\})=\{f(1)\}=\{X\},\ }{0,1}f({0,1})={f(0),f(1)}={{},X}.{\displaystyle \{0,1\}\mapsto f(\{0,1\})=\{f(0),f(1)\}=\{\{\},X\}.} Note thatf({0,1}){\displaystyle f(\{0,1\})} consequently generates thetrivial topology onX{\displaystyle X}. Also note that although the functionf{\displaystyle f} in this example mapped to the power set ofX{\displaystyle X}, that need not be the case in general.
Dual vector space
The map which assigns to everyvector space itsdual space and to everylinear map its dual or transpose is a contravariant functor from the category of all vector spaces over a fixedfield to itself.
Fundamental group
Consider the category ofpointed topological spaces, i.e. topological spaces with distinguished points. The objects are pairs(X,x0), whereX is a topological space andx0 is a point inX. A morphism from(X,x0) to(Y,y0) is given by acontinuous mapf :XY withf(x0) =y0.
To every topological spaceX with distinguished pointx0, one can define thefundamental group based atx0, denotedπ1(X,x0). This is thegroup ofhomotopy classes of loops based atx0, with the group operation of concatenation. Iff :XY is a morphism ofpointed spaces, then every loop inX with base pointx0 can be composed withf to yield a loop inY with base pointy0. This operation is compatible with the homotopyequivalence relation and the composition of loops, and we get agroup homomorphism fromπ(X,x0) toπ(Y,y0). We thus obtain a functor from the category of pointed topological spaces to thecategory of groups.
In the category of topological spaces (without distinguished point), one considers homotopy classes of generic curves, but they cannot be composed unless they share an endpoint. Thus one has thefundamentalgroupoid instead of the fundamental group, and this construction is functorial.
Algebra of continuous functions
A contravariant functor from the category oftopological spaces (with continuous maps as morphisms) to the category of realassociative algebras is given by assigning to every topological spaceX the algebra C(X) of all real-valued continuous functions on that space. Every continuous mapf :XY induces analgebra homomorphismC(f) : C(Y) → C(X) by the ruleC(f)(φ) =φf for everyφ in C(Y).
Tangent and cotangent bundles
The map which sends everydifferentiable manifold to itstangent bundle and everysmooth map to itsderivative is a covariant functor from the category of differentiable manifolds to the category ofvector bundles.
Doing this constructions pointwise gives thetangent space, a covariant functor from the category of pointed differentiable manifolds to the category of real vector spaces. Likewise,cotangent space is a contravariant functor, essentially the composition of the tangent space with thedual space above.
Group actions/representations
EverygroupG can be considered as a category with a single object whose morphisms are the elements ofG. A functor fromG toSet is then nothing but agroup action ofG on a particular set, i.e. aG-set. Likewise, a functor fromG to thecategory of vector spaces,VectK, is alinear representation ofG. In general, a functorGC can be considered as an "action" ofG on an object in the categoryC. IfC is a group, then this action is a group homomorphism.
Lie algebras
Assigning to every real (complex)Lie group its real (complex)Lie algebra defines a functor.
Tensor products
IfC denotes the category of vector spaces over a fixed field, withlinear maps as morphisms, then thetensor productVW{\displaystyle V\otimes W} defines a functorC ×CC which is covariant in both arguments.[8]
Forgetful functors
The functorU :GrpSet which maps agroup to its underlying set and agroup homomorphism to its underlying function of sets is a functor.[9] Functors like these, which "forget" some structure, are termedforgetful functors. Another example is the functorRngAb which maps aring to its underlying additiveabelian group. Morphisms inRng (ring homomorphisms) become morphisms inAb (abelian group homomorphisms).
Free functors
Going in the opposite direction of forgetful functors are free functors. The free functorF :SetGrp sends every setX to thefree group generated byX. Functions get mapped to group homomorphisms between free groups. Free constructions exist for many categories based on structured sets. Seefree object.
Homomorphism groups
To every pairA,B ofabelian groups one can assign the abelian group Hom(A,B) consisting of allgroup homomorphisms fromA toB. This is a functor which is contravariant in the first and covariant in the second argument, i.e. it is a functorAbop ×AbAb (whereAb denotes thecategory of abelian groups with group homomorphisms). Iff :A1A2 andg :B1B2 are morphisms inAb, then the group homomorphismHom(f,g):Hom(A2,B1) → Hom(A1,B2) is given byφgφf. SeeHom functor.
Representable functors
We can generalize the previous example to any categoryC. To every pairX,Y of objects inC one can assign the setHom(X,Y) of morphisms fromX toY. This defines a functor toSet which is contravariant in the first argument and covariant in the second, i.e. it is a functorCop ×CSet. Iff :X1X2 andg :Y1Y2 are morphisms inC, then the mapHom(f,g) : Hom(X2,Y1) → Hom(X1,Y2) is given byφgφf.
Functors like these are calledrepresentable functors. An important goal in many settings is to determine whether a given functor is representable.

Relation to other categorical concepts

[edit]

LetC andD be categories. The collection of all functors fromC toD forms the objects of a category: thefunctor category. Morphisms in this category arenatural transformations between functors.

Functors are often defined byuniversal properties; examples are thetensor product, thedirect sum anddirect product of groups or vector spaces, construction of free groups and modules,direct andinverse limits. The concepts oflimit and colimit generalize several of the above.

Universal constructions often give rise to pairs ofadjoint functors.

Computer implementations

[edit]
Main article:Functor (functional programming)

Functors sometimes appear infunctional programming. For instance, the programming languageHaskell has aclassFunctor wherefmap is apolytypic function used to mapfunctions (morphisms onHask, the category of Haskell types)[10] between existing types to functions between some new types.[11]

See also

[edit]

Notes

[edit]
  1. ^Mac Lane, Saunders (1971),Categories for the Working Mathematician, New York: Springer-Verlag, p. 30,ISBN 978-3-540-90035-1
  2. ^Carnap, Rudolf (1937).The Logical Syntax of Language, Routledge & Kegan, pp. 13–14.
  3. ^Jacobson (2009), p. 19, def. 1.2.
  4. ^Simmons (2011), Exercise 3.1.4.
  5. ^Jacobson (2009), pp. 19–20.
  6. ^Popescu, Nicolae; Popescu, Liliana (1979).Theory of categories. Dordrecht: Springer. p. 12.ISBN 9789400995505. Retrieved23 April 2016.
  7. ^Mac Lane, Saunders;Moerdijk, Ieke (1992),Sheaves in geometry and logic: a first introduction to topos theory, Springer,ISBN 978-0-387-97710-2
  8. ^Hazewinkel, Michiel;Gubareni, Nadezhda Mikhaĭlovna;Gubareni, Nadiya;Kirichenko, Vladimir V. (2004),Algebras, rings and modules, Springer,ISBN 978-1-4020-2690-4
  9. ^Jacobson (2009), p. 20, ex. 2.
  10. ^It's not entirely clear that Haskell datatypes truly form a category. Seehttps://wiki.haskell.org/Hask for more details.
  11. ^Seehttps://wiki.haskell.org/Category_theory/Functor#Functors_in_Haskell for more information.

References

[edit]

External links

[edit]
Look upfunctor in Wiktionary, the free dictionary.
Key concepts
Key concepts
Universal constructions
Limits
Colimits
Algebraic categories
Constructions on categories
A simple triangular commutative diagram
Key concepts
n-categories
Weakn-categories
Strictn-categories
Categorified concepts
Functor types
Types by domain and codomain
Classes/properties
Constructions
Generalizations
Retrieved from "https://en.wikipedia.org/w/index.php?title=Functor&oldid=1282266919"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp