Composition is the operation that takes morphisms and in a category and produces a morphism , called the composite of and .
Strictly speaking, composition as defined above is binary composition. One can also define -ary composites for any natural number : given objects and morphisms , we get the composite . Since composition in a category is associative, a definition of -ary composition from binary composition via any choice of bracketing will be equal to that resulting from any other choice of bracketing. The unary composite of is simply itself, and the nullary composite of is its identity morphism.
Conversely, a category can equivalently be defined as a directed graph equipped with an -ary composition operation for every natural number , satisfying suitable associativity axioms. This definition may be called unbiased, as opposed to the usual definition which is “biased” towards and .
Traditionally, the composite of and as above is written , following the notation introduced by the followers of Leibniz for composition of functions. This is often abbreviated as simply . Of course, this notation preserves the order of symbols in the elementwise definition of function composition: .
On the other hand, reading a diagram
the notation reads better. One way to make this anti-Leibniz convention clearer is to write (which is based on the interpretation of programming commands as morphisms in theoretical computer science). Since this convention is motivated by the drawing of diagrams, it is also sometimes called diagrammatic order.
Therefore, the notations and are ambiguous, while and are less so. It seems that the notation for is more common than for , although the notation occurs in some important older papers.
Is really more common than , as Charles Wells wrote here a moment ago? I've seen more often (even for this order) and mostly in CS-oriented literature, but my experience is probably not as broad. —Toby
The change you made is probably good. Much of my work in category theory was done in connection with computer science, so my perception may be skewed. –Charles
OK, thanks! —Toby
Mike Shulman: I hope I didn’t mess up these statements when I merged the two pages.
Although diagrammatic order has advantages and partisans, especially among category theorists and computer scientists, the “classical” order of composition is firmly entrenched in much of mathematics. Many people who agree that diagrammatic order is “better” on its own merits nevertheless believe that trying to change the established “classical” order of composition creates more confusion than it removes.
In some older category theory papers, arrows were written pointing from right to left, so that the composition of arrows could be written in the “classical” style, while still preserving the diagrammatic intuition. Hom-sets were accordingly written , where is the source, and is the target.
In enriched category theory, for a monoidal category the composition operation on a -enriched category is for each triple of objects of a morphism
in .
This reduces to the above definition in the case that Set. The composition morphism sends any two composable morphisms to their composite.