Documentation

Mathlib.CategoryTheory.Sums.Basic

Binary disjoint unions of categories #

We define the category instance on C ⊕ D when C and D are categories.

We define:

We further define sums of functors and natural transformations, written F.sum G and α.sum β.

sum C D gives the direct sum of two categories.

Equations
@[simp]
theorem CategoryTheory.Sum.inl__map (C : Type u₁) [CategoryTheory.Category.{v₁, u₁} C] (D : Type u₁) [CategoryTheory.Category.{v₁, u₁} D] (X : C) (Y : C) (f : X Y) :
(CategoryTheory.Sum.inl_ C D).toPrefunctor.map f = f

inl_ is the functor X ↦ inl X.

Equations
Instances For
    @[simp]
    theorem CategoryTheory.Sum.inr__map (C : Type u₁) [CategoryTheory.Category.{v₁, u₁} C] (D : Type u₁) [CategoryTheory.Category.{v₁, u₁} D] (X : D) (Y : D) (f : X Y) :
    (CategoryTheory.Sum.inr_ C D).toPrefunctor.map f = f

    inr_ is the functor X ↦ inr X.

    Equations
    Instances For

      The functor exchanging two direct summand categories.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        @[simp]
        @[simp]

        swap gives an equivalence between C ⊕ D and D ⊕ C.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          The sum of two functors.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            The sum of two natural transformations.

            Equations
            Instances For