Documentation

Mathlib.CategoryTheory.NatTrans

Natural transformations #

Defines natural transformations between functors.

A natural transformation α : NatTrans F G consists of morphisms α.app X : F.obj X ⟶ G.obj X, and the naturality squares α.naturality f : F.map f ≫ α.app Y = α.app X ≫ G.map f, where f : X ⟶ Y.

Note that we make NatTrans.naturality a simp lemma, with the preferred simp normal form pushing components of natural transformations to the left.

See also CategoryTheory.FunctorCat, where we provide the category structure on functors and natural transformations.

Introduces notations

NatTrans F G represents a natural transformation between functors F and G.

The field app provides the components of the natural transformation.

Naturality is expressed by α.naturality.

Instances For
    theorem CategoryTheory.NatTrans.ext {C : Type u₁} {inst✝ : CategoryTheory.Category.{v₁, u₁} C} {D : Type u₂} {inst✝¹ : CategoryTheory.Category.{v₂, u₂} D} {F G : CategoryTheory.Functor C D} {x y : CategoryTheory.NatTrans F G} (app : x.app = y.app) :
    x = y
    theorem CategoryTheory.congr_app {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F G : CategoryTheory.Functor C D} {α β : CategoryTheory.NatTrans F G} (h : α = β) (X : C) :
    α.app X = β.app X

    NatTrans.id F is the identity natural transformation on a functor F.

    Equations
    Instances For

      vcomp α β is the vertical compositions of natural transformations.

      Equations
      Instances For