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.
So apparently for any small category , the presheaf category is Cartesian closed. The closed structure is given by , as shown in this post. I follow the argument in the post, but I still don't have any intuition for this closed structure. Maybe someone can give me some intuition?
For discrete C, you just get multiple copies of Set and the hom is computed pointwise. For C with arrows, a functor is a "model of C", and the hom is a homomorphism of models. For instance, if C is the category with two objects V, E and two morphisms then is a (directed multi-)graph with vertices G(V) and edges G(E). An edge e in G(E) has source G(s)(e) and target G(t)(e). A natural transformation in is a graph homomorphism, i.e. it assigns to the objects V and E morphisms that make the relevant squares commute.
BTW, usually presheaf categories are taken to be rather than so that the Yoneda embedding is covariant. (The Yoda embedding, contravariant it is.)
It really helps to work out the closed structure in the case of graphs, as Mike was indicating... but carry it out to the point of computing the graph for a couple of graphs and . It's the graph of maps from to ... and it's good to get an intuition for what that is.
The graph example is interesting to compute directly. Given graphs and , what is . Firstly, its vertices correspond to morphisms , which correspond to morphisms , which correspond to functions . So far so good.
Secondly, its edges correspond to morphisms , which correspond to morphisms . We can think of as a "bipartitization" of : it has the same edges as , but for each vertex of it has a source version and a target version . The new source and target maps are defined always to map to the correct version of a vertex. Thus the target of one edge is never the source of another. Now a morphism consists of an edge map and two vertex maps , one for source-vertices and one for target-vertices. This might seem like an unnatural construction, but a true exponential object must satisfy for any , and if we choose then is the bipartitization of , so must accommodate for the possibility that "source-vertices" and "target-vertices" are sent to different places.
Finally, the the source and target of an edge are just and respectively.
Nice! It's worth noting that
1) any category has an underlying graph
source, target: {morphisms} {objects}
2) any functor has an underlying morphism of graphs
3) any natural transformation has an underlying "transformation between graph morphisms" where
4) the vertices of are graph morphisms and the edges are transformations between graph morphisms
5) you can compose natural transformations but you can't, in general, compose transformations between graph morphisms.
All this is perhaps a bit less about understanding cartesian closed structures of presheaf categories and a bit more about understanding the link between graph theory and category theory. But the categories Graph and Cat are both cartesian closed so it's good to ponder how the forgetful functor Cat Graph interacts with this fact.
Note that the "graph of homomorphisms" between two objects in the topos of graphs is very different than the "graph of homomorphisms" between two objects in the topos of reflexive graphs. The edges of the latter are much more like natural transformations.
How are they much more like natural transformations? I'm sure you're right. But there's still no commutative square condition involved, and you still can't compose them, so I'm mainly aware of how they're not like natural transformations.
It comes down to the difference in the product of two edge graphs. In the topos of mere graphs, the product of two directed edges a->b and c->d is a single directed edge ab->cd. But in the topos of reflexive graphs, you can keep one vertex constant using the canonical self-edge, so you get a box shape with a diagonal through it.
This is a great source for understanding all the variations: "Graphs of morphisms of graphs" https://www.combinatorics.org/ojs/index.php/eljc/article/view/v15i1a1
It considers toposes of {directed, undirected} × {reflexive, non-reflexive} graphs.
Oh, okay, yes. I'd say the product in the category of reflexive graphs more closely resembles the product in Cat.
Here is a very vague, vastly insufficient, syntactic intuition. Thinking of , e.g., as a Lawvere theory, are some sort of generalised predicates, in the sense that they are equipped with an action by substitutions: a morphism in is like a substitution of the variables by . The point is that natural transformations do not naturally come equipped with such an action by substitutions, because of contravariance on the left of the arrow. The solution is to parameterise them over all potential instantiations. Thus, for any object , says something like "give me a substitution of the variables in , and I'll return a map ." It is then a little exercise to show that this is indeed equipped with an action as desired.
It might also be helpful to draw intuition from the interpretation of in Kripke-Joyal semantics, which has been explained at large in the literature. Does anyone confirm this?
A very neat syntactic intuition! Maybe I can add that the end you're performing to compute as a limit is exactly the "quantification over all potential instantiations"? This dates back to Lawvere of course...
Yes, absolutely.
John Baez said:
Oh, okay, yes. I'd say the product in the category of reflexive graphs more closely resembles the product in Cat.
The upshot of the difference in the product is that the "graph of homomorphisms" in the topos of mere graphs doesn't actually have graph homomorphisms as vertices! Instead, it has a weakened notion that @Joshua Meyers worked out above (see also page 3 of https://arxiv.org/abs/math/0306394). So the "graph transforms" between them are also correspondingly weird.
The very unfortunately named "cartesian product of graphs", which ought to be called the "box product of graphs", is a symmetric monoidal product on graphs that makes the internal hom have graph homomorphisms as vertices and graph transforms as edges. The categorical product of reflexive graphs includes the box shape and doesn't break anything, so the vertices and edges of the internal hom graph are also graph homomorphisms and transforms.