Natural transformations are like bridges between functors. Vertical composition stacks these bridges, creating a direct path from one functor to another. It's a way to simplify multiple transformations into one.
Horizontal composition, on the other hand, chains functors and transformations together. It's like connecting different bridges to create a longer path. This allows us to combine transformations across different categories.
Vertical Composition of Natural Transformations
Vertical composition of transformations
- Combines two natural transformations and between functors into a single natural transformation
- Defined componentwise for each object in , where
- and are the component morphisms of and at respectively
- Vertical composition essentially "stacks" the natural transformations on top of each other, connecting the component morphisms in a chain
Associativity in vertical composition
- Vertical composition of natural transformations is associative
- Given natural transformations , , and , we have
- Associativity follows from the associativity of composition of morphisms in the codomain category
- The order in which we compose the component morphisms does not matter, as long as the overall sequence is maintained

Examples of transformation compositions
- In the category of sets , natural transformations between functors can be vertically composed
- The component functions of the resulting natural transformation are the compositions of the component functions of the original natural transformations (e.g., for each set and element )
- In the category of groups , natural transformations between functors can be vertically composed
- The component group homomorphisms of the resulting natural transformation are the compositions of the component group homomorphisms of the original natural transformations (e.g., for each group and element )
Horizontal Composition of Natural Transformations

Horizontal composition of transformations
- Combines natural transformations and between functors and into a single natural transformation
- Defined componentwise for each object in , where
- is the component morphism of at
- and are the component morphisms of at and respectively
- Horizontal composition "chains" the functors and natural transformations together, applying the second natural transformation to the result of the first
Interchange law for compositions
- The interchange law relates vertical and horizontal composition of natural transformations
- Given natural transformations , , , and , the interchange law states that
- The order in which we apply vertical and horizontal composition does not matter, as long as the overall structure is maintained
- Proof involves showing that for each object in , the component morphisms of both sides of the equation are equal by using the associativity of composition in and the functoriality of
Examples of transformation compositions
- In the category of sets , given functors and , and natural transformations and
- The horizontal composition has component functions that are the compositions of the component functions of and applied to the component functions of (e.g., for each set and element )
- In the category of groups , given functors and , and natural transformations and
- The horizontal composition has component group homomorphisms that are the compositions of the component group homomorphisms of and applied to the component group homomorphisms of (e.g., for each group and element )