Repository navigation
Conversation
PR summary f253e9b0ecImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
YaelDillies
left a comment
There was a problem hiding this comment.
You're following the now-outdated ChosenFiniteProducts paradigm. Could you please instead follow the new CartesianMonoidalCategory one? Thanks!
|
@YaelDillies the issue with that is that we'd like (e.g. in Distributive) to deal with categories having both a monoidal and coproduct structure. Eventually, it would make sense to have |
|
I agree with @YaelDillies’s suggestion here: I think we really want to have a class for monoidal categories (with additive and multiplicative notations) that are cocartesians: there is of course the example of bicartesian monoidal categories that you mention, in which the notation is often additive, but there is also the case of commutative monoid objects internal to a symmetric monoidal category: these already have a monoidal structure in mathlib, with a multiplicative notation. I think it would be good to be able to state that these are cocartesian monoidal categories as well without giving up multiplicative notations (in fact, this example was the one behind my interest in the previous PR!). Setting this up only for I understand that notation-wise, this is not so well-suited for distributive or bimonoidal/semirig-categories frameworks. For the latter two, I think it might be really worth investigating if there is a way to use the To give some more context about what happened to the old |
|
Put another way, we see your PR as doing two big orthogonal things at once:
Each of these steps can be made without much thinking involved:
But you're doing neither of these, filling up the square from the diagonal without following any pre-existing code, which is both harder for you to write and for us to review, AND creates technical debt that will need to be cleaned up when inevitably someone will need the other two entries of the square. I understand that filling up the square is more than you need for ring categories, but it is, we believe, the easiest route for throth writing, reviewing and maintaining the code. Does this make sense? PS: In fact I think we needn't fully complete the square, because it seems no one cares about cartesian monoidal categories with additive notation. This means you can first translate however many files you need on cartesian-monoidal categories to cocartesian ones, then additivise only the cocartesian ones. |
|
OK, so would you guys welcome a PR copying over the basics of AddMonoidalCategory, just copy pasted for now (with to dual punted to later)? Tbf I'm just rushing as I'm wrapping up my PhD and would like to upstream as much of my formalization work as possible while I've got time (we've got a whole theory of premonoidal Elgot categories worked out!) |
|
Sure! I don't think you even need to copy-paste much for |
|
@YaelDillies sorry for taking forever to get around to this; I've made a PR for |
|
This PR/issue depends on:
|
|
This pull request has conflicts, please merge |
Added basic
ChosenFiniteCoproductsclass, and started porting some of the lemmas aboutChosenFiniteProductssuitably translatedThis, combined with #20182 modified to use chosen finite coproducts and premonoidal categories (#21488), should be enough for me to formalize strong Elgot categories, and hence a lot of categorical iteration theory for my PhD thesis.
Re-done from #21603 to deal with changes in #24399 and #24390
Eventually, if we really want to harmonize approaches, we could introduce an
AddMonoidalCategorystruct and do the analogous to #24399 and #24390 for additive monoidal structure, but that seems like a massive overcomplication for now. It would allow formalizing fun things like rig categories, though.