Skip to content

[Merged by Bors] - feat(CategoryTheory): pseudofunctors to Cat#25971

Closed
joelriou wants to merge 35 commits intoleanprover-community:masterfrom
joelriou:pseudofunctor-mapcomp-prime-cat
Closed

[Merged by Bors] - feat(CategoryTheory): pseudofunctors to Cat#25971
joelriou wants to merge 35 commits intoleanprover-community:masterfrom
joelriou:pseudofunctor-mapcomp-prime-cat

Conversation

@joelriou
Copy link
Copy Markdown
Contributor

@joelriou joelriou commented Jun 16, 2025

This PR adds convenience lemmas for pseudofunctors to Cat, mostly using the to_app attribute. The simp set for the to_app attribute is extended in order to take into account that in Cat, associators and unitors induce identities.


This PR continues the work from #24384.

Original PR: #24384

@joelriou
Copy link
Copy Markdown
Contributor Author

Comments from Original PR #24384

This section contains 1 comment(s) from the original PR, excluding bot comments.


@github-actions (2025-04-26 10:22 UTC):

PR summary db52f0992d

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.CategoryTheory.Bicategory.Functor.Cat (new file) 367

Declarations diff

+ mapComp'_comp_id_hom_app
+ mapComp'_comp_id_inv_app
+ mapComp'_hom_app_comp_mapComp'_hom_app_map_obj
+ mapComp'_hom_app_comp_map_map_mapComp'_hom_app
+ mapComp'_hom_naturality
+ mapComp'_id_comp_hom_app
+ mapComp'_id_comp_inv_app
+ mapComp'_inv_app_comp_mapComp'_hom_app
+ mapComp'_inv_app_map_obj_comp_mapComp'_inv_app
+ mapComp'_inv_naturality
+ mapComp'_naturality_1
+ mapComp'_naturality_2
+ mapComp'₀₁₃_hom_app
+ mapComp'₀₁₃_inv_app
+ mapId'_hom_naturality
+ mapId'_inv_naturality
+ map_map_mapComp'_inv_app_comp_mapComp'_inv_app

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).

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 16, 2025

PR summary c4b611e415

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.CategoryTheory.Bicategory.Functor.Cat (new file) 387

Declarations diff

+ mapComp'_comp_id_hom
+ mapComp'_comp_id_inv
+ mapComp'_hom_naturality
+ mapComp'_id_comp_hom
+ mapComp'_id_comp_inv
+ mapComp'_inv_naturality
+ mapComp'_inv_whiskerRight_mapComp'₀₂₃_inv
+ mapComp'_naturality_1
+ mapComp'_naturality_2
+ mapComp'₀₁₃_hom
+ mapComp'₀₁₃_hom_comp_whiskerLeft_mapComp'_hom
+ mapComp'₀₁₃_inv
+ mapComp'₀₁₃_inv_comp_mapComp'₀₂₃_hom
+ mapComp'₀₂₃_hom
+ mapComp'₀₂₃_hom_comp_mapComp'_hom_whiskerRight
+ mapComp'₀₂₃_inv
+ mapId'_hom_naturality
+ mapId'_inv_naturality
+ whiskerLeft_mapComp'_inv_comp_mapComp'₀₁₃_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).

@joelriou joelriou added awaiting-author A reviewer has asked the author a question or requested changes. WIP Work in progress labels Jun 16, 2025
@joelriou joelriou removed awaiting-author A reviewer has asked the author a question or requested changes. WIP Work in progress labels Jun 18, 2025
Copy link
Copy Markdown
Collaborator

@callesonne callesonne left a comment

Choose a reason for hiding this comment

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

LGTM modulo this one comment. Thanks!

Co-authored-by: Calle Sönne <calle.sonne@gmail.com>
Copy link
Copy Markdown
Collaborator

@callesonne callesonne left a comment

Choose a reason for hiding this comment

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

(forgot to approve) I seem to have gotten confused by the display / permission changes?

@chrisflav chrisflav added the awaiting-author A reviewer has asked the author a question or requested changes. label Jun 18, 2025
Copy link
Copy Markdown
Collaborator

@yuma-mizuno yuma-mizuno left a comment

Choose a reason for hiding this comment

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

LGTM modulo few comments.

@joelriou joelriou added the awaiting-author A reviewer has asked the author a question or requested changes. label Oct 4, 2025
@joelriou joelriou removed the awaiting-author A reviewer has asked the author a question or requested changes. label Oct 8, 2025
Copy link
Copy Markdown
Contributor

@robin-carlier robin-carlier left a comment

Choose a reason for hiding this comment

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

Only a nitpick about universe-level mvars, but otherwise looks good! Thanks @yuma-mizuno and @callesonne and @chrisflav for the reviews as well!

maintainer delegate

Comment on lines +25 to +26
-- this linter rejects `@[to_app (attr := reassoc)]`
set_option linter.style.commandStart false
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 report this on Zulip?

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.

@robin-carlier robin-carlier added the awaiting-author A reviewer has asked the author a question or requested changes. label Oct 12, 2025
@github-actions
Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by robin-carlier.

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Oct 12, 2025
@riccardobrasca
Copy link
Copy Markdown
Member

Thanks!

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Oct 12, 2025

✌️ joelriou can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-author A reviewer has asked the author a question or requested changes. maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Oct 12, 2025
@joelriou
Copy link
Copy Markdown
Contributor Author

Thanks!

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Oct 12, 2025
mathlib-bors bot pushed a commit that referenced this pull request Oct 12, 2025
This PR adds convenience lemmas for pseudofunctors to `Cat`, mostly using the `to_app` attribute. The simp set for the `to_app` attribute is extended in order to take into account that in `Cat`, associators and unitors induce identities.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Oct 12, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(CategoryTheory): pseudofunctors to Cat [Merged by Bors] - feat(CategoryTheory): pseudofunctors to Cat Oct 12, 2025
@mathlib-bors mathlib-bors bot closed this Oct 12, 2025
BeibeiX0 pushed a commit to BeibeiX0/mathlib4 that referenced this pull request Nov 7, 2025
This PR adds convenience lemmas for pseudofunctors to `Cat`, mostly using the `to_app` attribute. The simp set for the `to_app` attribute is extended in order to take into account that in `Cat`, associators and unitors induce identities.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). 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.

7 participants