In category theory, a generalized element of an object of a category is any morphism with codomain . In this situation, is called the shape, or domain of definition, of the element . We'll unpack this.
We'll need a set with a single element: for concreteness, let us denote it , and say that its single element is . That is, let . For a given set , there is a natural correspondence between the following notions: an element of , and a function from the set to the set . On the one hand, if you have an element of , you can define a function from to by setting for any ; that is, by taking to be the constant function with value . On the other hand, if you have a function , then since is an element of , is an element of . So in the category of sets, generalized elements of a set that have shape , which are by definition maps , are the same thing (at least up to isomorphism, which as usual is all we care about).
In the category of sets, if a set has elements, a generalized element of shape of a set is an -tuple of elements of .
Based on the case of sets, you might initially think that it suffices to consider generalized elements whose shape is the terminal object
. However, in the category of groups, since the terminal object is also initial, each object has a unique generalized element of shape . However, in this case, there is a single shape that suffices, namely the integers . A generalized element of shape of an abelian group is just an ordinary element of .However, sometimes there is no single object whose generalized elements can distinguish everything up to isomorphism. For example, consider
. If we use generalized elements of shape , then they won't be able to distinguish between the objects and , up to isomorphism, since maps from into the first are the same as elements of , and maps from into the second are the same as elements of . These objects will themselves be non-isomorphic as long as at least one of and is not the empty set; if both are, then clearly the functor still fails to distinguish objects up to isomorphism. (More technically, it does not reflect isomorphisms.) Intuitively, because objects of this category contain the data of two sets, the information cannot be captured by a single homset. This intuition is consistent with the fact that it can be captured with two: the generalized elements of shapes and together determine every object up to isomorphism.If is an -shaped element of , and is a morphism from to , then is an -shaped element of . The Yoneda lemma
states that every function on generalized elements which commutes with reparameterization, i.e. , is actually given by a morphism in the category.