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.
I am slowly trying to learn about co/ends by systematically formalizing Loregian's textbook https://arxiv.org/pdf/1501.02503.pdf. It's been somewhat of a struggle - the first ½ of p.13 alone has taken me 3 days, just to unpack everything that's there! And I am now stuck on the lhs of Eq. (25) of p.13. I do have a proof that Limits are terminal Cones, Ends are terminal Wedges, categorical equivalences preserve terminal objects (that was monstrously hard too). So I have the two arrows that witness that the two objects are equivalent, what I'm stuck on is that they are inverses.
This is surely where the comment about terminal objects being preserved comes in (as I have not used that result yet), but I'm still stuck.
What language are you using for the formalization?
Agda. It's intended to go into agda-categories.
My advice would be to stick as close as possible to the standard "uniqueness up to isom of universal constructions" argument. In this case, it would go something like observing that the arrows between the end and limit commute with the arrows defining the end wedge and the limit cone in a suitable way, so that when you compose both of them with the limit cone, say, the result is the same limit cone, which forces that composite to be the identity.
If that was too vague, I can sketch some diagrams :joy:
I doubt I can help you with the agda code, but I disassembled and reassembled those proofs inside out 25 times already. Maybe among all possible proofs I can help you find the simplest one to formalise.
Turns out that if I interpret in Eq. (25) to be in the category Wedge F instead of in (where ), the result indeed follows by the fact that the just-proved categories are equivalent, and equivalence preserves terminal objects. As a second step, this induces the result on objects of D. The two proofs are then completely straightforward.
What was really not clear to me was that I needed to first to the proof in Wedge F, to get the result in D as a corollary.
@fosco I would greatly appreciate the help! I can handle the Agda side of things. Do you prefer that we continue to exchange messages here, or do you prefer a different medium of communication?
Let's keep it public for the moment! I know a few people proficient in Agda, probably they can help too
Glad to. I'll keep posting here (and in this stream, but using new topics as appropriate).
So, if you're keeping notes for a 2nd edition of your book, on top of the above confusion of how to prove that particular remark: 'equivalence of categories preserves initial and terminal objects' is true, but requires 'adjoint equivalence' as far as I can tell. Of course, all equivalences can be so upgraded, but it took me forever to see that the 'obvious' arrow was simply not going to work in the uniqueness proof, but that 'zig' would.
I'm not sure what your setup is, but the proof should just be: if is an equivalence and is a terminal object of , then we want to prove is a terminal object of : Let be an object of ; we want to show has a single element; pick an object and an isomorphism (we can do this because is an equivalence); then .
:wave: I have a question about Ends & CoEnds - I'm trying to come up with some examples for Ends & CoEnds in specific categories. Is it correct to say the general procedure for coming up with an End is:
Algorithm for Ends:
in otherwords Forall a: fa -> gb such that the naturality condition holds.
Does this seem right/ reasonable?
A coend is a certain universal object attached to a functor of type ; a way to produce such a functor is to take a covariant , a contravariant , a "product" , and consider the functor .
Dually, for an end, you might want to consider two functors of the same variance, and then a functor , and then the functor .
But this is not the only way to obtain such objects! There's plenty of functors that are not "decomposable" into as above.
If the domain of is small and their codomain is , the end of always exist; it might be far from interesting, but you can compute it.
Thanks!
A somewhat more trivial question - I'm pretty sure the CoEnd for Vect is the tensor product defined here: https://en.wikipedia.org/wiki/Tensor_product (got to Tensor product of linear maps). I _think_ the End would be Span for Vect? Does that seem right? It feels weird that Span would be dual to Tensor Product though in some sense. So just want to check my logic.
I don't think coends in Vect are the usual tensor products in Vect. That sounds too exciting to be true. Tensor products "know about" bilinear maps while Vect, as a mere category rather than a monoidal category or multicategory, only "knows about" linear maps.
But maybe I'm missing the point here.
What you claim is not exact, but the tensor product of vector spaces (or R-modules, for that matter) can be characterised as a coend, yes. A left R-module is a functor , regarding the monoid as a category with a single object (in fact, an -enriched category with a single object!); dually, a right R-module is a functor . The "functor tensor product" of the two is their tensor product as modules (or more precisely, its underlying abelian group)
Slightly more conceptually, you can define a bicategory whose 0-cells are rings (all unital rings), and where the hom-category is the category of left-, right -bimodules.
In this perspective, given modules and , their composition as 1-cells is the -bimodule .
In both cases the claim is easy to motivate because the coequaliser that defines the tensor product (modding out the abelian group by -bilinearity) is precisely the coequaliser yielding the coend that defines the functor tensor product, identifying as functors.
In the second picture, "is" a bicategory of profunctors, and in fact can be identified with the subcategory of -enriched profunctors between "1-object -enriched categories", i.e. unital rings. Profunctor composition is defined by a coend, the same coend that defines the aforementioned (functor) tensor product.
I have a very trivial question about the page 80 here: how this shape of with implies that the components of
are these two arrows
and that that diagram should commute.
Perhaps that I've entirely forgotten what a natural transformation is for this case! I understand that the arrows should be 2 in number, though. I do not understand the direction of as from . 4.jpg
A natural transformation has two components:
now, naturality at yields a commutative square (draw it!) and imposes the condition that .
Why picks two elements from ,
while picks single element ? Thank you.
well, is a two element set, is a singleton...
Please be patient with me, how do you know that is a 2 element set from what is given on that page 80 ?
Isn't that the definition of ? Or what do you think the definition of is?
(deleted)