Skip to content

[Merged by Bors] - feat(CategoryTheory/Abelian/GrothendieckAxioms): introduce Grothendieck categories - #18510

Closed
datokrat wants to merge 36 commits into
masterfrom
datokrat/FME-80
Closed

datokrat wants to merge 36 commits into
masterfrom
datokrat/FME-80

Conversation

@datokrat

@datokrat datokrat commented Nov 1, 2024 •

Copy link
Copy Markdown
Collaborator

Define Grothendieck categories in a new separate file. According to our definition, a Grothendieck category w.r.t an universe w is an abelian category that is locally small w.r.t w, has exact filtered colimits of size w (AB5) and has a separator.

Some essential theorems are provided:

  • The definition is invariant under equivalences of categories, and in particular, under shrinking the hom sets to size w.
  • Grothendieck categories are have all limits and colimits of size w (completeness and cocompleteness).

In order to facilitate the proofs of the theorems, the new lemma hasLimits_of_hasColimits_of_hasSeparator (a variant of hasLimits_of_hasColimits_of_isSeparating) and its dual is introduced in Adjunction.AdjointFunctorTheorems. The module Abelian.Transfer is extended with the induced preadditive and abelian structure of ShrinkHoms and existing transfer lemmas are generalized so that the hom sets need not have the same universes. Transfer lemmas for separators and coseparators are added to Adjunction.Generator.

Moreover, some notable changes are made in Abelian.GrothendieckAxioms.Basic. Besides adding @[stacks] attributes, hasExactColimitsOfShape_of_equiv is renamed to HasExactColimitsOfShape.of_domain_equivalence and is afforded a counterpart HasExactColimitsOfShape.of_codomain_equivalence (with similar changes to HasExactLimitsOfShape).


Open in Gitpod

@datokrat datokrat added the WIP Work in progress label Nov 1, 2024
@github-actions github-actions Bot added new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! large-import Automatically added label for PRs with a significant increase in transitive imports labels Nov 1, 2024
@github-actions

github-actions Bot commented Nov 1, 2024 •

Copy link
Copy Markdown

PR summary 9df44212d9

Import changes exceeding 2%

% File
+17.88% Mathlib.CategoryTheory.Abelian.Transfer

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.CategoryTheory.Abelian.Transfer 699 824 +125 (+17.88%)
Import changes for all files
Files Import difference
Mathlib.RepresentationTheory.Action.Monoidal 57
Mathlib.RepresentationTheory.Action.Limits 85
Mathlib.CategoryTheory.Sites.Abelian 119
Mathlib.CategoryTheory.Abelian.Transfer 125
Mathlib.CategoryTheory.Abelian.GrothendieckCategory (new file) 923

Declarations diff

+ HasCoseparator.of_equivalence
+ HasExactColimitsOfShape.of_codomain_equivalence
+ HasExactColimitsOfShape.of_domain_equivalence
+ HasExactLimitsOfShape.of_codomain_equivalence
+ HasExactLimitsOfShape.of_domain_equivalence
+ HasSeparator.of_equivalence
+ IsCoseparating.of_equivalence
+ IsCoseparator.of_equivalence
+ IsGrothendieckAbelian
+ IsGrothendieckAbelian.hasColimits
+ IsGrothendieckAbelian.hasLimits
+ IsGrothendieckAbelian.of_equivalence
+ IsSeparating.of_equivalence
+ IsSeparator.of_equivalence
+ ShrinkHoms.isGrothendieckAbelian
+ abelian
+ functor_map_add
+ hasColimits_of_hasLimits_of_hasCoseparator
+ hasFiniteLimits
+ hasLimitsOfShape
+ hasLimits_of_hasColimits_of_hasSeparator
+ homGroup
+ instance : (functor C).Additive
+ instance : (functor C).IsEquivalence := (equivalence C).isEquivalence_functor
+ instance : (inverse C).Additive
+ instance : (inverse C).IsEquivalence := (equivalence C).isEquivalence_inverse
+ inverse_map_add
+ preadditive
- hasExactColimitsOfShape_of_equiv
- hasExactLimitsOfShape_of_equiv

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.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@github-actions github-actions Bot added the t-category-theory Category theory label Nov 1, 2024
@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Nov 10, 2024
@github-actions github-actions Bot removed the large-import Automatically added label for PRs with a significant increase in transitive imports label Nov 10, 2024
@leanprover-community-bot-assistant leanprover-community-bot-assistant removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Nov 10, 2024
@datokrat datokrat added awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. and removed WIP Work in progress labels Nov 10, 2024
@github-actions github-actions Bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Nov 10, 2024
@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Nov 10, 2024
@datokrat datokrat added the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Nov 10, 2024
@github-actions github-actions Bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Nov 10, 2024
@leanprover-community-bot-assistant leanprover-community-bot-assistant removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Nov 10, 2024
@joelriou joelriou added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Nov 13, 2024
@datokrat datokrat added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Dec 15, 2024
@github-actions github-actions Bot added the large-import Automatically added label for PRs with a significant increase in transitive imports label Dec 15, 2024
@joelriou joelriou changed the title feat(CategoryTheory/Abelian/GrothendieckAxioms): introduce grothendieck categories feat(CategoryTheory/Abelian/GrothendieckAxioms): introduce Grothendieck categories Dec 16, 2024
@joelriou

Copy link
Copy Markdown
Contributor

Could you expand a little bit the PR description (your top comment above) in order to relate more completely the content of the PR (which was expanded a little bit in the process)?

@datokrat

datokrat commented Dec 16, 2024 •

Copy link
Copy Markdown
Collaborator Author

Yes, I just went to bed but wasn't done with my adjustments yet and will do some more cleanups today.

@datokrat datokrat added awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. and removed awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. labels Dec 16, 2024
@github-actions github-actions Bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Dec 16, 2024
@joelriou

Copy link
Copy Markdown
Contributor

Thanks!

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Dec 16, 2024
mathlib-bors Bot pushed a commit that referenced this pull request Dec 16, 2024
…ck categories (#18510)

Define Grothendieck categories in a new separate file. According to our definition, a Grothendieck category w.r.t an universe w is an abelian category that is locally small w.r.t w, has exact filtered colimits of size `w` (AB5) and has a separator.

Some essential theorems are provided:
* The definition is invariant under equivalences of categories, and in particular, under shrinking the hom sets to size `w`.
* Grothendieck categories are have all limits and colimits of size w (completeness and cocompleteness).

In order to facilitate the proofs of the theorems, the new lemma `hasLimits_of_hasColimits_of_hasSeparator` (a variant of `hasLimits_of_hasColimits_of_isSeparating`) and its dual is introduced in `Adjunction.AdjointFunctorTheorems`. The module `Abelian.Transfer` is extended with the induced preadditive and abelian structure of `ShrinkHoms` and existing transfer lemmas are generalized so that the hom sets need not have the same universes. Transfer lemmas for separators and coseparators are added to `Adjunction.Generator`.

Moreover, some notable changes are made in `Abelian.GrothendieckAxioms.Basic`. Besides adding `@[stacks]` attributes, `hasExactColimitsOfShape_of_equiv` is renamed to `HasExactColimitsOfShape.of_domain_equivalence` and is afforded a counterpart `HasExactColimitsOfShape.of_codomain_equivalence` (with similar changes to `HasExactLimitsOfShape`).



Co-authored-by: Paul Reichert <[email protected]>
@mathlib-bors

mathlib-bors Bot commented Dec 16, 2024

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(CategoryTheory/Abelian/GrothendieckAxioms): introduce Grothendieck categories [Merged by Bors] - feat(CategoryTheory/Abelian/GrothendieckAxioms): introduce Grothendieck categories Dec 16, 2024
@mathlib-bors mathlib-bors Bot closed this Dec 16, 2024
@mathlib-bors
mathlib-bors Bot deleted the datokrat/FME-80 branch December 16, 2024 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

large-import Automatically added label for PRs with a significant increase in transitive imports new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! ready-to-merge This PR has been sent to bors. t-category-theory Category theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants