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(CategoryTheory/Monoidal): partially setting simp lemmas #10061

Closed
wants to merge 4 commits into from

Conversation

yuma-mizuno
Copy link
Collaborator

@yuma-mizuno yuma-mizuno commented Jan 28, 2024

Extracted from #6307. The main reason why #6307 is so large is that many tensoring of identity morphisms that appear in mathlib should be replaced with whiskerings. This PR will leave this issue and deal with other parts. That is, we do not set id_tensorHom and tensorHom_id as simple lemmas at this moment, We can set them as simp lemmas locally to enable simple normal forms.


Open in Gitpod

@yuma-mizuno yuma-mizuno changed the title update refactor(CategoryTheory/Monoidal): partially setting simp lemmas Jan 28, 2024
@yuma-mizuno yuma-mizuno changed the title refactor(CategoryTheory/Monoidal): partially setting simp lemmas feat(CategoryTheory/Monoidal): partially setting simp lemmas Jan 28, 2024
@yuma-mizuno yuma-mizuno added awaiting-review The author would like community review of the PR t-category-theory Category theory labels Jan 28, 2024
@yuma-mizuno yuma-mizuno marked this pull request as ready for review January 28, 2024 05:38
Comment on lines 814 to 819
theorem rightUnitor_conjugation {X Y : C} (f : X ⟶ Y) :
f ⊗ 𝟙 (𝟙_ C) = (ρ_ X).hom ≫ f ≫ (ρ_ Y).inv := by
simp
#align category_theory.monoidal_category.right_unitor_conjugation CategoryTheory.MonoidalCategory.rightUnitor_conjugation

theorem leftUnitor_conjugation {X Y : C} (f : X ⟶ Y) :
Copy link
Collaborator

Choose a reason for hiding this comment

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

These two lemmas could have the reassoc attribute. Otherwise, the PR looks great to me!

@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 Jan 30, 2024
@yuma-mizuno yuma-mizuno 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 Jan 30, 2024
@joelriou
Copy link
Collaborator

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 Jan 31, 2024
mathlib-bors bot pushed a commit that referenced this pull request Jan 31, 2024
Extracted from #6307. The main reason why #6307 is so large is that many tensoring of identity morphisms that appear in mathlib should be replaced with whiskerings. This PR will leave this issue and deal with other parts. That is, we do not set `id_tensorHom` and `tensorHom_id` as simple lemmas at this moment, We can set them as simp lemmas locally to enable simple normal forms.
@mathlib-bors
Copy link

mathlib-bors bot commented Jan 31, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(CategoryTheory/Monoidal): partially setting simp lemmas [Merged by Bors] - feat(CategoryTheory/Monoidal): partially setting simp lemmas Jan 31, 2024
@mathlib-bors mathlib-bors bot closed this Jan 31, 2024
@mathlib-bors mathlib-bors bot deleted the ymizuno-whiskering-extracted4 branch January 31, 2024 07:32
mathlib-bors bot pushed a commit that referenced this pull request Feb 2, 2024
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

2 participants