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.
Let be a category, call the presheaf category and the presheaf category on the underlying set (or groupoid) of objects of be called . There is a forgetful functor that has a right adjoint which looks like . It looks to me that this is actually comonadic: a presheaf is a family of sets equipped with a functoriality structure which looks just like a coalgebra . Do I have this right? Are there any interesting consequences of this? I vageuly remember a talk by Marcelo Fiore that mentioned a construction like this?
Since comonadic functors create colimits a simple consequence would be that colimits in the presheaf cat are computed pointwise. And if it's also the case that presheaf categories are monadic with the corresponding left adjoint this would also give a reason why limits are given pointwise.
Yep, this is correct.
One consequence that I find interesting and useful is that when you consider Cat-enrichment, the category of 2-presheaves has both lax/pseudo morphism classifiers (because it's finitary monadic) and co-classifiers (because it's co-finitary co-monadic). Thus, for Cat-valued presheaves there are both and such that a pseudonatural map can be represented either by a strict map or a strict map . This categorifies to "bar and cobar constructions" in homotopy theory.
Max New said:
I vageuly remember a talk by Marcelo Fiore that mentioned a construction like this?
My guess is that you mean Marcelo's HoTTEST talk from last year. Slides and video are linked from here, it is on slide 24. There is also a paper.
cc @Dima Szamozvancev
Indeed, this is what I'm writing my thesis on under Marcelo. The initial inspiration came from Allais et al. (https://arxiv.org/pdf/2001.11001.pdf) who use the coalgebra structure to capture renaming. One in fact has an adjoint triple given by left and right Kan extensions along the injection from the underlying objects to , and is monadic, giving an equivalence of categories between presheaves on , and the categories of -coalgebras and -algebras (for ) on the category of indexed families (~ presheaves on the discrete subcategory). The practical advantage of this is that the presheaf model of abstract syntax (Fiore, Turi, Plotkin, 1999) can be simplified somewhat by separating "presheaves" from their presheaf action and only requiring it when it is needed (in their work, for the pointed strength that pushes substitutions under binders). It makes the theory more amenable to formalisation e.g. in Agda, because you're mostly working with indexed sets, rather than full-on presheaves. Our POPL 2022 paper gives a high-level overview of the theory and how it leads to an Agda framework for language formalisation, and my thesis (nearing (?) completion) will discuss the underlying theory at a higher level of abstraction.
Another perspective: a point of a topos is a geometric morphism (that is, an adjoint pair of functors with right adjoint in the direction of the arrow, , such that the left adjoint preserves finite limit. A set of points can be combined into a geometric morphism . This morphism is a geometric surjection (ie the left adjoint is comonadic) if and only if the points in are jointly faithful, or (equivalently in this case, thanks to the nice properties of toposes) jointly conservative.
A presheaf topos has some special 'representable' points, given by evaluation at a given object of the underlying category. In particular, combining these points produces the geometric morphism from that you noticed, and it is a surjection because the joint conservativity condition is certainly satisfied in this case.
The representable points are essential, meaning that has a further left adjoint, and this is similarly inherited by the compiled point, as you observed.
I guess this fact can be also read as the fact (co)presheaves on are equivalent to actions of on families of sets indexed by its objects. Categories of acts are usually both monadic and comonadic (not sure about actions of categories though), which in this case would tell you the action on morphisms of a (co)presheaf as either an algebraic or coalgebraic structure.
I've thought of another example, which is that the category of coalgebras of a lex comonad on an elementary topos is an elementary topos, and IIUC the comonad above is lex and so this shows how to prove a presheaf category is an elementary topos given that you've proven the easier fact that presheaves on a discrete category form an elementary topos. This is I think what Todd is calling the "lex comonad theorem" here (https://ncatlab.org/toddtrimble/published/Three+topos+theorems+in+one)
Is there a way to use this to prove the Yoneda lemma? From this POV, we can take any presheaf and construct the cofree coalgebra on the underlying family , and then the Yoneda lemma gives an explicit description of any as a sub-presheaf of as an end/the natural elements. I guess this is the image of the coalgebra map .
And the co-Yoneda lemma similarly looks like showing every presheaf is a quotient of a free algebra
Yes, in fact the Yoneda lemma and Co-Yoneda lemma follow from a general theorem about algebras/co-algebras: (https://ncatlab.org/nlab/show/Eilenberg-Moore+category#AsColimitCompletionOfKleisliCategory).
For the Yoneda case, we have that presheaves are -coalgebras, and that every coalgebra is the equalizer in where the first arrow is the coalgebra map and the two arrows being equalized are and the comultiplication . The end in the Yoneda lemma is by definition this same equalizer , and so since they are equalizers of the same diagram they are canonically isomorphic. Co-Yoneda follows by the dual theorem for algebras as coequalizers.
The general theorem about (co)-algebras is the subject of Chapter 5.4 in Emily Riehl's textbook