Skip to content

[Merged by Bors] - feat: add unitor functor for product of categories - #13663

Closed
onriv wants to merge 11 commits into
masterfrom
onriv/category_product_unitor
Closed

onriv wants to merge 11 commits into
masterfrom
onriv/category_product_unitor

Conversation

@onriv

@onriv onriv commented Jun 9, 2024

Copy link
Copy Markdown
Contributor

left and right unitor functors for product of categories


Open in Gitpod

The implementation is copying from the same file for the associator. I am not sure if the category "1" , i.e., Discrete Punit should take universe parameter or not, and if it should have some notation like U+1D7CF 𝟏 or something else.

@github-actions github-actions Bot added the new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! label Jun 9, 2024
@github-actions

github-actions Bot commented Jun 9, 2024 •

Copy link
Copy Markdown

PR summary 9f3684242a

Import changes

No significant changes to the import graph


Declarations diff

+ leftInverseUnitor
+ leftUnitor
+ leftUnitorEquivalence
+ leftUnitor_isEquivalence
+ rightInverseUnitor
+ rightUnitor
+ rightUnitorEquivalence
+ rightUnitor_isEquivalence

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

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

@erdOne

erdOne commented Jun 9, 2024

Copy link
Copy Markdown
Member

Thanks for the contribution! If you think this PR is ready for review please add the "awaiting-review" label. While you're at it, adding the "t-category-theory" tag also helps the discoverability of the PR. Also see this page for more info.

@onriv

onriv commented Jun 9, 2024

Copy link
Copy Markdown
Contributor Author

@erdOne Thank you for the reply! Yeah I added the two tags and reading the doc now.

@joelriou

joelriou commented Jun 9, 2024

Copy link
Copy Markdown
Contributor

As the file is named Associator.lean, could you move the new code to a new file Unitor.lean.

@joelriou joelriou added awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. and removed awaiting-review labels Jun 9, 2024
@onriv

onriv commented Jun 10, 2024

Copy link
Copy Markdown
Contributor Author

@joelriou Thank you for the suggestion! New code moved to a new file Unitor.lean.

@onriv onriv added awaiting-review and removed awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. labels Jun 10, 2024
@joelriou joelriou added awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. and removed awaiting-review labels Jun 10, 2024
@onriv onriv added awaiting-review and removed awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. labels Jun 10, 2024
@joelriou

Copy link
Copy Markdown
Contributor

You may have to update the root file Mathlib.lean so that all files (including the new one) are imported.

@joelriou joelriou added awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. and removed awaiting-review labels Jun 10, 2024
@onriv

onriv commented Jun 10, 2024

Copy link
Copy Markdown
Contributor Author

@joelriou Thanks for the reminding! Mathlib.lean updated too. It's kind of weird that the ci pipline failed now though

@onriv
onriv force-pushed the onriv/category_product_unitor branch from 1dffc8e to e0140c0 Compare June 15, 2024 11:54
@joelriou joelriou added awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. and removed awaiting-review labels Jun 17, 2024
@onriv
onriv force-pushed the onriv/category_product_unitor branch from e0140c0 to 5d00bfe Compare June 18, 2024 14:38
@onriv onriv added awaiting-review and removed awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. labels Jun 19, 2024

/-- The left unitor functor `1 × C ⥤ C` -/
@[simps]
def leftUnitor : Discrete (PUnit: Type w) × C ⥤ C where

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.

And similarly below:

Suggested change
def leftUnitor : Discrete (PUnit: Type w) × C ⥤ C where
def leftUnitor : Discrete (PUnit : Type w) × C ⥤ C where

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.

Thanks! Codestyle change with space before column now

@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 Jun 23, 2024
mathlib-bors Bot pushed a commit that referenced this pull request Jun 23, 2024
left and right unitor functors for product of categories



Co-authored-by: Shanghe Chen <[email protected]>
@mathlib-bors

mathlib-bors Bot commented Jun 23, 2024

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat: add unitor functor for product of categories [Merged by Bors] - feat: add unitor functor for product of categories Jun 23, 2024
@mathlib-bors mathlib-bors Bot closed this Jun 23, 2024
@mathlib-bors
mathlib-bors Bot deleted the onriv/category_product_unitor branch June 23, 2024 16:49
kbuzzard pushed a commit that referenced this pull request Jun 26, 2024
left and right unitor functors for product of categories



Co-authored-by: Shanghe Chen <[email protected]>
dagurtomas pushed a commit that referenced this pull request Jul 2, 2024
left and right unitor functors for product of categories



Co-authored-by: Shanghe Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! 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.

3 participants