In mathematics, specifically the 2-category theory, the pasting theorem states that every 2-categorical pasting scheme defines a unique composite 2-cell in every 2-category. The notion of pasting in 2-category and weak 2-category was first introduced by . Typically, pasting is used to specify a cell by giving a pasting diagram. The pasting theorem states that such a cell is well-defined the several different sequences of compositions which the diagram could be explained as representing yield the same cell. The pasting theorem for strict 2-category was proved by , and for weak 2-category it is proved in Appendix A of 's thesis. The pasting theorem for n-category version was proved by and , but the definition of the pasting scheme differs. String diagrams are justified by the pasting theorem.
Consider the pasting diagram D for adjunction
2-cell ,
The entire pasting diagram represents the vertical composite which is a 2-cell in D(A, B), displayed on the right above
Suppose G and H are anchored graphs such that:
The vertical composite HG is the anchored graph defined by the following data:
(1) The connected plane graph of HG is the quotient
(2) The interior faces of HG are the interior faces of G and H, which are already anchored.
(3) The exterior face of HG is the intersection of and , with
of the disjoint union of G and H, with the codomain of G identified with the domain of H.
A 2-pasting scheme is an anchored graph G together with a decomposition
into vertical composites of atomic graphs .
Suppose A is a 2-category, and G is an anchored graph. A G-diagram in A is an assignment as follows.
For a directed path in G with , define the horizontal composite 1-cell .
If G admits a pasting scheme presentation, then a G-diagram is called a 2-pasting diagram in A of shape G.
Every 2-dimensional pasting diagram in a Gray-category has a unique composition up to a contractible groupoid of choices.
For any positive natural number n, every labelled n-pasting scheme in an strict n-category A has a unique "strong" composite.
For every positive natural number n, every labelled n-pasting scheme in an strict n-category A has a unique n-pasting composite.