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

[Merged by Bors] - feat: basic definition of comonoid objects #10091

Closed
wants to merge 14 commits into from

Conversation

semorrison
Copy link
Contributor


Open in Gitpod

@joelriou joelriou added the t-category-theory Category theory label Feb 7, 2024
@joelriou joelriou added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Feb 7, 2024
@semorrison semorrison added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Mar 19, 2024
Mathlib/CategoryTheory/Monoidal/Comon_.lean Outdated Show resolved Hide resolved
Mathlib/CategoryTheory/Monoidal/Comon_.lean Outdated Show resolved Hide resolved
Mathlib/CategoryTheory/Monoidal/Comon_.lean Outdated Show resolved Hide resolved
Mathlib/CategoryTheory/Monoidal/Comon_.lean Outdated Show resolved Hide resolved
rw [rightUnitor_inv_naturality, tensorHom_def', comul_counit_assoc]

theorem assoc_flip :
M.comul ≫ (𝟙 M.X ⊗ M.comul) = M.comul ≫ (M.comul ⊗ 𝟙 M.X) ≫ (α_ M.X M.X M.X).hom := by simp
Copy link
Member

Choose a reason for hiding this comment

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

I'm not familiar with the current setup for monoidal categories. It looks to me that neither LHS nor the RHS of this lemma are in simp-normal form due to the simp lemmas id_tensorHom and tensorHom_id. Should the statement be changed? Why doesn't the simpNF linter complain about this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

simpNF doesn't complain because this isn't a simp lemma!

I fixed this to use whiskering.

Copy link
Contributor Author

@semorrison semorrison May 6, 2024

Choose a reason for hiding this comment

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

I've actually now changed both the associativity lemmas, to absorb associators, and made both simp. Probably this will break the downstream PRs, whose content I've entirely forgotten by now. :-)

Mathlib/CategoryTheory/Monoidal/Comon_.lean Outdated Show resolved Hide resolved
@TwoFX TwoFX added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Mar 26, 2024
@semorrison semorrison added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels May 6, 2024
@joelriou
Copy link
Collaborator

joelriou commented May 9, 2024

Thanks!

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels May 9, 2024
mathlib-bors bot pushed a commit that referenced this pull request May 9, 2024
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Scott Morrison <scott@tqft.net>
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented May 9, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: basic definition of comonoid objects [Merged by Bors] - feat: basic definition of comonoid objects May 9, 2024
@mathlib-bors mathlib-bors bot closed this May 9, 2024
@mathlib-bors mathlib-bors bot deleted the Comon_ branch May 9, 2024 16:28
apnelson1 pushed a commit that referenced this pull request May 12, 2024
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Scott Morrison <scott@tqft.net>
callesonne pushed a commit that referenced this pull request May 16, 2024
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Scott Morrison <scott@tqft.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has been sent to bors. t-category-theory Category theory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants