Skip to content

[Merged by Bors] - feat(CategoryTheory/Monoidal): partially setting simp lemmas#10061

Closed
yuma-mizuno wants to merge 4 commits intomasterfrom
ymizuno-whiskering-extracted4
Closed

[Merged by Bors] - feat(CategoryTheory/Monoidal): partially setting simp lemmas#10061
yuma-mizuno wants to merge 4 commits intomasterfrom
ymizuno-whiskering-extracted4

Conversation

@yuma-mizuno
Copy link
Copy Markdown
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 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
Copy Markdown
Contributor

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 labels Jan 30, 2024
@yuma-mizuno yuma-mizuno added awaiting-review and removed awaiting-author A reviewer has asked the author a question or requested changes. labels Jan 30, 2024
@joelriou
Copy link
Copy Markdown
Contributor

Thanks!

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review 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
Copy Markdown
Contributor

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.

2 participants