-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat(SheafCohomology): add API for Sheaf Cohomology #34742
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?
Changes from all commits
3c7b116
87012ea
b148e3d
97fef29
0fa3a22
0d5ebe4
9bd441d
3d5637e
c585e42
3a4143f
b20f7fe
5f43b69
6be2c1f
54a5d63
276afe2
87a1ebf
cf28c41
4639699
868205e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -10,8 +10,9 @@ public import Mathlib.Algebra.Category.Grp.Adjunctions | |||||||
| public import Mathlib.Algebra.Homology.DerivedCategory.Ext.Basic | ||||||||
| public import Mathlib.CategoryTheory.Sites.Abelian | ||||||||
| public import Mathlib.CategoryTheory.Sites.ConstantSheaf | ||||||||
| public import Mathlib.Algebra.Homology.DerivedCategory.Ext.EnoughProjectives | ||||||||
| public import Mathlib.Algebra.Homology.DerivedCategory.Ext.EnoughInjectives | ||||||||
| public import Mathlib.Algebra.Category.Grp.Zero | ||||||||
| public import Mathlib.CategoryTheory.Adjunction.Additive | ||||||||
|
|
||||||||
| /-! | ||||||||
| # Sheaf cohomology | ||||||||
|
|
@@ -108,6 +109,73 @@ abbrev H' (F : Sheaf J AddCommGrpCat.{v}) (n : ℕ) (X : C) : | |||||||
|
|
||||||||
| end | ||||||||
|
|
||||||||
| section | ||||||||
|
|
||||||||
| variable [HasSheafify J AddCommGrpCat.{w}] [HasExt.{w'} (Sheaf J AddCommGrpCat.{w})] | ||||||||
|
|
||||||||
| instance (F : Sheaf J AddCommGrpCat.{w}) {n : ℕ} [Injective F] : Subsingleton (H F (n + 1)) := | ||||||||
| subsingleton_of_forall_eq 0 fun x ↦ (Ext.eq_zero_of_injective x) | ||||||||
|
|
||||||||
| variable (F : Sheaf J AddCommGrpCat.{w}) {T : C} (hT : Limits.IsTerminal T) | ||||||||
|
|
||||||||
| open AddCommGrpCat Opposite | ||||||||
|
|
||||||||
| /-- The additive equivalence between `H F 0` and the evaluation of `F` at the terminal object -/ | ||||||||
| noncomputable def H.equiv₀ : H F 0 ≃+ F.obj.obj (op T) := | ||||||||
| AddEquiv.trans Ext.addEquiv₀ <| | ||||||||
| AddEquiv.trans ((constantSheafAdj J AddCommGrpCat hT).homAddEquiv _ F) | ||||||||
| (uliftZMultiplesAddEquiv _) | ||||||||
|
|
||||||||
| variable {F G : Sheaf J AddCommGrpCat.{w}} (f : F ⟶ G) | ||||||||
|
|
||||||||
| /-- Given a morphism of sheaves `f : F ⟶ G`, `H.map f n` is the induced additive map on cohomology | ||||||||
| groups `H F n →+ H G n` -/ | ||||||||
| noncomputable def H.map (n : ℕ) : H F n →+ H G n := | ||||||||
Brian-Nugent marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
| ((Ext.mk₀ f).postcomp ((constantSheaf J AddCommGrpCat).obj (of (ULift ℤ))) (add_zero n)) | ||||||||
|
|
||||||||
| lemma H.addEquiv₀_comp (x : H F 0) : Ext.addEquiv₀ (H.map f 0 x) = Ext.addEquiv₀ x ≫ f := by | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| delta Ext.addEquiv₀ H.map | ||||||||
| apply (Ext.mk₀_bijective _ G).injective | ||||||||
| simp only [AddEquiv.coe_mk, Ext.mk₀_homEquiv₀_apply, Ext.mk₀_homEquiv₀_apply, ← Ext.mk₀_comp_mk₀] | ||||||||
| rfl | ||||||||
|
|
||||||||
| /-- `H.equiv₀` is natural -/ | ||||||||
| theorem H.equiv₀_naturality (x : H F 0) : | ||||||||
| f.hom.app (op T) (H.equiv₀ F hT x) = H.equiv₀ G hT (H.map f 0 x) := by | ||||||||
|
Comment on lines
+143
to
+144
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should I tag this with
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would say it is unclear in which direction the lemma would be the most useful, so that not putting a simp attribute seems fine to me. |
||||||||
| simp only [equiv₀, AddEquiv.trans_apply] | ||||||||
| erw[addEquiv₀_comp f x] | ||||||||
| rfl | ||||||||
|
|
||||||||
| theorem H.equiv₀_symm_naturality (x : F.obj.obj (op T)) : | ||||||||
| H.map f 0 ((H.equiv₀ F hT).symm x) = (H.equiv₀ G hT).symm (f.hom.app (op T) x) := by | ||||||||
| apply (H.equiv₀ G hT).injective | ||||||||
| simp [← H.equiv₀_naturality] | ||||||||
|
|
||||||||
| lemma H.map_apply {n : ℕ} (x : H F n) : | ||||||||
| H.map f n x = x.comp (Ext.mk₀ f) (add_zero n) := rfl | ||||||||
|
|
||||||||
| @[simp] | ||||||||
| lemma H.map_id_apply {n : ℕ} (x : H F n) : H.map (𝟙 F) n x = x := by | ||||||||
| simp [H.map_apply] | ||||||||
|
|
||||||||
| lemma H.map_comp_apply {n : ℕ} {G' : Sheaf J AddCommGrpCat.{w}} (g : G ⟶ G') (x : H F n) : | ||||||||
| H.map (f ≫ g) n x = H.map g n (H.map f n x) := by | ||||||||
| simp [H.map_apply] | ||||||||
|
|
||||||||
| attribute [local simp] H.map_comp_apply in | ||||||||
| variable (J) in | ||||||||
| /-- `H` as a functor. -/ | ||||||||
| @[simps] | ||||||||
| noncomputable def functorH (n : ℕ) : Sheaf J AddCommGrpCat.{w} ⥤ AddCommGrpCat.{w'} where | ||||||||
| obj F := .of (H F n) | ||||||||
| map f := AddCommGrpCat.ofHom (H.map f n) | ||||||||
|
|
||||||||
| set_option backward.isDefEq.respectTransparency false in | ||||||||
| instance (n : ℕ) : (functorH J n).Additive where | ||||||||
| map_add {_ _ f g} := by ext; simp [H.map_apply, Ext.mk₀_add]; | ||||||||
|
|
||||||||
| end | ||||||||
|
|
||||||||
| end Sheaf | ||||||||
|
|
||||||||
| end CategoryTheory | ||||||||
Uh oh!
There was an error while loading. Please reload this page.