Skip to content
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

[Merged by Bors] - feat(CategoryTheory/Sites): internal hom of (pre)sheaves #8622

Closed
wants to merge 9 commits into from

Conversation

joelriou
Copy link
Collaborator

@joelriou joelriou commented Nov 25, 2023

In this PR, we define a presheaf presheafHom F G when F and G are presheaves Cᵒᵖ ⥤ A and show that it is a sheaf when G is a sheaf (for a certain Grothendieck topology on C).


Open in Gitpod

@joelriou joelriou added the t-category-theory Category theory label Nov 25, 2023
@joelriou joelriou added the awaiting-review The author would like community review of the PR label Nov 25, 2023
@dagurtomas dagurtomas self-requested a review November 25, 2023 10:32
Mathlib/CategoryTheory/Sites/SheafHom.lean Outdated Show resolved Hide resolved
Mathlib/CategoryTheory/Sites/SheafHom.lean Outdated Show resolved Hide resolved
Mathlib/CategoryTheory/Sites/SheafHom.lean Outdated Show resolved Hide resolved
Mathlib/CategoryTheory/Sites/SheafHom.lean Outdated Show resolved Hide resolved
Mathlib/CategoryTheory/Sites/SheafHom.lean Outdated Show resolved Hide resolved
this `internalHom F G` is the presheaf of types which sends an object `X : C`
to the type of morphisms between the "restrictions" of `F` and `G` to the category `Over X`. -/
@[simps! obj]
def internalHom : Cᵒᵖ ⥤ Type _ where
Copy link
Contributor

Choose a reason for hiding this comment

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

internalHom sounds a bit strange as it's not valued in the original category A. yoneda feels more appropriate, especially if you show it's functorial in F.

Copy link
Collaborator

Choose a reason for hiding this comment

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

It should not be too hard to deduce an internal hom in Sheaf J A when A has a limit-preserving, isomorphism-reflecting functor to types though. I'm not sure it's interesting in other cases.
Internal also refers to the fact that it's internal to sheaf categories.

Copy link
Contributor

Choose a reason for hiding this comment

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

A itself need to have internal homs, right? Like the category of abelian groups or modules over a CommRing.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Right, of course!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am not convinced of yoneda as a name, but would presheafHom (and sheafHom for the sheaf version) be ok? (I do not intend to develop the A-valued version soon.)

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good to me

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm fine with either version (internalHom makes sense at least when A is Type _), I agree that yoneda is not a good name.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have fixed the name as presheafHom.

Copy link
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

bors d+

Mathlib/CategoryTheory/Sites/SheafHom.lean Outdated Show resolved Hide resolved
@mathlib-bors
Copy link

mathlib-bors bot commented Nov 28, 2023

✌️ 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.

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added delegated and removed awaiting-review The author would like community review of the PR labels Nov 28, 2023
@joelriou
Copy link
Collaborator Author

Thanks for the reviews!

bors merge

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Nov 28, 2023
mathlib-bors bot pushed a commit that referenced this pull request Nov 28, 2023
In this PR, we define a presheaf `presheafHom F G` when `F` and `G` are presheaves `Cᵒᵖ ⥤ A` and show that it is a sheaf when `G` is a sheaf (for a certain Grothendieck topology on `C`).



Co-authored-by: Joël Riou <37772949+joelriou@users.noreply.github.com>
@mathlib-bors
Copy link

mathlib-bors bot commented Nov 28, 2023

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(CategoryTheory/Sites): internal hom of (pre)sheaves [Merged by Bors] - feat(CategoryTheory/Sites): internal hom of (pre)sheaves Nov 28, 2023
@mathlib-bors mathlib-bors bot closed this Nov 28, 2023
@mathlib-bors mathlib-bors bot deleted the sheafhom branch November 28, 2023 18:28
awueth pushed a commit that referenced this pull request Dec 19, 2023
In this PR, we define a presheaf `presheafHom F G` when `F` and `G` are presheaves `Cᵒᵖ ⥤ A` and show that it is a sheaf when `G` is a sheaf (for a certain Grothendieck topology on `C`).



Co-authored-by: Joël Riou <37772949+joelriou@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated 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.

None yet

5 participants