Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

biproducts #2016

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

biproducts #2016

wants to merge 8 commits into from

Conversation

Alizter
Copy link
Collaborator

@Alizter Alizter commented Jul 5, 2024

In this PR we define what we mean by a category having biproducts. We prove standard lemmas, monoidal structure, funtoriality results and duality.

cc @ThomatoTomato you might want to take a look at this since it is directly part of the abelian category formalization in #1929.

Signed-off-by: Ali Caglayan <[email protected]>

<!-- ps-id: d43ae611-b5f0-49ae-9cec-f96f11c57241 -->
@jdchristensen
Copy link
Collaborator

Some of the comments in #1929 that aren't marked as resolved are about the file Biproducts.v. Have they been addressed here? (I haven't had time to take a look at this PR yet, but will do so soon.)

@Alizter
Copy link
Collaborator Author

Alizter commented Jul 10, 2024

@jdchristensen I don't remember. I will take a closer look ASAP.

Signed-off-by: Ali Caglayan <[email protected]>
@Alizter
Copy link
Collaborator Author

Alizter commented Jul 10, 2024

I'll reproduce the outstanding comments here so we can address them in one place:

  1. Regarding line 143:

I think this argument about how cat_coprod_prod computes when composed with the inclusions and projections has appeared more than once, so it should be factored out as a lemma. Then, with the change that only uses r once (using catie_homotopic), maybe there is no longer a need to assert the various pieces?

I'll write down and use these lemmas. They can probably appear in Coproducts.v.

I need to think a bit more about the rest of the comments.

  1. Regarding line 907:

I have a feeling that what you are doing here might overlap with cat_biprod_corec_rec. If cat_biprod_corec_rec is generalized to be about comparing two maps from a coproduct to a product, then maybe it exactly covers what you need here? Or maybe a slight variation gives a common generalization of both goals?

In Biproducts.v, symmetry and associativity of biproducts is proved using that these hold for products. Then there is some work in showing that these maps respect the coproduct structure. I feel like this should be more formal. In a category with biproducts, every product is canonically a biproduct (as is every coproduct). This is because the biproduct and the product both satisfy the universal property of the product. So the maps showing that products are associative and symmetric, defined using the product structure, should "automatically" respect the coproduct structure. I'm not sure how to make this more precise in a way that would make the proofs simpler, but I suspect that there should be a way.

@Alizter
Copy link
Collaborator Author

Alizter commented Oct 5, 2024

@jdchristensen I haven't been able to make progress with the comments that we had, perhaps I no longer understand what needs to be done. Would you be able to take another look at this and give a fresh review, that should allow us to make some progress on this.

I would like to get this merged eventually, so that we can make room for the other abelian cat stuff.

@jdchristensen
Copy link
Collaborator

@Alizter It will take me some time to remember the context here. I might have time tomorrow, but if not, it will likely be next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants