[Merged by Bors] - chore(CategoryTheory/Sites): remove unused lemmas and simplify some proofs in Sites.Discrete#16385
[Merged by Bors] - chore(CategoryTheory/Sites): remove unused lemmas and simplify some proofs in Sites.Discrete#16385dagurtomas wants to merge 7 commits intomasterfrom
Conversation
…roofs in Sites.Discrete
PR summary aa22c849a9
|
| File | Base Count | Head Count | Change |
|---|---|---|---|
| Mathlib.CategoryTheory.Sites.Discrete | 891 | 0 | -891 (-100.00%) |
| Mathlib.CategoryTheory.Sites.ConstantSheaf | 672 | 890 | +218 (+32.44%) |
Import changes for all files
| Files | Import difference |
|---|---|
Mathlib.CategoryTheory.Sites.Discrete |
-891 |
Mathlib.CategoryTheory.Sites.SheafCohomology.Basic |
126 |
Mathlib.CategoryTheory.Sites.ConstantSheaf |
218 |
Declarations diff
+ IsConstant
+ Sheaf.isConstant_iff_forget
+ Sheaf.isConstant_iff_of_equivalence
+ Sheaf.isConstant_of_forget
+ constantCommuteCompose_hom_app_val
+ constantSheafAdj_counit_w
+ instance [(constantSheaf J D).Faithful] [(constantSheaf J D).Full] (F : Sheaf J D)
+ instance [h : F.IsConstant J] : ((sheafCompose J U).obj F).IsConstant J := by
+ isConstant_congr
+ isConstant_iff_isIso_counit_app
+ isConstant_iff_isIso_counit_app'
+ isConstant_iff_mem_essImage
+ isConstant_of_isIso_counit_app
+ isConstant_of_iso
+ mem_essImage_of_isConstant
- IsDiscrete
- constantCommuteComposeApp_comp_counit
- constantSheafAdj_counit_app
- instance [h : F.IsDiscrete J ht] : ((sheafCompose J U).obj F).IsDiscrete J ht := by
- isDiscrete_iff_forget
- isDiscrete_iff_isIso_counit_app
- isDiscrete_iff_mem_essImage
- isDiscrete_iff_mem_essImage'
- isDiscrete_iff_of_equivalence
- isDiscrete_of_iso
- sheafComposeNatIso_app_counit
- sheafCompose_reflects_discrete
You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>The doc-module for script/declarations_diff.sh contains some details about this script.
Co-authored-by: Joël Riou <37772949+joelriou@users.noreply.github.com>
|
Thanks! bors merge |
…roofs in Sites.Discrete (#16385) This PR does the following - Renames `Sheaf.IsDiscrete` to `Sheaf.IsConstant` and changes the definition to being in the essential image of the constant sheaf functor instead of requiring the counit to be an isomorphism. - Removes two lemmas from the file `Sites.Discrete` which were essentially duplicates of other ones, and simplifies a proof to be able to remove an auxiliary lemma. - Moves the remaining contets of `Sites.Discrete` to the file `Sites.ConstantSheaf`.
|
Pull request successfully merged into master. Build succeeded: |
…roofs in Sites.Discrete (#16385) This PR does the following - Renames `Sheaf.IsDiscrete` to `Sheaf.IsConstant` and changes the definition to being in the essential image of the constant sheaf functor instead of requiring the counit to be an isomorphism. - Removes two lemmas from the file `Sites.Discrete` which were essentially duplicates of other ones, and simplifies a proof to be able to remove an auxiliary lemma. - Moves the remaining contets of `Sites.Discrete` to the file `Sites.ConstantSheaf`.
…roofs in Sites.Discrete (#16385) This PR does the following - Renames `Sheaf.IsDiscrete` to `Sheaf.IsConstant` and changes the definition to being in the essential image of the constant sheaf functor instead of requiring the counit to be an isomorphism. - Removes two lemmas from the file `Sites.Discrete` which were essentially duplicates of other ones, and simplifies a proof to be able to remove an auxiliary lemma. - Moves the remaining contets of `Sites.Discrete` to the file `Sites.ConstantSheaf`.
…roofs in Sites.Discrete (#16385) This PR does the following - Renames `Sheaf.IsDiscrete` to `Sheaf.IsConstant` and changes the definition to being in the essential image of the constant sheaf functor instead of requiring the counit to be an isomorphism. - Removes two lemmas from the file `Sites.Discrete` which were essentially duplicates of other ones, and simplifies a proof to be able to remove an auxiliary lemma. - Moves the remaining contets of `Sites.Discrete` to the file `Sites.ConstantSheaf`.
This PR does the following
Sheaf.IsDiscretetoSheaf.IsConstantand changes the definition to being in the essential image of the constant sheaf functor instead of requiring the counit to be an isomorphism.Sites.Discretewhich were essentially duplicates of other ones, and simplifies a proof to be able to remove an auxiliary lemma.Sites.Discreteto the fileSites.ConstantSheaf.I added these lemmas initially because I used them in #14027, but it turns out they're essentially duplicates of other lemmas, now merged into one lemma
constantSheafAdj_counit_wwhich is used in this file and in #14027.