Skip to content

[Merged by Bors] - feat(CategoryTheory): pseudofunctors from strict bicategories - #24382

Closed
joelriou wants to merge 14 commits into
masterfrom
pseudofunctor-mapcomp-prime
Closed

joelriou wants to merge 14 commits into
masterfrom
pseudofunctor-mapcomp-prime

Conversation

@joelriou

Copy link
Copy Markdown
Contributor

This PR provides an API for pseudofunctors F from a strict bicategory B. In particular, this shall apply to pseudofunctors from locally discrete bicategories.

We first introduce more flexible variants of mapId and mapComp: for example, if f and g are composable morphisms and fg is such that h : fg = f ≫ f, we provide an isomorphism F.mapComp' f g fg h : F.map fg ≅ F.map f ≫ F.map g. We study the compatibilities of these isomorphisms with respect to composition with identities and associativity.

Secondly, given a commutative square t ≫ r = l ≫ b in B, we construct an isomorphism F.map t ≫ F.map r ≅ F.map l ≫ F.map b.

Co-authored-by: Christian Merten [email protected]


Open in Gitpod

@joelriou joelriou added the t-category-theory Category theory label Apr 26, 2025
@github-actions

github-actions Bot commented Apr 26, 2025 •

Copy link
Copy Markdown

PR summary a4ec7db301

Import changes for modified files

No significant changes to the import graph

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

Declarations diff

+ isoMapOfCommSq
+ isoMapOfCommSq_eq
+ isoMapOfCommSq_horiz_id
+ isoMapOfCommSq_vert_id
+ mapComp'
+ mapComp'_comp_id
+ mapComp'_eq_mapComp
+ mapComp'_hom_comp_mapComp'_hom_whiskerRight
+ mapComp'_hom_comp_whiskerLeft_mapComp'_hom
+ mapComp'_id_comp
+ mapComp'_inv_comp_mapComp'_hom
+ mapComp'_inv_whiskerRight_comp_mapComp'_inv
+ mapId'
+ mapId'_eq_mapId
+ 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 the WIP Work in progress label Apr 26, 2025
@joelriou joelriou removed the WIP Work in progress label Apr 26, 2025
@joelriou joelriou added the WIP Work in progress label Apr 26, 2025
@joelriou joelriou removed the WIP Work in progress label Apr 26, 2025
@erdOne
erdOne requested a review from callesonne April 27, 2025 11:52

@erdOne erdOne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do you think .hom and .inv simp lemmas are useful here?

@joelriou joelriou added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label May 1, 2025
@joelriou

joelriou commented May 1, 2025

Copy link
Copy Markdown
Contributor Author

Do you think .hom and .inv simp lemmas are useful here?

If the remark applies to mapComp'_comp_id and mapComp'_id_comp, I do not think we need _hom/_inv versions, as it seems very unlikely that we would need to apply these lemmas in the backwards direction. The situation is different for the associativity lemmas because they relate four different mapComp' isomorphisms.

@joelriou joelriou removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label May 1, 2025
@joelriou joelriou added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label May 11, 2025
@joelriou joelriou removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label May 11, 2025
@joelriou

Copy link
Copy Markdown
Contributor Author

Thanks @callesonne and @erdOne for the reviews!

@callesonne callesonne added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label May 11, 2025
@joelriou joelriou removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label May 11, 2025

@callesonne callesonne left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

@callesonne

Copy link
Copy Markdown
Collaborator

@erdOne do you want to maintainer merge this?

@erdOne erdOne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!
maintainer merge

@github-actions

github-actions Bot commented Jun 7, 2025

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by erdOne.

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jun 7, 2025
@jcommelin

Copy link
Copy Markdown
Member

Thanks 🎉

bors merge

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Jun 16, 2025
mathlib-bors Bot pushed a commit that referenced this pull request Jun 16, 2025
This PR provides an API for pseudofunctors `F` from a strict bicategory `B`. In particular, this shall apply to pseudofunctors from locally discrete bicategories.

We first introduce more flexible variants of `mapId` and `mapComp`: for example, if `f` and `g` are composable morphisms and `fg` is such that `h : fg = f ≫ f`, we provide an isomorphism `F.mapComp' f g fg h : F.map fg ≅ F.map f ≫ F.map g`. We study the compatibilities of these isomorphisms with respect to composition with identities and associativity.

Secondly, given a commutative square `t ≫ r = l ≫ b` in `B`, we construct an isomorphism `F.map t ≫ F.map r ≅ F.map l ≫ F.map b`.

Co-authored-by: Christian Merten <[email protected]>



Co-authored-by: Joël Riou <[email protected]>
@mathlib-bors

mathlib-bors Bot commented Jun 16, 2025

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(CategoryTheory): pseudofunctors from strict bicategories [Merged by Bors] - feat(CategoryTheory): pseudofunctors from strict bicategories Jun 16, 2025
@mathlib-bors mathlib-bors Bot closed this Jun 16, 2025
@mathlib-bors
mathlib-bors Bot deleted the pseudofunctor-mapcomp-prime branch June 16, 2025 07:16
Rida-Hamadani pushed a commit to Rida-Hamadani/mathlib4 that referenced this pull request Jun 24, 2025
…over-community#24382)

This PR provides an API for pseudofunctors `F` from a strict bicategory `B`. In particular, this shall apply to pseudofunctors from locally discrete bicategories.

We first introduce more flexible variants of `mapId` and `mapComp`: for example, if `f` and `g` are composable morphisms and `fg` is such that `h : fg = f ≫ f`, we provide an isomorphism `F.mapComp' f g fg h : F.map fg ≅ F.map f ≫ F.map g`. We study the compatibilities of these isomorphisms with respect to composition with identities and associativity.

Secondly, given a commutative square `t ≫ r = l ≫ b` in `B`, we construct an isomorphism `F.map t ≫ F.map r ≅ F.map l ≫ F.map b`.

Co-authored-by: Christian Merten <[email protected]>



Co-authored-by: Joël Riou <[email protected]>
callesonne pushed a commit to callesonne/mathlib4 that referenced this pull request Jul 24, 2025
…over-community#24382)

This PR provides an API for pseudofunctors `F` from a strict bicategory `B`. In particular, this shall apply to pseudofunctors from locally discrete bicategories.

We first introduce more flexible variants of `mapId` and `mapComp`: for example, if `f` and `g` are composable morphisms and `fg` is such that `h : fg = f ≫ f`, we provide an isomorphism `F.mapComp' f g fg h : F.map fg ≅ F.map f ≫ F.map g`. We study the compatibilities of these isomorphisms with respect to composition with identities and associativity.

Secondly, given a commutative square `t ≫ r = l ≫ b` in `B`, we construct an isomorphism `F.map t ≫ F.map r ≅ F.map l ≫ F.map b`.

Co-authored-by: Christian Merten <[email protected]>



Co-authored-by: Joël Riou <[email protected]>
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.

4 participants