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(topology/sheaves/stalks): Generalize from Type to algebraic categories #9357

Closed
wants to merge 2 commits into from

Conversation

justus-springer
Copy link
Collaborator

@justus-springer justus-springer commented Sep 24, 2021

Previously, basic lemmas about stalks like germ_exist and section_ext were only available for Type-valued (pre)sheaves. This PR generalizes these to (pre)sheaves valued in any concrete category where the forgetful functor preserves filtered colimits, which includes most algebraic categories like Group and CommRing. For the statements about stalks maps, we additionally assume that the forgetful functor reflects isomorphisms and preserves limits.


The diff might be a little hard to read, as I moved some stuff around. Generally, the lower in the file, the more assumptions on the category on C are introduced.

Open in Gitpod

@justus-springer justus-springer added the awaiting-CI The author would like to see what CI has to say before doing more work. label Sep 24, 2021
@justus-springer justus-springer added awaiting-review The author would like community review of the PR and removed awaiting-CI The author would like to see what CI has to say before doing more work. labels Sep 24, 2021
Comment on lines +117 to +120
transitivity,
swap,
exact colimit.pre _ (open_nhds.map f x).op,
exact colim.map (whisker_right (nat_trans.op (open_nhds.inclusion_map_iso f x).inv) F),
Copy link
Collaborator

Choose a reason for hiding this comment

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

A slighter terser hack:

Suggested change
transitivity,
swap,
exact colimit.pre _ (open_nhds.map f x).op,
exact colim.map (whisker_right (nat_trans.op (open_nhds.inclusion_map_iso f x).inv) F),
refine _ ≫ colimit.pre _ (open_nhds.map f x).op,
exact colim.map (whisker_right (nat_trans.op (open_nhds.inclusion_map_iso f x).inv) F),

I'll think some more about what's going on here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Haha... I had forgotten that I wrote this, and you're just moving it around now. :-) Stet, I guess.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Refactoring 2-year-old hacks is outside the scope of this PR ;)
I never really deciphered what's going on here. Maybe I'm going to try as well, just for fun.

@semorrison
Copy link
Collaborator

🎉 I'm really happy to see this generalization work!

@semorrison
Copy link
Collaborator

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Sep 26, 2021
bors bot pushed a commit that referenced this pull request Sep 26, 2021
…gories (#9357)

Previously, basic lemmas about stalks like `germ_exist` and `section_ext` were only available for `Type`-valued (pre)sheaves. This PR generalizes these to (pre)sheaves valued in any concrete category where the forgetful functor preserves filtered colimits, which includes most algebraic categories like `Group` and `CommRing`. For the statements about stalks maps, we additionally assume that the forgetful functor reflects isomorphisms and preserves limits.
@bors
Copy link

bors bot commented Sep 26, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(topology/sheaves/stalks): Generalize from Type to algebraic categories [Merged by Bors] - feat(topology/sheaves/stalks): Generalize from Type to algebraic categories Sep 26, 2021
@bors bors bot closed this Sep 26, 2021
@bors bors bot deleted the stalks_algebraic_categories branch September 26, 2021 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants