The areas / V26. Homological algebra
Mathlib.Algebra.Category.ModuleCat.Limits
34 declarations. Mathlib docs · Source
The category of R-modules has all limits
Further, these limits are preserved by the forgetful functor --- that is, the underlying types are just the limits in the category of types.
instance ModuleCat.addCommGroupObj E0 #
{R : Type u} →
[inst : Ring R] →
{J : Type v} →
[inst_1 : CategoryTheory.Category.{t, v} J] →
(F : CategoryTheory.Functor J (ModuleCat R)) →
(j : J) → AddCommGroup ((F.comp (CategoryTheory.forget (ModuleCat R))).obj j)
instance ModuleCat.moduleObj E0 #
{R : Type u} →
[inst : Ring R] →
{J : Type v} →
[inst_1 : CategoryTheory.Category.{t, v} J] →
(F : CategoryTheory.Functor J (ModuleCat R)) →
(j : J) → Module R ((F.comp (CategoryTheory.forget (ModuleCat R))).obj j)
def ModuleCat.sectionsSubmodule E1 #
{R : Type u} →
[inst : Ring R] →
{J : Type v} →
[inst_1 : CategoryTheory.Category.{t, v} J] →
(F : CategoryTheory.Functor J (ModuleCat R)) → Submodule R ((j : J) → ↑(F.obj j))
The flat sections of a functor into ModuleCat R form a submodule of all sections.
instance ModuleCat.instAddCommMonoidElemForallObjCompForgetLinearMapIdCarrierSections E0 #
{R : Type u} →
[inst : Ring R] →
{J : Type v} →
[inst_1 : CategoryTheory.Category.{t, v} J] →
(F : CategoryTheory.Functor J (ModuleCat R)) →
AddCommMonoid ↑(F.comp (CategoryTheory.forget (ModuleCat R))).sections
instance ModuleCat.instModuleElemForallObjCompForgetLinearMapIdCarrierSections E0 #
{R : Type u} →
[inst : Ring R] →
{J : Type v} →
[inst_1 : CategoryTheory.Category.{t, v} J] →
(F : CategoryTheory.Functor J (ModuleCat R)) → Module R ↑(F.comp (CategoryTheory.forget (ModuleCat R))).sections
instance ModuleCat.instSmallSubtypeForallCarrierObjMemSubmoduleSectionsSubmodule E0 #
∀ {R : Type u} [inst : Ring R] {J : Type v} [inst_1 : CategoryTheory.Category.{t, v} J]
(F : CategoryTheory.Functor J (ModuleCat R))
[Small.{w, max v w} ↑(F.comp (CategoryTheory.forget (ModuleCat R))).sections],
Small.{w, max v w} ↥(ModuleCat.sectionsSubmodule F)
instance ModuleCat.limitAddCommMonoid E0 #
{R : Type u} →
[inst : Ring R] →
{J : Type v} →
[inst_1 : CategoryTheory.Category.{t, v} J] →
(F : CategoryTheory.Functor J (ModuleCat R)) →
[inst_2 : Small.{w, max v w} ↑(F.comp (CategoryTheory.forget (ModuleCat R))).sections] →
AddCommMonoid
(CategoryTheory.Limits.Types.Small.limitCone (F.comp (CategoryTheory.forget (ModuleCat R)))).pt
instance ModuleCat.limitAddCommGroup E0 #
{R : Type u} →
[inst : Ring R] →
{J : Type v} →
[inst_1 : CategoryTheory.Category.{t, v} J] →
(F : CategoryTheory.Functor J (ModuleCat R)) →
[inst_2 : Small.{w, max v w} ↑(F.comp (CategoryTheory.forget (ModuleCat R))).sections] →
AddCommGroup (CategoryTheory.Limits.Types.Small.limitCone (F.comp (CategoryTheory.forget (ModuleCat R)))).pt
instance ModuleCat.limitModule E0 #
{R : Type u} →
[inst : Ring R] →
{J : Type v} →
[inst_1 : CategoryTheory.Category.{t, v} J] →
(F : CategoryTheory.Functor J (ModuleCat R)) →
[inst_2 : Small.{w, max v w} ↑(F.comp (CategoryTheory.forget (ModuleCat R))).sections] →
Module R (CategoryTheory.Limits.Types.Small.limitCone (F.comp (CategoryTheory.forget (ModuleCat R)))).pt
def ModuleCat.limitπLinearMap E1 #
{R : Type u} →
[inst : Ring R] →
{J : Type v} →
[inst_1 : CategoryTheory.Category.{t, v} J] →
(F : CategoryTheory.Functor J (ModuleCat R)) →
[inst_2 : Small.{w, max v w} ↑(F.comp (CategoryTheory.forget (ModuleCat R))).sections] →
(j : J) →
(CategoryTheory.Limits.Types.Small.limitCone (F.comp (CategoryTheory.forget (ModuleCat R)))).pt →ₗ[R]
(F.comp (CategoryTheory.forget (ModuleCat R))).obj j
limit.π (F ⋙ forget (ModuleCat.{w} R)) j as an R-linear map.
def ModuleCat.HasLimits.limitCone E1 #
{R : Type u} →
[inst : Ring R] →
{J : Type v} →
[inst_1 : CategoryTheory.Category.{t, v} J] →
(F : CategoryTheory.Functor J (ModuleCat R)) →
[Small.{w, max v w} ↑(F.comp (CategoryTheory.forget (ModuleCat R))).sections] → CategoryTheory.Limits.Cone F
Construction of a limit cone in ModuleCat R.
(Internal use only; use the limits API.)
def ModuleCat.HasLimits.limitConeIsLimit E1 #
{R : Type u} →
[inst : Ring R] →
{J : Type v} →
[inst_1 : CategoryTheory.Category.{t, v} J] →
(F : CategoryTheory.Functor J (ModuleCat R)) →
[inst_2 : Small.{w, max v w} ↑(F.comp (CategoryTheory.forget (ModuleCat R))).sections] →
CategoryTheory.Limits.IsLimit (ModuleCat.HasLimits.limitCone F)
Witness that the limit cone in ModuleCat R is a limit cone.
(Internal use only; use the limits API.)
instance ModuleCat.hasLimit E0 #
∀ {R : Type u} [inst : Ring R] {J : Type v} [inst_1 : CategoryTheory.Category.{t, v} J]
(F : CategoryTheory.Functor J (ModuleCat R))
[Small.{w, max v w} ↑(F.comp (CategoryTheory.forget (ModuleCat R))).sections], CategoryTheory.Limits.HasLimit F
If (F ⋙ forget (ModuleCat R)).sections is u-small, F has a limit.
theorem ModuleCat.hasLimitsOfShape E1 #
∀ {R : Type u} [inst : Ring R] {J : Type v} [inst_1 : CategoryTheory.Category.{t, v} J] [Small.{w, v} J],
CategoryTheory.Limits.HasLimitsOfShape J (ModuleCat R)
If J is u-small, the category of R-modules has limits of shape J.
theorem ModuleCat.hasLimitsOfSize E1 #
∀ {R : Type u} [inst : Ring R] [UnivLE.{v, w}],
CategoryTheory.Limits.HasLimitsOfSize.{t, v, w, max (w + 1) u} (ModuleCat R)
The category of R-modules has all limits.
instance ModuleCat.hasLimits E0 #
∀ {R : Type u} [inst : Ring R], CategoryTheory.Limits.HasLimits (ModuleCat R)
instance ModuleCat.hasLimits' E0 #
∀ {R : Type u} [inst : Ring R], CategoryTheory.Limits.HasLimits (ModuleCat R)
def ModuleCat.forget₂AddCommGroup_preservesLimitsAux E0 #
{R : Type u} →
[inst : Ring R] →
{J : Type v} →
[inst_1 : CategoryTheory.Category.{t, v} J] →
(F : CategoryTheory.Functor J (ModuleCat R)) →
[inst_2 : Small.{w, max v w} ↑(F.comp (CategoryTheory.forget (ModuleCat R))).sections] →
CategoryTheory.Limits.IsLimit
((CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat).mapCone (ModuleCat.HasLimits.limitCone F))
An auxiliary declaration to speed up typechecking.
instance ModuleCat.forget₂AddCommGroup_preservesLimit E0 #
∀ {R : Type u} [inst : Ring R] {J : Type v} [inst_1 : CategoryTheory.Category.{t, v} J]
(F : CategoryTheory.Functor J (ModuleCat R))
[Small.{w, max v w} ↑(F.comp (CategoryTheory.forget (ModuleCat R))).sections],
CategoryTheory.Limits.PreservesLimit F (CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat)
The forgetful functor from R-modules to abelian groups preserves all limits.
instance ModuleCat.forget₂AddCommGroup_preservesLimitsOfSize E0 #
∀ {R : Type u} [inst : Ring R] [UnivLE.{v, w}],
CategoryTheory.Limits.PreservesLimitsOfSize.{t, v, w, w, max u (w + 1), w + 1}
(CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat)
The forgetful functor from R-modules to abelian groups preserves all limits.
instance ModuleCat.forget₂AddCommGroup_preservesLimits E0 #
∀ {R : Type u} [inst : Ring R],
CategoryTheory.Limits.PreservesLimits (CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat)
instance ModuleCat.forget_preservesLimitsOfSize E0 #
∀ {R : Type u} [inst : Ring R] [UnivLE.{v, w}],
CategoryTheory.Limits.PreservesLimitsOfSize.{t, v, w, w, max u (w + 1), w + 1} (CategoryTheory.forget (ModuleCat R))
The forgetful functor from R-modules to types preserves all limits.
instance ModuleCat.forget_preservesLimits E0 #
∀ {R : Type u} [inst : Ring R], CategoryTheory.Limits.PreservesLimits (CategoryTheory.forget (ModuleCat R))
instance ModuleCat.forget₂AddCommGroup_reflectsLimit E0 #
∀ {R : Type u} [inst : Ring R] {J : Type v} [inst_1 : CategoryTheory.Category.{t, v} J]
(F : CategoryTheory.Functor J (ModuleCat R)),
CategoryTheory.Limits.ReflectsLimit F (CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat)
instance ModuleCat.forget₂AddCommGroup_reflectsLimitOfShape E0 #
∀ {R : Type u} [inst : Ring R] {J : Type v} [inst_1 : CategoryTheory.Category.{t, v} J],
CategoryTheory.Limits.ReflectsLimitsOfShape J (CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat)
instance ModuleCat.forget₂AddCommGroup_reflectsLimitOfSize E0 #
∀ {R : Type u} [inst : Ring R],
CategoryTheory.Limits.ReflectsLimitsOfSize.{t, v, w, w, max u (w + 1), w + 1}
(CategoryTheory.forget₂ (ModuleCat R) AddCommGrpCat)
def ModuleCat.directLimitDiagram E1 #
{R : Type u} →
[inst : Ring R] →
{ι : Type v} →
[inst_1 : Preorder ι] →
(G : ι → Type v) →
[inst_2 : (i : ι) → AddCommGroup (G i)] →
[inst_3 : (i : ι) → Module R (G i)] →
(f : (i j : ι) → i ≤ j → G i →ₗ[R] G j) →
[DirectedSystem G fun i j h ↦ ⇑(f i j h)] → CategoryTheory.Functor ι (ModuleCat R)
The diagram (in the sense of CategoryTheory) of an unbundled directLimit of modules.
theorem ModuleCat.directLimitDiagram_obj_carrier E0 #
∀ {R : Type u} [inst : Ring R] {ι : Type v} [inst_1 : Preorder ι] (G : ι → Type v)
[inst_2 : (i : ι) → AddCommGroup (G i)] [inst_3 : (i : ι) → Module R (G i)] (f : (i j : ι) → i ≤ j → G i →ₗ[R] G j)
[inst_4 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] (i : ι), ↑((ModuleCat.directLimitDiagram G f).obj i) = G i
theorem ModuleCat.directLimitDiagram_map E0 #
∀ {R : Type u} [inst : Ring R] {ι : Type v} [inst_1 : Preorder ι] (G : ι → Type v)
[inst_2 : (i : ι) → AddCommGroup (G i)] [inst_3 : (i : ι) → Module R (G i)] (f : (i j : ι) → i ≤ j → G i →ₗ[R] G j)
[inst_4 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] {X Y : ι} (hij : X ⟶ Y),
(ModuleCat.directLimitDiagram G f).map hij = ModuleCat.ofHom (f X Y ⋯)
def ModuleCat.directLimitCocone E1 #
{R : Type u} →
[inst : Ring R] →
{ι : Type v} →
[DecidableEq ι] →
[inst_2 : Preorder ι] →
(G : ι → Type v) →
[inst_3 : (i : ι) → AddCommGroup (G i)] →
[inst_4 : (i : ι) → Module R (G i)] →
(f : (i j : ι) → i ≤ j → G i →ₗ[R] G j) →
[inst_5 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] →
CategoryTheory.Limits.Cocone (ModuleCat.directLimitDiagram G f)
The Cocone on directLimitDiagram corresponding to
the unbundled directLimit of modules.
In directLimitIsColimit we show that it is a colimit cocone.
theorem ModuleCat.directLimitCocone_pt_carrier E0 #
∀ {R : Type u} [inst : Ring R] {ι : Type v} [inst_1 : DecidableEq ι] [inst_2 : Preorder ι] (G : ι → Type v)
[inst_3 : (i : ι) → AddCommGroup (G i)] [inst_4 : (i : ι) → Module R (G i)] (f : (i j : ι) → i ≤ j → G i →ₗ[R] G j)
[inst_5 : DirectedSystem G fun i j h ↦ ⇑(f i j h)], ↑(ModuleCat.directLimitCocone G f).pt = Module.DirectLimit G f
theorem ModuleCat.directLimitCocone_ι_app E0 #
∀ {R : Type u} [inst : Ring R] {ι : Type v} [inst_1 : DecidableEq ι] [inst_2 : Preorder ι] (G : ι → Type v)
[inst_3 : (i : ι) → AddCommGroup (G i)] [inst_4 : (i : ι) → Module R (G i)] (f : (i j : ι) → i ≤ j → G i →ₗ[R] G j)
[inst_5 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] (x : ι),
(ModuleCat.directLimitCocone G f).ι.app x = ModuleCat.ofHom (Module.DirectLimit.of R ι G f x)
def ModuleCat.directLimitIsColimit E1 #
{R : Type u} →
[inst : Ring R] →
{ι : Type v} →
[inst_1 : DecidableEq ι] →
[inst_2 : Preorder ι] →
(G : ι → Type v) →
[inst_3 : (i : ι) → AddCommGroup (G i)] →
[inst_4 : (i : ι) → Module R (G i)] →
(f : (i j : ι) → i ≤ j → G i →ₗ[R] G j) →
[inst_5 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] →
CategoryTheory.Limits.IsColimit (ModuleCat.directLimitCocone G f)
The unbundled directLimit of modules is a colimit
in the sense of CategoryTheory.
theorem ModuleCat.directLimitIsColimit_desc E0 #
∀ {R : Type u} [inst : Ring R] {ι : Type v} [inst_1 : DecidableEq ι] [inst_2 : Preorder ι] (G : ι → Type v)
[inst_3 : (i : ι) → AddCommGroup (G i)] [inst_4 : (i : ι) → Module R (G i)] (f : (i j : ι) → i ≤ j → G i →ₗ[R] G j)
[inst_5 : DirectedSystem G fun i j h ↦ ⇑(f i j h)]
(s : CategoryTheory.Limits.Cocone (ModuleCat.directLimitDiagram G f)),
(ModuleCat.directLimitIsColimit G f).desc s =
ModuleCat.ofHom (Module.DirectLimit.lift R ι G f (fun i ↦ ModuleCat.Hom.hom (s.ι.app i)) ⋯)