Yoneda lemma(Redirected from Yoneda embedding)
In mathematics, specifically in category theory, the Yoneda lemma is an abstract result on functors of the type morphisms into a fixed object. It is a vast generalisation of Cayley's theorem from group theory (viewing a group as a particular kind of category with just one object and only isomorphisms). It allows the embedding of any category into a category of functors (contravariant set-valued functors) defined on that category. It also clarifies how the embedded category, of representable functors and their natural transformations, relates to the other objects in the larger functor category. It is an important tool that underlies several modern developments in algebraic geometry and representation theory. It is named after Nobuo Yoneda.
The Yoneda lemma suggests that instead of studying the (locally small) category C, one should study the category of all functors of C into Set (the category of sets with functions as morphisms). Set is a category we think we understand well, and a functor of C into Set can be seen as a "representation" of C in terms of known structures. The original category C is contained in this functor category, but new objects appear in the functor category, which were absent and "hidden" in C. Treating these new objects just like the old ones often unifies and simplifies the theory.
This approach is akin to (and in fact generalizes) the common method of studying a ring by investigating the modules over that ring. The ring takes the place of the category C, and the category of modules over the ring is a category of functors defined on C.
Yoneda's lemma concerns functors from a fixed category C to the category of sets, Set. If C is a locally small category (i.e. the hom-sets are actual sets and not proper classes), then each object A of C gives rise to a natural functor to Set called a hom-functor. This functor is denoted:
The (covariant) hom-functor hA sends X to the set of morphisms Hom(A,X) and sends a morphism f from X to Y to the morphism (composition with f on the left) that sends a morphism g in Hom(A,X) to the morphism f o g in Hom(A,Y). That is,
Let F be an arbitrary functor from C to Set. Then Yoneda's lemma says that:
For each object A of C, the natural transformations from hA to F are in one-to-one correspondence with the elements of F(A). That is,
Moreover this isomorphism is natural in A and F when both sides are regarded as functors from SetC x C to Set. (Here the notation SetC denotes the category of functors from C to Set.)
Given a natural transformation from hA to F, the corresponding element of F(A) is ;[a] and given an element u of F(A), the corresponding natural transformation is given by (f) = F(f)(u).
There is a contravariant version of Yoneda's lemma, which concerns contravariant functors from C to Set. This version involves the contravariant hom-functor
which sends X to the hom-set Hom(X,A). Given an arbitrary contravariant functor G from C to Set, Yoneda's lemma asserts that
The use of "hA" for the covariant hom-functor and "hA" for the contravariant hom-functor is not completely standard. Many texts and articles either use the opposite convention or completely unrelated symbols for these two functors. However, most modern algebraic geometry texts starting with Alexander Grothendieck's foundational EGA use the convention in this article.[b]
The mnemonic "falling into something" can be helpful in remembering that "hA" is the contravariant hom-functor. When the letter "A" is falling (i.e. a subscript), hA assigns to an object X the morphisms from X into A.
The proof of Yoneda's lemma is indicated by the following commutative diagram:
This diagram shows that the natural transformation Φ is completely determined by since for each morphism f : A → X one has
Moreover, any element u∈F(A) defines a natural transformation in this way. The proof in the contravariant case is completely analogous.
The Yoneda embeddingEdit
An important special case of Yoneda's lemma is when the functor F from C to Set is another hom-functor hB. In this case, the covariant version of Yoneda's lemma states that
That is, natural transformations between hom-functors are in one-to-one correspondence with morphisms (in the reverse direction) between the associated objects. Given a morphism f : B → A the associated natural transformation is denoted Hom(f,–).
Mapping each object A in C to its associated hom-functor hA = Hom(A,–) and each morphism f : B → A to the corresponding natural transformation Hom(f,–) determines a contravariant functor h– from C to SetC, the functor category of all (covariant) functors from C to Set. One can interpret h– as a covariant functor:
The meaning of Yoneda's lemma in this setting is that the functor h– is fully faithful, and therefore gives an embedding of Cop in the category of functors to Set. The collection of all functors is a subcategory of SetC. Therefore, Yoneda embedding implies that the category Cop is isomorphic to the category .
The contravariant version of Yoneda's lemma states that
Therefore, h– gives rise to a covariant functor from C to the category of contravariant functors to Set:
Yoneda's lemma then states that any locally small category C can be embedded in the category of contravariant functors from C to Set via h–. This is called the Yoneda embedding.
for a presheaf P. Many common categories are, in fact, pre-sheaves, and on closer inspection, prove to be sheaves, and, as such examples are commonly topological in nature, they can be seen to be topoi in general. The Yoneda lemma provides a point of leverage by which the topological structure of a category can be studied and understood.
Preadditive categories, rings and modulesEdit
A preadditive category is a category where the morphism sets form abelian groups and the composition of morphisms is bilinear; examples are categories of abelian groups or modules. In a preadditive category, there is both a "multiplication" and an "addition" of morphisms, which is why preadditive categories are viewed as generalizations of rings. Rings are preadditive categories with one object.
The Yoneda lemma remains true for preadditive categories if we choose as our extension the category of additive contravariant functors from the original category into the category of abelian groups; these are functors which are compatible with the addition of morphisms and should be thought of as forming a module category over the original category. The Yoneda lemma then yields the natural procedure to enlarge a preadditive category so that the enlarged version remains preadditive — in fact, the enlarged version is an abelian category, a much more powerful condition. In the case of a ring R, the extended category is the category of all right modules over R, and the statement of the Yoneda lemma reduces to the well-known isomorphism
- M ≅ HomR(R,M) for all right modules M over R.
Relationship to Cayley's theoremEdit
As stated above, the Yoneda lemma may be considered as a vast generalization of Cayley's theorem from group theory. To see this, let C be a category with a single object such that every morphism is an isomorphism (i.e. a groupoid with one object). Then forms a group under the operation of composition, and any group can be realized as a category in this way.
In this context, a covariant functor Set consists of a set X and a group homomorphism , where is the group of permutations of X; in other words, X is a G-set. A natural transformation between such functors is the same thing as an equivariant map between G-sets: a set function with the property that for all g in G and x in X. (On the left side of this equation, the period denotes the action of G on X, and on the right side the action on Y.)
Now the covariant hom-functor corresponds to the action of G on itself by left-multiplication (the contravariant version corresponds to right-multiplication). The Yoneda lemma with states that
that is, the equivariant maps from this G-set to itself are in bijection with G. But it is easy to see that (1) these maps form a group under composition, which is a subgroup of , and (2) the function which gives the bijection is a group homomorphism. (Going in the reverse direction, it associates to every g in G the equivariant map of right-multiplication by g.) Thus G is isomorphic to a subgroup of , which is the statement of Cayley's theorem.
The Yoneda lemma was introduced but not proved in a 1954 paper by Nobuo Yoneda. Yoshiki Kinoshita stated in 1996 that the term "Yoneda lemma" was coined by Saunders Mac Lane following an interview he had with Yoneda.
- Recall that so the last expression is well-defined and sends a morphism from A to A, to an element in F(A).
- A notable exception to modern algebraic geometry texts following the conventions of this article is Commutative algebra with a view toward algebraic geometry / David Eisenbud (1995), which uses "hA" to mean the covariant hom-functor. However, the later book The geometry of schemes / David Eisenbud, Joe Harris (1998) reverses this and uses "hA" to mean the contravariant hom-functor.
- Nobuo, Yoneda (1954). "On the homology theory of modules". J. Fac. Sci. Univ. Tokyo. Sect. I. 7: 193–227.
- Kinoshita, Yoshiki (23 April 1996). "Prof. Nobuo Yoneda passed away". Retrieved 21 December 2013.
- Freyd, Peter (1964), Abelian categories, Harper's Series in Modern Mathematics (2003 reprint ed.), Harper and Row, Zbl 0121.02103.
- Mac Lane, Saunders (1998), Categories for the Working Mathematician, Graduate Texts in Mathematics, 5 (2nd ed.), New York, NY: Springer-Verlag, ISBN 0-387-98403-8, Zbl 0906.18001