You're reading the public-facing archive of the Category Theory Zulip server.
To join the server you need an invite. Anybody can get an invite by contacting Matteo Capucci at name dot surname at gmail dot com.
For all things related to this archive refer to the same person.
Some objects can be viewed as categories themselves, for example:
However, is there a way to view some functors as categories? Functors can be viewed as objects, in categories where functors are the objects and the morphisms are natural transformations. However, I don't know how to "zoom in" on these objects and view them as categories in their own right.
If we could view functors as categories, then we could view a lot of things as categories, including functions and group representations. If this isn't possible to do this with all functors, is it maybe possible to view some special functors as categories?
Well, there is the [[graph of a functor]] and the [[cograph of a functor]]...
I see, interesting! Thanks for sharing those links.
Looking at the link on the graph of a functor:
I had read about the category of elements of a functor before, but hadn't connected it to this kind of idea.
So, we can associate a functor with a category, namely its category of elements(?)... Actually, I guess it's a bit more complicated than this, for functors to categories other than . That link seems like a good reference for understanding this better, though.
To unpack Mike's answer a little bit: if you're trying to view functors as categories, David, you should start by "decategorifying" and try to view functions as sets. Any function gives a set called its graph:
and in fact in some axiomatic approaches to math we say a function from to is its graph: any subset of with certain well-known properties counts as a function from to .
You might try to copy this idea and define the graph of a functor to be some subcategory of .
However, that's not quite right.
It turns out that what we get is not a subcategory of , but a category equipped with a functor to . So there are two subtleties: replacing with its opposite, and replacing "subcategory of...." with "category with a functor to...".
It is important, though, that a function (resp. functor) is not determined by its (co)graph as a standalone set (resp. category), but only together with the (co)projections relating it to its domain and codomain.
Yeah - so for example I didn't wind up seeing a function from to as a mere set, but as a subset of . (I'm trying to say what Mike said in a less intimidating way.)
I'm trying to say what Mike said in a less intimidating way.
We make a good team that way...
John Baez said:
It turns out that what we get is not a subcategory of , but a category equipped with a functor to . So there are two subtleties: replacing with its opposite, and replacing "subcategory of...." with "category with a functor to...".
Well, actually there are a bunch of different "graphs" of a functor. The nLab page emphasizes the one that comes with a functor to , but (as noted in the old query box on that page) you can get other graphs that have functors to , or , or even . I happen to prefer the one that lives over .
I've edited [[graph of a functor]] to discuss all eight (!) graphs.
Mike Shulman said:
I've edited [[graph of a functor]] to discuss all eight (!) graphs.
Wow!
And thanks to both of you for your explanations.
By the way, for context, I was reading about group representations. In particular, viewing a group representation as a functor, I was reading about natural transformations from a group representation to itself. I have the intuition that in some settings endofunctors correspond to a certain class of "valid reasoning strategies", as they turn true equations into true equations. I was wondering if somehow a group representation could be viewed as a category, so that an endomorphism of a group representation could be seen as an endofunctor of the corresponding category, thereby corresponding to some kind of reasoning strategy (with regards to equations) in that category.
A possibly related thought - we can sometimes think of maps into an object as generalized elements of that object.
So, maybe one could try and view natural transformations to a functor as "elements" of that functor? One could then hope that these elements could relate to objects in a category corresponding to the functor.
(This might be related to the "graph of the functor" concept above too(?), but I don't understand it well enough yet).
David Egolf said:
A possibly related thought - we can sometimes think of maps into an object as generalized elements of that object.
So, maybe one could try and view natural transformations to a functor as "elements" of that functor? One could then hope that these elements could relate to objects in a category corresponding to the functor.
Well, there's this nifty thing called the Yoneda Lemma...
Mike Shulman said:
David Egolf said:
Well, there's this nifty thing called the Yoneda Lemma...
I'm not sure exactly what you were hinting at by this, but it does seem interesting to consider in this context. Maybe something along the lines of associating a functor with its image under the Yoneda embedding, which holds information about how other functors relate to it? Let me see what happens if I try this.
Assume we have a functor in a category where the objects are functors and the morphisms are natural transformations. Then we can consider the functor , which sends a functor to the set of morphisms , which is the set of natural transformations from to . Morphisms in - natural transformations - get mapped to appropriate functions between such sets. Following the intuition from above, this functor would seem to contain information about all the generalized elements of and how they relate to one another. So, we would hope we could somehow make a category from this information.
I notice that we now we have a functor to associated with , so we can now make a category from which I think roughly corresponds to the intuition above. Namely, associate a functor with the category of elements of the functor ! I haven't checked properly, but I am guessing that objects in this category are natural transformations to , and morphisms are commutative triangles of natural transformations to - which I am thinking of as relating different generalized elements.
Sorry for being mysterious, I was in a hurry. The Yoneda lemma says that for a functor , maps into out of a representable functor are uniquely determined by elements of the set . That is, the generalized elements of at "stages" that are representable are the same as the elements of the sets as varies, and these are indeed the same as the objects of the category of elements of .
For a more general functor , you can fix any object and consider the composite . If this functor is called , then an element of in the previous sense — meaning either a natural transformation or an object of the category of elements of — is an object and a morphism . These are the objects of some of the graphs of .
I'll have to let things percolate a bit. Thanks for elaborating! It's all very interesting.
Playing my now well-established role as "simplifier of Mike", one thing he's doing here is building up some ideas starting from these two facts:
1) any functor can be understood as a collection of sets where ranges over all objects of , together with maps between these coming from morphisms in ,
and
2) any functor can be understood as a collection of sets where ranges over all objects of and ranges over all objects of , together with maps between these coming from morphisms in and .
The first is utterly obvious and the second reduces to the first if we consider all the functors given by .
But it's very good to build on these ideas using the Yoneda lemma and the concepts of "representable functor", "generalized elements" and "graphs" as Mike has outlined.
John Baez said:
2) any functor can be understood as a collection of sets where ranges over all objects of and ranges over all objects of , together with maps between these coming from morphisms in and .
I think here the functor we are talking about is , right?
Mike Shulman said:
Sorry for being mysterious, I was in a hurry. The Yoneda lemma says that for a functor , maps into out of a representable functor are uniquely determined by elements of the set . That is, the generalized elements of at "stages" that are representable are the same as the elements of the sets as varies, and these are indeed the same as the objects of the category of elements of .
It is very cool to understand the Yoneda lemma as a determining relationship between elements of and the generalized elements of the functor of "kind" corresponding to natural transformations from !
Let me see if I can understand this in terms of a "graph" of . If was a function, we would want its graph to correspond to a collection of points . However, is often a set with more than one element, and we can break it up into smaller pieces by considering its elements. Then can imagine adding the points for to our graph for . Each "point" corresponds to a specific element of , and therefore to a specific natural transformation from to , which corresponds to a specific generalized element of .
We can also understand 's action on morphisms in terms of generalized elements, I think. Let be a morphism in . Then sends this to a function . For each , it specifies a . We've seen that can be associated uniquely with a natural transformation from to , and we can do a similar thing with to get a natural transformation from to . So, determines a function from to . So the output of on a morphism can be thought of as specifying a function relating generalized elements of .
Right -- this is one of the naturality properties of the Yoneda lemma.
Now, let's see if we can get a category relating to from this in terms of generalized elements and the relationships between them discussed above.
Choose objects to be all individual natural transformations from representable functors to , with allowed to vary over the objects of . These are specific generalized elements of .
I'm getting a bit confused when thinking about morphisms. I think it relates closely to what I was saying above. Time to take a break though and let things settle a bit.
Thanks again to both of you for your thoughts!
I was thinking a bit about generalized elements of , and I think there are too many of them - I shouldn't be trying to make each generalized element an object in a category associated with . For example, if we consider a set , then the objects of when we view it as a category are its elements, corresponding to functions specifically from , a set with one object. So, it's a specific kind of generalized element of that ends up getting viewed as an object of when we think of as a category.
I know that is a terminal object in the category of sets - there is a single function to it from every other set. Is there a terminal object in the category of functors from to ? We could try defined by for each object and for each morphism . Then I think there is one natural transformation to from any functor in .
We could then try to view an "object" of a functor as a natural transformation .
natural transformation to T to F
We need , where we view as an element of and as an element of .
From this perspective, an "object of " is one element of for each , so that the selected elements map onto one another through any morphism relating them in the image of .
As an example, say . Let be the set of path-connected components of a topological space . Then for a continuous function is an induced map on path-connected components, and it makes sense because all the points that start in the same path connected component must end up in the same path connected component.
Then an "object" of is a natural transformation from to . This corresponds to an element of for each , which is a specific path-connected component of . And we require that for each . But this seems very restrictive, as different continuous functions could send different connected components to different connected components. It seems like these "objects" might not exist as often as I would like...
I started out by complaining that there are too many generalized elements of objects in general, for purposes of viewing them as categories. But it seems like there are too few of this specific form that I was intuitively viewing as "objects".
...One last thought, the over category associated with an object I think is related to what we were talking about above, with generalized elements and relationships between them. The objects of the over category of a functor are natural transformations to - generalized elements of - and the morphisms of commutative triangles relate these generalized elements to one another. Maybe this is a simple enough answer to "How can we make a category from a functor?" to make me happy for now.
Right! For a general category, you often want to consider generalized elements whose domains (sometimes called "stages") are not completely arbitrary, but more general than the terminal object. Specifically, you want to consider a set of domain objects that "generate" the category in some sense. There are a bunch of such senses; the weakest is a [[separator]] and the strongest is a [[dense subcategory]]. The singleton in , and the collection of representables in a presheaf category, are both dense; but the singleton in a functor category is not in general even a separator.
Oh, wow, very interesting! I will enjoy looking at those links!
I recently ran across another way of getting a category from a functor (from the paper "So, what is a derived functor?"):
another category from a functor
This category appears to be like two categories and sitting side by side, except with some "cross-over" morphisms provided by a functor .
As an example, for a function between two finite sets, I think the resulting category looks like two collections of dots, with some arrows from the first collection to the second, corresponding to the mapping of the function. This seems cool - maybe it could be used to define some kind of equivalence relation on functions, corresponding to them having isomorphic (or equivalent) categories under this construction.
This is also called the [[cograph of a functor]].
David Egolf said:
John Baez said:
2) any functor can be understood as a collection of sets where ranges over all objects of and ranges over all objects of , together with maps between these coming from morphisms in and .
I think here the functor we are talking about is , right?
I was talking about a functor and reducing it to our previous study of functors . But I made a bunch of typos because of too many edits.
This is what I was trying to say:
1) any functor can be understood as a collection of sets where ranges over all objects of , together with maps between these coming from morphisms in ,
and
2) any functor can be understood as a collection of sets where ranges over all objects of and ranges over all objects of , together with maps between these coming from morphisms in and .
The first is utterly obvious and the second reduces to the first if we consider all the functors given by .