Skip to content

feat(CategoryTheory/ChosenFiniteProducts): add basic ChosenFiniteCoproducts class - #21603

Closed
imbrem wants to merge 11 commits into
masterfrom
chosen-finite-coproducts
Closed

imbrem wants to merge 11 commits into
masterfrom
chosen-finite-coproducts

Conversation

@imbrem

@imbrem imbrem commented Feb 9, 2025 •

Copy link
Copy Markdown
Contributor

Added basic ChosenFiniteCoproducts class, and started porting some of the lemmas about ChosenFiniteProducts suitably translated


This, 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.

Open in Gitpod

@github-actions github-actions Bot added new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! t-category-theory Category theory labels Feb 9, 2025
@github-actions

github-actions Bot commented Feb 9, 2025 •

Copy link
Copy Markdown

PR summary 2c2c0cc16c

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ ChosenFiniteCoproducts
+ addHom
+ addHom_desc
+ coprodComparison
+ coprodComparison_comp
+ coprodComparison_id
+ coprodComparison_inv_natural
+ coprodComparison_natural
+ coprodObj
+ desc
+ desc_comp
+ desc_comp_inl_inr
+ desc_inl_comp_inr_comp
+ desc_inl_inr
+ epi_desc_of_epi_left
+ epi_desc_of_epi_right
+ fromZero
+ fromZero_unique
+ hom_ext
+ initialComparison
+ initialComparison_comp_map_fromZero
+ initialComparison_isIso_of_preservesColimits
+ initialObj
+ inl
+ inl_addHom
+ inl_coprodComparison
+ inl_desc
+ inr
+ inr_addHom
+ inr_coprodComparison
+ inr_desc
+ instance (X : C) : Unique (𝟘_ C ⟶ X)
+ instance (priority := 100) : Limits.HasFiniteCoproducts C
+ lift_tensorHom
+ map_inl_inv_coprodComparison
+ map_inr_inv_coprodComparison
+ ofFiniteCoproducts
+ preservesColimit_empty_of_isIso_initialComparison
+ preservesInitialIso
+ preservesInitialIso_inv

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@TwoFX TwoFX added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Mar 4, 2025
@imbrem imbrem removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Mar 4, 2025
@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Mar 5, 2025
@imbrem
imbrem force-pushed the chosen-finite-coproducts branch from b68b317 to d3cc8cc Compare March 6, 2025 14:42
@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Mar 6, 2025
/-- Notation for the chosen coproduct of two morphisms -/
scoped infixr:70 " ⊕ₕ " => addHom

@[reassoc]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you consider making this a simp lemma?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember there was some reason I didn't make certain things simp lemmas; perhaps consistency with CategoryTheory.Limits.HasCoproduct, but I made it a simp lemma now and it doesn't break anything so it should be fine!

@joelriou joelriou added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Apr 7, 2025
@imbrem imbrem removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Apr 7, 2025
@b-mehta
b-mehta requested review from TwoFX and joelriou April 18, 2025 18:31
@grunweg grunweg changed the title feat(CategoryTheory/ChosenFiniteProducts): Added basic ChosenFiniteCoproducts class feat(CategoryTheory/ChosenFiniteProducts): add basic ChosenFiniteCoproducts class May 8, 2025
@grunweg

grunweg commented May 8, 2025

Copy link
Copy Markdown
Contributor

The auto-assignment algorithm suggested a reviewer: let me manually override this to the two users who already reviewed this PR.

@YaelDillies

Copy link
Copy Markdown
Contributor

Hey Jad! Sorry to delay things further, but in the context of Toric we're completely overhauling the way cartesian-monoidal categories work. See #24399 for what changed.

Could you please adapt your PR to #24399 (which is merged) and maybe even to #24390 (which is not yet merged but will likely get in soon)?

@YaelDillies YaelDillies added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label May 11, 2025
@leanprover-community-bot-assistant

Copy link
Copy Markdown
Contributor

This pull request has conflicts, please merge master and resolve them.

@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 15, 2025
@YaelDillies

Copy link
Copy Markdown
Contributor

Both PRs mentioned above are now merged

@robin-carlier

Copy link
Copy Markdown
Contributor

Hello @imbrem, do you still intend to work on this?
After the overhaul in #24399 and #24390, it seems the way forward here would be to define a class of cocartesian monoidal categories, and it popped up that this is a notion we could want for e.g #25365.
If you do not intend to develop this, I would be happy to do it!

@imbrem

imbrem commented Aug 20, 2025

Copy link
Copy Markdown
Contributor Author

@robin-carlier sorry for disappearing I've been incredibly busy. I now may be able to work on this again, but if you want to go ahead that works too. We could also work together!

@imbrem

imbrem commented Aug 20, 2025

Copy link
Copy Markdown
Contributor Author

Alright, I just decided to give it a shot in #28718!

@YaelDillies

Copy link
Copy Markdown
Contributor

Closing, since you've moved to a fork.

@YaelDillies
YaelDillies deleted the chosen-finite-coproducts branch August 21, 2025 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! t-category-theory Category theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants