Skip to content

[Merged by Bors] - feat(CategoryTheory): sheaf categories are cartesian closed#15262

Closed
dagurtomas wants to merge 22 commits intomasterfrom
dagur/CondensedCartesianClosed2
Closed

[Merged by Bors] - feat(CategoryTheory): sheaf categories are cartesian closed#15262
dagurtomas wants to merge 22 commits intomasterfrom
dagur/CondensedCartesianClosed2

Conversation

@dagurtomas
Copy link
Copy Markdown
Contributor

@dagurtomas dagurtomas commented Jul 29, 2024

... under some assumptions on the target category.

We apply this to conclude that condensed sets and light condensed sets are cartesian closed.

Co-authored-by: Sina Hazratpour @sinhp
Co-authored-by: Jon Eugster @joneugster

This is adapted from work done at the Copenhagen masterclass on formalisation of condensed mathematics in 2023.


Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 29, 2024

PR summary f693fbd28c

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.CategoryTheory.Limits.FunctorCategoryEpiMono -534
Mathlib.CategoryTheory.Limits.FunctorCategory -388
59 files Mathlib.Geometry.RingedSpace.PresheafedSpace.Gluing Mathlib.AlgebraicGeometry.Modules.Sheaf Mathlib.CategoryTheory.Sites.Pullback Mathlib.CategoryTheory.Sites.SheafHom Mathlib.Geometry.Manifold.Sheaf.Basic Mathlib.AlgebraicGeometry.Modules.Presheaf Mathlib.Topology.Sheaves.SheafCondition.Sites Mathlib.Topology.Sheaves.SheafCondition.UniqueGluing Mathlib.Algebra.Category.ModuleCat.Sheaf.Colimits Mathlib.Algebra.Category.ModuleCat.Sheaf Mathlib.Algebra.Category.ModuleCat.Sheaf.Free Mathlib.AlgebraicGeometry.Spec Mathlib.CategoryTheory.Sites.InducedTopology Mathlib.Topology.Sheaves.LocalPredicate Mathlib.Topology.Sheaves.SheafCondition.OpensLeCover Mathlib.Algebra.Category.ModuleCat.Sheaf.ChangeOfRings Mathlib.Geometry.RingedSpace.OpenImmersion Mathlib.Algebra.Category.ModuleCat.Sheaf.Limits Mathlib.AlgebraicGeometry.Modules.Tilde Mathlib.Geometry.RingedSpace.Basic Mathlib.Topology.Sheaves.SheafCondition.EqualizerProducts Mathlib.Geometry.Manifold.Sheaf.Smooth Mathlib.AlgebraicGeometry.StructureSheaf Mathlib.CategoryTheory.Sites.Coherent.LocallySurjective Mathlib.AlgebraicGeometry.ProjectiveSpectrum.StructureSheaf Mathlib.Algebra.Category.ModuleCat.Sheaf.Generators Mathlib.Algebra.Category.ModuleCat.Sheaf.Abelian Mathlib.CategoryTheory.Sites.Coherent.Equivalence Mathlib.Geometry.RingedSpace.SheafedSpace Mathlib.AlgebraicGeometry.OpenImmersion Mathlib.Topology.Sheaves.SheafOfFunctions Mathlib.Geometry.RingedSpace.LocallyRingedSpace Mathlib.Topology.Sheaves.LocallySurjective Mathlib.CategoryTheory.Sites.Equivalence Mathlib.Geometry.RingedSpace.Stalks Mathlib.Geometry.RingedSpace.LocallyRingedSpace.ResidueField Mathlib.AlgebraicGeometry.Scheme Mathlib.AlgebraicGeometry.Gluing Mathlib.Topology.Sheaves.Functors Mathlib.CategoryTheory.Sites.Over Mathlib.CategoryTheory.Sites.DenseSubsite Mathlib.AlgebraicGeometry.Cover.Open Mathlib.Topology.Sheaves.Operations Mathlib.Algebra.Category.ModuleCat.Presheaf.Sheafification Mathlib.CategoryTheory.Sites.PreservesLocallyBijective Mathlib.Topology.Sheaves.Skyscraper Mathlib.CategoryTheory.Sites.Discrete Mathlib.Topology.Sheaves.SheafCondition.PairwiseIntersections Mathlib.Geometry.Manifold.Sheaf.LocallyRingedSpace Mathlib.Topology.Sheaves.PUnit Mathlib.AlgebraicGeometry.Restrict Mathlib.CategoryTheory.Sites.Coherent.SheafComparison Mathlib.Algebra.Category.ModuleCat.Sheaf.PushforwardContinuous Mathlib.Topology.Sheaves.Sheafify Mathlib.Algebra.Category.ModuleCat.Presheaf.Sheafify Mathlib.Algebra.Category.ModuleCat.Sheaf.Quasicoherent Mathlib.Geometry.RingedSpace.LocallyRingedSpace.HasColimits Mathlib.Topology.Sheaves.Stalks Mathlib.CategoryTheory.Sites.CoverLifting
1
16 files Mathlib.Geometry.RingedSpace.PresheafedSpace.HasColimits Mathlib.CategoryTheory.Sites.EpiMono Mathlib.CategoryTheory.Sites.LocallySurjective Mathlib.CategoryTheory.Sites.LocallyFullyFaithful Mathlib.CategoryTheory.Sites.PreservesSheafification Mathlib.CategoryTheory.Sites.Abelian Mathlib.CategoryTheory.Sites.Localization Mathlib.CategoryTheory.Sites.ConstantSheaf Mathlib.CategoryTheory.Sites.LocallyInjective Mathlib.CategoryTheory.Sites.Limits Mathlib.CategoryTheory.Sites.LeftExact Mathlib.CategoryTheory.Sites.Sheafification Mathlib.Topology.Sheaves.Limits Mathlib.CategoryTheory.Sites.MayerVietorisSquare Mathlib.CategoryTheory.Sites.LocallyBijective Mathlib.CategoryTheory.Sites.Adjunction
2
Mathlib.CategoryTheory.Limits.FunctorCategory.Basic 388
Mathlib.CategoryTheory.Limits.FunctorCategory.Finite 516
Mathlib.CategoryTheory.Limits.FunctorCategory.EpiMono 534
Mathlib.CategoryTheory.Sites.CartesianClosed 716
Mathlib.Condensed.CartesianClosed 1563
Mathlib.Condensed.Light.Limits 1585
Mathlib.Condensed.Light.CartesianClosed 1598

Declarations diff

+ cartesianClosedFunctorToTypes
+ instance (C : Type u) [Category.{v} C] [EssentiallySmall.{w} C] : EssentiallySmall.{w} Cᵒᵖ
+ instance : CartesianClosed (CondensedSet.{u}) := inferInstanceAs (CartesianClosed (Sheaf _ _))
+ instance : CartesianClosed (LightCondSet.{u}) := inferInstanceAs (CartesianClosed (Sheaf _ _))
+ instance : HasFiniteLimits (LightCondMod.{u} R) := hasFiniteLimits_of_hasLimitsOfSize _
+ instance : HasFiniteLimits LightCondSet.{u} := hasFiniteLimits_of_hasLimitsOfSize _
+ instance : HasLimitsOfSize.{u, u} (LightCondMod.{u} R) := by
+ instance : HasLimitsOfSize.{u, u} LightCondSet.{u} := by
+ instance [HasFiniteColimits C] : HasFiniteColimits (K ⥤ C) := ⟨fun _ ↦ inferInstance⟩
+ instance [HasFiniteCoproducts C] : HasFiniteCoproducts (K ⥤ C) := ⟨inferInstance⟩
+ instance [HasFiniteLimits C] : HasFiniteLimits (K ⥤ C) := ⟨fun _ ↦ inferInstance⟩
+ instance [HasFiniteProducts C] : HasFiniteProducts (K ⥤ C) := ⟨inferInstance⟩
+ instance [HasSheafify J A] : PreservesFiniteLimits (reflector (sheafToPresheaf J A))
+ instance [HasSheafify J A] [HasFiniteProducts A] [CartesianClosed (Cᵒᵖ ⥤ A)] :
+ instance [HasWeakSheafify J A] : Reflective (sheafToPresheaf J A)
+ instance {C : Type u₁} [Category.{v₁} C] : CartesianClosed (C ⥤ Type (max u₁ v₁))
+ instance {C : Type u₁} [Category.{v₁} C] [EssentiallySmall.{v₁} C] :
- instance : HasFiniteProducts (Type v₁)
- instance {C : Type u₁} [Category.{v₁} C] : HasFiniteProducts (C ⥤ Type u₂)

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.

@dagurtomas dagurtomas added t-category-theory Category theory t-condensed Condensed mathematics labels Jul 29, 2024
@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Aug 1, 2024
@ghost ghost added merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) and removed merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) labels Aug 1, 2024
@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Aug 4, 2024
@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Aug 19, 2024
@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Aug 19, 2024
Copy link
Copy Markdown
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This looks good.

Could you please create a directory
Mathlib/CategoryTheory/Limits/FunctorCategory
and in that create-move the files Basic.lean and Finite.lean?

Otherwise, LGTM!

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Aug 23, 2024

✌️ dagurtomas can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Aug 23, 2024
@dagurtomas
Copy link
Copy Markdown
Contributor Author

Thanks!

bors merge

mathlib-bors bot pushed a commit that referenced this pull request Aug 23, 2024
... under some assumptions on the target category.

We apply this to conclude that condensed sets and light condensed sets are cartesian closed.

Co-authored-by: Sina Hazratpour @sinhp  
Co-authored-by: Jon Eugster @joneugster 

This is adapted from work done at the Copenhagen masterclass on formalisation of condensed mathematics in 2023.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Aug 23, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(CategoryTheory): sheaf categories are cartesian closed [Merged by Bors] - feat(CategoryTheory): sheaf categories are cartesian closed Aug 23, 2024
@mathlib-bors mathlib-bors bot closed this Aug 23, 2024
@mathlib-bors mathlib-bors bot deleted the dagur/CondensedCartesianClosed2 branch August 23, 2024 16:31
bjoernkjoshanssen pushed a commit that referenced this pull request Sep 9, 2024
... under some assumptions on the target category.

We apply this to conclude that condensed sets and light condensed sets are cartesian closed.

Co-authored-by: Sina Hazratpour @sinhp  
Co-authored-by: Jon Eugster @joneugster 

This is adapted from work done at the Copenhagen masterclass on formalisation of condensed mathematics in 2023.
bjoernkjoshanssen pushed a commit that referenced this pull request Sep 9, 2024
... under some assumptions on the target category.

We apply this to conclude that condensed sets and light condensed sets are cartesian closed.

Co-authored-by: Sina Hazratpour @sinhp  
Co-authored-by: Jon Eugster @joneugster 

This is adapted from work done at the Copenhagen masterclass on formalisation of condensed mathematics in 2023.
bjoernkjoshanssen pushed a commit that referenced this pull request Sep 12, 2024
... under some assumptions on the target category.

We apply this to conclude that condensed sets and light condensed sets are cartesian closed.

Co-authored-by: Sina Hazratpour @sinhp  
Co-authored-by: Jon Eugster @joneugster 

This is adapted from work done at the Copenhagen masterclass on formalisation of condensed mathematics in 2023.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). t-category-theory Category theory t-condensed Condensed mathematics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants