-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: port CategoryTheory.Limits.EssentiallySmall (#2778)
Co-authored-by: Parcly Taxel <reddeloostw@gmail.com>
- Loading branch information
1 parent
a79a9dc
commit a423cad
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/- | ||
Copyright (c) 2022 Markus Himmel. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Markus Himmel | ||
! This file was ported from Lean 3 source module category_theory.limits.essentially_small | ||
! leanprover-community/mathlib commit 952e7ee9eaf835f322f2d01ca6cf06ed0ab6d2c5 | ||
! Please do not edit these lines, except to modify the commit id | ||
! if you have ported upstream changes. | ||
-/ | ||
import Mathlib.CategoryTheory.Limits.Shapes.Products | ||
import Mathlib.CategoryTheory.EssentiallySmall | ||
|
||
/-! | ||
# Limits over essentially small indexing categories | ||
If `C` has limits of size `w` and `J` is `w`-essentially small, then `C` has limits of shape `J`. | ||
-/ | ||
|
||
|
||
universe w₁ w₂ v₁ v₂ u₁ u₂ | ||
|
||
noncomputable section | ||
|
||
open CategoryTheory | ||
|
||
namespace CategoryTheory.Limits | ||
|
||
variable (J : Type u₂) [Category.{v₂} J] (C : Type u₁) [Category.{v₁} C] | ||
|
||
theorem hasLimitsOfShape_of_essentiallySmall [EssentiallySmall.{w₁} J] | ||
[HasLimitsOfSize.{w₁, w₁} C] : HasLimitsOfShape J C := | ||
hasLimitsOfShapeOfEquivalence <| Equivalence.symm <| equivSmallModel.{w₁} J | ||
#align category_theory.limits.has_limits_of_shape_of_essentially_small CategoryTheory.Limits.hasLimitsOfShape_of_essentiallySmall | ||
|
||
theorem hasColimitsOfShape_of_essentiallySmall [EssentiallySmall.{w₁} J] | ||
[HasColimitsOfSize.{w₁, w₁} C] : HasColimitsOfShape J C := | ||
hasColimitsOfShape_of_equivalence <| Equivalence.symm <| equivSmallModel.{w₁} J | ||
#align category_theory.limits.has_colimits_of_shape_of_essentially_small CategoryTheory.Limits.hasColimitsOfShape_of_essentiallySmall | ||
|
||
theorem hasProductsOfShape_of_small (β : Type w₂) [Small.{w₁} β] [HasProducts.{w₁} C] : | ||
HasProductsOfShape β C := | ||
hasLimitsOfShapeOfEquivalence <| Discrete.equivalence <| Equiv.symm <| equivShrink β | ||
#align category_theory.limits.has_products_of_shape_of_small CategoryTheory.Limits.hasProductsOfShape_of_small | ||
|
||
theorem hasCoproductsOfShape_of_small (β : Type w₂) [Small.{w₁} β] [HasCoproducts.{w₁} C] : | ||
HasCoproductsOfShape β C := | ||
hasColimitsOfShape_of_equivalence <| Discrete.equivalence <| Equiv.symm <| equivShrink β | ||
#align category_theory.limits.has_coproducts_of_shape_of_small CategoryTheory.Limits.hasCoproductsOfShape_of_small | ||
|
||
end CategoryTheory.Limits | ||
|