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 / V24. Category theory

Mathlib.CategoryTheory.Monoidal.OfHasFiniteProducts

13 declarations. Mathlib docs · Source

The natural monoidal structure on any category with finite (co)products.

A category with a monoidal structure provided in this way is sometimes called a (co-)Cartesian category, although this is also sometimes used to mean a finitely complete category. (See https://ncatlab.org/nlab/show/cartesian+category.)

As this works with either products or coproducts, and sometimes we want to think of a different monoidal structure entirely, we don't set up either construct as an instance.

TODO

Once we have cocartesian-monoidal categories, replace monoidalOfHasFiniteCoproducts and symmetricOfHasFiniteCoproducts with CocartesianMonoidalCategory.ofHasFiniteCoproducts.

def CategoryTheory.monoidalOfHasFiniteCoproducts E1 #

(C : Type u) →
  [inst : CategoryTheory.Category.{v, u} C] →
    [CategoryTheory.Limits.HasInitial C] →
      [CategoryTheory.Limits.HasBinaryCoproducts C] → CategoryTheory.MonoidalCategory C

A category with an initial object and binary coproducts has a natural monoidal structure.

theorem CategoryTheory.monoidalOfHasFiniteCoproducts.tensorObj E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasInitial C]
  [inst_2 : CategoryTheory.Limits.HasBinaryCoproducts C] (X Y : C),
  CategoryTheory.MonoidalCategoryStruct.tensorObj X Y = (X ⨿ Y)

theorem CategoryTheory.monoidalOfHasFiniteCoproducts.tensorHom E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasInitial C]
  [inst_2 : CategoryTheory.Limits.HasBinaryCoproducts C] {W X Y Z : C} (f : W ⟶ X) (g : Y ⟶ Z),
  CategoryTheory.MonoidalCategoryStruct.tensorHom f g = CategoryTheory.Limits.coprod.map f g

theorem CategoryTheory.monoidalOfHasFiniteCoproducts.whiskerLeft E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasInitial C]
  [inst_2 : CategoryTheory.Limits.HasBinaryCoproducts C] (X : C) {Y Z : C} (f : Y ⟶ Z),
  CategoryTheory.MonoidalCategoryStruct.whiskerLeft X f =
    CategoryTheory.Limits.coprod.map (CategoryTheory.CategoryStruct.id X) f

theorem CategoryTheory.monoidalOfHasFiniteCoproducts.whiskerRight E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasInitial C]
  [inst_2 : CategoryTheory.Limits.HasBinaryCoproducts C] {X Y : C} (f : X ⟶ Y) (Z : C),
  CategoryTheory.MonoidalCategoryStruct.whiskerRight f Z =
    CategoryTheory.Limits.coprod.map f (CategoryTheory.CategoryStruct.id Z)

theorem CategoryTheory.monoidalOfHasFiniteCoproducts.leftUnitor_hom E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasInitial C]
  [inst_2 : CategoryTheory.Limits.HasBinaryCoproducts C] (X : C),
  (CategoryTheory.MonoidalCategoryStruct.leftUnitor X).hom =
    CategoryTheory.Limits.coprod.desc (CategoryTheory.Limits.initial.to X) (CategoryTheory.CategoryStruct.id X)

theorem CategoryTheory.monoidalOfHasFiniteCoproducts.rightUnitor_hom E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasInitial C]
  [inst_2 : CategoryTheory.Limits.HasBinaryCoproducts C] (X : C),
  (CategoryTheory.MonoidalCategoryStruct.rightUnitor X).hom =
    CategoryTheory.Limits.coprod.desc (CategoryTheory.CategoryStruct.id X) (CategoryTheory.Limits.initial.to X)

theorem CategoryTheory.monoidalOfHasFiniteCoproducts.leftUnitor_inv E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasInitial C]
  [inst_2 : CategoryTheory.Limits.HasBinaryCoproducts C] (X : C),
  (CategoryTheory.MonoidalCategoryStruct.leftUnitor X).inv = CategoryTheory.Limits.coprod.inr

theorem CategoryTheory.monoidalOfHasFiniteCoproducts.rightUnitor_inv E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasInitial C]
  [inst_2 : CategoryTheory.Limits.HasBinaryCoproducts C] (X : C),
  (CategoryTheory.MonoidalCategoryStruct.rightUnitor X).inv = CategoryTheory.Limits.coprod.inl

theorem CategoryTheory.monoidalOfHasFiniteCoproducts.associator_hom E1 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasInitial C]
  [inst_2 : CategoryTheory.Limits.HasBinaryCoproducts C] (X Y Z : C),
  (CategoryTheory.MonoidalCategoryStruct.associator X Y Z).hom =
    CategoryTheory.Limits.coprod.desc
      (CategoryTheory.Limits.coprod.desc CategoryTheory.Limits.coprod.inl
        (CategoryTheory.CategoryStruct.comp CategoryTheory.Limits.coprod.inl CategoryTheory.Limits.coprod.inr))
      (CategoryTheory.CategoryStruct.comp CategoryTheory.Limits.coprod.inr CategoryTheory.Limits.coprod.inr)

theorem CategoryTheory.monoidalOfHasFiniteCoproducts.associator_inv E1 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasInitial C]
  [inst_2 : CategoryTheory.Limits.HasBinaryCoproducts C] (X Y Z : C),
  (CategoryTheory.MonoidalCategoryStruct.associator X Y Z).inv =
    CategoryTheory.Limits.coprod.desc
      (CategoryTheory.CategoryStruct.comp CategoryTheory.Limits.coprod.inl CategoryTheory.Limits.coprod.inl)
      (CategoryTheory.Limits.coprod.desc
        (CategoryTheory.CategoryStruct.comp CategoryTheory.Limits.coprod.inr CategoryTheory.Limits.coprod.inl)
        CategoryTheory.Limits.coprod.inr)

def CategoryTheory.symmetricOfHasFiniteCoproducts E1 #

(C : Type u) →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.Limits.HasInitial C] →
      [inst_2 : CategoryTheory.Limits.HasBinaryCoproducts C] → CategoryTheory.SymmetricCategory C

The monoidal structure coming from finite coproducts is symmetric.

theorem CategoryTheory.symmetricOfHasFiniteCoproducts_braiding E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasInitial C]
  [inst_2 : CategoryTheory.Limits.HasBinaryCoproducts C] (X Y : C), β_ X Y = CategoryTheory.Limits.coprod.braiding X Y