Zulip Chat Archive

Stream: general

Topic: design of products/equalizers/kernels/pullbacks


Scott Morrison (Aug 08 2018 at 10:22):

I'm looking for some advice/opinions on a design issue for category theory. In particular this is about categorical products (or equalizers, or kernels, or pullbacks). I think there ought to be at least two descriptions of these, along with appropriate lemmas to move back on forth. One description will be as a special case of limits, and the other description will be more "concrete".

Scott Morrison (Aug 08 2018 at 10:23):

Writing them as special cases of limits is of course useful so we can save effort on proving things like "products are unique, up to unique isomorphism" and "equalizers are unique, up to unique isomorphism" without duplication.

Scott Morrison (Aug 08 2018 at 10:23):

But I'm pretty sure it will be too cumbersome to actually use them when presented like this.

Scott Morrison (Aug 08 2018 at 10:23):

My question is just how concrete to make the concrete version. (One possible answer here is to have several versions.)

Scott Morrison (Aug 08 2018 at 10:26):

My first inclination is to make them extremely explicit: for example for a product it would be a structure containing separate fields for the data:

1. an object P of the category
2. maps \pi_i to each factor X_i
3. if you have an object Q equipped with maps g_i to each of the X_i, then you get a map f : Q \to P
4. moreover, this means that g_i factors as f then \pi_i
5. finally, if you have two maps from Q to P making the g_i's factor in this way, then the two maps are equal.

Scott Morrison (Aug 08 2018 at 10:27):

Slightly less explicit would be

1. an object P of the category
2. maps \pi_i to each factor X_i
3. given Q and maps g_i : Q \to X_i, the fact that the set of maps Q \to P giving those factorisations is a singleton set

Scott Morrison (Aug 08 2018 at 10:28):

Maybe there's not much difference between the two. In any case, if someone cares let me know, as this is easy to change now. :-)

Scott Morrison (Aug 08 2018 at 10:29):

The advantage of the first approach is that if you just want the map Q \to P, you can ask for it directly without having to unpack a witness that a certain type is a singleton to actually get the element.

Scott Morrison (Aug 08 2018 at 10:29):

The disadvantage is that it's a bit grosser to write everything out.

Scott Morrison (Aug 08 2018 at 10:30):

I'm curious to know which choice feels more usable to people.

Johan Commelin (Aug 08 2018 at 10:31):

Hi Scott! Those are the difficult questions that we will have to tackle!

Johan Commelin (Aug 08 2018 at 10:31):

Did you see Reid's approach in his homotopy lib?

Johan Commelin (Aug 08 2018 at 10:32):

He basically provides both. Your (1,2,3) would be a wrapper around (1,2,3,4,5)

Scott Morrison (Aug 08 2018 at 10:39):

Great, thanks for the pointer! (And my apologies to @Reid Barton, for not having yet read his work, although he told me about it a few days ago.)

Scott Morrison (Aug 08 2018 at 10:41):

Seeing that Reid went for two versions, I'm further inclined to go for lots of versions: the gory one, the "singleton" based one, and the "this is just a limit" one.

Patrick Massot (Aug 08 2018 at 10:51):

I'm almost sure we need several versions, with "constructors" to get the most explicit ones out of implicit information.

Scott Morrison (Aug 08 2018 at 10:52):

Yes. Having just looked at @Reid Barton's design for this, I like it. (Well... I might try rewriting it myself before I really like it, but the overall approach looks right.)

Scott Morrison (Aug 08 2018 at 10:54):

Although I think/hope all his lemmas about various types of colimits interacting can be simplified! I'd hope you can just prove a Fubini theorem for colimits, and then specialise to get many of the lemmas there. Haven't thought about this very hard, however!

Patrick Massot (Aug 08 2018 at 11:00):

What would be really really useful is a convenient way to be able to use all this as an external tool. For instance, we have uniform spaces in mathlib, and all lemmas required to make a category of those, but we don't have that category. Same for complete Hausdorff uniform spaces. Then we have https://github.com/kbuzzard/lean-perfectoid-spaces/blob/master/src/for_mathlib/completion.lean#L8-L15. And I'd like https://github.com/kbuzzard/lean-perfectoid-spaces/blob/master/src/for_mathlib/completion.lean#L20-L24 to be done by invoking a function defined in category_theory with minimal effort, without necessarily being tied to use the content of category_theory everywhere else.

Patrick Massot (Aug 08 2018 at 11:01):

same for the uniqueness up to unique iso of the completion


Last updated: Dec 20 2023 at 11:08 UTC