Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(presheaves/stalks): stalks of presheafs, and presheafed spaces w…
…ith extra structure on stalks (#1018) * feat(category_theory/colimits): missing simp lemmas * feat(category_theory): functor.map_nat_iso * define `functor.map_nat_iso`, and relate to whiskering * rename `functor.on_iso` to `functor.map_iso` * add some missing lemmas about whiskering * fix(category_theory): presheaves, unbundled and bundled, and pushforwards * restoring `(opens X)ᵒᵖ` * various changes from working on stalks * rename `nbhds` to `open_nhds` * fix introduced typo * typo * compactify a proof * rename `presheaf` to `presheaf_on_space` * fix(category_theory): turn `has_limits` classes into structures * naming instances to avoid collisions * breaking up instances.topological_spaces * fixing all the other pi-type typclasses * fix import * oops * fix import * feat(category_theory): stalks of sheaves * renaming * fixes after rebase * nothing * yay, got rid of the @s * attempting a very general version of structured stalks * missed one * typo * WIP * oops * the presheaf of continuous functions to ℂ * restoring eq_to_hom simp lemmas * removing unnecessary simp lemma * remove another superfluous lemma * removing the nat_trans and vcomp notations; use \hom and \gg * a simpler proposal * getting rid of vcomp * fix * splitting files * renaming * probably working again? * update notation * remove old lemma * fix * comment out unfinished stuff * cleanup * use iso_whisker_right instead of map_nat_iso * proofs magically got easier? * improve some proofs * moving instances * remove crap * tidy * minimise imports * chore(travis): disable the check for minimal imports * Update src/algebraic_geometry/presheafed_space.lean Co-Authored-By: semorrison <scott@tqft.net> * writing `op_induction` tactic, and improving proofs * squeeze_simping * cleanup * rearranging * cleanup * cleaning up * cleaning up * move * cleaning up * structured stalks * comment * structured stalks * more simp lemmas * formatting * Update src/category_theory/instances/Top/presheaf_of_functions.lean Co-Authored-By: Floris van Doorn <fpvdoorn@gmail.com> * fixes in response to review * tidy regressions... :-( * oops * Update src/algebraic_geometry/presheafed_space.lean Co-Authored-By: Johan Commelin <johan@commelin.net> * Update src/algebraic_geometry/presheafed_space.lean Co-Authored-By: Johan Commelin <johan@commelin.net> * Update src/algebraic_geometry/presheafed_space.lean Co-Authored-By: Johan Commelin <johan@commelin.net> * Update src/category_theory/instances/TopCommRing/basic.lean Co-Authored-By: Johan Commelin <johan@commelin.net> * def to lemma * remove useless lemma * explicit associator * broken * can't get proofs to work... * remove superfluous imports * missing headers * change example * reverting changes to tidy * remove presheaf_Z, as it doesn't work at the moment * fixes * fixes * fix * postponing stuff on structured stalks for a later PR * coercions * getting rid of all the `erw` * omitting some proofs * deleting more proofs * convert begin ... end to by * local
- Loading branch information
1 parent
0de4bba
commit d935bc3
Showing
15 changed files
with
256 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
-- Copyright (c) 2019 Scott Morrison. All rights reserved. | ||
-- Released under Apache 2.0 license as described in the file LICENSE. | ||
-- Authors: Scott Morrison | ||
import algebraic_geometry.presheafed_space | ||
import category_theory.instances.Top.stalks | ||
|
||
universes v u v' u' | ||
|
||
open category_theory | ||
open category_theory.instances | ||
open category_theory.limits | ||
open algebraic_geometry | ||
open topological_space | ||
|
||
variables {C : Type u} [𝒞 : category.{v+1} C] [has_colimits.{v} C] | ||
include 𝒞 | ||
|
||
local attribute [tidy] tactic.op_induction' | ||
|
||
open category_theory.instances.Top.presheaf | ||
|
||
namespace algebraic_geometry.PresheafedSpace | ||
|
||
def stalk (X : PresheafedSpace.{v} C) (x : X) : C := X.𝒪.stalk x | ||
|
||
def stalk_map {X Y : PresheafedSpace.{v} C} (α : X ⟶ Y) (x : X) : Y.stalk (α x) ⟶ X.stalk x := | ||
(stalk_functor C (α x)).map (α.c) ≫ X.𝒪.stalk_pushforward C α x | ||
|
||
namespace stalk_map | ||
|
||
@[simp] lemma id (X : PresheafedSpace.{v} C) (x : X) : stalk_map (𝟙 X) x = 𝟙 (X.stalk x) := | ||
begin | ||
dsimp [stalk_map], | ||
simp only [stalk_pushforward.id], | ||
rw [←category_theory.functor.map_comp], | ||
convert (stalk_functor C x).map_id X.𝒪, | ||
tidy, | ||
end | ||
. | ||
|
||
@[simp] lemma comp {X Y Z : PresheafedSpace.{v} C} (α : X ⟶ Y) (β : Y ⟶ Z) (x : X) : | ||
stalk_map (α ≫ β) x = | ||
(stalk_map β (α x) : Z.stalk (β (α x)) ⟶ Y.stalk (α x)) ≫ | ||
(stalk_map α x : Y.stalk (α x) ⟶ X.stalk x) := | ||
begin | ||
dsimp [stalk, stalk_map, stalk_functor, stalk_pushforward, comp_c], | ||
ext U, | ||
op_induction U, | ||
cases U, | ||
cases U_val, | ||
simp only [colim.ι_map_assoc, colimit.ι_pre_assoc, colimit.ι_pre, | ||
whisker_left.app, whisker_right.app, | ||
functor.map_comp, category.assoc, category_theory.functor.map_id, category.id_comp], | ||
dsimp, | ||
simp only [category_theory.functor.map_id], | ||
-- FIXME Why doesn't simp do this: | ||
erw [category.id_comp, category.id_comp], | ||
end | ||
end stalk_map | ||
|
||
end algebraic_geometry.PresheafedSpace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.