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.Adjunctions

45 declarations. Mathlib docs · Source

def ModuleCat.free E1 #

(R : Type u) → [inst : Ring R] → CategoryTheory.Functor (Type u) (ModuleCat R)

The free functor Type u ⥤ ModuleCat R sending a type X to the free R-module with generators x : X, implemented as the type X →₀ R.

def ModuleCat.monoidAlgebraFree E1 #

(R : Type u) → [inst : Ring R] → CategoryTheory.Functor (Type u) (ModuleCat R)

The free functor Type u ⥤ ModuleCat R sending a type X to the free R-module with generators x : X, implemented as the monoid algebra R[X].

theorem ModuleCat.monoidAlgebraFree_obj_carrier E0 #

∀ (R : Type u) [inst : Ring R] (X : Type u), ↑((ModuleCat.monoidAlgebraFree R).obj X) = MonoidAlgebra R X

theorem ModuleCat.monoidAlgebraFree_map E0 #

∀ (R : Type u) [inst : Ring R] {X Y : Type u} (f : X ⟶ Y),
  (ModuleCat.monoidAlgebraFree R).map f =
    ModuleCat.ofHom (MonoidAlgebra.mapDomainLinearMap R R ⇑(CategoryTheory.ConcreteCategory.hom f))

def ModuleCat.freeMk E1 #

{R : Type u} → [inst : Ring R] → {X : Type u} → X → ↑((ModuleCat.free R).obj X)

Constructor for elements in the module (free R).obj X.

theorem ModuleCat.free_hom_ext E1 #

∀ {R : Type u} [inst : Ring R] {X : Type u} {M : ModuleCat R} {f g : (ModuleCat.free R).obj X ⟶ M},
  (∀ (x : X),
      (CategoryTheory.ConcreteCategory.hom f) (ModuleCat.freeMk x) =
        (CategoryTheory.ConcreteCategory.hom g) (ModuleCat.freeMk x)) →
    f = g

theorem ModuleCat.free_hom_ext_iff E0 #

∀ {R : Type u} [inst : Ring R] {X : Type u} {M : ModuleCat R} {f g : (ModuleCat.free R).obj X ⟶ M},
  f = g ↔
    ∀ (x : X),
      (CategoryTheory.ConcreteCategory.hom f) (ModuleCat.freeMk x) =
        (CategoryTheory.ConcreteCategory.hom g) (ModuleCat.freeMk x)

def ModuleCat.freeDesc E1 #

{R : Type u} → [inst : Ring R] → {X : Type u} → {M : ModuleCat R} → (X ⟶ ↑M) → ((ModuleCat.free R).obj X ⟶ M)

The morphism of modules (free R).obj X ⟶ M corresponding to a map f : X ⟶ M.

theorem ModuleCat.freeDesc_apply E0 #

∀ {R : Type u} [inst : Ring R] {X : Type u} {M : ModuleCat R} (f : X ⟶ ↑M) (x : X),
  (CategoryTheory.ConcreteCategory.hom (ModuleCat.freeDesc f)) (ModuleCat.freeMk x) =
    (CategoryTheory.ConcreteCategory.hom f) x

theorem ModuleCat.free_map_apply E0 #

∀ {R : Type u} [inst : Ring R] {X Y : Type u} (f : X ⟶ Y) (x : X),
  (CategoryTheory.ConcreteCategory.hom ((ModuleCat.free R).map f)) (ModuleCat.freeMk x) =
    ModuleCat.freeMk ((CategoryTheory.ConcreteCategory.hom f) x)

def ModuleCat.freeHomEquiv E1 #

{R : Type u} → [inst : Ring R] → {X : Type u} → {M : ModuleCat R} → ((ModuleCat.free R).obj X ⟶ M) ≃ (X ⟶ ↑M)

The bijection ((free R).obj X ⟶ M) ≃ (X → M) when X is a type and M a module.

theorem ModuleCat.freeHomEquiv_apply E0 #

∀ {R : Type u} [inst : Ring R] {X : Type u} {M : ModuleCat R} (φ : (ModuleCat.free R).obj X ⟶ M),
  ModuleCat.freeHomEquiv φ = TypeCat.ofHom fun x ↦ (CategoryTheory.ConcreteCategory.hom φ) (ModuleCat.freeMk x)

theorem ModuleCat.freeHomEquiv_symm_apply E0 #

∀ {R : Type u} [inst : Ring R] {X : Type u} {M : ModuleCat R} (ψ : X ⟶ ↑M),
  ModuleCat.freeHomEquiv.symm ψ = ModuleCat.freeDesc (TypeCat.ofHom ⇑(CategoryTheory.ConcreteCategory.hom ψ))

def ModuleCat.adj E1 #

(R : Type u) → [inst : Ring R] → ModuleCat.free R ⊣ CategoryTheory.forget (ModuleCat R)

The free-forgetful adjunction for R-modules.

theorem ModuleCat.adj_homEquiv E0 #

∀ (R : Type u) [inst : Ring R] (X : Type u) (M : ModuleCat R), (ModuleCat.adj R).homEquiv X M = ModuleCat.freeHomEquiv

instance ModuleCat.instIsRightAdjointForgetLinearMapIdCarrier E0 #

∀ (R : Type u) [inst : Ring R], (CategoryTheory.forget (ModuleCat R)).IsRightAdjoint

def ModuleCat.FreeMonoidal.εIso E1 #

(R : Type u) →
  [inst : CommRing R] →
    CategoryTheory.MonoidalCategoryStruct.tensorUnit (ModuleCat R) ≅
      (ModuleCat.free R).obj (CategoryTheory.MonoidalCategoryStruct.tensorUnit (Type u))

The canonical isomorphism 𝟙_ (ModuleCat R) ≅ (free R).obj (𝟙_ (Type u)). (This should not be used directly: it is part of the implementation of the monoidal structure on the functor free R.)

theorem ModuleCat.FreeMonoidal.εIso_hom_one E0 #

∀ (R : Type u) [inst : CommRing R],
  (CategoryTheory.ConcreteCategory.hom (ModuleCat.FreeMonoidal.εIso R).hom) 1 = ModuleCat.freeMk PUnit.unit

theorem ModuleCat.FreeMonoidal.εIso_inv_freeMk E0 #

∀ (R : Type u) [inst : CommRing R] (x : PUnit.{u + 1}),
  (CategoryTheory.ConcreteCategory.hom (ModuleCat.FreeMonoidal.εIso R).inv) (ModuleCat.freeMk x) = 1

def ModuleCat.FreeMonoidal.μIso E1 #

(R : Type u) →
  [inst : CommRing R] →
    (X Y : Type u) →
      CategoryTheory.MonoidalCategoryStruct.tensorObj ((ModuleCat.free R).obj X) ((ModuleCat.free R).obj Y) ≅
        (ModuleCat.free R).obj (CategoryTheory.MonoidalCategoryStruct.tensorObj X Y)

The canonical isomorphism (free R).obj X ⊗ (free R).obj Y ≅ (free R).obj (X ⊗ Y) for two types X and Y. (This should not be used directly: it is part of the implementation of the monoidal structure on the functor free R.)

theorem ModuleCat.FreeMonoidal.μIso_hom_freeMk_tmul_freeMk E0 #

∀ (R : Type u) [inst : CommRing R] {X Y : Type u} (x : X) (y : Y),
  (CategoryTheory.ConcreteCategory.hom (ModuleCat.FreeMonoidal.μIso R X Y).hom)
      (ModuleCat.freeMk x ⊗ₜ[R] ModuleCat.freeMk y) =
    ModuleCat.freeMk (x, y)

theorem ModuleCat.FreeMonoidal.μIso_inv_freeMk E0 #

∀ (R : Type u) [inst : CommRing R] {X Y : Type u} (z : CategoryTheory.MonoidalCategoryStruct.tensorObj X Y),
  (CategoryTheory.ConcreteCategory.hom (ModuleCat.FreeMonoidal.μIso R X Y).inv) (ModuleCat.freeMk z) =
    ModuleCat.freeMk z.1 ⊗ₜ[R] ModuleCat.freeMk z.2

instance ModuleCat.instMonoidalFree E0 #

(R : Type u) → [inst : CommRing R] → (ModuleCat.free R).Monoidal

The free functor Type u ⥤ ModuleCat R is a monoidal functor.

theorem ModuleCat.free_ε_one E0 #

∀ (R : Type u) [inst : CommRing R],
  (CategoryTheory.ConcreteCategory.hom (CategoryTheory.Functor.LaxMonoidal.ε (ModuleCat.free R))) 1 =
    ModuleCat.freeMk PUnit.unit

theorem ModuleCat.free_η_freeMk E0 #

∀ (R : Type u) [inst : CommRing R] (x : PUnit.{u + 1}),
  (CategoryTheory.ConcreteCategory.hom (CategoryTheory.Functor.OplaxMonoidal.η (ModuleCat.free R)))
      (ModuleCat.freeMk x) =
    1

theorem ModuleCat.free_μ_freeMk_tmul_freeMk E0 #

∀ (R : Type u) [inst : CommRing R] {X Y : Type u} (x : X) (y : Y),
  (CategoryTheory.ConcreteCategory.hom (CategoryTheory.Functor.LaxMonoidal.μ (ModuleCat.free R) X Y))
      (ModuleCat.freeMk x ⊗ₜ[R] ModuleCat.freeMk y) =
    ModuleCat.freeMk (x, y)

theorem ModuleCat.free_δ_freeMk E0 #

∀ (R : Type u) [inst : CommRing R] {X Y : Type u} (z : CategoryTheory.MonoidalCategoryStruct.tensorObj X Y),
  (CategoryTheory.ConcreteCategory.hom (CategoryTheory.Functor.OplaxMonoidal.δ (ModuleCat.free R) X Y))
      (ModuleCat.freeMk z) =
    ModuleCat.freeMk z.1 ⊗ₜ[R] ModuleCat.freeMk z.2

def CategoryTheory.Free E1 #

Type u_1 → Type u → Type u

Free R C is a type synonym for C, which, given [CommRing R] and [Category* C], we will equip with a category structure where the morphisms are formal R-linear combinations of the morphisms in C.

def CategoryTheory.Free.of E1 #

(R : Type u_1) → {C : Type u} → C → CategoryTheory.Free R C

Consider an object of C as an object of the R-linear completion.

It may be preferable to use (Free.embedding R C).obj X instead; this functor can also be used to lift morphisms.

instance CategoryTheory.categoryFree E0 #

(R : Type u_1) →
  [CommRing R] →
    (C : Type u) → [CategoryTheory.Category.{v, u} C] → CategoryTheory.Category.{max u_1 v, u} (CategoryTheory.Free R C)

instance CategoryTheory.Free.instPreadditive E0 #

(R : Type u_1) →
  [inst : CommRing R] →
    (C : Type u) → [inst_1 : CategoryTheory.Category.{v, u} C] → CategoryTheory.Preadditive (CategoryTheory.Free R C)

instance CategoryTheory.Free.instLinear E0 #

(R : Type u_1) →
  [inst : CommRing R] →
    (C : Type u) → [inst_1 : CategoryTheory.Category.{v, u} C] → CategoryTheory.Linear R (CategoryTheory.Free R C)

theorem CategoryTheory.Free.single_comp_single E1 #

∀ (R : Type u_1) [inst : CommRing R] (C : Type u) [inst_1 : CategoryTheory.Category.{v, u} C] {X Y Z : C} (f : X ⟶ Y)
  (g : Y ⟶ Z) (r s : R),
  (CategoryTheory.CategoryStruct.comp (fun₀ | f => r) fun₀ | g => s) =
    fun₀ | CategoryTheory.CategoryStruct.comp f g => r * s

def CategoryTheory.Free.embedding E1 #

(R : Type u_1) →
  [inst : CommRing R] →
    (C : Type u) → [inst_1 : CategoryTheory.Category.{v, u} C] → CategoryTheory.Functor C (CategoryTheory.Free R C)

A category embeds into its R-linear completion.

theorem CategoryTheory.Free.embedding_obj E0 #

∀ (R : Type u_1) [inst : CommRing R] (C : Type u) [inst_1 : CategoryTheory.Category.{v, u} C] (X : C),
  (CategoryTheory.Free.embedding R C).obj X = X

theorem CategoryTheory.Free.embedding_map E0 #

∀ (R : Type u_1) [inst : CommRing R] (C : Type u) [inst_1 : CategoryTheory.Category.{v, u} C] {x x_1 : C} (f : x ⟶ x_1),
  (CategoryTheory.Free.embedding R C).map f = fun₀ | f => 1

def CategoryTheory.Free.lift E1 #

(R : Type u_1) →
  [inst : CommRing R] →
    {C : Type u} →
      [inst_1 : CategoryTheory.Category.{v, u} C] →
        {D : Type u} →
          [inst_2 : CategoryTheory.Category.{v, u} D] →
            [inst_3 : CategoryTheory.Preadditive D] →
              [CategoryTheory.Linear R D] →
                CategoryTheory.Functor C D → CategoryTheory.Functor (CategoryTheory.Free R C) D

A functor to an R-linear category lifts to a functor from its R-linear completion.

theorem CategoryTheory.Free.lift_obj E0 #

∀ (R : Type u_1) [inst : CommRing R] {C : Type u} [inst_1 : CategoryTheory.Category.{v, u} C] {D : Type u}
  [inst_2 : CategoryTheory.Category.{v, u} D] [inst_3 : CategoryTheory.Preadditive D]
  [inst_4 : CategoryTheory.Linear R D] (F : CategoryTheory.Functor C D) (X : CategoryTheory.Free R C),
  (CategoryTheory.Free.lift R F).obj X = F.obj X

theorem CategoryTheory.Free.lift_map E0 #

∀ (R : Type u_1) [inst : CommRing R] {C : Type u} [inst_1 : CategoryTheory.Category.{v, u} C] {D : Type u}
  [inst_2 : CategoryTheory.Category.{v, u} D] [inst_3 : CategoryTheory.Preadditive D]
  [inst_4 : CategoryTheory.Linear R D] (F : CategoryTheory.Functor C D) {x x_1 : CategoryTheory.Free R C} (f : x ⟶ x_1),
  (CategoryTheory.Free.lift R F).map f = Finsupp.sum f fun f' r ↦ r • F.map f'

theorem CategoryTheory.Free.lift_map_single E1 #

∀ (R : Type u_1) [inst : CommRing R] {C : Type u} [inst_1 : CategoryTheory.Category.{v, u} C] {D : Type u}
  [inst_2 : CategoryTheory.Category.{v, u} D] [inst_3 : CategoryTheory.Preadditive D]
  [inst_4 : CategoryTheory.Linear R D] (F : CategoryTheory.Functor C D) {X Y : C} (f : X ⟶ Y) (r : R),
  ((CategoryTheory.Free.lift R F).map fun₀ | f => r) = r • F.map f

instance CategoryTheory.Free.lift_additive E0 #

∀ (R : Type u_1) [inst : CommRing R] {C : Type u} [inst_1 : CategoryTheory.Category.{v, u} C] {D : Type u}
  [inst_2 : CategoryTheory.Category.{v, u} D] [inst_3 : CategoryTheory.Preadditive D]
  [inst_4 : CategoryTheory.Linear R D] (F : CategoryTheory.Functor C D), (CategoryTheory.Free.lift R F).Additive

instance CategoryTheory.Free.lift_linear E0 #

∀ (R : Type u_1) [inst : CommRing R] {C : Type u} [inst_1 : CategoryTheory.Category.{v, u} C] {D : Type u}
  [inst_2 : CategoryTheory.Category.{v, u} D] [inst_3 : CategoryTheory.Preadditive D]
  [inst_4 : CategoryTheory.Linear R D] (F : CategoryTheory.Functor C D),
  CategoryTheory.Functor.Linear R (CategoryTheory.Free.lift R F)

def CategoryTheory.Free.embeddingLiftIso E1 #

(R : Type u_1) →
  [inst : CommRing R] →
    {C : Type u} →
      [inst_1 : CategoryTheory.Category.{v, u} C] →
        {D : Type u} →
          [inst_2 : CategoryTheory.Category.{v, u} D] →
            [inst_3 : CategoryTheory.Preadditive D] →
              [inst_4 : CategoryTheory.Linear R D] →
                (F : CategoryTheory.Functor C D) →
                  (CategoryTheory.Free.embedding R C).comp (CategoryTheory.Free.lift R F) ≅ F

The embedding into the R-linear completion, followed by the lift, is isomorphic to the original functor.

def CategoryTheory.Free.ext E1 #

(R : Type u_1) →
  [inst : CommRing R] →
    {C : Type u} →
      [inst_1 : CategoryTheory.Category.{v, u} C] →
        {D : Type u} →
          [inst_2 : CategoryTheory.Category.{v, u} D] →
            [inst_3 : CategoryTheory.Preadditive D] →
              [inst_4 : CategoryTheory.Linear R D] →
                {F G : CategoryTheory.Functor (CategoryTheory.Free R C) D} →
                  [F.Additive] →
                    [CategoryTheory.Functor.Linear R F] →
                      [G.Additive] →
                        [CategoryTheory.Functor.Linear R G] →
                          ((CategoryTheory.Free.embedding R C).comp F ≅ (CategoryTheory.Free.embedding R C).comp G) →
                            (F ≅ G)

Two R-linear functors out of the R-linear completion are isomorphic iff their compositions with the embedding functor are isomorphic.

def CategoryTheory.Free.liftUnique E1 #

(R : Type u_1) →
  [inst : CommRing R] →
    {C : Type u} →
      [inst_1 : CategoryTheory.Category.{v, u} C] →
        {D : Type u} →
          [inst_2 : CategoryTheory.Category.{v, u} D] →
            [inst_3 : CategoryTheory.Preadditive D] →
              [inst_4 : CategoryTheory.Linear R D] →
                (F : CategoryTheory.Functor C D) →
                  (L : CategoryTheory.Functor (CategoryTheory.Free R C) D) →
                    [L.Additive] →
                      [CategoryTheory.Functor.Linear R L] →
                        ((CategoryTheory.Free.embedding R C).comp L ≅ F) → (L ≅ CategoryTheory.Free.lift R F)

Free.lift is unique amongst R-linear functors Free R C ⥤ D which compose with embedding ℤ C to give the original functor.