-
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
Open
Brian-Nugent
wants to merge
19
commits into
leanprover-community:master
Choose a base branch
from
Brian-Nugent:sheaf_coho
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+87
−3
Open
Changes from 9 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
3c7b116
feat(SheafCohomology): add long exact sequence and equivalences for c…
Brian-Nugent 87012ea
fix(SheafCohomology): correct formatting in theorem H.Equiv₀_comp
Brian-Nugent b148e3d
fix(ForgetCorepresentable): improve formatting in uliftZMultiplesHom.…
Brian-Nugent 97fef29
fix(SheafCohomology): rename H.Equiv₀ to H.equiv₀ for consistency
Brian-Nugent 0fa3a22
Update Mathlib/CategoryTheory/Sites/SheafCohomology/Basic.lean
Brian-Nugent 0d5ebe4
fix(SheafCohomology): simplify Additive instance for constant sheaf
Brian-Nugent 9bd441d
fix(SheafCohomology): remove unused long sequence definitions and add…
Brian-Nugent 3d5637e
fix(Abelian): remove unused imports for cleaner code
Brian-Nugent c585e42
fix(SheafCohomology): enhance cohomology definitions and properties f…
Brian-Nugent 3a4143f
feat(SheafCohomology): add Hfunctor for sheaf cohomology and its prop…
Brian-Nugent b20f7fe
Define Hfunctor as a functor in Sheaf Cohomology
Brian-Nugent 5f43b69
feat(SheafCohomology): implement functorH and related lemmas for shea…
Brian-Nugent 6be2c1f
feat(SheafCohomology): refactor functorHNatIsoSheafSections for impro…
Brian-Nugent 54a5d63
refactor(SheafCohomology): rename theorems for improved clarity and c…
Brian-Nugent 276afe2
Merge branch 'master' into sheaf_coho
Brian-Nugent 87a1ebf
Changed to new sheaf projections
Brian-Nugent cf28c41
Merge branch 'master' into sheaf_coho
Brian-Nugent 4639699
Add simp lemmas
Brian-Nugent 868205e
Merge branch 'master' into sheaf_coho
Brian-Nugent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -10,6 +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.EnoughInjectives | ||||||||
| public import Mathlib.Algebra.Category.Grp.Zero | ||||||||
| public import Mathlib.CategoryTheory.Adjunction.Additive | ||||||||
|
|
||||||||
| /-! | ||||||||
| # Sheaf cohomology | ||||||||
|
|
@@ -85,6 +88,62 @@ noncomputable abbrev cohomologyPresheaf (F : Sheaf J AddCommGrpCat.{v}) (n : ℕ | |||||||
|
|
||||||||
| 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 {S : ShortComplex (Sheaf J AddCommGrpCat.{w})} (hS : S.ShortExact) (n₀ n₁ : ℕ) | ||||||||
| (h : n₀ + 1 = n₁) | ||||||||
|
|
||||||||
| /-- The long exact sequence on sheaf cohomology. -/ | ||||||||
| noncomputable abbrev H.longSequence (h : n₀ + 1 = n₁ := by lia) : | ||||||||
Brian-Nugent marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||
| ComposableArrows AddCommGrpCat 5 := | ||||||||
| Ext.covariantSequence ((constantSheaf J AddCommGrpCat.{w}).obj (AddCommGrpCat.of.{w} (ULift ℤ))) | ||||||||
| hS n₀ n₁ h | ||||||||
|
|
||||||||
| theorem H.longSequence_exact (h : n₀ + 1 = n₁ := by lia) : (H.longSequence hS n₀ n₁ h).Exact := | ||||||||
| Ext.covariantSequence_exact _ hS n₀ n₁ h | ||||||||
|
|
||||||||
| 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.val.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
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₀_comp (x : H F 0) : | ||||||||
Brian-Nugent marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||
| f.val.app (op T) (H.equiv₀ F hT x) = H.equiv₀ G hT (H.map f 0 x) := by | ||||||||
| simp only [equiv₀, AddEquiv.trans_apply] | ||||||||
| erw[addEquiv₀_comp f x] | ||||||||
| rfl | ||||||||
|
|
||||||||
| theorem H.equiv₀_symm_comp (x : F.val.obj (op T)) : | ||||||||
Brian-Nugent marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||
| H.map f 0 ((H.equiv₀ F hT).symm x) = (H.equiv₀ G hT).symm (f.val.app (op T) x) := by | ||||||||
| apply (H.equiv₀ G hT).injective | ||||||||
| simp [← H.equiv₀_comp] | ||||||||
|
|
||||||||
| end | ||||||||
|
|
||||||||
| end Sheaf | ||||||||
|
|
||||||||
| end CategoryTheory | ||||||||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.