-
Notifications
You must be signed in to change notification settings - Fork 840
feat(CategoryTheory): naturality lemmas for Core construction #29284
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
base: master
Are you sure you want to change the base?
Conversation
PR summary 12fc3dacb3Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
This PR/issue depends on:
|
This pull request has conflicts, please merge |
+t-category-theory |
-t-category-theory |
1 similar comment
-t-category-theory |
|
||
variable {G : Type u₂} [Groupoid.{v₂} G] | ||
|
||
lemma functorToCore_comp_left {G' : Type u₃} [Groupoid.{v₃} G'] (H : G ⥤ C) (F : G' ⥤ G) : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this assertion (and the next two), could you only state this as an isomorphism? (It may be unclear that we actually need equalities of functors here, and in general I would argue that it is better to get the isomorphism first, and then deduce the equality if it is absolutely needed using Functor.ext_of_iso
.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am happy to make it an iso, but I definitely also want the equality. This is because I want a 1-adjunction between Grpd and Cat, where this is the right adjoint to the forgetful functor. This allows me to show that Grpd inherits 1-colimits from Cat, as a coreflective subcategory. (see #29282)
Mathlib/CategoryTheory/Core.lean
Outdated
/-- The functor `functorToCore (F ⋙ H)` factors through `functortoCore H`. -/ | ||
def functorToCoreCompLeftIso {G' : Type u₃} [Groupoid.{v₃} G'] (H : G ⥤ C) (F : G' ⥤ G) : | ||
functorToCore (F ⋙ H) ≅ F ⋙ functorToCore H := | ||
NatIso.ofComponents (fun _ ↦ eqToIso _) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NatIso.ofComponents (fun _ ↦ eqToIso _) | |
NatIso.ofComponents (fun _ ↦ Iso.refl _) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh sorry I must have misread what you suggested. Fixed now.
Mathlib/CategoryTheory/Core.lean
Outdated
|
||
/-- The functor `functorToCore (𝟭 G)` is a section of `inclusion G`. -/ | ||
def inclusionCompFunctorToCoreIso : inclusion G ⋙ functorToCore (𝟭 G) ≅ 𝟭 (Core G) := | ||
NatIso.ofComponents (fun _ ↦ eqToIso _) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NatIso.ofComponents (fun _ ↦ eqToIso _) | |
NatIso.ofComponents (fun _ ↦ Iso.refl _) |
``` | ||
F.core | ||
Core C ⥤ Core D | ||
includion C ‖ ‖ inclusion D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
includion C ‖ ‖ inclusion D | |
inclusion C ‖ ‖ inclusion D |
`Core` is in fact a strict 2-functor, | ||
and this isomorphism is an equality of functors under the hood, | ||
and thus can be promoted to a naturality condition between 1-functors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think there is a need to give that many comments about this isomorphisms.
`Core` is in fact a strict 2-functor, | |
and this isomorphism is an equality of functors under the hood, | |
and thus can be promoted to a naturality condition between 1-functors. |
Lemmas for PR #29283 to prove that
Core
is the right adjoint to the forgetful functor fromCat
toGrpd
.These lemmas are more general than that setting, and need not be stated in the bundled format.