The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V26. Homological algebra

Mathlib.Algebra.Category.ModuleCat.Stalk

8 declarations. Mathlib docs · Source

def CategoryTheory.Limits.colimit.smul E1 #

{C : Type u_1} →
  [inst : CategoryTheory.SmallCategory C] →
    [CategoryTheory.IsFiltered C] →
      (R : CategoryTheory.Functor C RingCat) →
        (M : CategoryTheory.Functor C Ab) →
          [inst_2 : (i : C) → Module ↑(R.obj i) ↑(M.obj i)] →
            (∀ {i j : C} (f : i ⟶ j) (r : ↑(R.obj i)) (m : ↑(M.obj i)),
                (CategoryTheory.ConcreteCategory.hom (M.map f)) (r • m) =
                  (CategoryTheory.ConcreteCategory.hom (R.map f)) r •
                    (CategoryTheory.ConcreteCategory.hom (M.map f)) m) →
              (R.comp (CategoryTheory.forget RingCat)).ColimitType →
                (M.comp (CategoryTheory.forget Ab)).ColimitType → (M.comp (CategoryTheory.forget Ab)).ColimitType

(Implementation). The scalar multiplication function on ColimitType.

abbrev CategoryTheory.Limits.filteredColimitsModule E1 #

{C : Type u_1} →
  [inst : CategoryTheory.SmallCategory C] →
    [inst_1 : CategoryTheory.IsFiltered C] →
      (R : CategoryTheory.Functor C RingCat) →
        (M : CategoryTheory.Functor C Ab) →
          [inst_2 : (i : C) → Module ↑(R.obj i) ↑(M.obj i)] →
            (∀ {i j : C} (f : i ⟶ j) (r : ↑(R.obj i)) (m : ↑(M.obj i)),
                (CategoryTheory.ConcreteCategory.hom (M.map f)) (r • m) =
                  (CategoryTheory.ConcreteCategory.hom (R.map f)) r •
                    (CategoryTheory.ConcreteCategory.hom (M.map f)) m) →
              Module ↑(RingCat.FilteredColimits.colimit R) ↑(AddCommGrpCat.FilteredColimits.colimit M)

(Implementation). The module structure on AddCommGrpCat.FilteredColimits.colimit.

abbrev CategoryTheory.Limits.IsColimit.module E1 #

{C : Type u_1} →
  [inst : CategoryTheory.SmallCategory C] →
    [CategoryTheory.IsFiltered C] →
      (R : CategoryTheory.Functor C RingCat) →
        (M : CategoryTheory.Functor C Ab) →
          [inst_2 : (i : C) → Module ↑(R.obj i) ↑(M.obj i)] →
            (∀ {i j : C} (f : i ⟶ j) (r : ↑(R.obj i)) (m : ↑(M.obj i)),
                (CategoryTheory.ConcreteCategory.hom (M.map f)) (r • m) =
                  (CategoryTheory.ConcreteCategory.hom (R.map f)) r •
                    (CategoryTheory.ConcreteCategory.hom (M.map f)) m) →
              {cR : CategoryTheory.Limits.Cocone R} →
                CategoryTheory.Limits.IsColimit cR →
                  {cM : CategoryTheory.Limits.Cocone M} → CategoryTheory.Limits.IsColimit cM → Module ↑cR.pt ↑cM.pt

Given a cofiltered diagram of rings R, and a module M over R, this is the colim R-module structure of colim M.

theorem CategoryTheory.Limits.IsColimit.ι_smul E1 #

∀ {C : Type u_1} [inst : CategoryTheory.SmallCategory C] [inst_1 : CategoryTheory.IsFiltered C]
  (R : CategoryTheory.Functor C RingCat) (M : CategoryTheory.Functor C Ab)
  [inst_2 : (i : C) → Module ↑(R.obj i) ↑(M.obj i)]
  (H :
    ∀ {i j : C} (f : i ⟶ j) (r : ↑(R.obj i)) (m : ↑(M.obj i)),
      (CategoryTheory.ConcreteCategory.hom (M.map f)) (r • m) =
        (CategoryTheory.ConcreteCategory.hom (R.map f)) r • (CategoryTheory.ConcreteCategory.hom (M.map f)) m)
  {cR : CategoryTheory.Limits.Cocone R} (hcR : CategoryTheory.Limits.IsColimit cR) {cM : CategoryTheory.Limits.Cocone M}
  (hcM : CategoryTheory.Limits.IsColimit cM) (i : C) (r : ↑(R.obj i)) (m : ↑(M.obj i)),
  (CategoryTheory.ConcreteCategory.hom (cM.ι.app i)) (r • m) =
    (CategoryTheory.ConcreteCategory.hom (cR.ι.app i)) r • (CategoryTheory.ConcreteCategory.hom (cM.ι.app i)) m

instance PresheafOfModules.instModuleCarrierStalkRingCatCarrierAbPresheafOpensCarrier E0 #

{X : TopCat} →
  {R : TopCat.Presheaf RingCat X} →
    (M : PresheafOfModules R) → (x : ↑X) → Module ↑(R.stalk x) ↑(TopCat.Presheaf.stalk M.presheaf x)

theorem PresheafOfModules.germ_ringCat_smul E1 #

∀ {X : TopCat} {R : TopCat.Presheaf RingCat X} (M : PresheafOfModules R) (x : ↑X) (U : TopologicalSpace.Opens ↑X)
  (hx : x ∈ U) (r : ↑(R.obj (Opposite.op U))) (m : ↑(M.obj (Opposite.op U))),
  (CategoryTheory.ConcreteCategory.hom (TopCat.Presheaf.germ M.presheaf U x hx)) (r • m) =
    (CategoryTheory.ConcreteCategory.hom (R.germ U x hx)) r •
      (CategoryTheory.ConcreteCategory.hom (TopCat.Presheaf.germ M.presheaf U x hx)) m

instance PresheafOfModules.instModuleCarrierStalkCommRingCatCarrierAbPresheafOpensCarrier E0 #

{X : TopCat} →
  {R : TopCat.Presheaf CommRingCat X} →
    (M : PresheafOfModules (CategoryTheory.Functor.comp R (CategoryTheory.forget₂ CommRingCat RingCat))) →
      (x : ↑X) → Module ↑(R.stalk x) ↑(TopCat.Presheaf.stalk M.presheaf x)

theorem PresheafOfModules.germ_smul E1 #

∀ {X : TopCat} {R : TopCat.Presheaf CommRingCat X}
  (M : PresheafOfModules (CategoryTheory.Functor.comp R (CategoryTheory.forget₂ CommRingCat RingCat))) (x : ↑X)
  (U : TopologicalSpace.Opens ↑X) (hx : x ∈ U) (r : ↑(R.obj (Opposite.op U))) (m : ↑(M.obj (Opposite.op U))),
  (CategoryTheory.ConcreteCategory.hom (TopCat.Presheaf.germ M.presheaf U x hx)) (r • m) =
    (CategoryTheory.ConcreteCategory.hom (R.germ U x hx)) r •
      (CategoryTheory.ConcreteCategory.hom (TopCat.Presheaf.germ M.presheaf U x hx)) m