1. Introduction
Algebraic structures, such as monoids, can be defined inside arbitrary categories. In order to generalize their definition to higher categories, the general principle is that one should look for a coherent version of the corresponding algebraic theory: this roughly means that we should add enough higher cells to our algebraic theory so that “all diagrams commute” up to these cells. For instance, when generalizing the notion of monoid from monoidal categories to monoidal 2-categories, associativity and unitality are now witnessed by 2-cells, and one should add new axioms in order to ensure their coherence: in this case, those can be chosen to be MacLane’s unit and pentagon equations, thus resulting in the notion of pseudomonoid. The fact that these are indeed enough to make the structure coherent constitutes a reformulation of MacLane’s celebrated coherence theorem for monoidal categories (MacLane Reference MacLane1963). In this context, a natural question is: how can we systematically find those higher coherence cells?
Rewriting theory (Baader and Nipkow Reference Baader and Nipkow1999; Terese 2003) provides a satisfactory answer to this question. Its starting point is the observation that it is often useful to provide an orientation to equations in algebraic structures, which dates back to the work of Dehn (Reference Dehn1911) and Thue (Reference Thue1914) on presentations of groups and monoids, respectively. Namely, when the resulting rewriting system is suitably behaved (confluent and terminating), equality can be tested efficiently (by comparing normal forms). Moreover, confluence of the whole rewriting system can be decided algorithmically by computing critical branchings and testing for the confluence of those only, which are always in finite number when the rewriting system is finite. In fact, this result can be reformulated as the fact that the confluence diagrams for critical branchings provide us precisely with enough cells to make the structure coherent. This was first observed by Squier for monoids, first formulated in homological language (Squier Reference Squier1987) and then generalized as a homotopical condition (Lafont Reference Lafont1995; Squier et al. Reference Squier, Otto and Kobayashi1994). These results were then extended to strict higher categories by Guiraud and Malbos (Reference Guiraud and Malbos2009, Reference Guiraud and Malbos2012, Reference Guiraud and Malbos2016) based on a notion of rewriting system adapted to this setting, which is provided by Burroni’s polygraphs (Burroni Reference Burroni1993) (also called computads Street Reference Street1976). In particular, their work allows recovering the coherence laws for pseudomonoids in this way.
Our aim is to generalize those techniques in order to be able to define coherent algebraic structures in weak higher categories. We actually handle here the first nontrivial case, which is the one of dimension 3. Namely, it is well known that tricategories are not equivalent to strict 3-categories: the “best” one can do is to show that they are equivalent to Gray categories (Gordon et al. Reference Gordon, Power and Street1995; Gurski Reference Gurski2013), which is an intermediate structure between weak and strict 3-categories, roughly consisting in 3-categories in which the exchange law is not required to hold strictly. This means that classical rewriting techniques cannot be used off the shelf in this context and one has to adapt those to Gray categories, which is the object of this article.
It turns out that a slightly more general notion than Gray categories is adapted to rewriting: precategories. The notion of precategory is a generalization of the one of sesquicategory, whose use has already been advocated by Street in the context of rewriting (Street Reference Street1996). The interest in those has also been renewed recently, because they are at the heart of the graphical proof-assistant Globular (Bar et al. Reference Bar, Kissinger and Vicary2016; Bar and Vicary Reference Bar and Vicary2017). Gray categories are particular 3-precategories equipped with exchange 3-cells satisfying suitable axioms. We first work out in details the definition of precategories and, based on the work of Weber (Reference Weber2009), show that
$(n{+}1)$
-precategories can be defined as categories enriched in n-precategories equipped with the so-called funny tensor product, see Section 2. This is analogous to the well-known fact that Gray categories are categories enriched over 2-categories equipped with the Gray tensor product (Gordon et al. Reference Gordon, Power and Street1995), that we recall in Section 3. We then define in Section 4 a notion of polygraph adapted to precategories, called prepolygraph. It is amenable to computer implementation: there is an efficient representation of the morphisms in free precategories, which allows for mechanized computation of critical branchings. Moreover, it can be used to present other precategories, in particular Gray categories (Section 3.3). In order to study these presentations, we adapt the theory of rewriting to the context of prepolygraphs in Section 4, and we show that our notion of rewriting system retains the classical properties. In particular, a finite rewriting system always has a finite number of critical branchings, which contrasts with the case of strict categories (Guiraud and Malbos Reference Guiraud and Malbos2009; Lafont Reference Lafont2003; Mimram Reference Mimram2014). It moreover allows for a Squier-type coherence theorem (Theorem 4.4.5). Finally, in Section 5, we apply our technology to several algebraic structures of interest, which allows us to recover known coherence theorems and find new ones, such as for pseudomonoids (Section 5.1), pseudoadjunctions (Section 5.2), self-dualities (Section 5.3), and also Frobenius pseudomonoids but up to a termination conjecture (Section 5.4).
2. Precategories
In this work, we use a variant of the notion of n-category called precategory whose two-dimensional version is better known as sesquicategory (Street Reference Street1996). Many definitions of “semi-strict” higher categories can be described as precategories with additional structures and equations, and this is in particular the case for Gray categories. Moreover, contrarily to strict higher categories, their cells can be easily described by normal forms, making them amenable to computations. This notion was used to give several definitions of semi-strict higher categories (Bar and Vicary Reference Bar and Vicary2017) and is the underlying structure of the Globular tool for higher categories (Bar et al. Reference Bar, Kissinger and Vicary2016). Premises of it can be found in the work of Street (Reference Street1996) and Makkai (Reference Makkai2005). In what follows, we give equational and enriched definitions of precategories (Sections 2.2 and 2.4). Then, we define prepolygraphs as a direct adaptation of the notion of polygraph for strict categories (Section 2.5), and we show that the cells of such a prepolygraph admit a normal form (Section 2.8). Finally, we recall the usual construction of localization, in the context of three-dimensional precategories only (Section 2.9), since our subsequent results will mostly target (3,2)-precategories.
2.1 Globular sets
Given
$n\in\mathbb{N}$
, an n-globular set C is a diagram of sets:

such that
$\partial^-_i\circ \partial^-_{i+1}=\partial^-_i\circ \partial^+_{i+1}$
and
$\partial^+_i\circ \partial^-_{i+1}=\partial^+_i\circ \partial^+_{i+1}$
for
$0\leq i<n-1$
. An element u of
$C_i$
is called an i-globe of C and, for
$i>0$
, the globes
$\partial^-_{i-1}(u)$
and
$\partial^+_{i-1}(u)$
are, respectively, called the source and target and u. We write
$\mathbf{Glob}_{n}$
for the category of n-globular sets, a morphism
$f\colon C\rightarrow D$
being a family of morphisms
$f_i\colon C_i\rightarrow D_i$
, for
$0\leq i\leq n$
, such that
$\partial^{\epsilon}_i\circ f_{i+1}=f_i\circ \partial^{\epsilon}_i$
for
$\epsilon \in\{{-,+}\}$
. Given
$m \ge n$
and
$C \in \mathbf{Glob}_{m}$
, we denote by
$\mathcal{T}^{m}_{n}(C)$
the n-globular set obtained from C by removing the i-globes for
$n < i \le m$
. This operation extends to a functor
$\mathcal{T}^{m}_{n}\colon \mathbf{Glob}_{m} \rightarrow \mathbf{Glob}_{n}$
.
For simplicity, we often implicitly suppose that, in an n-globular set C, the sets
$C_i$
are pairwise disjoint and write
$u\in C$
for
$u\in\bigsqcup_i C_i$
. For
$\epsilon\in\{{-,+}\}$
and
$k\geq 0$
, we write
for the iterated source (when
$\epsilon=-$
) and target (when
$\epsilon=+$
) maps. We generally omit the index k when it is clear from the context. Also, we sometimes simply write
$\partial^\epsilon(u)$
for
$\partial_{i,1}^\epsilon(u)$
. Given
$i,j,k\in \{{0,\ldots,n}\}$
with
$k<i$
and
$k<j$
, we write
$C_i\times_kC_j$
for the pullback:

A sequence of globes
$u_1 \in C_{i_1}, \ldots, u_p \in C_{i_p}$
is said i-composable, for some
$i < \min\!(i_1,\ldots,i_p)$
, when
$\partial^+_{i}(u_j) = \partial^-_i(u_{j+1})$
for
$1 \le j < p$
. Given
$u,v \in C_{i+1}$
with
$i < n$
, u and v are said parallel when
$\partial^{\epsilon}(u) =\partial^{\epsilon}(v)$
for
$\epsilon \in \{{-,+}\}$
.
For
$u\in C_{i+1}$
, we sometimes write
$u\colon v\rightarrow w$
to indicate that
$\partial^-_i(u)=v$
and
$\partial^+_i(u)=w$
. In low dimension, we use n-arrows such as
$\Rightarrow$
,
$\Rrightarrow$
,
$\Rrightarrow$
, etc., to indicate the sources and the targets of n-globes in several dimensions. For example, given a 2-globular set C and
$\phi \in C_2$
, we sometimes write
to indicate that
$\partial^-_1(\phi) = f$
,
$\partial^+_1(\phi) = g$
,
$\partial^-_0(\phi) = x$
and
$\partial^+_0(\phi)= y$
. We also use these arrows in graphical representations to picture the elements of a globular set C. For example, given an n-globular set C with
$n \ge 2$
, the drawing

figures two 2-globes
$\phi,\psi \in C_2$
, four 1-globes
$f,g,h,k \in C_1$
, and three 0-globes
$x,y,z \in C_0$
such that
2.2 n-precategories
Given
$n\in\mathbb{N}$
, an n-precategory C is an n-globular set equipped with
-
identity functions
$\text{id}^{k}\colon C_{k-1}\rightarrow C_{k}$
, for
$0< i\le n$
, -
composition functions
${\ast}_{k,l}\colon C_k\times_{\min\!(k,l)-1}C_l\rightarrow C_{\max(k,l)}$
, for
$0<k,l\leq n$
,
satisfying the axioms below. In this context, the elements of
$C_i$
are called i-cells. Since the dimensions of the cells determine the functions to be used, we often omit the indices of id and, given
$0 < k,l\le n$
and
$i = \min\!(k,l) - 1$
, we often write
${\ast}_{i}$
for
${\ast}_{k,l}$
. For example, in a 2-precategory which has a configuration of cells as in (1), there are, among others, 1-cells
$f{\ast}_0k$
,
$h{\ast}_0 k$
and 2-cells
$\phi{\ast}_1\psi$
and
$\psi{\ast}_0k$
given by the composition operations. The axioms of n-precategories are the following:
-
(i) for
$k < n$
and
$u\in C_k$
,
\begin{equation*} \partial^-_k(\text{id})=u=\partial^+_k(\text{id}^), \end{equation*}
-
(ii) for
$i,k,l \in \{{0,\ldots,n}\}$
such that
$i = \min\!(k,l) -1$
,
$(u,v)\in C_k\times_iC_l$
, and
${\epsilon \in \{{-,+}\}}$
,
\begin{align*} \partial^{\epsilon}(u {\ast}_i v) &= \begin{cases} u{\ast}_i \partial^{\epsilon}(v)& \text{if $k < l$,}\\ \partial^-(u)&\text{if $k=l$ and $\epsilon = -$,}\\ \partial^+(v)&\text{if $k=l$ and $\epsilon = +$,}\\ \partial^{\epsilon}(u){\ast}_i v&\text{if $k>l$,} \end{cases} \end{align*}
-
(iii) for
$i,k,l \in \{{0,\ldots,n}\}$
with
$i = \min\!(k,l) - 1$
, given
$(u,v)\in C_{k-1}\times_{i}C_l$
, and, given
\begin{align*} \text{id}^{}_{u}{\ast}_i v &= \begin{cases} v&\text{if $k \le l$,}\\ \text{id}^{}_{u{\ast}_i v}&\text{if $k > l$,} \end{cases} \end{align*}
$(u,v) \in C_k \times_i C_{l-1}$
,
\begin{align*} u{\ast}_i \text{id}^{}_{v} &= \begin{cases} u&\text{if $l\le k$,}\\ \text{id}^{}_{u{\ast}_i v}&\text{if $l > k$,} \end{cases} \end{align*}
-
(iv) for
$i,k,l,m \in \{{0,\ldots,n}\}$
with
$i = \min\!(k,l) - 1 = \min\!(l,m) - 1$
, and
$u \in C_k$
,
$v \in C_l$
and
$w \in C_w$
such that u,v,w are i-composable,
\begin{equation*} (u{\ast}_iv){\ast}_iw = u{\ast}_i(v{\ast}_iw), \end{equation*}
-
(v) for
$i,j,k,k' \in \{{0,\ldots,n}\}$
such that given
\begin{equation*} j = \min\!(k,k') - 1 \quad\text{and}\quad i < j{,} \end{equation*}
$u \in C_{i+1}$
and
$(v,v') \in C_k \times_j C_{k'}$
such that u,v are icomposable, and, given
\begin{equation*} u {\ast}_i (v {\ast}_j v') = (u {\ast}_i v) {\ast}_j (u {\ast}_i v') \end{equation*}
$(u,u') \in C_k \times_j C_{k'}$
and
$v \in C_{i+1}$
such that u,v are icomposable,
\begin{equation*} (u {\ast}_j u') {\ast}_i v = (u {\ast}_i v) {\ast}_j (u' {\ast}_i v). \end{equation*}
A morphism of n-precategories, called an n-prefunctor, is a morphism between the underlying globular sets which preserves identities and compositions as expected. We write
$\mathbf{PCat}_{n}$
for the category of n-precategories. The above description exhibits n-precategories as an essentially algebraic theory. Thus,
$\mathbf{PCat}_{n}$
is a locally presentable category Adámek and Rosický (Reference Adámek and Rosický1994, Thm. 3.36); consequently, it is complete and cocomplete Adámek and Rosický (Reference Adámek and Rosický1994, Cor. 1.28). In the following, we write 1 for the terminal n-precategory for
$n\ge 0$
.
In dimension 2, string diagrams can be used as usual to represent compositions of 2-cells. For example, given the 2-precategory C freely generated on the globular set

we can represent the two 2-cells
respectively by

Note that these two 2-cells are different, and that the diagram

makes no sense in a generic 2-precategory.
2.3 Truncation functors
Similarly to strict categories (Métayer Reference Métayer2008), the categories
$\mathbf{PCat}_{n}$
for
$n \ge 0$
can be related by several functors. For
$m\geq n$
, we have a truncation functor:
where, given an m-precategory C,
${\mathcal{T}}^{m}_{n}(C)$
is the n-precategory obtained by forgetting all the i-cells for
$n < i \le m$
. This functor admits a left adjoint:
which, to an n-precategory C, associates the m-precategory
$\mathcal{F}^{m}_{n}(C)$
obtained by formally adding i-identities for
$n < i \le m$
, that is,
$\mathcal{F}^{m}_{n} (C)_i=C_i$
for
$i \le n$
and
$\mathcal{F}^{m}_{n} (C)_i=C_n$
for
$i > n$
.
Proposition 2.3.1. For
$m > n$
, the functors
${\mathcal{T}}^{m}_{n}$
and
$\mathcal{F}^{m}_{n}$
admit both left and right adjoints, that is, we have a sequence of adjunctions:
As a consequence, the functors
${\mathcal{T}}^{m}_{n}$
and
$\mathcal{F}^{m}_{n}$
preserve both limits and colimits.
Proof. Suppose given an m-precategory C. The n-precategory
${\mathcal{H}}^{m}_{ }n(C)$
has the same i-cells as C for
$i<n$
and
${\mathcal{H}}^{m}_{ }n(C)_n$
is obtained by quotienting
$C_n$
under the smallest congruence
$\sim$
such that
$u\sim v$
whenever there exists an
$(n+1)$
-cell
$\alpha\colon u\rightarrow v$
. The n-precategory
${\mathcal{R}}^{n}_{m}(C)$
has the same i-cells as C for
$0\leq i\leq n$
and, for
$n\leq i<m$
,
${\mathcal{R}}^{n}_{m}(C)_{i+1}$
is defined from
${\mathcal{R}}^{n}_{m}(C)_i$
as the set of pairs
$(u,v)\in {\mathcal{R}}^{n}_{m}(C)_i\times{\mathcal{R}}^{n}_{m}(C)_i$
with
$\partial^-(u)=\partial^-(v)$
and
$\partial^+(u)=\partial^+(v)$
, with
$\partial^-(u,v)=u$
as source and
$\partial^+(u,v)=v$
as target. Details are left to the reader.
Given
$n < m$
, we write
$ _{(n)}{(\!-\!)}$
for the functor
$\mathcal{F}^{m}_{n} \circ{\mathcal{T}}^{m}_{n}\colon \mathbf{PCat}_{m} \rightarrow \mathbf{PCat}_{m}$
and, given an m-precategory C, we call
$ _{(n)}C$
the n-skeleton of C. It corresponds to the m-precategory obtained from C by removing all nontrivial i-cells with
$i>n$
. We write
for the counit of the adjunction
$\mathcal{F}^{m}_{n} \dashv {\mathcal{T}}^{m}_{n}$
. Since
$\mathcal{F}^{m}_{n}$
and
${\mathcal{T}}^{m}_{n}$
both preserve limits and colimits by Proposition 2.3.1, so does the functor
$(-)_{(n)}$
.
2.4 The funny tensor product
We now define the funny tensor product that we will use to give an enriched definition of precategories. It can be thought of as a variant of the cartesian product of categories where we restrict to morphisms where one of the components is the identity (or, more precisely, to formal composites of such morphisms). We give a rather direct and concise definition, and we refer the reader to the work of Weber (Reference Weber2009) for a more abstract definition. Given
$n \ge 0$
and two n-precategories C and D, the funny tensor product of C and D is the pushout:

Since
$\mathop{\text{j}}\nolimits_{(\!-\!)}$
is a natural transformation, the funny tensor product can be extended as a functor:
We show that it equips
$\mathbf{PCat}_{n}$
with a structure of monoidal category. First, we prove several technical lemmas.
Lemma 2.4.1. Given n-precategories C and
$(D^i)_{i \in I}$
, the canonical morphism
is an isomorphism.
Proof. Write F for this morphism. A morphism between n-precategories is an isomorphism if and only if the underlying morphism of globular sets is an isomorphism. Thus, it is sufficient to show that the isomorphism holds dimensionwise, that is, that the images of F under the functors
$(\!-\!)_j\colon \mathbf{PCat}_{n} \rightarrow \mathbf{Set}$
are isomorphisms for
$0 \le j \le n$
. Products and coproducts are computed dimensionwise in
$\mathbf{PCat}_{n}$
so that the functors
$(\!-\!)_j$
preserve products and coproducts. Since coproducts distribute over products in
$\mathbf{Set}$
,
$F_j$
is an isomorphism for
$0 \le j \le n$
, and so is F.
Lemma 2.4.2. Given an n-precategory D, the functor
$(\!-\!) \times D_{(0)}$
preserves colimits.
Proof. Since, by Proposition 2.3.1,
$\mathcal{F}^{n}_{0}$
preserves limits and colimits, we have
$D_{(0)} \cong \bigsqcup_{x \in D_0} \text{1}$
. Given a diagram
$C(\!-\!)\colon I \rightarrow \mathbf{PCat}_{n}$
, by Lemma 2.4.1, we have

Lemma 2.4.3. Given n-precategories C,D,E, there is an isomorphism:
natural in C, D, and E.
Proof. Given n-precategories C, D and E, the precategory
$(C \square D) \square E$
is defined by the pushout:

Since, by Lemma 2.4.2,
$(\!-\!) \times E_{(0)}$
preserves colimits, the following diagram is also a pushout:

Thus,
$(C \square D) \square E$
is the colimit of the diagram:

The precategory
$C \square (D \square E)$
admits a similar diagram, and we deduce easily, using the associativity of
$\times$
, a canonical morphism
${\alpha}_{C,D,E}\colon (C \square D) \square E \rightarrow C \square (D \square E)$
, which admits an inverse defined symmetrically. The morphism
${\alpha}_{C,D,E}$
is easily checked to be natural in C, D, and E.
Given an n-precategory, there are canonical morphisms:
where
${\lambda}^{\text{f}}_C$
is defined by:

and
${\rho}^{\text{f}}_C$
is defined similarly. Both are natural in C. We can conclude that:
Proposition 2.4.4.
$(C,\square,\text{1},{\alpha},{\lambda}^{\text{f}},{\rho}^{\text{f}})$
is a monoidal category.
Proof. The axioms of monoidal categories follow from the pushout definition of the funny tensor product and the cartesian monoidal structure on n-precategories.
In fact, the funny tensor product is a suitable product for an inductive enriched definition of precategories, that is,
Proposition 2.4.5. There is an equivalence of categories between
$(n{+}1)$
-precategories and categories enriched in n-precategories with the funny tensor product.
Proof. See Appendix A.
2.5 Prepolygraphs
In this section, we introduce the notion of prepolygraph which generalizes in arbitrary dimension the notion of rewriting system. This definition is an adaptation to precategories of the notion of polygraph introduced by Burroni for strict categories (Burroni Reference Burroni1993). Polygraphs were also generalized by Batanin to algebras of any finitary monad on globular sets (Batanin Reference Batanin1998), and prepolygraphs are a particular instance of this construction, for which we provide rather here an explicit construction.
For
$n \ge 0$
, writing
${\mathcal{U}}_{n}$
for the canonical forgetful functor
$\mathbf{PCat}_{n}\rightarrow \mathbf{Glob}_{n}$
, we define the category
$\mathbf{PCat}_{n}^+$
as the pullback:

and write
${\mathcal{U}}_{n}^+\colon \mathbf{PCat}_{n}^+ \rightarrow \mathbf{Glob}_{n+1}$
for the top arrow of the pullback and
${\mathcal{V}}_{n}\colon \mathbf{PCat}_{n}^+ \rightarrow \mathbf{PCat}_{n}$
for the left arrow. An object
$(C,C_{n+1})$
of
$\mathbf{PCat}_{n}^+$
consists of an n-precategory C equipped with a set
$C_{n+1}$
of
$(n{+}1)$
-cells and two maps
$d_n,d_n\colon C_{n+1}\rightarrow C_n$
(note however that there is no notion of composition for
$(n{+}1)$
-cells). There is a functor
${\mathcal{W}}_{n}\colon \mathbf{PCat}_{n+1} \rightarrow \mathbf{PCat}_{n}^+$
defined as the universal arrow:

and, since categories and functors in the above diagram are induced by finite limit sketches and morphisms of finite limit sketches, they are all right adjoints (see Barr and Wells Reference Barr and Wells2005, Thm. 4.1 for instance), so that
${\mathcal{W}}_{n}$
admits a left adjoint
${\mathcal{L}}_{n}\colon \mathbf{PCat}_{n}^+ \rightarrow \mathbf{PCat}_{n+1}$
.
We define the category
$\mathbf{Pol}_{n}$
of n-prepolygraphs together with a functor
${\mathcal{G}}_{n}\colon \mathbf{Pol}_{n} \rightarrow \mathbf{PCat}_{n}$
by induction on n. We define
$\mathbf{Pol}_{0} = \mathbf{Set}$
and take
${\mathcal{G}}_{0}$
to be the identity functor. Now suppose that
$\mathbf{Pol}_{n}$
and
${\mathcal{G}}_{n}$
are defined for
$n \ge 0$
. We define
$\mathbf{Pol}_{n+1}$
as the pullback:

and write
${\mathcal{G}}_{n}^+\colon \mathbf{Pol}_{n+1} \rightarrow \mathbf{PCat}_{n}^+$
for the top arrow and
${\mathcal{T}}^{n+1}n$
for the left arrow of the diagram. Finally, we define
${\mathcal{G}}_{n+1}$
as
${\mathcal{L}}_{n} \circ {\mathcal{G}}_{n}^+$
.
More explicitly, an
$(n{+}1)$
-prepolygraph
$\textsf{P}$
consists in a diagram of sets:

such that
${\partial^-_i}\circ d_{i+1}={\partial^-_i}\circ d_{i+1}$
and
$\partial^+_i\circ d_{i+1}=\partial^+_i\circ d_{i+1}$
, together with a structure of n-precategory on the globular set on the bottom row:
$\textsf{P}_i$
is the set of i-generators,
$d_i,d_i\colon \textsf{P}_{i+1}\rightarrow\textsf{P}_i^*$
, respectively, associate with each
$(i{+}1)$
-generator its source and target, and
$\textsf{P}_i^*$
is the set of i-cells, that is, formal compositions of i-generators. In line with the latter notation, we will often write
$\textsf{P}^*$
for the image of an n-prepolygraph
$\textsf{P}$
by
${\mathcal{G}}_{n}$
.
By definition, an
$(n{+}1)$
-prepolygraph
$\textsf{P}$
has an underlying n-prepolygraph
${\mathcal{T}}^{n+1}_{ }n(\textsf{P})$
, that we will often denote by
$\textsf{P}_{\le n}$
. More generally, for
$m \ge n$
, an m-prepolygraph
$\textsf{P}$
has an underlying n-prepolygraph
$\textsf{P}_{\le n}$
obtained by applying successively the forgetful functors
${\mathcal{T}}^{i+1}_{ }i$
for
$m > i \ge n$
.
Example 2.5.1. We define the 3-prepolygraph
$\textsf{P}$
for pseudomonoids as follows. We put
where, given
$n\in\mathbb{N}$
, we write
$\bar n$
for the composite
$a {\ast}_0 \cdots {\ast}_0 a$
of n copies of a, and we define
$\textsf{P}_3$
as the set with the following three elements:

Note that we make use of the arrows
$\rightarrow$
,
$\Rightarrow$
and
$\Rrightarrow$
to indicate the source and target of each i-generator for
$i\in \{{1,2}\}$
: a is a 1-generator such that
$d_0(a) = d_0(a) = x$
,
$\mu$
is a 2-generator such that
$d_1(\mu) = a {\ast}_0 a$
and
$d_1(\mu) = a$
, and so on. In the following, we will keep using this notation to describe the generators of other prepolygraphs.
2.6 Presentations
Given an n-precategory C with
$n > 0$
, a congruence for C is an equivalence relation
$\sim$
on
$C_n$
such that, for all
$u,u' \in C_n$
satisfying
$u \sim u'$
,
-
$\partial^{\epsilon}_{n-1}(u) = \partial^{\epsilon}_{n-1}(u')$
for
$\epsilon \in \{{-,+}\}$
, -
for
$v,w \in C_{i+1}$
with
$0 \le i < n$
such that v,u,w are i-composable, we have
\begin{equation*} v {\ast}_i u {\ast}_i w \sim v {\ast}_i u' {\ast}_i w. \end{equation*}
Given such a congruence for C, there is an n-precategory
$C/{\sim}$
which is the n-precategory D such that
$D_i = C_i$
for
$i < n$
and
$D_n =C_n/{\sim}$
and where the identities and compositions are induced by the ones on C.
Now, consider the composite functor:
To an
$(n{+}1)$
-prepolygraph
$\textsf{P}$
, it associates an n-precategory denoted by
$\overline{\textsf{P}}$
. Concretely,
$\overline{\textsf{P}}$
is isomorphic to
$(\textsf{P}_{\le }n)^*/{\sim^\textsf{P}}$
where
$\sim^\textsf{P}$
is the smallest congruence such that
$\partial^-_n(u) \sim^\textsf{P} \partial^+_n(u)$
for
$u \in\textsf{P}_{n+1}$
. In the following, we say that an
$(n{+}1)$
-prepolygraph
$\textsf{P}$
is a presentation of an n-precategory C when C is isomorphic to
$\overline{\textsf{P}}$
.
2.7 Freely generated cells
Given
$(C,C_{n+1})\in \mathbf{PCat}_{n}^+$
, we give an explicit description of the free
$(n{+}1)$
-precategory
${\mathcal{L}}_{n}(C,C_{n+1})$
it generates, similar to the one given in Métayer (Reference Métayer2008) in the case of polygraphs. This
$(n{+}1)$
-precategory has C as underlying n-precategory so that we focus on the description of the
$(n{+}1)$
-cells, which can be described as equivalence classes of terms, called here expressions, corresponding to formal composites of cells. These expressions are defined inductively as follows:
-
for every element
$u\in C_{n+1}$
, there is an expression, still noted u, -
for every n-cell
$u\in C_n$
, there is an expression
$\text{id}_{u}$
, -
for every
$0\leq i<n$
, for every
$u\in C_{i+1}$
and every expression v, there is an expression
$u{\ast}_i v$
, -
for every
$0\leq i<n$
, for every expression u and every
$v\in C_{i+1}$
, there is an expression
$u{\ast}_i v$
, -
for every pair of expressions u and v, there is an expression
$u{\ast}_n v$
.
We then define well-typed expressions through typing rules in a sequent calculus. We consider judgments of the form
-
$\vdash t\colon u\rightarrow v$
, where t is an expression and
$u,v\in C_n$
, with the intended meaning that the expression t has u as source and v as target, -
$\vdash t=t'\colon u\rightarrow v$
, where t and t’ are expressions and
$u,v\in C_n$
, with the intended meaning that t and t’ are equal expressions from u to v.
The associated typing rules are
-
for every
$t\in C_{n+1}$
with
$\partial_n^-(t)=u$
and
$\partial_n^+(t)=v$
, 
-
for every
$u\in C_n$
, 
-
for every
$0\leq i<n$
, every
$u\in C_{i+1}$
and
$v,v'\in C_n$
with
$\partial^+_i(u)=\partial^-_i(v)$
, 
-
for every
$0\leq i<n$
, every
$u,u' \in C_n$
and
$v\in C_{i+1}$
with
$\partial^+_i(u)=\partial^-_i(v)$

-
and, for every
$u,v,w \in C_n$

The equality rules, which express different desirable properties of the equality relation, are introduced below. The first rules enforce that equality is an equivalence relation:
The next ones express that that identities are neutral elements for composition:

The next ones express that composition is associative:

The next ones express that
$(n{+}1)$
-identities are compatible with low-dimensional compositions:

The next ones express that n-compositions are compatible with low-dimensional compositions:

The next ones express the distributivity properties between the different low-dimensional compositions:

Finally, the last ones express that equality is contextual:

The following lemmas show that typing is unique and well-behaved regarding equality. They are easily shown by inductions on the derivations:
Lemma 2.7.1 (Uniqueness of typing). Given an expression t such that the judgments
${\vdash t\colon u\rightarrow v}$
and
${\vdash t\colon u'\rightarrow v'}$
are derivable, we have
$u=u'$
and
$v=v'$
.
Lemma 2.7.2. If
$\vdash t=t'\colon u\rightarrow v$
is derivable, then
$\vdash t\colon u\rightarrow v$
and
$\vdash t'\colon u\rightarrow v$
are derivable.
A term t is well typed if there are
$u,v\in C_n$
such that
$\vdash t\colon u\rightarrow v$
is derivable using the above rules. In this case, by Lemma 2.7.1, the types u and v are uniquely determined by t, and we write
$\partial^-_n(t)=u$
and
$\partial^+_n(t)=v$
. We define
$C_{n+1}^*$
to be the set of equivalence classes under
$=$
of well-typed expressions. By Lemma 2.7.2, the operations
$\partial^-_n$
and
$\partial^+_n$
are compatible with the relation
$=$
. We finally define
${\mathcal{L}}_{n}(C,C_{n+1})$
as the
$(n{+}1)$
-precategory with C as underlying n-precategory,
$C_{n+1}^*$
as set of
$(n{+}1)$
-cells, with sources and targets given by the maps
$\partial^-_n$
and
$\partial^+_n$
. The compositions and identities on the
$(n{+}1)$
-cells are induced in the expected way by the corresponding syntactic constructions (this is well defined by the axioms of
$=$
). It is routine to verify that:
Theorem 2.7.3. The above construction defines a functor
${\mathcal{L}}_{n}$
which is left adjoint to
${\mathcal{W}}_{n}$
.
2.8 Normal form for cells
Suppose given
$(C,C_{n+1})\in\mathbf{PCat}_{n}^+$
. The set
$C_{n+1}^*$
of cells of
${\mathcal{L}}_{n}(C,C_{n+1})$
was described in the previous section as a quotient of expressions modulo a congruence
$=$
. In order to conveniently work with its equivalence classes, we introduce here a notion of normal form for those. From now on, we adopt the convention that missing parenthesis in expressions are implicitly bracketed on the right, that is, we write
$u_1{\ast}_nu_2{\ast}_n\cdots{\ast}_n u_k$
instead of
$u_1{\ast}_n(u_2{\ast}_n(\cdots{\ast}_nu_k))$
.
By removing the relations (3) in the definition of the congruence
$=$
and orienting from left to right the remaining equations, we obtain a relation
$\Rightarrow$
which can be interpreted as a rewriting relation on expressions:
\begin{align*} \text{id}_{u} {\ast}_n t &\Rightarrow t & t {\ast}_n \text{id}^{}_{u} &\Rightarrow t \\ (t_1 {\ast}_n t_2) {\ast}_n t_3 & \Rightarrow t_1 {\ast}_n (t_2 {\ast}_n t_3) & (u_1 {\ast}_i t_n) {\ast}_i u_2 &\Rightarrow u_1 {\ast}_i (t_n {\ast}_i u_2) \\ &\cdots & &\cdots\end{align*}
We now study the properties of
$\Rightarrow$
. We recall that such a relation is said to be terminating when there is no infinite sequence
$(t_i)_{i \ge 0}$
such that
$t_i \Rightarrow t_{i+1}$
for
$i \ge 0$
. A normal form is an expression t such that there exists no t’ with
$t \Rightarrow t'$
. Writing
$\Rightarrow^*$
for the reflexive transitive closure of
$\Rightarrow$
, the relation
$\Rightarrow$
is said locally confluent when for all expressions t,
$t_1$
, and
$t_2$
such that
$t \Rightarrow t_1$
and
$t \Rightarrow t_2$
, we have
$t_1 \Rightarrow^* t'$
and
$t_2 \Rightarrow^* t'$
for some expression t’ (diagram on the left) and confluent when for all expressions t,
$t_1$
, and
$t_2$
such that
$t \Rightarrow^* t_1$
and
$t \Rightarrow^* t_2$
, we have
$t_1 \Rightarrow^*t'$
and
$t_2 \Rightarrow^* t'$
for some expression t’ (diagram on the right):

Those notions are introduced in more details in Baader and Nipkow (Reference Baader and Nipkow1999).
Lemma 2.8.1. The relation
$\Rightarrow$
is terminating.
Proof. In order to show termination, we define a measure on the terms that is decreased by each rewriting operation. To do so, we first define counting functions
$c_n$
and
$l_i,r_i$
for
$0 \le i < n$
from expressions to
$\mathbb{N}$
that take into account the three kinds of operations in the expression: top n-dimensional compositions, and lower i-dimensional left and right compositions. These functions count the numbers of potential reductions in an expression t with the associated operations. Since reductions involving composition operations change value of counting functions of composition operations of lower dimension, we will use a lexicographical ordering of the counting functions to obtain the wanted measure. Given an expression t, we define
$c_n(t) \in \mathbb{N}$
and
$l_{i}(t),r_{i}(t) \in \mathbb{N}$
for
$0 \le i < n$
by induction on t as follows:
-
if
$g \in C_{n+1}$
, we put
$c_n(g) = l_{i}(g) = r_{i}(g) = 0$
for
$0 \le i < n$
, -
if
$u \in C_n$
, we put
$c_n(\text{id}_{u}) = l_{i}(\text{id}_{u}) = r_{i}(\text{id}_{u}) = 1$
, -
if
$t = t_1 {\ast}_n t_2$
, we put
\begin{align*} c_n(t) &= 2c_n(t_1) + c_n(t_2) + 1, \\ l_{i}(t) &= l_{i}(t_1) + l_{i}(t_2) + 2, \\ r_{i}(t) &= r_{i}(t_1) + r_{i}(t_2) + 2, \end{align*}
-
if
$t = u {\ast}_j t'$
, we put
$c_n(t) = c_n(t')$
and
\begin{align*} l_{i}(t)&= \begin{cases} l_{i}(t') & \text{if $j < i$,} \\ 2l_{i}(t') + 1 & \text{if $j = i$,} \\ l_{i}(t') + 1 & \text{if $j > i$,} \end{cases} & r_{i}(t)&= \begin{cases} r_{i}(t') & \text{if $j < i$,} \\ r_{i}(t') + 1 & \text{if $j \ge i$,} \end{cases} \end{align*}
-
if
$t = t' {\ast}_j v$
, we put
$c_{n}(t) = c_n(t')$
and
\begin{align*} l_{i}(t)&= \begin{cases} l_{i}(t') & \text{if $j \le i$,} \\ l_{i}(t') + 1 & \text{if $j > i$,} \end{cases} & r_{i}(t)&= \begin{cases} r_{i}(t') & \text{if $j < i$,} \\ 2r_{i}(t') + 1 & \text{if $j = i$,} \\ r_{i}(t') + 1 & \text{if $j > i$.} \end{cases} \end{align*}
For each expression t, we define
and consider the lexicographical ordering
$<_{\text{lex}}$
on
$\mathbb{N}^{2n+1}$
. For the inductive rules of
$\Rightarrow$
, we observe that
-
if
$t = t_1 {\ast}_n t_2$
and
$t' = t'_1 {\ast}_n t_2$
with
$N(t_1) <_{\text{lex}} N(t'_1)$
, then
$N(t) <_{\text{lex}} N(t')$
, -
if
$t = t_1 {\ast}_n t_2$
and
$t' = t_1 {\ast}_n t'_2$
with
$N(t'_2) <_{\text{lex}} N(t_2)$
, then
$N(t') <_{\text{lex}} N(t)$
, -
if
$t = u {\ast}_i \tilde t$
and
$t' = u {\ast}_i \tilde t'$
with
$N(\tilde t') <_{\text{lex}} N(\tilde t)$
, then
$N(t') <_{\text{lex}} N(t)$
, -
if
$t = \tilde t {\ast}_i v$
and
$t' = \tilde t' {\ast}_i v$
with
$N(\tilde t') <_{\text{lex}} N(\tilde t)$
, then
$N(t') <_{\text{lex}} N(t)$
.
It is sufficient to prove that the other reduction rules decrease the norm
$N(\!-\!)$
. We only cover the most representative cases by computing the first component of
$N(\!-\!)$
modified by the reduction rule and showing that it is strictly decreasing:
\begin{align*} c_n(\text{id}_{u} {\ast}_n t) &= c_n(t) + 3 > c_n(t), \\ c_n((t_1 {\ast}_n t_2) {\ast}_n t_3) &= 4c_n(t_1) + 2c_n(t_2) + c_n(t_3) + 3 \\ & > 2c_n(t_1) + 2c_n(t_2) + c_n(t_3) + 2 = c_n(t_1 {\ast}_n (t_2 {\ast}_n t_3)), \\ l_{i}(u_1 {\ast}_i (u_2 {\ast}_i t)) &= 4l_{i}(t) + 3 > 2l_{i}(t) + 1 = l_{i}((u_1 {\ast}_i u_2) {\ast}_i t), \\ r_{i}((u_1 {\ast}_i t) {\ast}_i u_2) &= 2r_{i}(t) + 3 > 2r_{i}(t) + 2 = r_{i}(u_1 {\ast}_i (t {\ast}_i u_2)), \\ l_{i}(u {\ast}_i (t_1 {\ast}_n t_2)) &= 2l_{i}(t_1) + 2l_{i}(t_2) + 5 \\ &> 2l_{i}(t_1) + 2l_{i}(t_2) + 4 = l_{i}((u {\ast}_i t_1) {\ast}_n (u {\ast}_i t_2)), \\ l_{i}(u {\ast}_i (v {\ast}_j t)) &= 2l_{i}(t) + 3 > 2l_{i}(t) + 2 = l_{i}((u {\ast}_i v) {\ast}_j (u {\ast}_i t)) \text{ for $j > i$.} \end{align*}
Thus, if
$t \Rightarrow t'$
, we have
$N(t') <_{\text{lex}} N(t)$
. Since the lexicographical order
$<_{\text{lex}}$
on
$\mathbb{N}^{2n+1}$
is well founded, the reduction rule
$\Rightarrow$
is terminating.
Lemma 2.8.2. The relation
$\Rightarrow$
is locally confluent.
Proof. By a direct adaptation of the critical pair lemma (e.g., Baader and Nipkow Reference Baader and Nipkow1999, Thm. 6.2.4), it is enough to show that all critical branchings are confluent, which can be checked by direct computation. For example, given
$t_1$
,
$t_2$
,
$t_3$
, and
$t_4$
suitably typed, there is a critical branching given by the reductions:
This branching is confluent since
and
Another critical branching is given by the reductions:
for
$u_1,u_2 \in C_i$
with
$i \le n$
and
$t_1,t_2$
suitably typed. This branching is confluent since
and
The other cases are similar.
Theorem 2.8.3. Any cell in
$u\in C_{n+1}^*$
admits a unique representative by an expression of the form:
where each
$u_i$
decomposes as:
where
$A^i$
is an element of
$C_{n+1}$
and
$v^i_j$
and
$w^i_j$
are j-cells in
$C_j$
.
Proof. We have seen in Lemmas 2.8.1 and 2.8.2 that the relation
$\Rightarrow$
is terminating and locally confluent. By Newman’s lemma (see, e.g., Baader and Nipkow Reference Baader and Nipkow1999, Lem. 2.7.2), it is thus confluent and every equivalence class of expressions contains a unique normal form, which can be obtained by reducing any expression to its normal form. It can be checked that those normal forms are in bijective correspondence with the expression of the form (4) (essentially, those expressions are normal forms where identities have been suitably inserted).
A cell of
$C^*_{n+1}$
of the form (4) is called a whisker. By the inductive definition of prepolygraphs from Section 2.5 and Theorem 2.8.3, given an m-prepolygraph
$\textsf{P}$
with
$m > 0$
, an
$(i{+}1)$
-cell
$u \in \textsf{P}^*_{i+1}$
with
$i \in \{{0,\ldots,m-1}\}$
can be uniquely written as a composite of
$(i{+}1)$
-dimensional whiskers
$u_1 {\ast}_i\cdots {\ast}_i u_k$
for a unique
$k \in \mathbb{N}$
that is called the length of u and denoted by
$|u|$
. Moreover, each whisker
$u_j$
admits a unique decomposition of the form (4). We will extensively use this canonical form for cells of precategories freely generated by a prepolygraph in the following, often omitting to invoke Theorem 2.8.3.
Example 2.8.4. Recall the 3-prepolygraph of pseudomonoids
$\textsf{P}$
from Example 2.5.1. Theorem 2.8.3 allows a canonical string diagram representation of the elements of
$\textsf{P}^*_2$
: first, we represent the 2-generators
$\mu$
and
$\eta$
by
and
, respectively. Secondly, we represent the whiskers
$\bar m {\ast}_0 \alpha {\ast}_0 \bar n$
for
$m,n\in\mathbb{N}$
and
$\alpha \in \textsf{P}_2$
by adding m wires on the left and n wires on the right of the representation of
$\alpha$
. For example,
$\bar 2 {\ast}_0 \mu {\ast}_0 \bar 3$
is represented by:
Finally, a 2-cell of
$\textsf{P}^*_2$
, which decomposes as a composite of whiskers
$w_1 {\ast}_1 \cdots {\ast}_1 w_k$
, is represented by stacking the representation the whiskers. For example, below are shown two 2-cells with their associated graphical representation:

Note that, contrary to 2-cells of strict 2-categories, these two 2-cells are not equal in
$\textsf{P}^*_2$
. The above graphical representation can be used in order to define unambiguously the source and target of 3-cells. Here, the 3-generators
$\textsf{A}$
,
$\textsf{L}$
, and
$\textsf{R}$
can be described graphically by:

2.9
$\mathbf{(3,2)}$
-precategories
In the following sections, we will mostly consider 3-precategories that are generated by 3-prepolygraphs (as the one from Example 2.5.1), whose 3-generators should moreover be thought as “invertible operations” (think of the 3-generators
$\textsf{A},\textsf{L},\textsf{R}$
of Example 2.5.1). Thus, we will in fact be dealing with 3-precategories whose 3-cells are all invertible. Such 3-precategories will usually be obtained by applying a localization construction to the 3-precategory
$\textsf{P}^*$
for some 3-prepolygraph
$\textsf{P}$
, which is a direct adaptation of the one for categories and described below.
Given a 3-precategory C, a 3-cell
$F\colon \phi\Rrightarrow\phi' \in C_3$
is invertible when there exists
$G\colon \phi'\Rrightarrow \phi$
such that
$F {\ast}_2 G = \text{id}_{\phi}$
and
$G {\ast}_2 F = \text{id}_{\phi'}$
. In this case, G is unique and we write it as
$F^{-1}$
. A (3,2)-precategory is a 3-precategory where every 3-cell is invertible. The (3,2)-precategories form a full subcategory of
$\mathbf{PCat}_{3}$
denoted
$\mathbf{PCat}_{(3,2)}$
.
There is a forgetful functor:
which admits a left adjoint
$(\!-\!)^{\top}$
also called localization functor described as follows. Given a 3-precategory C, for every
$F\colon\phi\Rightarrow\phi' \in C_3$
, we write
$F^+$
for a formal element of source
$\phi$
and target
$\phi'$
, and
$F^-$
for a formal element of source
$\phi'$
and target
$\phi$
. A zigzag of C is a list:
for some
$k \ge 0$
,
$F_1,\ldots,F_k \in C_{3}$
and
$\epsilon_1,\ldots,\epsilon_k \in\{{-,+}\}$
such that
$\phi = \partial^-(F_1^{\epsilon_1})$
,
$\phi' = \partial^+(F_k^{\epsilon_k})$
and
$\partial^+(F_i^{\epsilon_i}) = \partial^-(F_{i+1}^{\epsilon_{i+1}})$
for
$1 \le i < k$
(there is one empty list
$()_{\phi,\phi}$
for each
$\phi \in \textsf{P}^*_2$
, by convention). The source and the target of a zigzag as in (5) are
$\phi$
and
$\phi'$
respectively. Then, we define the truncation
${\mathcal{T}}^{3}_{2}(C^{\top})$
as
${\mathcal{T}}^{3}_{2}(C)$
and
$(C^{\top})_{3}$
as the quotient of the zigzags by the following equalities: for every zigzag
$(F_1^{\epsilon_1},\ldots,F_k^{\epsilon_k})_{\phi,\phi'}$
,
-
if
$F_i = \text{id}_{\psi}$
for some
$i \in \{{1,\ldots,k}\}$
and
$\psi \in C_2$
, then
\begin{equation*} (F_1^{\epsilon_1},\ldots,F_k^{\epsilon_k})_{\phi,\phi'} = (F_1^{\epsilon_1},\ldots,F_{i-1}^{\epsilon_{i-1}},F_{i+1}^{\epsilon_{i+1}},\ldots,F_k^{\epsilon_k})_{\phi,\phi'}, \end{equation*}
-
if
$\epsilon_i = \epsilon_{i+1} = +$
for some
$i \in \{{1,\ldots,k-1}\}$
, then
\begin{equation*} (F_1^{\epsilon_1},\ldots,F_k^{\epsilon_k})_{\phi,\phi'} = (F_1^{\epsilon_1},\ldots,F_{i-1}^{\epsilon_{i-1}},(F_{i} {\ast}_2 F_{i+1})^{+},F_{i+2}^{\epsilon_{i+2}},\ldots,F_k^{\epsilon_k})_{\phi,\phi'}, \end{equation*}
-
if
$\epsilon_i = \epsilon_{i+1} = -$
for some
$i \in \{{1,\ldots,k-1}\}$
, then
\begin{equation*} (F_1^{\epsilon_1},\ldots,F_k^{\epsilon_k})_{\phi,\phi'} = (F_1^{\epsilon_1},\ldots,F_{i-1}^{\epsilon_{i-1}},(F_{i+1} {\ast}_2 F_{i})^{-},F_{i+2}^{\epsilon_{i+2}},\ldots,F_k^{\epsilon_k})_{\phi,\phi'}, \end{equation*}
-
if
$\{{\epsilon_i,\epsilon_{i+1}}\} = \{{-,+}\}$
and
$F_i = F_{i+1}$
for some
$i \in \{{1,\ldots,k-1}\}$
, then
\begin{equation*} (F_1^{\epsilon_1},\ldots,F_k^{\epsilon_k})_{\phi,\phi'} = (F_1^{\epsilon_1},\ldots,F_{i-1}^{\epsilon_{i-1}},F_{i+2}^{\epsilon_{i+2}},\ldots,F_k^{\epsilon_k})_{\phi,\phi'}. \end{equation*}
Since the definitions of source and target of zigzags are compatible with the above equalities, they induce source and target operations
$\partial^-,\partial^+\colon(C^{\top})_{3} \rightarrow C_2$
. Given
we define
$F {\ast}_2 G$
as:
and, given
$i \in \{{0,1}\}$
,
$u \in C_{i+1}$
and
$F =(F_1^{\epsilon_1},\ldots,F_k^{\epsilon_k})_{\phi,\phi'}$
with
$\partial^+_i(u) =\partial^-_i(\phi)$
, we define
$u {\ast}_i F$
as:
and, finally, given
$\phi \in C_2$
, we define
$\text{id}_{\phi}$
as
$()_{\phi,\phi}$
. All these operations are compatible with the quotient equalities above, and they equip
$C^{\top}$
with a structure of 3-precategory.
There is a canonical 3-prefunctor
$H\colon C \rightarrow C^{\top}$
sending
$F\colon\phi\Rrightarrow\psi\in C_3$
to
$(F^+)_{\phi,\psi}$
. Moreover, given a (3,2)-precategory D and a 3-prefunctor
$G\colon C \rightarrow D$
, we can define
$G'\colon C^{\top} \rightarrow D$
by putting
$G'(u) = G(u)$
for
$u \in C_i$
with
$i \le 2$
and
for a zigzag
$(F_1^{\epsilon_1},\ldots,F_k^{\epsilon_k})_{u,v}$
where
\begin{equation*} G'(F^\epsilon) = \begin{cases} G(F) & \text{if $\epsilon = +$} \\ G(F)^{-1} & \text{if $\epsilon = -$} \end{cases}\end{equation*}
for
$F \in C_{3}$
and
$\epsilon \in \{{-,+}\}$
. The definition of G’ is compatible with the quotient equalities above so that G’ is well defined, and G’ can be shown to uniquely factorize G through H. Hence,
$(\!-\!)^{\top}$
is indeed a left adjoint for
$\mathop{\mathcal{U}}$
. In the following, given a 3-precategory C and
$F \in C_3$
, we often write F for H(F).
3. Gray Categories
Strict 3-categories are categories enriched in the monoidal category
$\mathbf{Cat}_{2}$
equipped with the cartesian product. Similarly, Gray categories are categories enriched in the monoidal category
$\mathbf{Cat}_{2}$
equipped with the Gray tensor product. The latter can be seen as an “asynchronous” variant of the cartesian product, similar to the funny tensor product, where two interleavings of the same morphisms are related by “exchange” cells. Typically, consider the 1-categories C and D below
their funny and Gray tensor products are, respectively,

where the exchange 2-cell
$\chi$
can be invertible or not, depending on whether we consider the pseudo or lax variant of the Gray tensor product. We first recall quickly the definition of the Gray tensor product, both in its lax and pseudo variants. We then give a more explicit description in terms of generators and relations of categories enriched in 2-categories with the Gray tensor product. Then, we give a way for presenting canonically a Gray category.
3.1 The Gray tensor products
We recall here the definitions of the Gray tensor products on 2-categories, in its lax and pseudo variants. We refer the reader to Gray (Reference Gray1974, Sec. I,4) for details.
A (strict) 2-category is a 2-precategory C such that, for all
$\phi,\psi \in C_2$
with
$\partial^+_0(\phi) = \partial^-_0(\psi)$
,
We denote
$\mathbf{Cat}_{2}$
the full subcategory of
$\mathbf{PCat}_{2}$
whose objects are 2-categories. We write 1 for the terminal 2-category and we write
${\ast}$
for its unique 0-cell.
Given C and D two 2-categories, we write
$C \boxtimes^{\text{lax}} D$
for the 2-category which is presented as follows:
-
the 0-cells of
$C \boxtimes^{\text{lax}} D$
are the pairs (x,y) where
$x \in C_0$
and
$y \in D_0$
, -
the 1-cells of
$C \boxtimes^{\text{lax}} D$
are generated by 1-cells: for
\begin{equation*} (f,y)\colon (x,y) \rightarrow (x',y) \quad\text{and}\quad (x,g)\colon (x,y) \rightarrow (x,y'), \end{equation*}
$f\colon x \rightarrow x' \in C_1$
and
$g\colon y \rightarrow y' \in C_2$
,
-
the 2-cells of
$C \boxtimes^{\text{lax}} D$
are generated by the 2-cells: for
\begin{equation*} (\phi,y)\colon (f,y) \rightarrow (f',y) \quad\text{and}\quad (x,\psi)\colon (x,g) \rightarrow (x,g') \end{equation*}
$\phi\colon f\Rightarrow f' \in C_2$
,
$\psi\colon g\Rightarrow g' \in C_2$
and
$x,y \in C_0$
, and by the 2-cells: for
$f\colon x \rightarrow x' \in C_1$
and
$g\colon y \rightarrow y' \in C_1$
,
under the conditions that
-
(i) the 1-generators are compatible with 0-composition, meaning that
for all
\begin{align*} (\text{id}_{x},y) &= (x, \text{id}_{y}) = \text{id}_{(x,y)} \\[5pt] (f {\ast}_0 f',y) &= (f,y) {\ast}_0 (f',y)\\[5pt] (x,g {\ast}_0 g') &= (x,g) {\ast}_0 (x,g') \end{align*}
$x \in C_0$
,
$y \in D_0$
, 0-composable
$f,f' \in C_1$
and 0-composable
$g,g' \in D_1$
,
-
(ii) the 2-generators are compatible with 0-composition, meaning that
for all
\begin{align*} (\text{id}^{2}_{x},y) &= (x,\text{id}^{2}_{y}) = \text{id}^{2}_{(x,y)} \\[5pt] (\phi_1 {\ast}_0 \phi_2, y) & = (\phi_1,y) {\ast}_0 (\phi_2,y) \\[5pt] (x,\psi_1 {\ast}_0 \psi_2) &= (x,\psi_1) {\ast}_0 (x,\psi_2) \end{align*}
$x \in C_0$
,
$y \in D_0$
, 0-composable
$\phi_1,\phi_2 \in C_2$
and 0-composable
$\psi_1,\psi_2 \in D_2$
, that is, graphically, 
-
(iii) the 2-generators are compatible with 1-composition, meaning that
for all
\begin{align*} (\text{id}_{f},y) &= \text{id}_{(f,y)} \\[4pt] (\phi_1 {\ast}_1 \phi_2, y) & = (\phi_1,y) {\ast}_1 (\phi_2,y) \\[4pt] (x, \text{id}_{g}) &= \text{id}_{(x,g)}\\[4pt] (x,\psi_1 {\ast}_1 \psi_2) &= (x,\psi_1) {\ast}_1 (x,\psi_2) \end{align*}
$\phi_i\colon f_{i-1} \Rightarrow f_i \colon x \rightarrow x'$
and
$\psi_i\colon g_{i-1} \Rightarrow g_i \colon y \rightarrow y'$
for
$i \in \{{1,2}\}$
and
$f\colon x \rightarrow x'$
and
$g\colon y \rightarrow y'$
, that is, graphically, 
-
(iv) the interchangers are compatible with 0-composition, meaning that
for all
\begin{align*} (\text{id}_{x},g) &= \text{id}_{(x,g)} \\ (f_1 {\ast}_0 f_2,g) & = ((f_1,y) {\ast}_0 (f_2,g)) {\ast}_1 ((f_1,g) {\ast}_0 (f_2,y')) \\ (f, \text{id}_{y}) &= \text{id}_{(f,y)} \\ (f,g_1 {\ast}_0 g_2) & = ((f,g_1) {\ast}_0 (x',g_2)) {\ast}_1 ((x,g_1) {\ast}_0 (f,g_2)) \end{align*}
$f_i\colon x_{i-1} \rightarrow x_i$
and
$g_i\colon y_{i-1} \rightarrow y_i$
for
$i \in \{{1,2}\}$
and
$f\colon x \rightarrow x'$
and
$g\colon y \rightarrow y'$
, that is, graphically, 
-
(v) the interchangers commute with the 2-generators, meaning that
for
\begin{align*} ((f,g) {\ast}_1 ((x,g) {\ast}_0 (\phi,y'))) &= (( (\phi,y) {\ast}_0 (x',g)) {\ast}_1 (f',g)) \\ ((f,g) {\ast}_1 ((x,\psi) {\ast}_0 (f,y'))) &= (( (f,y) {\ast}_0 (x',\psi)) {\ast}_1 (f,g')) \end{align*}
$\phi\colon f\Rightarrow f'\colon x \rightarrow x'$
and
$\psi\colon g\Rightarrow g'\colon y \rightarrow y'$
, that is, graphically, 

The construction extends to a bifunctor
$\mathbf{Cat}_{2} \times \mathbf{Cat}_{2} \rightarrow \mathbf{Cat}_{2}$
by defining, for
$F\colon C \rightarrow C'$
and
$G\colon D \rightarrow D'$
,
$F\boxtimes^{\text{lax}} G$
as the unique functor mapping:
\begin{align*} (\phi,y) &\mapsto (F(\phi),G(y)) \\ (x,\psi) &\mapsto (F(x),G(\psi)) \\ (f,g) &\mapsto (F(f),G(g))\end{align*}
for all
$x \in C_0$
,
$y \in D_0$
,
$\phi \in C_2$
,
$\psi \in D_2$
,
$f \in C_1$
, and
$g \in D_1$
.
For
$C,D,E \in \mathbf{Cat}_{2}$
, there is a 2-functor:
which is an isomorphism natural in C,D,E and uniquely defined by the following mappings on generators:
\begin{align*} ((\phi,y),z) & \mapsto (\phi,(y,z)) & ((f,g),z) & \mapsto (f,(g,z)) \\ ((x,\psi),z) & \mapsto (x,(\psi,z)) & ((f,y),h) & \mapsto (f,(y,h)) \\ ((x,y),\gamma) & \mapsto (x,(y,\gamma)) & ((x,g),h) & \mapsto (x,(g,h))\end{align*}
for
$\phi\colon f \Rightarrow f'\colon x \rightarrow x' \in C_2$
,
$\psi\colon g \Rightarrow g'\colon y \rightarrow y' \in D_2$
and
$\gamma\colon h\Rightarrow h'\colon z \rightarrow z' \in E_2$
.
For
$C \in \mathbf{Cat}_{2}$
, there are two 2-functors:
which are isomorphisms, natural in C, and uniquely defined by the mappings:
for
$\psi \in C_2$
. By checking coherence conditions between
$\alpha^{\text{lax}}$
,
${\lambda}^{\text{lax}}$
, and
${\rho}^{\text{lax}}$
, we get that:
Proposition 3.1.1. The bifunctor
$\boxtimes^{\text{lax}}$
together with the unit 1 and the natural isomorphisms
$\alpha^{\text{lax}}$
,
${\lambda}^{\text{lax}}$
, and
${\rho}^{\text{lax}}$
equip
$\mathbf{Cat}_{2}$
with a structure of a monoidal category. The monoidal structure
$(\mathbf{Cat}_{2},\boxtimes^{\text{lax}},\text{1},\alpha^{\text{lax}},{\lambda}^{\text{lax}},{\rho}^{\text{lax}})$
is called the lax Gray tensor product.
A variant of the Gray tensor is called the pseudo Gray tensor product is the monoidal structure
$(\mathbf{Cat}_{2},\boxtimes,\text{1},{\alpha},{\lambda},{\rho})$
where, given
$C,D \in \mathbf{Cat}_{2}$
,
$C\boxtimes D$
is defined the same way as
${C \boxtimes^{\text{lax}} D}$
, except that we moreover require that the 2-cells (f,g) of
$C \boxtimes D$
be invertible. The natural isomorphisms
${\alpha},{\lambda},{\rho}$
are uniquely defined by similar mappings than those defining
$\alpha^{\text{lax}},{\lambda}^{\text{lax}},{\rho}^{\text{lax}}$
, and we have:
Proposition 3.1.2. The bifunctor
$\boxtimes$
together with the unit 1 and the natural isomorphisms
${\alpha}$
,
${\lambda}$
,
${\rho}$
equip
$\mathbf{Cat}_{2}$
with a structure of a monoidal category.
3.2 Gray categories
For each of the two variants of Gray tensor product defined in the previous section, there is an associated notion of three-dimensional category as we now describe here.
A lax Gray category Gray (Reference Gray1974, I,4.25) is a category enriched in the category of 2-categories equipped with the lax Gray tensor product. A more explicit definition using generators and relations can be given as follows. A Gray category is a 3-precategory C together with, for all every 0composable pair of 2-cells
$\phi\colon f \Rightarrow f'\colon x \rightarrow y$
and
$\psi\colon g \Rightarrow g'\colon y \rightarrow z$
, a 3-cell:
which can be represented using string diagrams by:

called interchanger and satisfying the following sets of axioms:
-
(i) compatibility with compositions and identities: for
$\phi\colon f \Rightarrow f'$
,
$\phi'\colon f' \Rightarrow f''$
,
$\psi\colon g\Rightarrow g'$
,
$\psi'\colon g'\Rightarrow g''$
in
$C_2$
and e, h in
$C_1$
such that e,
$\phi$
,
$\psi$
and h are 0-composable, we have and
\begin{align*} X_{\text{id}_{f},\psi} &= \text{id}_{f {\ast}_0 \psi} & X_{\phi {\ast}_1 \phi',\psi} &= ((\phi {\ast}_0 g) {\ast}_1 X_{\phi',\psi}) {\ast}_2 (X_{\phi,\psi} {\ast}_1 (\phi' {\ast}_0 g')) \\ X_{\phi, \text{id}_{g}} &= \text{id}_{\phi {\ast}_0 g} & X_{\phi,\psi {\ast}_1 \psi'} &= (X_{\phi,\psi} {\ast}_1 (f' {\ast}_0 \psi')) {\ast}_2 ((f {\ast}_0 \psi) {\ast}_1 X_{\phi,\psi'}) \end{align*}
Moreover, given
\begin{align*} X_{e {\ast}_0 \phi,\psi} &= e {\ast}_0 X_{\phi,\psi} & X_{\phi, \psi {\ast}_0 h} &= X_{\phi,\psi} {\ast}_0 h. \end{align*}
$\phi,\psi \in C_2$
and
$f \in C_1$
such that
$\phi$
, f and
$\psi$
are 0-composable, we have
\begin{equation*} X_{\phi {\ast}_0 f, \psi} = X_{\phi, f {\ast}_0 \psi} \end{equation*}
-
(ii) exchange law for 3-cells: for all
$A\colon \phi \Rrightarrow \psi \in C_3$
and
$B\colon \psi \Rrightarrow \psi' \in C_3$
such that A and B are 1-composable, we have
\begin{equation*} (A {\ast}_1 \psi) {\ast}_2 (\phi' {\ast}_1 B) = (\phi {\ast}_1 B) {\ast}_2 (A {\ast}_1 \psi') \end{equation*}
-
(iii) compatibility between interchangers and 3-cells: given
such that A and B are 0-composable, we have
\begin{equation*} A \colon \phi \Rrightarrow \phi'\colon u\Rightarrow u' \in C_3 \quad\text{and}\quad B\colon\psi\Rrightarrow \psi'\colon v \Rightarrow v' \in C_3, \end{equation*}
\begin{align*} ((A {\ast}_0 v) {\ast}_1 (u' {\ast}_0 \psi)) {\ast}_2 X_{\phi',\psi} &= X_{\phi,\psi} {\ast}_2 ((u {\ast}_0 \psi) {\ast}_1 (A {\ast}_0 v')) \\ ((\phi {\ast}_0 v) {\ast}_1 (u' {\ast}_0 B)) {\ast}_2 X_{\phi,\psi'} &= X_{\phi,\psi} {\ast}_2 ((u {\ast}_0 B) {\ast}_1 (\phi {\ast}_0 v')). \end{align*}
A morphism between two lax Gray categories C and D is a 3-prefunctor
$F\colon C \rightarrow D$
such that
$F(X_{\phi,\psi}) = X_{F(\phi),F(\psi)}$
.
We similarly have a notion of pseudo Gray category which is a category enriched in the category of 2-categories equipped with the pseudo Gray tensor product. In terms of generators and relations, a pseudo Gray category is a lax Gray category C where the 3-cell
$X_{\phi,\psi}$
is invertible for every 0-composable 2-cells
$\phi,\psi \in C_2$
. A morphism between two pseudo Gray categories C and D is a morphism of lax Gray categories between C and D.
In the following, a (3,2)-Gray category is a lax Gray category whose underlying 3-precategory is a (3,2)-precategory. Note that it is then also a pseudo Gray category. As one can expect, a localization of a lax Gray category gives a (3,2)-Gray category:
Proposition 3.2.1. If C is a lax Gray category, then
$C^{\top}$
is canonically a (3,2)-Gray category.
Proof. Given 1-composable 3-cells
$F\colon \phi \Rrightarrow \phi'$
and
$G\colon \psi \Rrightarrow \psi' \in C_3$
, by the exchange law for 3-cells, we have, in
$C^{\top}_3$
,
By inverting
$F {\ast}_1 \psi$
and
$F {\ast}_1 \psi'$
, we obtain
Similarly,
and
Now, given general 1-composable
$F\colon \phi \Rrightarrow \phi', G\colon \psi \Rrightarrow \psi' \in C^{\top}_3$
, we have that
and
for some
$k,l \ge 1$
and
$F_i,G_j \in C_3$
for
$1 \le i \le 2k$
and
$1 \le j \le 2l$
. By applying the formulas above 4kl times to exchange the
$F_i$
’s with the
$G_j$
’s, we get
A similar argument gives the compatibility between interchangers and 3-cells of
$C^{\top}$
. Thus,
$C^{\top}$
is a (3,2)-Gray category.
3.3 Gray presentations
Starting from a 3-prepolygraph
$\textsf{P}$
, such as the one of Example 3.3.1, we want to add 3-generators to
$\textsf{P}$
and relations on the 3-cells of
$\textsf{P}^*_3$
in order to obtain a presentation of a lax Gray category. This can of course be achieved naively by adding, for each pair of 0-composable 2-cells
$\phi,\psi$
in
$\textsf{P}^*_2$
, a 3-generator corresponding to the interchanger “
$X_{\phi,\psi}$
”, together with the relevant relations, but the resulting presentation has a large number of generators, and we detail below a more economical way of proceeding in order to present lax Gray categories.
A Gray presentation is a 4-prepolygraph
$\textsf{P}$
containing the following distinguished generators:
-
(i) for 0-composable
$\alpha,g,\beta$
with
$\alpha\colon f \Rightarrow f',\beta\colon g \Rightarrow g' \in \textsf{P}_2$
,
$g \in \textsf{P}^*_1$
, a 3-generator
$X_{\alpha,g,\beta}\in \textsf{P}_3$
called interchange generator, which is of type: which can be represented using string diagrams by:

-
(ii) for every pair of 3-generators
$A,B \in \textsf{P}_3$
and
$e,e',h,h' \in \textsf{P}^*_1$
and
$\chi \in \textsf{P}^*_2$
as in (6)a 4-generator of type
$\Gamma \Rrightarrow \Delta$
, called independence generator, where and
\begin{equation*} \Gamma = ((e {\ast}_0 A {\ast}_0 h) {\ast}_1 \chi {\ast}_1 (e' {\ast}_0 \psi {\ast}_0 h')) {\ast}_2 ((e {\ast}_0 \phi' {\ast}_0 h) {\ast}_1 \chi {\ast}_1 (e' {\ast}_0 B {\ast}_0 h')) \end{equation*}
and can be pictured as:
\begin{equation*} \Delta = ((e {\ast}_0 \phi {\ast}_0 h) {\ast}_1 \chi {\ast}_1 (e' {\ast}_0 B {\ast}_0 h')) {\ast}_2 ((e {\ast}_0 A {\ast}_0 h) {\ast}_1 \chi {\ast}_1 (e' {\ast}_0 \psi' {\ast}_0 h')) \end{equation*}

-
(iii) for all 0-composable
$A,g,\beta$
with
$A\in\textsf{P}_3$
,
$g \in \textsf{P}^*_1$
, and
$\beta\in\textsf{P}_2$
, respectively, and 0-composable
$\alpha,g',B$
with
$\alpha\in\textsf{P}_2$
,
$g'\in\textsf{P}^*_1$
, and
$B\in\textsf{P}_3$
, respectively, as on the first, resp. second line below (7)a 4-generator, called interchange naturality generator, respectively, of type:
and
\begin{align*} ((A{\ast}_0 g{\ast}_0 h){\ast}_1(f'{\ast}_0 g{\ast}_0\beta)) {\ast}_2 X_{\phi',g {\ast}_0 \beta} &\Rrightarrow X_{\phi,g {\ast}_0 \beta} {\ast}_2 ((f{\ast}_0 g{\ast}_0\beta){\ast}_1(A{\ast}_0 g{\ast}_0 h')) \end{align*}
where the
\begin{align*} ((\alpha{\ast}_0 g'{\ast}_0 h){\ast}_1(f'{\ast}_0 g'{\ast}_0 B)) {\ast}_2 X_{\alpha {\ast}_0 g',\psi'} &\Rrightarrow X_{\alpha {\ast}_0 g',\psi} {\ast}_2 ((f{\ast}_0 g'{\ast}_0 B){\ast}_1(\alpha{\ast}_0 g'{\ast}_0 h')) \end{align*}
$X_{\chi_1,\chi_2}$
’s appearing in the sources and targets will be defined below for any 0-composable
$\chi_1,\chi_2 \in \textsf{P}^*_2$
; the first kind of interchange naturality generator can be pictured by: 
The 3-cells
$X_{\phi,\psi} \in \textsf{P}^*_3$
, which are used in the above definition, generalize interchange generators to any pair of 0-composable 2-cells
$\phi$
and
$\psi$
. Their definition consists in a suitable composite of the generators
$X_{\alpha,u,\beta}$
and is detailed below. Let us give an idea of the definition of those 3-cells on an example. Consider a Gray presentation
$\textsf{Q}$
with
where
$\tau$
is pictured by
. Then, the following sequence of “moves” is an admissible definition for
$X_{\tau{\ast}_1\tau,\tau{\ast}_1\tau}$
:

Each “move” above is a 3-cell of the form
$\phi{\ast}_1 X_{\tau,\text{id}_{x},\tau}{\ast}_1 \psi$
for some
$\phi,\psi \in \textsf{Q}^*_2$
and where
$X_{\tau, \text{id}_{x},\tau}$
is an interchange generator provided by the definition of Gray presentation. Another admissible sequence of moves is the following:

We see that there are multiple ways one can define the 3-cells
$X_{\phi,\psi}$
based on the interchange generators of a Gray presentation
$\textsf{P}$
. We will show in Proposition B.8 that, in the end, the choice does not matter, because all the possible definitions give rise to the same 3-cell in
$\overline{\textsf{P}}$
. Still, we need to introduce a particular structure that allows us to represent all the possible definitions of the 3-cells
$X_{\phi,\psi}$
and reason about them. This structure consists in a graph
associated with each pair of 0-composable 2-cells
$\phi$
and
$\psi$
in
$\textsf{P}^*_2$
: intuitively, a vertex in this graph will correspond to an interleaving of the 2-generators of
$\phi$
and
$\psi$
, and an edge will correspond to a “move” as above, that is, an interchange generator
$X_{\alpha,g,\beta}$
in context that exchanges two 2-generators
$\alpha$
from
$\phi$
and
$\beta$
from
$\psi$
, which appear consecutively in an interleaving of
$\phi$
and
$\psi$
. Given two 0-composable 2-cells:
with
$\phi_i = f_i \ast_0 \alpha_i \ast_0 g_i$
and
$\psi_j = f'_j \ast_0\alpha'_j \ast_0 g'_j$
for some
$f_i,g_i,f'_j,g'_j \in \textsf{P}^*_1$
and
$\alpha_i,\alpha'_j \in \textsf{P}_2$
, we define the graph
-
whose vertices are the shuffles of the words
$\textsf{l}_1 \ldots \textsf{l}_k$
and
$\textsf{r}_1 \ldots \textsf{r}_{k'}$
on the alphabet: that is, words of length
\begin{equation*} \Sigma_{\phi,\psi} = \{{\textsf{l}_1,\ldots,\textsf{l}_k,\textsf{r}_1,\ldots,\textsf{r}_{k'}}\}, \end{equation*}
$k+k'$
which are order-preserving interleavings of the words
$l_1\ldots l_k$
and
$\textsf{r}_1 \ldots \textsf{r}_{k'}$
,
-
whose edges are of the form
$\textsf{X}_{w,w'}\colon w \textsf{l}_i \textsf{r}_j w' \rightarrow w \textsf{r}_j \textsf{l}_i w'$
for some
$i \in \mathbb{N}^*_k$
,
$j \in \mathbb{N}^*_{k'}$
and some words
$w,w' \in \Sigma^*_{\phi,\psi}$
such that
, intuitively representing the local swaps one can do to move a letter
$\textsf{l}_i$
to the right of a letter
$\textsf{r}_j$
in a word.
Given
$i,j,p,q\in \mathbb{N}$
with
$0 \le i\le k$
,
$0\le j \le k'$
,
$0 \le p \le k-i+1$
,
$0\le q \le k'-j+1$
, and a shuffle u of the words:
we define
$[u]^{i,j}_{\phi,\psi} \in \textsf{P}^*_2$
(or simply
$[u]^{i,j}$
) by induction on p and q:
\begin{equation*} [u]^{i,j} = \begin{cases} (\phi_i \ast_0 \partial^+_1(\psi_j)) \ast_1 [u']^{i+1,j} & \text{if $u = \textsf{l}_i u'$,} \\[5pt] (\partial^+_1(\phi_i) \ast_0 \psi_j) \ast_1 [u']^{i,j+1} & \text{if $u = \textsf{r}_j u'$,} \\[5pt] \partial^+_1(\phi_i) \ast_0 \partial^+_1(\psi_j) & \text{if} u \text{is the empty word,} \end{cases}\end{equation*}
where, by convention,
$\partial^+_1(\phi_0) = \partial^-_1(\phi_1)$
and
$\partial^+_1(\psi_0) = \partial^-_1(\psi_1)$
. Note that the indices of
$[u]^{i,j}$
are uniquely determined if u has at least an
$\textsf{l}$
letter and an
$\textsf{r}$
letter. Intuitively, the letters
$\textsf{l}_i$
and
$\textsf{r}_j$
correspond to the 2-cells
$\phi_i \ast_0 (\!-\!)$
and
$(\!-\!) \ast_0 \psi_j$
where the 1-cells
$(\!-\!)$
are most of the time uniquely determined by the context, so that
$[u]^{1,1}$
for
is an interleaving of the
$\phi_i \ast_0 (\!-\!)$
and
$(\!-\!) \ast_0 \psi_j$
. Now, given
in
, we define the 3-cell:
in
$\textsf{P}^*_3$
by
We thus obtain a functor:
where
is the free 1-category on
considered as a 1-prepolygraph, and where
$[-]_{\phi,\psi}$
is defined by the mappings:

For example, for
$\textsf{Q}$
defined as above and
$\phi = \psi = \tau\ast_1 \tau$
,
$[\textsf{l}_1 \textsf{l}_2 \textsf{r}_1 \textsf{r}_2]_{\phi,\psi}$
and
$[\textsf{l}_1 \textsf{r}_1 \textsf{l}_2 \textsf{r}_2]_{\phi,\psi}$
are, respectively, the 2-cells of
$\textsf{Q}^*_2$
:

and
$[\textsf{X}_{\textsf{l}_1,\textsf{r}_2}]_{\phi,\psi}$
and
$[\textsf{X}_{\textsf{l}_1\textsf{r}_1,\epsilon}]_{\phi,\psi}$
are, respectively, the 3-cells of
$\textsf{Q}^*_3$
:

We write
$\textsf{X}_{\phi,\psi}$
for the path:
defined by induction by:
and where
$u_{i+1},v_{i+1}$
are the unique words of
$\Sigma^*_{\phi,\psi}$
such that
for some
$p,q \in \mathbb{N}$
. We can finally end the definition of Gray presentations by putting
For example, for
$\textsf{Q}$
defined as above,
$X_{\tau\ast_1\tau,\tau\ast_1\tau}$
is the composite of 3-cells of
$\textsf{Q}^*_3$
given by (8).
Example 3.3.1. We define the Gray presentation of pseudomonoids as the 4-prepolygraph obtained by extending the 3-prepolygraph for pseudomonoids
$\textsf{P}$
seen in Example 2.5.1. First, we add to
$\textsf{P}_3$
the 3-generators

for
$n\in \mathbb{N}$
. Second, we define
$\textsf{P}_4$
as a minimal set of 4-generators such that, given a configuration of cells of
$(\textsf{P}_{\le }3)^*$
as in (6), there is a corresponding independence generator in
$\textsf{P}_4$
, and given a configuration of cells of
$(\textsf{P}_{\le }3)^*$
as in the first or the second line of (7), there is a corresponding interchange naturality generator in
$\textsf{P}_4$
.
Our notion of Gray presentation is correct, in the sense that:
Theorem 3.3.2. Given a Gray presentation
$\textsf{P}$
, the presented precategory
$\overline{\textsf{P}}$
is canonically a lax Gray category.
Proof. See Appendix B.
Corollary 3.3.3. Given a Gray presentation
$\textsf{P}$
,
$\overline{\textsf{P}}^{\top}$
is canonically a (3,2)-Gray category.
4. Rewriting
In this section, we get to the heart of the matter and introduce our tools in order to show coherence results for presented Gray categories. These are obtained as generalizations of techniques developed in rewriting theory by rewriting morphisms in free precategories, and having a relation
on pairs of parallel rewriting 3-cells which plays the role of witness for confluence. We first define coherence and show how coherence can be obtained from a property of confluence on 3-precategories (Section 4.1). Then, we adapt the elementary notions of rewriting to the setting of 3-prepolygraphs (Section 4.2) together with classical results: a criterion for termination based on reduction orders (Section 4.3), a critical pair lemma together with a finiteness property on the number of critical branchings (Section 4.4). Our main result of this section is a coherence theorem for Gray presentations (Theorem 4.4.4), together with an associated coherence criterion (Theorem 4.4.5) that will be our main tool for the examples of the next section.
4.1 Coherence in Gray categories
The aim of this article is to provide tools to study the coherence of presented Gray categories, by which we mean the following. A 3-precategory C is coherent when, for every pair of parallel 3-cells
$F_1,F_2\colon \phi\Rrightarrow\psi\in C_3$
, we have
$F_1=F_2$
. By extension, a Gray presentation
$\textsf{P}$
is coherent when the underlying (3,2)-precategory of the (3,2)-Gray category
$\overline{\textsf{P}}^{\top}$
is coherent (remember that
$\overline{\textsf{P}}$
is a lax Gray category by Theorem 3.3.2, which implies that
$\overline{\textsf{P}}^{\top}$
is a (3,2)-Gray category by Proposition 3.2.1). Gray presentations
$\textsf{P}$
with no other 4-generators than the independence generators and the interchange naturality generators are usually not coherent. For example, in the Gray presentation
$\textsf{P}$
of pseudomonoids given in Example 3.3.1, we do not expect the following parallel 3-cells:

to be equal in
$\overline{\textsf{P}}^{\top}$
. For coherence, we need to add “tiles” in
$\textsf{P}_4$
to fill the “holes” created by parallel 3-cells as the ones above. A trivial way to do this is to add a 4-generator
$R\colon F_1 \Rrightarrow F_2$
for every pair of parallel 3-cells
$F_1$
and
$F_2$
of
$\textsf{P}^*$
. However, this method gives quite big presentations, whereas we aim at small ones, so that the number of axioms to verify in concrete instances is as little as possible. We expose a better method in Section 4.4, in the form of Theorem 4.4.5: we will see that it is enough to add a tile of the form:

for every critical branching
$(S_1,S_2)$
of
$\textsf{P}$
for which we chose 3-cells
$F_1,F_2$
that make the branching
$(S_1,S_2)$
joinable (definitions are introduced below).
We now show how the coherence property can be obtained starting from a 3-precategory whose 3-cells satisfy a property of confluence, motivating the adaptation of rewriting theory to 3-prepolygraphs in later sections in order to study the coherence of Gray presentations. In fact, we can already prove an analogous of the Church–Rosser property coming from rewriting theory in the context of confluent categories.
A 3-precategory C is confluent when, for 2-cells
$\phi,\phi_1,\phi_2 \in C_2$
and 3-cells:
of C, there exist a 2-cell
$\psi \in C_2$
and 3-cells:
of C such that
$F_1 \ast_2 G_1 = F_2 \ast_2 G_2$
:

The 3-cells of a (3,2)-precategory associated with a confluent 3-precategory admits a simple form, as in:
Proposition 4.1.1. Given a confluent 3-precategory C, every 3-cell
$F\colon \phi \Rrightarrow \phi' \in C^{\top}$
can be written
$F = G {\ast}_2 H^{{-}1}$
for some
$G\colon \phi \Rrightarrow \psi \in C_3$
and
$H\colon \phi'\Rrightarrow \psi \in C_3$
. The above property says that confluent categories satisfy a “Church–Rosser property” (Baader and Nipkow Reference Baader and Nipkow1999, Def. 2.1.3, for example) and is analogous to the classical result stating that confluent rewriting systems are Church–Rosser (Baader and Nipkow Reference Baader and Nipkow1999, Thm. 2.1.5, for example).
Proof. By the definition of
$C^{\top}$
, a 3-cell
$F\colon \phi \Rrightarrow \phi' \in C^{\top}$
can be written:
for some
$k \ge 0$
,
$G_i\colon \chi_i \Rrightarrow \phi_{i-1}$
and
$H_i\colon \chi_i \Rrightarrow \phi_i$
for
$1 \le i \le k$
with
$\phi_0 = \phi$
and
$\phi_k = \phi'$
, as in

We prove the property by induction on k. If
$k = 0$
, F is an identity and the result follows. Otherwise, since C is confluent, there exists
$\psi_k$
,
$G_k'\colon \phi_{k-1} \rightarrow \psi_{k}$
and
$H_{k}'\colon \phi_{k} \rightarrow \psi_{k}$
with

By induction, the morphism:
can be written
$G {\ast}_2 {H}^{{-}1}$
for some
$\psi$
in
$C_2$
and
$G\colon \phi_0 \Rrightarrow \psi$
,
$H \colon \psi_k \Rrightarrow \psi$
in
$C_3$
. Since
$G_k {\ast}_2 G_k' = H_k {\ast}_2 H_k'$
, we have
${G_k}^{{-}1} {\ast}_2 H_k = G_k' {\ast}_2 {H_k'}^{{-}1}$
. Hence,
which is of the wanted form.
Starting from a confluent 3-precategory, we have the following simple criterion to deduce the coherence of the associated (3,2)-precategory:
Proposition 4.1.2. Let C be a confluent 3-precategory which moreover satisfies that, for every
$F_1,F_2\colon \phi \Rrightarrow \phi' \in C_3$
, we have
$F_1 = F_2$
in the localization
$C^{\top}$
. Then,
$C^{\top}$
is coherent. In particular, if C is a confluent 3-precategory satisfying that, for every
$F_1,F_2\colon \phi \Rrightarrow \phi'\in C_3$
, there is
$G\colon \phi'\Rrightarrow \phi''\in C_3$
such that
$F_1 {\ast}_2 G = F_2 {\ast}_2 G$
in
$C_3$
, then
$C^{\top}$
is coherent.
Proof. Let
$F_1,F_2\colon \phi \Rrightarrow \phi' \in C^{\top}_3$
. By Proposition 4.1.1, for
$i \in \{{1,2}\}$
, we have
$F_i = G_i {\ast}_2 {H_i}^{-1}$
for some
$\psi_i \in C_2$
,
$G_i \colon \phi \Rrightarrow \psi_i \in C_3$
and
$H_i \colon \phi' \Rrightarrow \psi_i \in C_3$
, as in

By confluence, there are
$\psi \in C_2$
and
$K_i\colon \psi_i \Rrightarrow \psi \in C_3$
for
$i \in \{{1,2}\}$
, such that
$G_1 {\ast}_2 K_1 = G_2 {\ast}_2 K_2$
. By the second hypothesis, we have
$H_1 {\ast}_2 K_1 = H_2 {\ast}_2 K_2$
so that
\begin{align*} G_1 {\ast}_2 {H_1}^{{-}1} &= G_1 {\ast}_2 K_1 {\ast}_2 {(H_1 {\ast}_2 K_1)}^{{-}1} \\ &= G_2 {\ast}_2 K_2 {\ast}_2 {(H_2 {\ast}_2 K_2)}^{{-}1} \\ &= G_2 {\ast}_2 {H_2}^{{-}1}. \end{align*}
Hence,
$F_1 = F_2$
. For the last part, note that if
$F_1 {\ast}_2 G = F_2 {\ast}_2 G$
, then
$\eta(F_1) = \eta(F_2)$
, where
$\eta$
is the canonical 3-prefunctor
$C \rightarrow C^{\top}$
.
4.2 Rewriting on 3-prepolygraphs
As we have seen in the previous section, coherence can be deduced from a confluence property on the 3-cells of 3-precategories. Since confluence of classical rewriting systems is usually shown using tools coming from rewriting theory, it motivates an adaptation of it in the context of 3-prepolygraphs for the aim of studying the coherence of Gray presentations.
Given a 3-prepolygraph
$\textsf{P}$
, a rewriting step of
$\textsf{P}$
is a 3-cell
$S\in \textsf{P}^*_3$
of the form:
for some
$l,r \in \textsf{P}^*_1$
,
$\lambda,\rho \in \textsf{P}^*_2$
, and
$A \in\textsf{P}_3$
, with l,A,r 0-composable and
$\lambda,l {\ast}_0 A {\ast}_0 r,\rho$
1-composable. For such S, we say that A is the inner 3-generator of S. A rewriting path is a 3-cell
$F\colon \phi \Rrightarrow \phi'$
in
$\textsf{P}^*_3$
. Such a rewriting path has a length
$|F| \in \mathbb{N}$
which is defined as in Section 2.8. Also, by Theorem 2.8.3, it can be uniquely written as a composite of rewriting steps
$S_1{\ast}_2 \cdots{\ast}_2 S_{|F|}$
, since rewriting steps are exactly three-dimensional whiskers. Given
$\phi,\psi \in \textsf{P}^*_2$
,
$\phi$
rewrites to
$\psi$
when there exists a rewriting path
$F\colon \phi \Rrightarrow \psi$
. A normal form is a 2-cell
$\phi \in \textsf{P}^*_2$
such that for all
$\psi \in \textsf{P}^*_2$
and
$F\colon\phi\Rrightarrow \psi$
, we have
$F = \text{id}_{\phi}$
.
$\textsf{P}$
is terminating when there does not exist an infinite sequence of rewriting steps
$F_i\colon \phi_i\Rrightarrow \phi_{i+1}$
for
$i \ge 0$
;
A branching is a pair rewriting paths
$F_1\colon \phi\Rrightarrow \phi_1$
and
$F_2\colon \phi\Rrightarrow \phi_2$
with the same source. The symmetric branching of a branching
$(F_1,F_2)$
is
$(F_2,F_1)$
. A branching
$(F_1,F_2)$
is local when both
$F_1$
and
$F_2$
are rewriting steps. A branching
$(F_1,F_2)$
is joinable when there exist rewriting paths
$G_1\colon \phi_1 \Rrightarrow\psi$
and
$G_2\colon \phi_2 \Rrightarrow \psi$
; moreover, given a congruence
on
$\textsf{P}^*$
, if we have that
, as in

we say that the branching is confluent (for
).
A
is the data of a 3-prepolygraph
$\textsf{P}$
together with a congruence
on
$\textsf{P}^*$
.
is (locally) confluent when every (local) branching is confluent. It is convergent when it is locally confluent and
$\textsf{P}$
is terminating. Given a 4-prepolygraph
$\textsf{P}$
, there is a canonical rewriting system
$(\textsf{P}_{\le}3,\sim^\textsf{P})$
(recall the definition of
$\sim^\textsf{P}$
given in Section 2.6) where
$\sim^\textsf{P}$
intuitively witnesses that the “space” between two parallel 3-cells can be filled with elementary tiles that are the elements of
$\textsf{P}_4$
. In the following, most of the concrete rewriting systems we study are of this form.
The analogs of several well-known properties of abstract rewriting systems can be proved in our context. In particular, the classical proof by well-founded induction of Newman’s lemma (Baader and Nipkow Reference Baader and Nipkow1999, Lem. 2.7.2, for example) can be directly adapted in order to show that:
Theorem 4.2.1. A rewriting system which is convergent is confluent.
Proof. Let
be a rewriting system which is convergent. Let
$\Rrightarrow^+ \subseteq \textsf{P}^*_2 \times \textsf{P}^*_2$
be the partial order such that
$\phi \Rrightarrow^+ \psi$
if there exists a rewriting path
$F\colon \phi \Rrightarrow \psi \in \textsf{P}^*_3$
with
$|F| > 0$
. Since the underlying rewriting system is terminating,
$\Rrightarrow^+$
is well founded. Thus, we can prove the theorem by induction on
$\Rrightarrow^+$
. Suppose given a branching
$F_1\colon \phi\Rrightarrow \phi_1 \in \textsf{P}^*_3$
and
$F_2\colon \phi\Rrightarrow \phi_2 \in \textsf{P}^*_3$
. If
$|F_1|=0$
or
$|F_2|=0$
, then the branching is confluent. Otherwise,
$F_i = S_i {\ast}_2 F_i'$
with
$S_i\colon \phi \Rrightarrow \phi_i'$
a rewriting step and
$F_i'\colon \phi_i' \Rrightarrow \phi_i$
a rewriting path for
$i \in \{{1,2}\}$
. Since the rewriting system is locally confluent, there are
$\psi \in \textsf{P}^*_2$
and rewriting paths
$G_i\colon \phi_i' \Rrightarrow \psi$
for
$i \in \{{1,2}\}$
such that
. Since the rewriting system is terminating and
is stable by composition, by composing the
$G_i$
’s with a path
$G\colon \psi \Rrightarrow \psi'$
where
$\psi'$
is a normal form, we can suppose that
$\psi$
is a normal form. By induction on
$\phi_1'$
and
$\phi_2'$
, there are rewriting paths
$H_i \colon \phi_i \Rrightarrow \psi_i'$
and
$F_i''\colon \psi \Rrightarrow \psi_i'$
such that
for
$i \in \{{1,2}\}$
. Since
$\psi$
is in normal form,
$F_i'' = \text{id}_{\psi}$
and we have
$H_i\colon \phi_i \Rrightarrow \psi$
for
$i \in \{{1,2}\}$
as in

Moreover,

Theorem 4.2.1 implies that, up to post-composition, all the parallel paths of a convergent rewriting system are equivalent. Later, this will allow us to apply Proposition 4.1.2 for showing the coherence of Gray presentations.
Lemma 4.2.2. Given a convergent rewriting system
and two rewriting paths
$F_1,F_2\colon \phi \Rrightarrow \phi' \in \textsf{P}^*_3$
as in

there exists
$G\colon \phi' \Rrightarrow \psi \in \textsf{P}^*_3$
such that
, that is,

Proof. Given
$F_1,F_2$
as above, since the rewriting system is terminating, there is a rewriting path
$G\colon \phi' \Rrightarrow \psi$
where
$\psi$
is a normal form. By confluence, there exist
$G_1\colon \psi \Rrightarrow \psi'$
and
$G_2\colon \psi \Rrightarrow \psi'$
such that
. Since
$\psi$
is a normal form, we have
$G_1 = G_2 = \text{id}_{\psi}$
. Hence,
.
Note that, in Lemma 4.2.2, we do not necessarily have

which explains why the method we develop in this section for showing coherence will only apply to (3,2)-precategories, but not to general 3-precategories.
4.3 Termination
Here, we show a termination criterion for rewriting systems
based on a generalization of the notion of reduction order in classical rewriting theory where we require a compatibility between the order and the composition operations of cells.
A reduction order for a 3-prepolygraph
$\textsf{P}$
is a well-founded partial order
$<$
on
$\textsf{P}^*_2$
such that:
-
given
$A\colon \phi\Rrightarrow\phi' \in \textsf{P}_3$
, we have
$\phi > \phi'$
, -
given
$l,r \in \textsf{P}^*_1$
and parallel
$\phi,\phi' \in \textsf{P}^*_2$
such that
$l,\phi,r$
are 0-composable and
$\phi > \phi'$
, we have
\begin{equation*} l \ast_0 \phi \ast_0 r > l \ast_0 \phi' \ast_0 r{,} \end{equation*}
-
given 1-composable
$\lambda,\phi,\rho \in \textsf{P}^*_2$
, and
$\phi' \in \textsf{P}^*_2$
parallel to
$\phi$
such that
$\phi > \phi'$
, we have
\begin{equation*} \lambda \ast_1 \phi \ast_1 \rho > \lambda \ast_1 \phi' \ast_1 \rho{.} \end{equation*}
The termination criterion is then:
Proposition 4.3.1. If
is a rewriting system such that there exists a reduction order for
$\textsf{P}$
, then
is terminating.
Proof. The definition of a reduction order implies that, given a rewriting step
$\lambda {\ast}_1 (l {\ast}_0 A {\ast}_0 r) {\ast}_1 \rho$
with
$l,r \in \textsf{P}^*_1$
,
$\lambda,\rho \in \textsf{P}^*_2$
and
$A\colon \phi \Rrightarrow \phi' \in \textsf{P}_3$
suitably composable, we have
So, given a sequence of 2-composable rewriting steps
$(F_i)_{i < k}$
, where
$k \in \mathbb{N} \cup \{{\infty}\}$
,
$F_i\colon \phi_i \Rrightarrow \phi_{i+1} \in \textsf{P}_3$
for
$i < k$
, we have
$\phi_i > \phi_{i+1}$
for
$i < k$
. Since
$>$
is well founded, it implies that
$k \in \mathbb{N}$
. Hence, the rewriting sytem
is terminating.
In order to build a reduction order for a Gray presentation
$\textsf{P}$
, we have to build in particular a reduction order for the subset of
$\textsf{P}_3$
made of interchange generators. We introduce below a sufficient criterion for the existence of such a reduction order. The idea is to consider the lengths of the 1-cells of the whiskers in the decompositions of 2-cells and show that they are decreasing in some way when an interchange generator is applied.
Let
$\mathbb{N}^{<\omega}$
be the set of finite sequences of elements of
$\mathbb{N}$
. We order
$\mathbb{N}^{<\omega}$
by
$\mathrel{<_{\omega}}$
where
when
$k = l$
and there exists
$i \in \mathbb{N}$
with
$1 \le i \le k$
such that
$a_j =b_j$
for some
$j < i$
and
$a_i < b_i$
. Note that
$\mathrel{<_{\omega}}$
is well founded. Given a 2-prepolygraph
$\textsf{P}$
, there is a function
${\mathrm{N_{int}}}\colon \textsf{P}^*_2 \rightarrow\mathbb{N}^{<\omega}$
such that, given
$\phi \in \textsf{P}^*_2$
, decomposed uniquely (using Theorem 2.8.3) as:
for some
$k \in \mathbb{N}$
,
$l_i,r_i \in \textsf{P}^*_1$
and
$\alpha_i \in \textsf{P}_2$
for
$i\in \{{1,\ldots,k}\}$
,
${\mathrm{N_{int}}}(\phi)$
is defined by:
Then,
${\mathrm{N_{int}}}$
induces a partial order
$\mathrel{<_{\text{int}}}$
on
$\textsf{P}^*_2$
by putting
$\phi \mathrel{<_{\text{int}}} \psi$
when
$\partial^{\epsilon}_1(\phi) = \partial^{\epsilon}_1(\psi)$
for
$\epsilon \in \{{-,+}\}$
and
${\mathrm{N_{int}}}(\phi) \mathrel{<_{\omega}} {\mathrm{N_{int}}}(\psi)$
for
$\phi,\psi \in \textsf{P}^*_2$
.
Given a Gray presentation
$\textsf{P}$
, we say that
$\textsf{P}$
is positive when
$|\partial^+_1(\alpha)| > 0$
for all
$\alpha \in \textsf{P}_2$
. Under positiveness, the order
$\mathrel{<_{\text{int}}}$
can be considered as a reduction order for the subset of 3-generators of a Gray presentation made of interchangers, as in
Proposition 4.3.2. Let
$\textsf{P}$
be a positive Gray presentation. The partial order
$\mathrel{<_{\text{int}}}$
has the following properties:
-
(i) for every
$\alpha,\beta \in \textsf{P}_2$
and
$f \in \textsf{P}^*_1$
such that
$\alpha,f,\beta$
are 0-composable,
\begin{equation*} \partial^-_2(X_{\alpha,f,\beta}) \mathrel{>_{\text{int}}} \partial^+_2(X_{\alpha,f,\beta}){,} \end{equation*}
-
(ii) for
$\phi,\phi' \in \textsf{P}^*_2$
and
$l,r \in \textsf{P}^*_1$
such that
$l,\phi,r$
are 0-composable, if
$\phi \mathrel{>_{\text{int}}} \phi'$
, then
\begin{equation*} l \ast_0 \phi \ast_0 r \mathrel{>_{\text{int}}} l \ast_0 \phi' \ast_0 r{,} \end{equation*}
-
(iii) for
$\phi,\phi',\lambda,\rho \in \textsf{P}^*_2$
such that
$\lambda,\phi,\rho$
are 1-composable, if
$\phi \mathrel{>_{\text{int}}} \phi'$
, then
\begin{equation*} \lambda \ast_1 \phi \ast_1 \rho \mathrel{>_{\text{int}}} \lambda \ast_1 \phi' \ast_1 \rho{.} \end{equation*}
Proof. Given
$\alpha,\beta \in \textsf{P}_2$
and
$f \in \textsf{P}^*_1$
with
$\alpha,f,\beta$
are 0-composable, recall that
$X_{\alpha,f,\beta}$
is such that
Then, we have
Since
$\textsf{P}$
is positive, we have
$|\partial^+_1(\alpha)| > 0$
so that
$\mathop{\mathrm{N_{int}}}(\partial^-_2(X_{\alpha,f,\beta})) \mathrel{>_{\text{int}}} \mathop{\mathrm{N_{int}}}(\partial^+_2(X_{\alpha,f,\beta}))$
. Now, (ii) and (iii) can readily be obtained by considering the whisker representations of
$\phi$
and
$\phi'$
and observing the action of
$l {\ast}_0 - {\ast}_0 r$
and
$\lambda {\ast}_1 - {\ast}_1 \rho$
on these representations and the definition of
$\mathop{\mathrm{N_{int}}}$
.
The positiveness condition is required to prevent 2-cells with “floating components,” since Gray presentations with such 2-cells might not terminate. For example, given a Gray presentation
$\textsf{P}$
where
$\textsf{P}_0$
and
$\textsf{P}_1$
have one element and
$\textsf{P}_2$
has two 2-generators
and
, there are 2-cells of
${\textsf{P}^*}$
with “floating bubbles” which induce infinite reduction sequence with interchange generators as the following one:

4.4 Critical branchings
In term rewriting systems, a classical result called the “critical pair lemma” states that local confluence is a consequence of the confluence of a subset of local branchings, called critical branchings. The latter can be described as pairs of rewrite rules that are minimally overlapping, see Baader and Nipkow (Reference Baader and Nipkow1999, Sec. 6.2) for details. Note that we used this result earlier in the proof of Lemma 2.8.2.
Here, we show a similar result for rewriting on Gray presentations (introduced in Section 3.3). For this purpose, we give a definition of critical branchings which is similar to term rewriting systems, that is, as minimally overlapping local branchings, where we moreover filter out some branchings that involve interchange generators and that are automatically confluent by our definition of Gray presentation. Then, we give a coherence theorem for Gray presentation based on the analysis critical branchings together with an associated coherence criterion, and we finish the section by stating a finiteness property on the critical branchings.
Let
$\textsf{P}$
be a 3-prepolygraph. Given a local branching
$(S_1\colon \phi\Rrightarrow \phi_1,S_2\colon \phi \Rrightarrow \phi_2)$
of
$\textsf{P}$
, we say that the branching
$(S_1,S_2)$
is
-
trivial when
$S_1=S_2$
, -
minimal when for all other local branching
$(S'_1,S'_2)$
such that for
\begin{equation*} S_i=\lambda\ast_1(l\ast_0 S'_i\ast_0 r)\ast_1\rho \end{equation*}
$i \in \{{1,2}\}$
for some 1-cells l,r and 2-cells
$\lambda,\rho$
, we have that
$l,r,\lambda,\rho$
are all identities,
-
independent when
and
\begin{align*} S_1&=((l_1{\ast}_0 A_1{\ast}_0 r_1){\ast}_1\chi{\ast}_1(l_2{\ast}_0\phi_2{\ast}_0 r_2)) \end{align*}
for some
\begin{align*} S_2&=((l_1{\ast}_0\phi_1{\ast}_0 r_1){\ast}_1\chi{\ast}_1(l_2{\ast}_0 A_2{\ast}_0 r_2)) \end{align*}
$l_i,r_i \in \textsf{P}^*_1$
and
$A_i\colon \phi_i \Rrightarrow \phi'_i \in \textsf{P}_3$
for
$i \in \{{1,2}\}$
and
$\chi \in \textsf{P}^*_2$
.
If moreover
$\textsf{P} = \textsf{Q}_{\le }3$
, where
$\textsf{Q}$
is a Gray presentation, we say that the the branching
$(S_1,S_2)$
is
-
natural when
for some
\begin{equation*} S_1=((A{\ast}_0 g{\ast}_0 h){\ast}_1(f'{\ast}_0 g{\ast}_0\psi)) \end{equation*}
$A\colon \phi\Rrightarrow\phi' \colon f \Rightarrow f' \in \textsf{P}_3$
,
$\psi\colon h \Rightarrow h'\in \textsf{P}^*_2$
and
$g \in \textsf{P}^*_1$
, and and similarly for the situation on the second line of (3),
\begin{equation*} S_2 = [\textsf{X}_{u,v}]_{\phi,g {\ast}_0 \psi} \quad\text{with}\quad u = \textsf{l}_1 \ldots \textsf{l}_{|\phi| - 1} \quad\text{and}\quad v = \textsf{r}_2 \ldots \textsf{r}_{|\psi|} \end{equation*}
-
critical when it is minimal, and both its symmetrical branching and it are neither trivial nor independent nor natural.
In the following, we suppose given a Gray presentation
$\textsf{Q}$
and we write
for
$(\textsf{Q}_{\le }3,\sim^{\textsf{Q}})$
. Our next goal is to show an adapted version of the critical pair lemma. We start by two technical lemmas:
Lemma 4.4.1. For every local branching
$(S_1,S_2)$
of
$\textsf{P}$
, there is a minimal branching
$(S'_1,S'_2)$
and 1-cells
$l,r \in \textsf{P}^*_1$
and 2-cells
$\lambda,\rho \in \textsf{P}^*_2$
such that
$S_i = \lambda {\ast}_1 (l {\ast}_0 S'_i {\ast}_0 r) {\ast}_1 \rho$
for
$i \in \{{1,2}\}$
.
Proof. We show this by induction on
$N(S_1)$
where
$N(S_1) = |\partial^-_2(S_1)| + |\partial^-_1(S_1)|$
. Suppose that the property is true for all local branchings
$(S'_1,S'_2)$
with
$N(S'_1) < N(S_1)$
. If
$(S_1,S_2)$
is not minimal, then there are rewriting steps
$S'_1,S'_2 \in \textsf{P}^*_3$
,
$l,r \in \textsf{P}^*_1$
and
$\lambda,\rho \in \textsf{P}^*_2$
such that
$S_i = \lambda {\ast}_1 (l {\ast}_0 S'_i {\ast}_0 r) {\ast}_1 \rho$
for
$i \in \{{1,2}\}$
, such that
$l,r,\lambda,\rho$
are not all identities. Since
we have
$N(S'_1) < N(S_1)$
so there is a minimal branching
$(S''_1,S''_2)$
and
$l',r' \in \textsf{P}^*_1$
,
$\lambda',\rho' \in \textsf{P}^*_2$
such that
$S'_i = \lambda' {\ast}_1 (l' {\ast}_0 S''_i {\ast}_0 r') {\ast}_1 \rho'$
for
$i \in \{{1,2}\}$
. By composing with
$\lambda,\rho,l,r$
and normalizing as in Theorem 2.8.3, we obtain the conclusion of the lemma.
Lemma 4.4.2. A local branching of
$\textsf{P}$
which is either trivial or independent or natural is confluent.
Proof. A trivial branching is, of course, confluent. Independent and natural branching are confluent, thanks respectively to the independence generators and interchange naturality generators of a Gray presentation.
The critical pair lemma adapted to our context is then:
Theorem 4.4.3 (Adapted critical pair lemma). The rewriting system
is locally confluent if and only if every critical branching is confluent.
Proof. If the rewriting system is locally confluent, then, in particular, every critical branching is confluent. For the converse implication, by Lemma 4.4.1, to check that all local branchings are confluent, it is enough to check that all minimal local branchings are confluent. Among them, by Lemma 4.4.2, it is enough to check the confluence of the critical branchings.
We now state the main result of this section, namely a coherence theorem for Gray presentations based on the analysis of the critical branchings:
Theorem 4.4.4 (Coherence). Let
$\textsf{Q}$
be a Gray presentation and
be the associated rewriting system. If
$\textsf{P}$
is terminating and all the critical branchings of
are confluent, then
$\textsf{Q}$
is a coherent Gray presentation.
Proof. By Theorem 4.4.3, the rewriting system
is locally confluent, and by Theorem 4.2.1 it is confluent. Since
, it implies that
$\overline{\textsf{Q}}$
is a confluent 3-precategory. To conclude, it is sufficient to show that the criterion in the last part of Proposition 4.1.2 is satisfied. But the latter is a consequence of Lemma 4.2.2.
Note that Theorem 4.4.4 requires the rewriting system
to be confluent. If it is not the case, one can try to first apply a modified version of the classical Knuth–Bendix completion procedure (Knuth and Bendix Reference Knuth and Bendix1970) (see also Baader and Nipkow Reference Baader and Nipkow1999, Sec. 7) which, in addition to adding new 3-generators in order to make the system confluent, also adds 4-generators in order to make it confluent up to
, in order to hopefully obtain a confluent Gray presentation. Such a procedure is detailed in the closely related setting of coherent presentations of monoids in Guiraud et al. (Reference Guiraud, Malbos and Mimram2013), where it is called the Knuth–Bendix–Squier completion procedure.
Our coherence theorem implies a coherence criterion similar to the ones shown by Squier et al. (Reference Squier, Otto and Kobayashi1994, Thm. 5.2) and Guiraud and Malbos (Reference Guiraud and Malbos2009, Prop. 4.3.4), which states that adding a tile for each critical branching is enough to ensure coherence:
Theorem 4.4.5. Let
$\textsf{Q}$
be a Gray presentation, such that
$\textsf{Q}_{\le }3$
is terminating and, for every critical branching
$(S_1\colon\phi\Rrightarrow\phi_1,S_2\colon\phi\Rrightarrow\phi_2)$
of
$\textsf{Q}_{\le }3$
, there exist
$\psi \in \textsf{Q}^*_2$
,
$F_i\colon\phi_i \Rrightarrow \psi\in\textsf{Q}^*_3$
for
$i \in \{{1,2}\}$
and
$G\colon S_1 {\ast}_2 F_1 \Rrightarrow S_2 {\ast}_2 F_2 \in \textsf{Q}_4$
. Then,
$\textsf{Q}$
is a coherent Gray presentation.
Proof. The definition of
$\textsf{Q}_4$
ensures that all the critical branchings are confluent so that Theorem 4.4.4 applies.
Note that, in Theorem 4.4.5, we do not need to add a 4-generator G as in the statement for a critical branching
$(S_1,S_2)$
if there is already a generator G’ for the symmetrical branching
$(S_2,S_1)$
, so that a stronger statement holds.
To finish this section, we mention a finiteness property for critical branchings of Gray presentations. This property contrasts with the case of strict n-categories, where finite presentations can have an infinite number of critical branchings (Guiraud and Malbos Reference Guiraud and Malbos2009; Lafont Reference Lafont2003).
Theorem 4.4.6. Given a Gray presentation
$\textsf{Q}$
where
$\textsf{Q}_2$
and
$\textsf{Q}_3$
are finite and
$|\partial^-_2(A)| > 0$
for every
$A \in \textsf{Q}_3$
, there is a finite number of local branchings
$(S_1,S_2)$
with rewriting steps
$S_1,S_2 \in \textsf{Q}^*_3$
such that
$(S_1,S_2)$
is a critical branching.
Proof. See Apeendix C.
The proof of Theorem 4.4.6 happens to be constructive so that we can extract an algorithm to compute the critical branchings for such Gray presentations. An implementation of this algorithm was used to compute the critical branchings of the examples of the next section.
5. Applications
We now illustrate the techniques of the previous section and show the coherence of Gray presentations corresponding to several well-known algebraic structures. For each structure, we introduce a Gray presentation and study the confluence of the critical branchings of the associated rewriting system. Then, when the rewriting system is terminating, we can directly apply Theorem 4.4.5 to deduce the coherence of the presentation. This will be the case for pseudomonoids, pseudoadjunctions, and Frobenius pseudomonoids. We moreover study the example of self-dualities, where the associated rewriting system is not terminating, for which we use specific techniques in order to prove a weak coherence result.
5.1 Pseudomonoids
In Example 3.3.1, we introduced a Gray presentation
$\textsf{P}$
for the theory of pseudomonoids. The set
$\textsf{P}_4$
of 4-generators contains only the required ones in a Gray presentation so that we do not expect
$\textsf{P}$
to be coherent (see (9) for an example). We will show that the rewriting system is terminating and thus, Theorem 4.4.5, adding a 4-generator corresponding to each critical branching will turn the presentation into a coherent one. Those branchings can be computed as in the proof of Theorem 4.4.6, which is constructive: we obtain, up to symmetrical branchings, five critical branchings:

We observe that each of these branchings is joinable, and we define formal new 4-generators
$R_1, R_2, R_3, R_4, R_5$
that fill the holes:

We then define
$\textsf{PMon}$
as the Gray presentation obtained from
$\textsf{P}$
of Example 3.3.1 by adding
$R_1,\ldots,R_5$
to
$\textsf{P}_4$
.
As claimed above, in order to deduce coherence, we need to show the termination of
$\textsf{PMon}$
. For this purpose, we use the tools of Section 4 and build a reduction order. We split the task in two and define a first order that handles the termination of the
$\textsf{A},\textsf{L},\textsf{R}$
generators, and then a second one that handles the termination of interchange generators. For the first task, we use a technique similar to the one used in Lafont (Reference Lafont1992). Given
$n \in \mathbb{N}$
, we write
$<_{\text{ex}}^1$
for the partial order on
$\mathbb{N}^n$
such that, given
$a,b \in \mathbb{N}^n$
,
$a <_{\text{ex}}^1 b$
when
$a_i \le b_i$
for all
$i \in \{{1,\ldots,n}\}$
and there exists
$j \in \{{1,\ldots,n}\}$
such that
$a_{j} < b_{j}$
. Let MFun be the 2-precategory
-
which has only one 0-cell:
$MFun_0 = \{{\ast}\}$
, -
whose 1-cells are the natural numbers:
$MFun_1 = \mathbb{N}$
, -
whose 2-cells
$m \Rightarrow n$
for
$m,n\in \mathbb{N}$
are the strictly monotone functions:
\begin{equation*} \phi\colon (\mathbb{N}^m,<_{\text{ex}}^1) \rightarrow (\mathbb{N}^n,<_{\text{ex}}^1). \end{equation*}
Moreover,
$\text{id}_{\ast}= 0$
and composition of 1-cells is given by addition. Given
$m \in MFun_1$
,
$\text{id}_{m}$
is the identity function on
$\mathbb{N}^m$
, and given
$m,n,k,k' \in \mathbb{N}$
and
$\chi \colon k \rightarrow k' \in MFun_2$
, the 2-cell:
is the function
$\chi'\colon \mathbb{N}^{m+k+n} \rightarrow \mathbb{N}^{m+k'+n}$
such that, for
$x = (x_1,\ldots,x_{m+k+n})\in\mathbb{N}^{m+k+n}$
, for
$i \in \{{1,\ldots,m+k'+n}\}$
,
\begin{equation*} \chi'(x)_i = \begin{cases} x_i & \text{if $i \le m$} \\ \chi(x_{m+1},\ldots,x_{m+k})_{i - m} & \text{if $m < i \le m + k'$} \\ x_{i - k' + k} & \text{if $i > m + k'$} \end{cases}\end{equation*}
and, given
$m,n,p \in \mathbb{N}$
,
$\phi \colon m \Rightarrow n \in MFun_2$
and
$\psi \colon n \Rightarrow p\in MFun_2$
,
$\phi {\ast}_1 \psi$
is defined as
$\psi \circ \phi$
and one shows readily that these operations indeed give strictly monotone functions. One easily checks that MFun is a strict 2-category.
Given
$m,m',n,n' \in \mathbb{N}$
and
$\phi\colon m\Rightarrow n,\psi\colon m'\Rightarrow n' \in MFun$
, we write
$\phi <_{\text{ex}}^2 \psi$
when
$m = m'$
,
$n = n'$
and
$\phi(x)<_{\text{ex}}^1 \psi(x)$
for all
$x \in \mathbb{N}^m$
. We have that:
Proposition 5.1.1.
$<_{\text{ex}}^2$
is well founded on
$MFun_2$
.
Proof. We define a function
$N\colon MFun_2 \rightarrow \mathbb{N}$
by:
where
$z = (0,\ldots,0)$
. Now, if
$\psi\colon m \Rightarrow n \in MFun_2$
is such that
$\psi <_{\text{ex}}^2 \phi$
, then
$\psi(z) <_{\text{ex}}^1 \phi(z)$
so that
$N(\psi)<N(\phi)$
. Thus,
$<_{\text{ex}}^2$
on
$MFun_2$
is well founded.
We observe that the order
$<_{\text{ex}}^2$
is compatible with the structure of MFun:
Proposition 5.1.2. Given
$m,n,m',n',k,k' \in \mathbb{N}$
,
$\mu\colon m' \Rightarrow m$
,
$\nu\colon n \Rightarrow n'$
, and
$\phi,\phi'\colon k\Rightarrow k' \in MFun_2$
such that
$\phi >_{\text{ex}}^2 \phi'$
, we have
-
(i)
$m {\ast}_0 \phi {\ast}_0 n >_{\text{ex}}^2 m {\ast}_0 \phi' {\ast}_0 n$
, -
(ii)
$\mu {\ast}_1 \phi {\ast}_1 \nu >_{\text{ex}}^2 \mu {\ast}_1 \phi' {\ast}_1 \nu$
.
Proof. Given
$x \in \mathbb{N}^{m+k+n}$
, we have
$\phi(x_{m+1},\ldots,x_{m+k}) >_{\text{ex}}^1 \phi'(x_{m+1},\ldots,x_{m+k})$
so
Thus, (i) holds. Moreover, given
$y \in \mathbb{N}^{m'}$
, we have
$\phi(\mu(y)) >_{\text{ex}}^1 \phi'(\mu(y))$
. Since
$\nu$
is monotone, we have
$\nu(\phi(\mu(y))) >_{\text{ex}}^1 \nu(\phi'(\mu(y)))$
. Thus, (ii) holds.
We define a 2-prefunctor
$F\colon \textsf{PMon}^*_2 \rightarrow MFun$
by the universal property of the 2-prepolygraph
$\textsf{PMon}_{\le 2}$
, that is, F is the unique functor such that
$F(\ast) = \ast$
,
$F(\bar 1) = 1$
,
$F(\mu) = f_\mu$
and
$F(\eta) = f_\eta$
where
are defined by
$f_\mu(x,y) = 2x + y + 1$
for all
$x,y \in \mathbb{N}$
and
$f_\eta() =1$
. The interpretation exhibits the 3-generators
$\textsf{A}$
,
$\textsf{L}$
, and
$\textsf{R}$
of
$\textsf{PMon}$
as decreasing operations:
Proposition 5.1.3. The followings hold:
-
(i)
$F(\partial^-_2(\textsf{A})) >_{\text{ex}}^2 F(\partial^+_2(\textsf{A}))$
, -
(ii)
$F(\partial^-_2(\textsf{L})) >_{\text{ex}}^2 F(\partial^+_2(\textsf{L}))$
, -
(iii)
$F(\partial^-_2(\textsf{R})) >_{\text{ex}}^2 F(\partial^+_2(\textsf{R}))$
, -
(iv)
$F(\partial^+_2(X_{\alpha,m,\beta})) = F(\partial^-_2(X_{\alpha,m,\beta}))$
for
$\alpha,\beta \in \textsf{PMon}_2$
and
$m \in \mathbb{N}$
.
Proof. Let
$\phi = F(\partial^-_2(\textsf{A}))$
and
$\psi = F(\partial^+_2(\textsf{A}))$
. By calculations, we get that
for
$x,y,z \in \mathbb{N}$
, so
$\phi(x,y,z) >_{\text{ex}}^1 \psi(x,y,z)$
for all
$x,y,z \in \mathbb{N}$
. The cases (ii) and (iii) are shown similarly. (iv) is a consequence of the fact that MFun is a strict 2-category.
We define a partial order
$<$
on
$\textsf{PMon}^*_2$
by putting, for
$\phi,\psi \in \textsf{PMon}^*_2$
,
Proposition 5.1.4. The partial order
$<$
on
$\textsf{PMon}^*_2$
is a reduction order for
$\textsf{PMon}$
.
Proof. Let
$G \in \textsf{PMon}_3$
. If
$G \in \{{\textsf{A},\textsf{L},\textsf{R}}\}$
, then, by Proposition 5.1.3,
$\partial^+_2(G) < \partial^-_2(G)$
. Otherwise, if
${G = X_{\alpha,u,\beta}}$
for some
$\alpha,\beta \in \textsf{PMon}_2$
and
$u \in \textsf{PMon}^*_1$
, then, by Proposition 5.1.3(iv),
So
$\partial^+_2(G) < \partial^-_2(G)$
. The other requirements for
$<$
to be a reduction order are consequences of Propositions 5.1.2 and 4.3.2(ii)(iii).
Finally, we can use our coherence criterion to show that:
Theorem 5.1.5.
$\textsf{PMon}$
is a coherent Gray presentation.
5.2 Pseudoadjunctions
We now show the coherence of the Gray presentation of pseudoadjunctions introduced below. The way we do this is again by using Theorem 4.4.5. However, we need a specific argument to show the termination of the interchange generators on the associated rewriting system. For this, we introduce a notion of “connected” diagrams and we use a result of Delpeuch and Vicary (Reference Delpeuch and Vicary2018) stating that interchange generators terminate on such connected diagrams.
We define the 3-prepolygraph for pseudoadjunctions as the 3-prepolygraph
$\textsf{P}$
such that
where
$\eta$
and
$\varepsilon$
are pictured as
and
, respectively, and
$\textsf{P}_3$
is defined by
, where
which can be represented by:
We then extend
$\textsf{P}$
to a Gray presentation by adding 3-generators corresponding to interchange generators and 4-generators corresponding to independence generator and interchange naturality generator, just like we did for pseudomonoids in Example 3.3.1. For coherence, we need to add other 4-generators to
$\textsf{P}_4$
. Provided that
$\textsf{P}$
is terminating, by Theorem 4.4.5, adding 4-generators that fill the holes created by critical branchings is enough, just like for pseudomonoids.
Using the constructive proof of Theorem 4.4.6, we compute all the critical branchings of
$\textsf{P}$
. We then obtain, up to symmetrical branchings, two critical branchings:

We observe that each of these branchings is joinable, and we define formal new 4-generators
$R_1,R_2$
that fill the holes:

We then define
$\textsf{PAdj}$
as the Gray presentation obtained from
$\textsf{P}$
by adding
$R_1$
and
$R_2$
to
$\textsf{P}_4$
.
We aim at showing that this rewriting system is terminating by exhibiting a reduction order. However, we cannot use Proposition 4.3.2 to handle interchangers (as for the case of pseudomonoids) since
$\textsf{P}$
is not positive. Instead, we invoke the result of Delpeuch and Vicary (Reference Delpeuch and Vicary2018) which states the termination of interchangers on “connected diagrams.” Given a 2-prepolygraph
$\textsf{Q}$
, a 2-cell of
$\textsf{Q}^*_2$
is connected when, intuitively, each 2-generator on its graphical representation is accessible by a path starting from a top or bottom input. For example, given
$\textsf{Q}$
such that
$\textsf{Q}_0 = \{{\ast}\}$
,
$\textsf{Q}_1 = \{{\bar 1}\}$
and
, we can build the following two 2-cells of
$\textsf{Q}^*_2$
:

where the one on the left is connected whereas the one on the right is not, since the two generators of the “bubble” cannot be accessed from the top or bottom border.
A more formal definition can be obtained by computing the “connected components” of the diagram, together with a map between the top and bottom inputs of the diagram to the associated connected components. This is adequatly represented by cospans of
$\mathbf{Set}$
. Based on this idea, we define a 2-precategory that allows us to compute the connected components of a 2-cell of
$\textsf{Q}^*$
. Let
$\mathbb{N}_m$
be the set
$\{{1,\ldots,m}\}$
for
$m \ge 0$
.
We define the 2-precategory
$\mathbf{CoSpan}$
as the 2-precategory such that:
-
it has a unique 0-cell, denoted
$\ast$
, -
the 1-cells are the natural numbers, with 0 as unit and addition as composition,
-
the 2-cells
$m \Rightarrow n$
are the classes of equivalent cospans
,
where two cospans
and
are said equivalent when there exists an isomorphism
$h\colon S \rightarrow S' \in\mathbf{Set}$
such that
$f' = h \circ f$
and
$g' = h \circ g$
. The unit of
$m \in\mathbf{CoSpan}_1$
is the cospan
, and, given
$\phi \colon m_1 \Rightarrow m_2 \in \mathbf{CoSpan}_2$
and
$\psi \colon m_2 \Rightarrow m_3 \in \mathbf{CoSpan}_2$
, represented by the cospans:
respectively, their composite is represented by the cospan:

where the middle square is a pushout. Given
$\phi\colon m \Rightarrow n \in \mathbf{CoSpan}_2$
represented by:
and
$p,q \in \mathbf{CoSpan}_1$
, the 2-cell
$p {\ast}_0 \phi {\ast}_0 q$
is represented by the cospan:

where
$\theta_{p,r,q}\colon \mathbb{N}_{p + r + q} \rightarrow \mathbb{N}_{p} \sqcup \mathbb{N}_r \sqcup \mathbb{N}_q$
, for
$r \in \mathbb{N}$
, is the obvious bijection. One easily verifies that
$\mathbf{CoSpan}$
is in fact a 2-category (fact that will be useful when dealing with interchange generators later).
Given a 2-prepolygraph
$\textsf{Q}$
, by the universal property of 2-prepolygraphs, we define a 2-prefunctor
$\text{Con}_\textsf{Q}\colon \textsf{Q}^* \rightarrow \mathbf{CoSpan}$
such that
-
the image of
$x \in \textsf{Q}_0$
is
$\ast$
, -
the image of
$a \in \textsf{Q}_1$
is 1, -
the image of
$\alpha\colon f \Rightarrow g \in \textsf{Q}_2$
is represented by the unique cospan
We can now give our definition for connectedness: a 2-cell
$\phi \in \textsf{Q}^*_2$
is connected when
$\text{Con}_\textsf{Q}(\phi)$
is represented by a cospan
, with
$m =|\partial^-_1(\phi)|$
and
$n = |\partial^+_1(\phi)|$
, such that f and g are jointly epimorphic. Since the latter property is invariant by equivalences of cospan, if
$\phi$
is connected, then for every representative
of
$\text{Con}_\textsf{Q}(\phi)$
, f andg are jointly epimorphic.
In the case of
$\textsf{PAdj}$
, as one can expect, the 3-generators
$\textsf{N}$
and
do not change connexity:
Lemma 5.2.1. We have
and
Proof. By calculations, we verify that

is a representative of both
$\text{Con}_{\textsf{PAdj}}((\eta {\ast}_0 \textsf{f}) {\ast}_1 (\textsf{f} {\ast}_0 \varepsilon))$
and
$\text{Con}_{\textsf{PAdj}}(\text{id}_{\textsf{f}})$
, so that
and similarly,
Moreover, connexity is preserved by interchangers in general:
Lemma 5.2.2. Let
$\textsf{P}$
be a 2-prepolygraph. Let
$\alpha,\beta \in \textsf{P}_2$
and
$g \in \textsf{P}^*_1$
such that
$\alpha,g,\beta$
are 0-composable. Then,
Proof. This is a direct consequence of the fact that
$\mathbf{CoSpan}$
is a strict 2-category.
We now prove a technical lemma that we will use to show the connexity of the 2-cells in
$\textsf{PAdj}^*_2$
:
Lemma 5.2.3. Let
$\textsf{P}$
be a 2-prepolygraph and
$\phi,\phi' \in \textsf{P}^*_2$
and
be a representative of
$\text{Con}_\textsf{P}(\phi)$
for some
$n_1,n_2 \in \mathbb{N}$
such that
$\phi,\phi'$
are 1-composable and f is surjective. Then,
$\phi {\ast}_1 \phi'$
is connected if and only if
$\phi'$
is connected.
Proof. Let
be a representative of
$\text{Con}_\textsf{P}(\phi')$
for some
$n_2,n_3 \in \mathbb{N}$
. Then,
$\text{Con}_\textsf{P}(\phi {\ast}_1 \phi')$
is represented by
where S”, f”, and g” are defined by the pushout of g and f’ as in

Suppose that
$\phi'$
is connected, that is, f’ and g’ are jointly surjective. Since f is surjective by hypothesis and f” and g” are jointly surjective (by the universal property of pushout), we have that
$f'' \circ f, g'' \circ f', g'' \circ g'$
are jointly surjective. Moreover,
where h is a factorization of g through f (that exists, since f is supposed surjective). Thus, we conclude that
$f'' \circ f$
and
$g'' \circ g'$
are jointly surjective.
Conversely, suppose that
$f'' \circ f$
and
$g'' \circ g'$
are jointly surjective and let
$y \in S'$
. We have to show that y is in the image of f’ or g’. Recall that
where
$\sim$
is the equivalence relation induced by
$g(x) \sim f'(x)$
for
$x \in \mathbb{N}_{n_2}$
: either y is in the image of f’, or we have both that y is the only preimage of g”(y) by g” and g”(y) is not in the image of f”. In the former case, we conclude directly, and in the latter, since
$f'' \circ f$
and
$g'' \circ g'$
are jointly surjective, there is
$x \in \mathbb{N}_{n_3}$
such that
$g'' \circ g' (x) = g''(y)$
, so that
$g'(x) = y$
, which is what we wanted. Thus, f’ and g’ are jointly surjective, that is,
$\phi'$
is connected.
We can now prove our connectedness result for pseudoadjunctions:
Proposition 5.2.4. For every
$\phi \in \textsf{PAdj}^*_2$
,
$\phi$
is connected.
Proof. Assume by contradiction that it is not true and let
$N \in \mathbb{N}$
be the smallest natural number such that the set
$S = \{{\phi \in \textsf{PAdj}^*_2 \mid |\phi| = N \text{ and } \phi \text{ is not connected}}\}$
is not empty. Given
$\phi \in S$
, let
be a decomposition of
$\phi$
.
Note that there is at least one
$i \in \{{1,\ldots,N}\}$
such that
$\alpha_i = \varepsilon$
. Indeed, given
$f,h \in \textsf{PAdj}^*_1$
such that
$f,\eta,h$
are 0-composable, a representative
of
$\text{Con}_\textsf{Q}(f {\ast}_0 \eta {\ast}_0 h)$
has the property that v is an epimorphism. Since epimorphisms are stable by pushouts, given
$\phi' \in \textsf{PAdj}^*_2$
such that
$\phi' = (f'_1 {\ast}_0 \eta {\ast}_0 h'_1) {\ast}_1 \cdots {\ast}_1 (f'_k {\ast}_0 \eta {\ast}_0 h'_k)$
with
$f'_i,h'_i \in \textsf{PAdj}^*_1$
for
$i \in \{{1,\ldots,k}\}$
, a representative
of
$\text{Con}_{\textsf{PAdj}}(\phi')$
has the property that v’ is an epimorphism (by induction on k), and in particular,
$\phi'$
is connected. Consider the minimal index
$i_0$
such that there is
$\phi \in S$
with
$\alpha_{i_0} = \varepsilon$
.
Suppose first that
$i_0 = 1$
. Then, given a representative
of
$\text{Con}_{\textsf{PAdj}}(f_1 {\ast}_0 \alpha_1 {\ast}_0 h_1)$
, we easily check that
$u_1$
is an epimorphism. By Lemma 5.2.3, we deduce that
is not connected, contradicting the minimality of N.
Suppose
$i_0 > 1$
. By the definition of
$i_0$
, we have
$\alpha_{i_0 - 1} = \eta$
. There are different cases depending on
$|f_{i_0-1}|$
(see Figure 1):
-
if
$|f_{i_0-1}| \le |f_{i_0}| - 2$
, then, since
$\partial^+_1(f_{i_0 - 1} {\ast}_0 \alpha_{i_0 - 1} {\ast}_0 h_{i_0 - 1}) = \partial^-_1(f_{i_0} {\ast}_0 \alpha_{i_0} {\ast}_0 h_{i_0})$
, we have for some
\begin{equation*} f_{i_0} = f_{i_0 - 1} {\ast}_0 \partial^+_1(\eta) {\ast}_0 g \quad\text{and}\quad h_{i_0 - 1} = g {\ast}_0 \partial^-_1(\varepsilon) {\ast}_0 h_{i_0} \end{equation*}
$g \in \textsf{PAdj}^*_1$
. By Lemma 5.2.2, we have thus, by functoriality of
\begin{align*} & \text{Con}_{\textsf{PAdj}}( (\eta {\ast}_0 g {\ast}_0 \partial^-_1(\varepsilon)) {\ast}_1 (\partial^+_1(\eta) {\ast}_0 g {\ast}_0 \varepsilon)) \\ & \quad = \text{Con}((\partial^-_1(\eta) {\ast}_0 g {\ast}_0 \varepsilon) {\ast}_1 (\eta {\ast}_0 g {\ast}_0 \partial^+_1(\varepsilon))) \end{align*}
$\text{Con}_{\textsf{PAdj}}$
, the morphism
$\phi'$
defined by: satisfies that
\begin{multline*} \phi' = (f_1 {\ast}_0 \alpha_1 {\ast}_0 h_1) {\ast}_1 \cdots {\ast}_1 (f_{i_0 - 2} {\ast}_0 \alpha_{i_0 - 2} {\ast}_0 h_{i_0 - 2}) \\ {\ast}_1 (f_{i_0 - 1} {\ast}_0 g {\ast}_0 \varepsilon {\ast}_0 h_{i_0}) {\ast}_1 (f_{i_0 - 1} {\ast}_0 \eta {\ast}_0 g {\ast}_0 h_{i_0}) \\ {\ast}_1 (f_{i_0 + 1} {\ast}_0 \alpha_{i_0 + 1} {\ast}_0 h_{i_0+1}) {\ast}_1 \cdots {\ast}_1 (f_k {\ast}_0 \alpha_k {\ast}_0 h_k) \end{multline*}
$\text{Con}_{\textsf{PAdj}}(\phi) = \text{Con}_{\textsf{PAdj}}(\phi')$
. So
$\phi'$
is not connected, and the
$(i_0 {-} 1)$
-th 2-generator in the decomposition of
$\phi'$
is
$\varepsilon$
, contradicting the minimality of
$i_0$
;
-
if
$|f_{i_0-1}| \ge |f_{i_0}| + 2$
, then the case is similar to the previous one; -
if
$|f_{i_0 - 1}| = |f_{i_0}| - 1$
, then, since
$\text{Con}_{\textsf{PAdj}}((\eta {\ast}_0 \textsf{f}) {\ast}_1 (\textsf{f} {\ast}_0 \varepsilon)) = \text{Con}_{\textsf{PAdj}}(\text{id}_{\textsf{f}})$
by Lemma 5.2.1, the 2-cell
$\phi'$
defined by: satisfies
\begin{multline*} \phi' = (f_1 {\ast}_0 \alpha_1 {\ast}_0 h_1) {\ast}_1 \cdots {\ast}_1 (f_{i_0 - 2} {\ast}_0 \alpha_{i_0 - 2} {\ast}_0 h_{i_0 - 2}) \\ {\ast}_1 (f_{i_0 + 1} {\ast}_0 \alpha_{i_0 + 1} {\ast}_0 h_{i_0+1}) {\ast}_1 \cdots {\ast}_1 (f_k {\ast}_0 \alpha_k {\ast}_0 h_k) \end{multline*}
$\text{Con}_{\textsf{PAdj}}(\phi) = \text{Con}_{\textsf{PAdj}}(\phi')$
(by functoriality of
$\text{Con}_{\textsf{PAdj}}$
) so that
$\phi'$
is not connected, contradicting the minimality of N;
-
if
$|f_{i_0-1}| = |f_{i_0}| + 1$
, then the situation is similar to the previous one, since, by Lemma 5.2.1,
\begin{equation*} \text{Con}_{\textsf{PAdj}}( (\textsf{g} {\ast}_0 \eta) {\ast}_1 (\varepsilon {\ast}_0 \textsf{g})) = \text{Con}_{\textsf{PAdj}}(\text{id}_{\textsf{g}}); \end{equation*}
-
finally, the case
$|f_{i_0-1}| = |f_{i_0}|$
is impossible since and
\begin{equation*} f_{i_0 - 1} {\ast}_0 \partial^+_1(\alpha_{i_0 - 1}) {\ast}_0 h_{i_0 - 1} = f_{i_0} {\ast}_0 \partial^-_1(\alpha_{i_0}) {\ast}_0 h_{i_0} \end{equation*}
\begin{equation*} \partial^+_1(\alpha_{i_0 - 1}) = \textsf{f} {\ast}_0 \textsf{g} \neq \textsf{g} {\ast}_0 \textsf{f} = \partial^-_1(\alpha_{i_0}). \end{equation*}
The different cases.

We are now able to prove termination:
Proposition 5.2.5. The rewriting system
$\textsf{PAdj}$
is terminating.
Proof. Suppose by contradiction that there is an infinite sequence
$S_i\colon \phi_i \Rrightarrow \phi_{i+1}$
for
$i \ge 0$
with
$S_i$
a rewriting step in
$\textsf{PAdj}^*_3$
. Since
if the inner 3-generator of
$S_i$
is
$\textsf{N}$
or
, for some
$i \ge 0$
, then
$|\phi_{i+1}| = |\phi_i| - 2$
. Since
for 0-composable
$\alpha \in \textsf{PAdj}_2$
,
$f \in \textsf{PAdj}^*_1$
,
$\beta \in \textsf{PAdj}_2$
, it means that there is
$i_0 \ge 0$
such that for
$i \ge i_0$
, the inner generator of
$S_i$
is an interchanger. By Delpeuch and Vicary (Reference Delpeuch and Vicary2018, Thm. 16), there is no infinite sequence of rewriting steps made of interchangers. Thus, by Proposition 5.2.4, there is no infinite sequence of rewriting steps whose inner 3-generator is an interchanger of
$\textsf{PAdj}$
, contradicting the existence of
$(S_i)_{i \ge 0}$
. Thus,
$\textsf{PAdj}$
is terminating.
Finally, we can apply our coherence criterion and show that:
Theorem 5.2.6.
$\textsf{PAdj}$
is a coherent Gray presentation.
5.3 Self-dualities
We consider a variant of the preceding example, by considering the theory corresponding to pseudoadjunctions between an endofunctor and itself. This new example requires a special treatment since the underlying rewriting system is not terminating, and, more fundamentally, the induced (3,2)-Gray category is not expected to be fully coherent. We show instead a partial coherence result.
We define the 3-prepolygraph for self-dualities as the 3-prepolygraph
$\textsf{P}$
such that
where we write
$\bar n$
for
$\underbrace{\bar 1 {\ast}_0 \cdots {\ast}_0 \bar 1}_n$
for
$n \in \mathbb{N}$
. The 2-generators
$\eta$
and
$\varepsilon$
are pictured as
and
respectively, and
$\textsf{P}_3$
is defined by
where
which is pictured again by:
As before, we then extend
$\textsf{P}$
to a Gray presentation by adding 3-generators corresponding to interchange generators and 4-generators corresponding to independence generators and interchange naturality generators. We also add the same 4-generators that we added for pseudoadjunctions:

to
$\textsf{P}$
and we denote
$\textsf{SD}$
the resulting Gray presentation. Here, it is not possible to apply Theorem 4.4.5 to obtain a coherence result, as in previous section. Indeed,
$\textsf{SD}$
is not terminating, since we have the reduction:

Moreover, this endomorphism 3-cell is not expected to be an identity, discarding hopes for the presentation to be coherent. Following Dunn and Vicary (Reference Dunn and Vicary2016), we can still aim at showing a partial coherence result by restricting to 2-cells which are connected, in the sense of the previous section. In this case, termination can actually be shown by using the same arguments as for pseudoadjunctions. However, the critical pairs are not joinable either since, for instance, we have

for which there is little hope that a Knuth–Bendix completion will provide a reasonably small presentation. However, one can obtain a rewriting system, introduced below, which is terminating on connected 2-cells and confluent by orienting the interchangers. Using this rewriting system, we are able to show a partial coherence result.
We define an alternate rewriting system
$\textsf{Q}$
where
where
$\textsf{Q}^{\text{int}}_3$
contains the following 3-generators, called
$\textsf{Q}$
-interchange generators:

for
$n \in \mathbb{N}$
.
There is a morphism of 3-precategories
$\Gamma\colon \textsf{Q}^* \rightarrow\overline{\textsf{P}}^{\top}$
uniquely defined by
$\Gamma(u) = u$
for
$u \in\textsf{Q}^*_i$
with
$i \in \{{0,1,2}\}$
and mapping the 3-generators as follows:

for
$n \in \mathbb{N}$
. We get a rewriting system
by putting
if and only if
$\Gamma(F) = \Gamma(F')$
for parallel
$F,F' \in\textsf{Q}^*_3$
. By inspecting the 3-generators of
$\textsf{Q}_3$
, we can show that, given
$F\colon \phi\Rrightarrow \phi' \in \textsf{Q}^*_3$
,
$\phi$
is connected if and only if
$\phi'$
is connected. Indeed, one easily checks that for every
$A \in \textsf{Q}_3$
, we have
$\text{Con}_\textsf{Q}(\partial^-_2(A)) = \text{Con}_\textsf{Q}(\partial^+_2(A))$
so that
$\text{Con}_\textsf{Q}(\phi) = \text{Con}_\textsf{Q}(\phi')$
.
We first show a weak termination property for
$\textsf{Q}$
, stating that it is terminating on connected 2-cells:
Proposition 5.3.1. Given a connected 2-cell
$\phi$
in
$\textsf{Q}^*_2$
, there is no infinite sequence
$F_i\colon \phi_i\Rrightarrow \phi_{i+1}$
of rewriting steps where
$\phi_0 = \phi$
.
Proof. Since any rewriting step whose inner 3-generator is
$\textsf{N}$
or
decreases by 2 the number of 2-generators in a diagram, it is enough to show that there is no infinite sequence of composable rewriting steps made of elements of
$\textsf{Q}^{\text{int}}_3$
. For this purpose, we combine several counting functions: a function
$N_1$
which counts the potential number of rules
$X'_{\eta,-,\epsilon}$
and
$X'_{\epsilon,-,\eta}$
which can be applied, and functions
$N_2^\eta$
and
$N_2^\epsilon$
which counts the potential number of rules
$X'_{\eta,-,\eta}$
and
$X'_{\epsilon,-,\epsilon}$
which can be applied, respectively. Given a 2-cell
of
$\textsf{Q}^*_2$
, with
$\alpha_i \in \textsf{Q}_2$
and
$m_i,n_i \in \mathbb{N}$
for
$i \in \{{1,\ldots,k}\}$
, we define
$N_1(\phi) \in \mathbb{N}$
by:
Moreover, if we write
$p,q \in \{{0,\ldots,k}\}$
and
$i_1,\ldots,i_p,j_1,\ldots,j_q \in \mathbb{N}$
for the unique integers such that
and
$\alpha_{i_r} = \eta$
and
$\alpha_{j_s} = \varepsilon$
for
$r \in \{{1,\ldots,p}\}$
and
$s \in \{{1,\ldots,q}\}$
, we define
$N^\eta_2(\phi) \in \mathbb{N}^p$
and
$N^\varepsilon_2(\phi) \in \mathbb{N}^q$
by:
Finally, we define
$N(\phi) \in \mathbb{N}^{1+p+q}$
by:
and we equip
$\mathbb{N}^p$
,
$\mathbb{N}^q$
, and
$\mathbb{N}^{1+p+q}$
with the lexicographical ordering
$<_{\text{lex}}$
. Now, keeping
$\phi$
as above, let
be a rewriting step for some
$l,r \in \textsf{Q}^*_1$
,
$\lambda,\rho,\phi' \in \textsf{Q}^*_2$
and
$A \in \textsf{Q}_3$
with
for some
$\alpha'_i \in \textsf{Q}_2$
and
$m'_i,n'_i \in \mathbb{N}$
for
$i \in \{{1,\ldots,k}\}$
. We distinguish the three following cases.
-
If
$A = X'_{\eta,\bar u,\varepsilon}$
or
$A = X'_{\varepsilon,\bar u,\eta}$
for some
$u \in \mathbb{N}$
, then
$N_1(\phi') = N_1(\phi) - 1$
. -
Otherwise, if
$A = X_{\eta,\bar u,\eta}$
for some
$u \in \mathbb{N}$
, then we have
$N_1(\phi) = N_1(\phi')$
and, writing r for
$|\lambda| + 1$
, we have
$n_{s} = n'_{s}$
for
$s \in \{{1,\ldots,k}\} \setminus\{{r,r+1}\}$
. Moreover, we have
$n'_{r+1} \le n_{r+1} - 2$
, so that
$N^\eta_2(\phi') <_{\text{lex}} N^\eta_2(\phi)$
. For example, consider the application of
$X'_{\eta,\bar n,\eta}$
on
$\partial^-_2(X'_{\eta,\bar n,\eta})$
without additional whiskering. In this case, we have that
$N^\eta_2(\partial^-_2(X'_{\eta,\bar n,\eta})) = (n+2,0),$
while
$N^\eta_2(\partial^+_2(X'_{\eta,\bar n,\eta})) = (0,n)$
so that the value of
$N^\eta_2(\!-\!)$
is decreased with respect to
$<_{\text{lex}}$
by the application of
$X'_{\eta,\bar n,\eta}$
. -
Otherwise,
$A = X'_{\varepsilon,\bar u,\varepsilon}$
for some
$u \in \mathbb{N}$
. Then
$N^\eta_2(\phi) = N^\eta_2(\phi')$
and, by a similar argument as before,
$N^\varepsilon_2(\phi') <_{\text{lex}} N^\varepsilon_2(\phi)$
.
In any case, we get that
$N(\phi) <_{\text{lex}} N(\phi')$
. Since
$<_{\text{lex}}$
is well founded, we conclude that there is no infinite sequence of rewriting steps
$R_i\colon \phi_i \Rrightarrow \phi_{i+1}$
for
$i \in \mathbb{N}$
with
$\phi_0$
connected.
We now aim at showing the confluence of the branchings of
$\textsf{Q}$
. The idea is to use a critical pair lemma and a Newman’s lemma adapted to the specific setting of
$\textsf{Q}$
where the notion of critical branching is different and where we only consider connected 2-cells as sources. We say that a branching
$(S_1,S_2)$
of
$\textsf{Q}$
is connected when
$\partial^-_2(S_1)$
is connected. We say that it is
$\textsf{Q}$
-critical when it is local, minimal, not trivial, and not independent. We first state adapted versions of the critical pair lemma and Newman’s lemma to the setting of
$\textsf{Q}$
:
Lemma 5.3.2. If all connected
$\textsf{Q}$
-critical branchings
$(S_1,S_2)$
of
are confluent, then all connected local branchings of
are confluent.
Proof. By a direct adaptation of the proof of Theorem 4.4.3 to connected 2-cells and rewriting steps between connected 2-cells.
Lemma 5.3.3. If all connected local branchings of
are confluent, then all connected branchings of
are confluent.
Proof. By a direct adaptation of Theorem 4.2.1 to connected 2-cells and rewriting steps between connected 2-cells, using Proposition 5.3.1.
By the above properties, in order to deduce the confluence of the branchings of
$\textsf{Q}$
, it is enough to check that the critical branchings of
$\textsf{Q}$
are confluent, fact that we verify in the following property:
Lemma 5.3.4. The connected
$\textsf{Q}$
-critical branchings of
are confluent.
Proof. We first consider the
$\textsf{Q}$
-critical branchings
$(S_1,S_2)$
that are structural-structural, that is, such that the inner 3-generators of
$S_1$
and
$S_2$
are
$\textsf{Q}$
-interchange generators. We classify them as separated and half-separated and non-separated. There are eight kinds of separated structural-structural
$\textsf{Q}$
-critical branchings listed below:

Each one can be shown confluent for ≡ by considering the confluence of a natural branching in
${(\textsf{SD},\sim^{\textsf{SD}})}$
. For example, (5) is joinable as follows:

Up to inverses, it corresponds to the following confluent natural branching of
$(\textsf{SD},\sim^{\textsf{SD}})$
:

By the definition of
, (5) is confluent for
. The other kinds of separated structural–structural
$\textsf{Q}$
-critical branchings are confluent by similar arguments.
There are four kinds of half-separated structural-structural
$\textsf{Q}$
-critical branchings listed below:

Each one can be shown confluent for
by considering the confluence of a natural branching in
${(\textsf{SD},\sim^{\textsf{SD}})}$
. For example, (1) is joinable as follows:

Up to inverses, it corresponds to the following confluent natural branching of
$(\textsf{SD},\sim^{\textsf{SD}})$
:

By definition of
, it implies that (1) is confluent for
.
There are two kinds of non-separated structural-structural
$\textsf{Q}$
-critical branchings listed as follows:

They are not confluent but they are not connected branchings.
We now consider structural-operational
$\textsf{Q}$
-critical branchings, that is, those
$\textsf{Q}$
-critical branchings
$(S_1,S_2)$
such that the inner 3-generator of
$S_1$
is a
$\textsf{Q}$
-interchange generator and the inner 3-generator of
$S_2$
is
$\textsf{N}$
or
. We classify them as separated and half-separated. There are four kinds of separated structural-operational
$\textsf{Q}$
-critical branchings listed as follows:

As above, each one can be shown confluent by considering a natural branching of
$(\textsf{SD},\sim^{\textsf{SD}})$
.
There are two kinds of half-separated structural-operational
$\textsf{Q}$
-critical branchings listed as follows:

As above, each one of them can be proved confluent by considering the associated critical branching in
$(\textsf{SD},\sim^{\textsf{SD}})$
.
Note that there are no operational-operational
$\textsf{Q}$
-critical branching, that is,
$\textsf{Q}$
-critical branchings
$(S_1,S_2)$
where the inner 3-generators of both
$S_1$
and
$S_1$
are in
. Hence, all connected
$\textsf{Q}$
-critical branchings are confluent.
We can now show our weak confluence property:
Proposition 5.3.5. All the connected branchings of
are confluent.
In order to obtain a weak coherence property for
$\textsf{SD}$
, we first adapt several properties stated in Section 4.1.
Lemma 5.3.6. Given
$F\colon \phi\Rrightarrow \phi' \in \overline{\textsf{Q}}^{\top}$
where either
$\phi$
or
$\phi'$
is connected, we have
$F = G {\ast}_2 {H}^{{-}1}$
for some
$G\colon \phi \Rrightarrow \psi$
and
$H\colon \phi' \Rrightarrow \psi$
.
Proof. By a direct adaptation of Proposition 4.1.1 involving connected 2-cells only, and using Proposition 5.3.5.
Lemma 5.3.7. Given
$F_1,F_2\colon \phi\Rrightarrow \phi' \in \overline{\textsf{Q}}_3$
, if
$\phi$
is connected, then
$F_1 = F_2$
in
$\overline{\textsf{Q}}^{\top}_3$
.
Proof. Since
$\phi$
is connected,
$\phi'$
is connected. By Proposition 5.3.1, there is
$G\colon \phi' \Rrightarrow \psi \in \overline{\textsf{Q}}_3$
such that
$\psi$
is a normal form for
$\textsf{Q}$
. By Proposition 5.3.5, there is
$H_1,H_2\colon \psi \Rrightarrow \psi' \in \overline{\textsf{Q}}_3$
such that
$F_1 {\ast}_2 G {\ast}_2 H_1 = F_1 {\ast}_2 G {\ast}_2 H_2$
. Since
$\psi$
is a normal form,
$H_1 = H_2 = \text{id}_{\psi}$
. So
$F_1 {\ast}_2 G = F_2 {\ast}_2 G$
, thus
$F_1 = F_2$
in
$\overline{\textsf{Q}}^{\top}_3$
.
Lemma 5.3.8. Given
$F_1,F_2\colon \phi\Rrightarrow \phi' \in \overline{\textsf{Q}}^{\top}_3$
, if
$\phi$
is connected, then
$F_1 = F_2$
in
$\overline{\textsf{Q}}^{\top}_3$
.
We can now conclude with the weak coherence property for
$\textsf{SD}$
:
Theorem 5.3.9. Given
$F_1,F_2\colon \phi \Rrightarrow \phi' \in \smash{\overline{\textsf{SD}}^{\top}_3}$
with
$\phi$
or
$\phi'$
connected, we have
$F_1 = F_2$
.
Proof. Let
$\Gamma'\colon \smash{\overline{\textsf{Q}}^{\top} \rightarrow \overline{\textsf{SD}}^{\top}}$
be the 3-prefunctor which is the factorization of
$\Gamma$
through the canonical 3-prefunctor
$( _{\le 3}\textsf{Q})^* \rightarrow \smash{\overline{\textsf{Q}}^{\top}}$
. By definition of
$\smash{\overline{\textsf{SD}}^{\top}}$
, for
$i \in \{{1,2}\}$
, we have
for some
$k_i \in \mathbb{N}$
, 2-cells
$\phi_{i,0},\ldots,\phi_{i,k_i},\psi_{i,1},\ldots,\psi_{i,k_i} \in \textsf{Q}^*_2$
such that
$\phi_{i,0} = \phi$
and
$\phi_{i,k_i} = \phi'$
, and, for
$j \in \{{1,\ldots,k_i}\}$
, 3-cells:
of
$\overline{\textsf{SD}}_3$
. Since either
$\phi$
or
$\phi'$
is connected, we have that all the
$\phi_{i,j}$
’s and the
$\psi_{i,j}$
’s are connected. Moreover, all the
$G_{i,j}$
’s and the
$H_{i,j}$
’s are in the image of
$\Gamma'$
. So, for
$i \in \{{1,2}\}$
,
$F_i = \Gamma'(F'_i)$
for some
$F'_i \colon \phi \Rrightarrow \phi' \in \smash{\overline{\textsf{Q}}^{\top}}$
. By Lemma 5.3.8, we have
$F'_1 = F'_2$
, so that
$F_1 = F_2$
.
The critical branchings for Frobenius pseudomonoids.

5.4 Frobenius pseudomonoids
We now consider the example of Frobenius pseudomonoids (Street Reference Street2004), which categorifies the classical notion of Frobenius monoids. Sadly, it is only a partial example since we were not able to handle the units of the structure (if we add them, the critical branchings are not confluent) and to show that our presentation is terminating, even though we believe that the latter is true. We nevertheless give the computation of critical branchings for this example, hoping that a termination argument will be found later.
The critical branchings for Frobenius pseudomonoids.

We define the 3-prepolygraph
$\textsf{P}$
for (non-unitary) Frobenius pseudomonoids as follows. We put
where we denote
$\bar n$
by
$\underbrace{\bar 1 {\ast}_0 \cdots {\ast}_0 \bar 1}_n$
for
$n \in \mathbb{N}$
. We picture
$\mu$
and
$\delta$
by
and
, respectively, and we define
$\textsf{P}_3$
by
where

As before, we then extend
$\textsf{P}$
to a Gray presentation by adding 3-generators corresponding to interchange generators and 4-generators corresponding to independence generators and interchange naturality generators.
The critical branchings for Frobenius pseudomonoids.

Using the constructive proof of Theorem 4.4.6, we find 19 critical branchings, and we use them to define a set of 19 4-generators
$R_1,\ldots,R_{19}$
that we add to
$\textsf{P}_4$
. These critical branchings are shown in Figure 2a. We then define
$\textsf{PFrob}$
as the Gray presentation obtained from
$\textsf{P}$
by adding the 4-generators
$R_1,\ldots,R_{19}$
from above. Since we were not able to show termination, we conjecture it:
Conjecture 5.4.1.
$\textsf{PFrob}$
is terminating.
From this assumption, we deduce that:
Theorem 5.4.2. If
$\textsf{PFrob}$
is terminating, then
$\textsf{PFrob}$
is a coherent Gray presentation.
Proof. This is a consequence of Theorem 4.4.5.
Acknowledgements
The authors would like to thank the reviewer for their high-quality proofreading and the associated numerous and useful comments.
A. Equivalence between definitions of precategories
We prove the equivalence between the equational and the enriched definition of precategories:
Proposition 2.4.5. There is an equivalence of categories between
$\mathbf{PCat}_{n+1}$
and categories enriched in
$\mathbf{PCat}_{n}$
with the funny tensor product.
Proof. Given
$C \in \mathbf{PCat}_{n+1}$
, we define an associated object
$D \in (\mathbf{PCat}_{n})-\mathbf{Cat}$
as follows. We put
where
$C_{\uparrow(x,y)}$
is the n-precategory such that
for
$i \in \{0,\ldots,n\}$
and whose composition operation
$\ast_{k,l}$
is the operation
$\ast_{k+1,l+1}$
on C for
$k,l \in \{1,\ldots,n\}$
. Given
$x \in D_0$
, we define the identity morphism:
as the morphism which maps the unique 0-cell
$\ast$
of 1 to
$\text{id}_{x} \in C_1$
. Given
$x,y,z \in C_0$
, we define the composition morphism:
as the unique morphism such that
$l_{x,y,z} = c_{x,y,z} \circ \mathop{\kern 0pt \text l}\nolimits_{D(x,y),D(y,z)}$
is the composite:

and
$r_{x,y,z} = c_{x,y,z} \circ \mathop{\kern 0pt \text r}\nolimits_{D(x,y),D(y,z)}$
is the composite:

We verify that the composition morphism is left unital, that is, given
$x,y \in D_0$
, the diagram:

commutes. We compute that

and

Thus, by the colimit definition of
$\text{1} \square D(x,y)$
, the above triangle commutes. Similarly, the triangle:

commutes, so that the composition morphism is right unital. We now verify that it is associative, that is, given
$w,x,y,z \in D_0$
, that the diagram:

commutes. By a colimit definition analogous to (2), it is enough to show the commutation of the diagram when precomposing with the morphisms
$\varpi_1,\varpi_2,\varpi_3$
where
\begin{align*} \varpi_1 &= \mathop{\kern 0pt \text l}\nolimits_{D(w,x)\square D(x,y),D(y,z)} \circ (\mathop{\kern 0pt \text l}\nolimits_{D(w,x),D(x,y)} \times _{(0)}{D(y,z)}), \\ \varpi_2 &= \mathop{\kern 0pt \text l}\nolimits_{D(w,x)\square D(x,y),D(y,z)} \circ (\mathop{\kern 0pt \text r}\nolimits_{D(w,x),D(x,y)} \times _{(0)}{D(y,z)}), \\ \varpi_3 &= \mathop{\kern 0pt \text r}\nolimits_{D(w,x)\square D(x,y),D(y,z)}{.} \end{align*}
Writing
$D^1,D^2,D^3$
for D(w,x),D(x,y),D(y,z), we compute that

so that the diagram (A1) commutes when precomposed with
$\varpi_1$
and, similarly, it commutes when precomposed with
$\varpi_2$
and
$\varpi_3$
. Thus, (A1) commutes. Hence, D is a category enriched in n-precategories. The operation
$C \mapsto D$
can easily be extended to morphisms of
$(n{+}1)$
-precategories, giving a functor:
Conversely, given
$C \in (\mathbf{PCat}_{n})-\mathbf{Cat}$
, we define an associated object
$D \in \mathbf{PCat}_{n+1}$
. We put
for
$i \in \{0,\ldots,n\}$
. In the following, given
$x,y \in C_0$
, we write
$\iota_{x,y} \colon C(x,y)_i \rightarrow D_{i+1}$
for the canonical coprojection. Given
$k \in \mathbb{N}$
with
$k\le n$
,
$\iota_{x,y}(u)\in D_{k+1}$
and
$\epsilon \in \{-,+\}$
, we put
\begin{equation*} \partial^{\epsilon}_k(\iota_{x,y}(u)) = \begin{cases} x & \text{if $k = 0$ and $\epsilon = -$,} \\ y & \text{if $k = 0$ and $\epsilon = +$,} \\ \iota_{x,y}(\partial^{\epsilon}_{k-1}(u)) & \text{if $k > 0$,} \end{cases} \end{equation*}
so that the operations
$\partial^-,\partial^+$
equips D with a structure of
$(n{+}1)$
-globular set. Given
$x \in D_0$
, we put
and, given
$k \in \mathbb{N}$
with
$k \le n-1$
and
$\iota_{x,y}(u) \in D_{k+1}$
, we put
Given
$i,{k_1},{k_2} \in \{0,\ldots,n\}$
with
$i = \min\!({k_1},{k_2}) - 1$
, and
$u = \iota_{x,y}(\tilde u) \in D_{k_1},v = \iota_{x',y'}(\tilde v) \in D_{k_2}$
that are i-composable, we put
\begin{equation*} u \ast_i v = \begin{cases} \iota_{x,y}({\tilde u} \ast_i {\tilde v}) & \text{if $i > 0$} \\ \iota_{x,y'}(l_{x,y,y'}({\tilde u}, \text{id}^{k_1 - 1}_{\tilde v})) & \text{if $i = 0$ and ${k_2} = 1$} \\ \iota_{x,y'}(r_{x,y,y'}(\text{id}^{k_2 - 1}_{\tilde u},{\tilde v})) & \text{if $i = 0$ and ${k_1} = 1$} \end{cases} \end{equation*}
where
$l_{x,y,z}$
is the composite:
and
$r_{x,y,z}$
is the composite;
We now have to show that the axioms of
$(n{+}1)$
-precategories are satisfied. Note that, by the definition of D, it is enough to prove the axioms for the
$\text{id}^{1}$
and
$\ast_0$
operations. Given
$x \in D_0$
and
$\epsilon \in \{-,+\}$
, we have
so that Axiom (i) holds. For
$k \in \{1,\ldots,n+1\}$
, given
$u = \iota_{x,y}(\tilde u) \in D_k$
and
$v = \iota_{y,z}({\tilde v}) \in D_1$
such that u,v are 0-composable, if
$k = 1$
, then
and, similarly,
$\partial^+_0(u \ast_0 v) = z$
. Otherwise, if
$k > 1$
, then, for
$\epsilon \in \{-,+\}$
,
\begin{align*} \partial^{\epsilon}_{k-1}(u \ast_0 v) &= \partial^{\epsilon}_{k-1}(\iota_{x,z}(l_{x,y,z}(\tilde u, \text{id}^{k-1}_{\tilde v}))) \\ &= \iota_{x,z}(\partial^{\epsilon}_{k-2}(l_{x,y,z}(\tilde u, \text{id}^{k-1}_{\tilde v}))) \\ &= \iota_{x,z}(l_{x,y,z}(\partial^{\epsilon}_{k-2}(\tilde u), \text{id}^{k-2}_{\tilde v})) \\ &= \iota_{x,y}(\partial^{\epsilon}_{k-2}(\tilde u)) \ast_0 \iota_{y,z}(\tilde v) \\ &= \partial^{\epsilon}_{k-1}(u) \ast_0 v. \end{align*}
Analogous equalities are satisfied for 0-composable
$u \in D_1$
and
$v \in D_k$
so that Axiom (ii) holds. Given
$k \in \{1,\ldots,n+1\}$
and
$u = \iota_{x,y}(\tilde u) \in D_k$
, we have

Moreover, given
$k \in \{1,\ldots,n\}$
and 0-composable
$u = \iota_{x,y}(\tilde u) \in D_1$
and
$v = \iota_{y,z}(\tilde v) \in D_k$
, we have
\begin{align*} u \ast_0 \text{id}^{k+1}_v &= \iota_{x,z}(r_{x,y,z}( \text{id}^{k}_{\tilde u}, \text{id}^{k}_{\tilde v})) \\ &= \iota_{x,z}(\text{id}^{k}(r_{x,y,z}(\text{id}^{k-1}_{\tilde u},\tilde v))) \\ &= \text{id}^{k+1}(\iota_{x,z}(r_{x,y,z}( \text{id}^{k-1}_{\tilde u},\tilde v))) \\ &= \text{id}^{k+1}_{u \ast_0 v}{.} \end{align*}
Analogous equalities hold when composing with identities on the left so that Axiom (iii) holds. Given
$k \in \{1,\ldots,n+1\}$
and 0-composable
$u_1 = \iota_{w,x}(\tilde u_1) \in D_k$
,
$u_2 = \iota_{x,y}(\tilde u_2) \in D_1$
and
$u_3 = \iota_{y,z}(\tilde u_3) \in D_1$
, we have
Writing
$C^1,C^2,C^3$
for C(w,x),C(x,y),C(y,z), we compute that

Thus,

and similar equalities can be shown for
$(u_1,u_2,u_3) \in (D_1 \times_0 D_k \times_0 D_1) \sqcup (D_1 \times_0 D_1 \times_0 D_k)$
, so that Axiom (iv) holds. Finally, for
$i,k_1,k_2,k \in \{1,\ldots,n+1\}$
such that
$i = \min\!(k_1,k_2) - 1$
,
$k = \max(k_1,k_2)$
, given
$u = \iota_{x,y}(\tilde u) \in D_1$
and i-composable
$v_1 = \iota_{y,z}(\tilde v_1) \in D_{k_1}, v_2 = \iota_{y,z}(\tilde v_2) \in D_{k_2}$
, we have
\begin{align*} u \ast_0 (v_1 \ast_i v_2) &= u \ast_0 \iota_{y,z}(\tilde v_1 \ast_{i-1} \tilde v_2) \\ &= \iota_{x,z}\left(r_{x,y,z}\left(\text{id}^{k-1}_u,\tilde v_1 \ast_{i-1} \tilde v_2\right)\right) \\&= \iota_{x,z}\left(r_{x,y,z}\left( \text{id}^{k_1-1}_u \ast_{i-1} \text{id}^{k_2-1}_u,\tilde v_1 \ast_{i-1} \tilde v_2\right)\right) \\ &= \iota_{x,z}\left(r_{x,y,z}\left( \text{id}^{k_1-1}_u,\tilde v_1\right) \ast_{i-1}r_{x,y,z}\left( \text{id}^{k_2-1}_u,\tilde v_2\right)\right) \\ &= \iota_{x,z}\left(r_{x,y,z}\left( \text{id}^{k_1-1}_u,\tilde v_1\right)\right) \ast_{i} \iota_{x,z}\left(r_{x,y,z}\left( \text{id}^{k_2-1}_u,\tilde v_2\right)\right) \\ &= (u \ast_0 v_1) \ast_{i} (u \ast_0 v_2) \end{align*}
and an analogous equality can be shown for
$((u_1,u_2),v) \in ((D_{k_1} \times_i D_{k_2}) \times_0 D_1)$
so that Axiom (v) holds. Hence, D is an
$(n{+}1)$
-precategory. The construction
$C \mapsto D$
extends naturally to enriched functors, giving a functor
$G\colon (\mathbf{PCat}_{n})-\mathbf{Cat} \rightarrow \mathbf{PCat}_{n+1}$
.
Given
$C \in \mathbf{PCat}_{n+1}$
and
$C' = G \circ F(C)$
, there is a morphism
$\alpha_C \colon C \rightarrow C'$
which is the identity between
$C_0$
and
$C'_0$
and, for
$k \in \mathbb{N}$
with
$k\le n$
, maps
$u \in C_{k+1}$
to
$\iota_{x,y}(u)$
where
$x = \partial^-_0(u)$
and
$y = \partial^+_0(u)$
, and one can verify that it is an isomorphism which is natural in C.
Conversely, given
$C \in (\mathbf{PCat}_{n})-\mathbf{Cat}$
and
$C' = F \circ G (C)$
, there is a morphism
$\beta\colon C \rightarrow C'$
which is the identity between
$C_0$
and
$C'_0$
, and, for
$x,y \in C_0$
, maps
$u \in C(x,y)$
to
$\iota_{x,y}(u) \in C'(x,y)$
, and one can verify that it is an isomorphism which is natural in C. Hence, F is an equivalence of categories.
B. Gray presentations induce Gray categories
Until the end of this section, we suppose fixed a Gray presentation
$\textsf{P}$
. Our goal is to prove Theorem 3.3.2, that is, that
$\overline{\textsf{P}}$
is a lax Gray category. We start by the exchange law for 3-cells that we prove first on rewriting steps:
Lemma B.1. Given rewriting steps
$R_i\colon \phi_i \Rrightarrow \phi'_i \in \textsf{P}^*_3$
for
$i \in \{1,2\}$
, such that
$R_1,R_2$
are 1-composable, we have, in
$\overline{\textsf{P}}_3$
,
Proof. Let
$l_i,r_i \in \overline{\textsf{P}}_1$
,
$\lambda_i,\rho_i \in \overline{\textsf{P}}_2$
,
$A_i \in \textsf{P}_3$
such that
$R_i = \lambda_i {\ast}_0 (l_i {\ast}_0 A_i {\ast}_0 r_i) {\ast}_i \rho_i$
for
$i \in \{1,2\}$
, and
$\mu_i,\mu'_i\in \overline{\textsf{P}}_2$
such that
$A_i\colon \mu_i \Rrightarrow \mu_i'$
for
$i \in \{1,2\}$
. In
$\overline{\textsf{P}}_3$
, we have
\begin{align*}& (R_1 {\ast}_1 \phi_2) {\ast}_2 (\phi_1' {\ast}_1 R_2) \\ =\;&\lambda_1 \\ & {\ast}_1 [((l_1 {\ast}_0 A_1 {\ast}_0 r_1) {\ast}_1 \rho_1 {\ast}_1 \lambda_2 {\ast}_1 ( l_2 {\ast}_0 \mu_2 {\ast}_0 r_2) ) \\ & \phantom{{}{\ast}_1{}}{\ast}_2 ((l_1 {\ast}_0 \mu'_1 {\ast}_0 r_1) {\ast}_1 \rho_1 {\ast}_1 \lambda_2 {\ast}_1 ( l_2 {\ast}_0 A_2 {\ast}_0 r_2 ))] \\ & {\ast}_1 \rho_2 && \text{(by the axioms of precategories)}\\ =\;&\lambda_1 \\ & {\ast}_1 [((l_1 {\ast}_0 \mu_1 {\ast}_0 r_1) {\ast}_1 \rho_1 {\ast}_1 \lambda_2 {\ast}_1 ( l_2 {\ast}_0 A_2 {\ast}_0 r_2 ) ) \\ & \phantom{{}{\ast}_1{}}{\ast}_2 ((l_1 {\ast}_0 A_1 {\ast}_0 r_1) {\ast}_1 \rho_1 {\ast}_1 \lambda_2 {\ast}_1 ( l_2 {\ast}_0 \mu_2' {\ast}_0 r_2))] \\ & {\ast}_1 \rho_2 && \text{(by independence generator)}\\ &= (\phi_1 {\ast}_1 R_2) {\ast}_2 (R_1 {\ast}_1 \phi_2') &&\\[-30pt] \end{align*}
We can now conclude that the exchange law for 3-cells holds
Lemma B.2. Given
$F_i\colon \phi_i \Rrightarrow \phi_i' \in \overline{\textsf{P}}_3$
for
$i \in \{1,2\}$
such that
$F_1,F_2$
are 1-composable, we have, in
$\overline{\textsf{P}}_3$
,
Proof. As an element of
$\overline{\textsf{P}}_3$
,
$F_i$
can be written
$F_i = R_{i,1} {\ast}_2\cdots {\ast}_2 R_{i,k_i}$
where
for some
$k_{i} \in \mathbb{N}$
,
$\lambda_{i,j},\rho_{i,j} \in \overline{\textsf{P}}_2$
,
$l_{i,j},r_{i,j} \in \overline{\textsf{P}}_1$
,
$A_{i,j} \in \textsf{P}_3$
for
$1 \le j \le k_i$
, for
$i \in \{1,2\}$
. Note that
and
Then, by using Lemma B.1
$k_1 k_2$
times as expected to reorder the
$R_{1,j_1}$
’s after the
$R_{2,j_2}$
’s for
$1 \le j_i \le k_i$
for
$i \in \{1,2\}$
, we obtain that
We now prove the various conditions on
$X_{-,-}$
. First, a technical lemma:
Proposition B.3. Given
$f\in \textsf{P}^*_1$
,
$\phi,\psi \in \textsf{P}^*_2$
with
$f,\phi,\psi$
0-composable, there is a canonical isomorphism
and for all
, we have
Similarly, given
$\phi, \psi \in \textsf{P}^*_2$
and
$h\in \textsf{P}^*_1$
with
$\phi,\psi,h$
0-composable, we have a canonical isomorphism
and for all
, we have
Finally, given
$\phi,\psi \in \textsf{P}^*_2$
and
$g \in \textsf{P}^*_1$
with
$\phi,g,\psi$
0-composable, we have a canonical isomorphism
and for all
, we have
Proof. Let
$f\in \textsf{P}^*_1$
,
$\phi,\psi \in \textsf{P}^*_2$
with
$f,\phi,\psi$
0-composable and let
$r,s \ge 0$
,
$f_i,g_i \in \textsf{P}^*_1$
,
$\alpha_i \in \textsf{P}_2$
for
$i \in \{1,\ldots,r\}$
and
$f'_j,g'_j \in \textsf{P}^*_1$
,
$\alpha'_j \in \textsf{P}_2$
for
$j \in \{1,\ldots,s\}$
such that
and
By contemplating the definitions of
and
, we deduce a canonical isomorphism between them. Under this isomorphism, we easily verify that we have
$[w]_{f {\ast}_0 \phi,\psi} = f {\ast}_0 [w]_{\phi,\psi}$
for
. Now, given
, we have
\begin{align*} [\textsf{X}_{u,v}]_{f {\ast}_0 \phi,\psi} &= [u]_{f {\ast}_0 \phi,\psi} {\ast}_1 (f {\ast}_0 f_i {\ast}_0 X_{\alpha_i,g_i {\ast}_0 f_j,\alpha'_j} {\ast}_0 g_j) {\ast}_1 [v]_{f {\ast}_0 \phi,\psi} \\ &= f {\ast}_0 ([u]_{ \phi,\psi} {\ast}_1 (f_i {\ast}_0 X_{\alpha_i,g_i {\ast}_0 f_j,\alpha'_j} {\ast}_0 g_j) {\ast}_1 [v]_{\phi,\psi} ) \\ &= f {\ast}_0 [\textsf{X}_{u,v}]_{\phi,\psi}. \end{align*}
By functoriality of
$[-]_{f {\ast}_0 \phi,\psi}$
and
$[-]_{\phi,\psi}$
, we deduce that, for all
,
The two other properties are shown similarly.
We can now conclude the most simple properties of
$X_{-,-}$
:
Lemma B.4. Given
$\phi \colon f \Rightarrow f'\in \overline{\textsf{P}}_2$
and
$\psi\colon g \Rightarrow g' \in \overline{\textsf{P}}_2$
, we have the following equalities in
$\overline{\textsf{P}}_3$
:
-
(i)
when
$\phi,\psi$
are 0-composable, -
(ii)
$X_{l {\ast}_0 \phi,\psi} = l {\ast}_0 X_{\phi,\psi}$
for
$l \in \textsf{P}^*_1$
such that
$l,\phi,\psi$
are 0-composable,
-
(iii)
$X_{\phi {\ast}_0 m,\psi} = X_{\phi, m {\ast}_0 \psi}$
for
$m \in \textsf{P}^*_1$
such that
$\phi,m,\psi$
are 0-composable,
-
(iv)
$X_{\phi,\psi {\ast}_0 r} = X_{\phi,\psi} {\ast}_0 r$
for
$r \in \textsf{P}^*_1$
such that
$\phi,\psi,r$
are 0-composable.
Proof. (i) is clear, since both
$\textsf{X}_{\text{id}_{f},\psi}$
and
$\textsf{X}_{\phi,\text{id}_{g}}$
are identity paths on the unique 0-cells of
and
, respectively. (ii) is a consequence of Proposition B.3, since
$\textsf{X}_{f{\ast}_0\phi,\psi}$
is sent to
$\textsf{X}_{\phi,\psi}$
by the canonical isomorphism
. (iii) and (iv) follow similarly.
The last required properties on
$X_{-,-}$
are more difficult to prove. In fact, we need a proper coherence theorem showing that, for 0-composable
$\phi,\psi\in \overline{\textsf{P}}_2$
,
$X_{\phi,\psi} = [p]_{\phi,\psi}$
for all
parallel to
$\textsf{X}_{\phi,\psi}$
. We progressively introduce the necessary material to prove this fact below.
Given a word
, there is a function:
defined such that, for
$i \in \{1,\ldots,|\phi|\}$
, if
$w = w'\textsf{l}_iw''$
, then
. We have that the function
$\textsf{1}-\text{index}$
characterizes the existence of path in
, as in:
Lemma B.5. Given 0-composable
$\phi,\psi \in \textsf{P}^*_2$
and
, there is a path:
if and only if
$\textsf{1}-\text{index}_w(i) \le \textsf{1}-\text{index}_{w'}(i)$
for
$1 \le i \le |\phi|$
.
Proof. Given
, it is clear that
$\textsf{1}-\text{index}_{u \textsf{l}_r \textsf{r}_s v}(i) \le \textsf{1}-\text{index}_{u \textsf{r}_s \textsf{l}_r v}(i)$
for all
$1 \le i \le |\phi|$
, so that, given a path
, by induction on p, we have
$\textsf{1}-\text{index}_w(i) \le \textsf{1}-\text{index}_{w'}(i)$
for
$1 \le i \le |\phi|$
.
Conversely, given
such that
$\textsf{1}-\text{index}_w \le \textsf{1}-\text{index}_{w'}$
, we show by induction on N(w,w’) defined by:
that there is a path
. If
$N(w,w') = 0$
, then
$w = w'$
and
$\text{1}_{w}\colon w \rightarrow w'$
is a suitable path. Otherwise, let
$i_{\max}$
be the largest
$i \le |\phi|$
such that
$\textsf{1}-\text{index}_{w'}(i) > \textsf{1}-\text{index}_w(i)$
. Then, either
$i_{\max} = |\phi|$
or
$\textsf{1}-\text{index}_w(i_{\max}) + 1 < \textsf{1}-\text{index}_w(i_{\max} + 1)$
since
\begin{align*} \textsf{1}-\text{index}_w(i_{\max}) + 1 &\le \textsf{1}-\text{index}_{w'}(i_{\max}) \\ & < \textsf{1}-\text{index}_{w'}(i_{\max} + 1) \\ &= \textsf{1}-\text{index}_w(i_{\max} + 1) \end{align*}
So we can write
$w = u \textsf{l}_{i_{\max}} \textsf{r}_j v$
for some words u,v and
$j \in \{1,\ldots,|\psi|\}$
. We have a path generator
where
$\tilde w = u \textsf{r}_j \textsf{l}_{i_{\max}} v$
. Then,
\begin{equation*} \textsf{1}-\text{index}_{\tilde w}(i) = \begin{cases} \textsf{1}-\text{index}_w(i) & \text{if $i \neq i_{\max}$} \\ \textsf{1}-\text{index}_w(i_{\max}) + 1 & \text{if $i = i_{\max}$} \end{cases} \end{equation*}
so
$\textsf{1}-\text{index}{\tilde w} \le \textsf{1}-\text{index} {w'}$
and
$N(\tilde w,w') < N(w,w')$
. Thus, by induction, we get

and we build a path
as wanted.
Given 0-composable
$\phi,\psi \in \textsf{P}^*_2$
and
, we define Inv(w) as
We have that Inv characterizes the length of the paths of
, as in:
Lemma B.6. Given 0-composable
$\phi,\psi \in \textsf{P}^*_2$
and
, we have
In particular, given
, all the paths
have the same length.
Proof. We show this by induction on the length of p. If
$p = \text{id}_{w}$
, then the conclusion holds. Otherwise,
$p = \textsf{X}_{u,u'}{\ast}_0 r$
for some
$u,u' \in \Sigma_{\phi,\psi}$
and
. Then, by induction hypothesis,
$|r| = Inv(w') - Inv(\tilde w)$
. Note that, by the definition of
$\textsf{X}_{u,u'}$
,
$w = u \textsf{l}_i \textsf{r}_j u'$
and
$\tilde w = u \textsf{r}_j\textsf{l}_i r$
for some
$i \in \{1,\ldots,|\phi|\}$
and
$j \in \{1,\ldots,|\psi|\}$
. Hence,
Given 0-composable
$\phi,\psi \in\textsf{P}^*_2$
, we now prove the following coherence property for
:
Lemma B.7. Let
$\approx$
be a congruence on
. Suppose that, for all words
$u_1,u_2,u_3 \in \Sigma_{\phi,\psi}$
,
$i,i' \in \{1,\ldots,|\phi|\}$
and
$j,j' \in \{1,\ldots,|\psi|\}$
such that
, we have

then, for all
, we have
$p_1 \approx p_2$
.
Proof. We prove this by induction on
$|p_1|$
. By Lemma B.6, we have
$|p_1| = |p_2|$
. In particular, if
$p_1 = \text{id}_{v}$
, then
$p_2 = \text{id}_{v}$
. Otherwise,
$p_i = q_i {\ast}_0 r_i$
with
$q_i\colon v \rightarrow v_i$
and
$r_i\colon v_i \rightarrow w$
and
$|q_i| = 1$
for
$i \in \{1,2\}$
. If
$q_1 = q_2$
, then we conclude with the induction hypothesis on
$r_1$
and
$r_2$
. Otherwise, up to symmetry, we have
$q_1 = \textsf{X}_{u_1,u_2 \textsf{l}_{i'}\textsf{r}_{j'} u_3}$
and
$q_2=\textsf{X}_{u_1 \textsf{l}_i\textsf{r}_j u_2, u_3}$
for some
$u_1,u_2,u_3 \in \Sigma^*_{\phi,\psi}$
,
$i,i' \in \{1,\ldots,|\phi|\}$
and
$j,j' \in \{1,\ldots,|\psi|\}$
. Let
Since we have a path
, by Lemma B.5, we have
$\textsf{1}-\text{index}_v(s) \le \textsf{1}-\text{index}_w(s)$
for
$s \in \{1,\ldots,|\phi|\}$
. Moreover,
Also, for
$s \in \{1,\ldots,|\phi|\}$
,
\begin{equation*} \textsf{1}-\text{index}_{v'}(s) = \begin{cases} \textsf{1}-\text{index}_v(s) + 1 & \text{if $s \in \{i,i'\}$,} \\ \textsf{1}-\text{index}_v(s) & \text{otherwise.} \end{cases} \end{equation*}
From the preceding properties, we deduce that
$\textsf{1}-\text{index}_{v'}(s) \le \textsf{1}-\text{index}_w(s)$
for
$s \in \{1,\ldots,|\phi|\}$
. Thus, by Lemma B.5, there is a path
as in
Since
$|r_i| = |p_i| - 1$
for
$i \in \{1,2\}$
, by induction hypothesis, we have
$r_i \approx q_i' {\ast}_0 r'$
for
$i \in \{1,2\}$
, which can be extended to
$q_i {\ast}_0 r_i \approx q_i {\ast}_0 q_i' {\ast}_0 r'$
, since
$\approx$
is a congruence. By hypothesis, we have
$q_1 {\ast}_0 q_1' \approx q_2 {\ast}_0 q_2'$
, which can be extended to
$q_1 {\ast}_0 q_1' {\ast}_0 r' \approx q_2 {\ast}_0 q_2' {\ast}_0 r'$
. By transitivity of
$\approx$
, we get that
$q_1 {\ast}_0 r_1 \approx q_2 {\ast}_0 r_2$
, that is,
$p_1 \approx p_2$
.
We then apply this coherence property to
$[-]_{-,-}$
and get that “all exchange methods are equivalent,” as in:
Proposition B.8. Given 0-composable
$\phi,\psi \in \overline{\textsf{P}}_2$
, for all
, we have, in
$\overline{\textsf{P}}_3$
,
Proof. By Lemma B.2, for all words
$u_1,u_2,u_3 \in \Sigma_{\phi,\psi}$
,
$i,i' \in \{1,\ldots,|\phi|\}$
and
$j,j' \in \{1,\ldots,|\psi|\}$
such that
, we have
Moreover, the relation
$\approx$
defined on parallel
by
$p_1 \approx p_2$
when
$[p_1]_{\phi,\psi} = [p_2]_{\phi,\psi}$
is clearly a congruence. Hence, by Lemma B.7, we have that
$[p_1]_{\phi,\psi} = [p_2]_{\phi,\psi}$
for all parallel
.
The preceding property says in particular that
$X_{\phi,\psi} =[p]_{\phi,\psi}$
for all 0-composable
$\phi,\psi \in \textsf{P}^*_2$
and paths
parallel to
$\textsf{X}_{\phi,\psi}$
.
Let
$\phi,\psi \in \textsf{P}^*_2$
be 0-composable 2-cells, and
$\phi',\psi'\in \textsf{P}^*_2$
be 0-composable 2-cells such that
$\phi,\phi'$
and
$\psi,\psi'$
are 1-composable. To obtain the last required properties on
$X_{-,-}$
, we need to relate
. Given
, there is a functor:

which is uniquely defined by the mappings:
for
and
and where, for
$v = v_1\ldots v_k \in \Sigma^*_{\phi',\psi'}$
,
${\uparrow}(v) \in \Sigma^*_{\phi{\ast}_1\phi',\psi{\ast}_1\psi'}$
is defined by:
\begin{equation*} {\uparrow}(v)_r = \begin{cases} \textsf{l}_{|\phi| + i} & \text{if $v_r = \textsf{l}_i$ for some $i \in \{1,\ldots,|\phi'|\}$} \\ \textsf{r}_{|\psi| + j} & \text{if $v_r = \textsf{r}_j$ for some $j \in \{1,\ldots,|\psi'|\}$} \end{cases}\end{equation*}
for
$r \in \{1,\ldots,k\}$
. Similarly, given
, there is a functor:
which is uniquely defined by the mappings:
for
and where
${\uparrow}(\!-\!)$
is defined as above.
The functors
$w{\cdot}(\!-\!)$
and
$(\!-\!){\cdot} w$
satisfy the following compatibility property:
Lemma B.9. Let
$\phi,\psi \in \textsf{P}^*_2$
be 0-composable 2-cells, and
$\phi',\psi' \in \textsf{P}^*_2$
be 0-composable 2-cells such that
$\phi,\phi'$
and
$\psi,\psi'$
are 1-composable. Given
, we have the following equalities in
$\textsf{P}^*_3$
:
-
(i)
$[w {\cdot} (u)]_{\phi{\ast}_1\phi',\psi{\ast}_1\psi'} = [w]_{\phi,\psi} {\ast}_1 [u]_{\phi',\psi'}$
for
, -
(ii)
$[w {\cdot}(p)]_{\phi{\ast}_1\phi',\psi{\ast}_1\psi'} = [w]_{\phi,\psi} {\ast}_1 [p]_{\phi',\psi'}$
for
.
Similarly, given
, we have:
-
1.
$[(u){\cdot} w]_{\phi{\ast}_1\phi',\psi{\ast}_1\psi'} = [u]_{\phi,\psi} {\ast}_1 [w]_{\phi',\psi'}$
for
, -
2.
$[(p) {\cdot} w]_{\phi{\ast}_1\phi',\psi{\ast}_1\psi'} = [p]_{\phi,\psi} {\ast}_1 [w]_{\phi',\psi'}$
for
.
Proof. We only prove the first part, since the second part is similar. We start by (i). We have
$[w{\cdot}(u)]_{\phi{\ast}_1\phi',\psi{\ast}_1\psi'} = [w{\uparrow}(u)]^{1,1}_{\phi{\ast}_1\phi',\psi{\ast}_1\psi'}$
. By a simple induction on w, we obtain
and, by other simple inductions on w and u, we get
so that (i) holds.
For (ii), by induction on p, it is sufficient to prove the equality for
. Let
$m = |\phi|$
,
$n = |\psi|$
, and
be the unique decomposition of
$\phi$
and
$\psi$
, respectively, for some
$e_i,f_i,g_j,h_j \in \textsf{P}^*_1$
and
$\alpha_i,\beta_j \in \textsf{P}_2$
for
$i \in \{1,\ldots,m\}$
and
$j\in \{1,\ldots,n\}$
. We then have
\begin{align*} [w{\cdot}(\textsf{X}_{u_1,u_2})]_{\phi{\ast}_1\phi',\psi{\ast}_1\psi'} &= [\textsf{X}_{w{\uparrow}(u_1),{\uparrow}(u_2)}]_{\phi{\ast}_1\phi',\psi{\ast}_1\psi'} \\ &= [w{\uparrow}(u_1)]^{1,1}_{\phi{\ast}_1\phi',\psi{\ast}_1\psi'}{\ast}_1(e_i {\ast}_0X_{\alpha_i,f_i{\ast}_0g_j,\beta_j}{\ast}_0h_j) {\ast}_1[{\uparrow}(u_2)]^{k_l,k_r}_{\phi{\ast}_1\phi',\psi{\ast}_1\psi'} \end{align*}
where i,j are such that
and
By simple inductions, we obtain
\begin{align*} [w{\uparrow}(u_1)]^{1,1}_{\phi{\ast}_1\phi',\psi{\ast}_1\psi'} &=[w]^{1,1}_{\phi{\ast}_1\phi',\psi{\ast}_1\psi'}{\ast}_1[{\uparrow}(u_1)]^{|\phi|,|\psi|}_{\phi{\ast}_1\phi',\psi{\ast}_1\psi'} \\ &=[w]^{1,1}_{\phi,\psi}{\ast}_1[u_1]^{1,1}_{\phi',\psi'} \\ &=[w]_{\phi,\psi}{\ast}_1[u_1]^{1,1}_{\phi',\psi'} \end{align*}
and
so that
\begin{align*} [w{\cdot}(\textsf{X}_{u_1,u_2})]_{\phi{\ast}_1\phi',\psi{\ast}_1\psi'} &=[w]_{\phi,\psi}{\ast}_1[u_1]^{1,1}_{\phi',\psi'} {\ast}_1(e_i {\ast}_0X_{\alpha_i,f_i{\ast}_0g_j,\beta_j}{\ast}_0h_j) {\ast}_1[u_2]^{i+1,j+1}_{\phi',\psi'} \\ &= [w]_{\phi,\psi} {\ast}_1 [\textsf{X}_{u_1,u_2}]_{\phi',\psi'}.\\[-30pt] \end{align*}
We can now conclude the last required properties on
$X_{-,-}$
:
Lemma B.10. Given 1-composable
$\phi,\phi' \in \overline{\textsf{P}}_2$
, 1-composable
$\psi,\psi' \in \overline{\textsf{P}}_2$
such that
$\phi,\psi$
are 0-composable, we have the following equalities in
$\overline{\textsf{P}}_3$
:
and
Proof. We only prove the first equality, since the second one is similar. By definition of
$X_{\phi{\ast}_1\phi',\psi}$
, we have
$X_{\phi{\ast}_1\phi',\psi} = [\textsf{X}_{\phi{\ast}_1\phi',\psi}]_{\phi{\ast}_1\phi',\psi}$
. Moreover, by Proposition B.8,
$[\textsf{X}_{\phi{\ast}_1\phi',\psi}]_{\phi{\ast}_1\phi',\psi} = [p]_{\phi{\ast}_1\phi',\psi}$
in
$\overline{\textsf{P}}_3$
for all path
parallel to
$\textsf{X}_{\phi{\ast}_1\phi',\psi}$
. In particular,
where
are the only 0-cells of
, respectively. Thus,

- Hence,
We now prove the compatibility between 3-cells and interchangers. We start by proving the compatibility with 3-generators:
Lemma B.11. Given
$A\colon \phi \Rrightarrow \phi'\colon f \Rightarrow f' \in \textsf{P}_3$
and
$\psi\colon g \Rightarrow g' \in \overline{\textsf{P}}_2$
such that
$A,\psi$
are 0-composable, we have, in
$\overline{\textsf{P}}_3$
,
Similarly, given
$\phi\colon f\Rightarrow f' \in \overline{\textsf{P}}_2$
and
$B\colon \psi\Rrightarrow\psi'\colon g\Rightarrow g'$
such that
$\phi,B$
are 0-composable, we have, in
$\overline{\textsf{P}}$
,
Proof. We only prove the first part of the property, since the other one is symmetric, and we do so by an induction on
$|\psi|$
. If
$|\psi| = 0$
,
$\psi$
is an identity and the result follows. Otherwise,
$\psi = w {\ast}_1 \tilde\psi$
where
$w = (l {\ast}_0 \alpha {\ast}_0 r)$
with
$l,r \in \overline{\textsf{P}}_1$
,
$\alpha\colon h \Rightarrow h' \in \textsf{P}_2$
and
$\tilde\psi \in \overline{\textsf{P}}_2$
with
$|\tilde\psi| = |\psi|-1$
. Let
$\tilde g = \partial^+_1(w)$
. By Lemma B.10, we have
Also, by Lemma B.4(i), we have
so that
\begin{equation} \begin{aligned}[c] & ((A {\ast}_0 g) {\ast}_1 (f' {\ast}_0 w)) {\ast}_2 X_{\phi',w} \\ =\; & \left[((A {\ast}_0 l {\ast}_0 h) {\ast}_1 (f' {\ast}_0 l {\ast}_0 \alpha)) {\ast}_2 X_{\phi',l {\ast}_0 \alpha}\right] {\ast}_0 r \\ =\; & \left[X_{\phi,l {\ast}_0 \alpha} {\ast}_2 ((f {\ast}_0 l {\ast}_0 \alpha) {\ast}_1 (A {\ast}_0 l {\ast}_0 h'))\right] {\ast}_0 r \\ & \text{(by interchange naturality generator)} \\ =\; & X_{\phi,w} {\ast}_2 ((f {\ast}_0 w) {\ast}_1 (A {\ast}_0 g')). \end{aligned} \end{equation}
Thus,
\begin{align*} & ((A {\ast}_0 g) {\ast}_1 (f' {\ast}_0 \psi)) {\ast}_2 X_{\phi',\psi} \\ =\; & ((A {\ast}_0 g) {\ast}_1 (f' {\ast}_0 w) {\ast}_1 (f' {\ast}_0 \tilde\psi)) \\ & {\ast}_2 (X_{\phi',w} {\ast}_1 (f'{\ast}_0 \tilde\psi)) {\ast}_2 ((f {\ast}_0 w) {\ast}_1 X_{\phi',\tilde\psi}) && \text{(by (B2))}\\ =\; & \left[ ( ((A {\ast}_0 g) {\ast}_1 (f' {\ast}_0 w) ) {\ast}_2 X_{\phi',w} ) {\ast}_1 (f'{\ast}_0 \tilde\psi)\right] \\ & {\ast}_2 ((f {\ast}_0 w) {\ast}_1 X_{\phi',\tilde\psi}) \\ =\; & \left[ ( X_{\phi,w} {\ast}_2 ((f {\ast}_0 w) {\ast}_1 (A {\ast}_0 \tilde g) ) ) {\ast}_1 (f'{\ast}_0 \tilde\psi)\right] \\ & {\ast}_2 ((f {\ast}_0 w) {\ast}_1 X_{\phi',\tilde\psi}) && \text{(by (B4))}\\ =\; & ( X_{\phi,w} {\ast}_1 (f'{\ast}_0 \tilde\psi)) \\ & {\ast}_2 ((f {\ast}_0 w) {\ast}_1 (A {\ast}_0 \tilde g) {\ast}_1 (f'{\ast}_0 \tilde\psi)){\ast}_2 ((f {\ast}_0 w) {\ast}_1 X_{\phi',\tilde\psi}) \\ =\; & ( X_{\phi,w} {\ast}_1 (f'{\ast}_0 \tilde\psi)) \\ & {\ast}_2 \left[ (f {\ast}_0 w) {\ast}_1 (((A {\ast}_0 \tilde g) {\ast}_1 (f'{\ast}_0 \tilde\psi)){\ast}_2 X_{\phi',\tilde\psi}) \right]\\ =\; & ( X_{\phi,w} {\ast}_1 (f'{\ast}_0 \tilde\psi)) \\ & {\ast}_2 \left[ (f {\ast}_0 w) {\ast}_1 (X_{\phi',\tilde\psi} {\ast}_2 ((f{\ast}_0 \tilde\psi) {\ast}_1 (A {\ast}_0 g'))) \right] && \text{(by induction)}\\ =\; & ( X_{\phi,w} {\ast}_1 (f'{\ast}_0 \tilde\psi)) {\ast}_2 ((f {\ast}_0 w) {\ast}_1 (X_{\phi',\tilde\psi})) \\ & {\ast}_2 ((f {\ast}_0 w) {\ast}_1 (f{\ast}_0 \tilde\psi) {\ast}_1 (A {\ast}_0 g')) \\ =\; & X_{\phi,\psi} {\ast}_2 ((f {\ast}_0 \psi) {\ast}_1 (A {\ast}_0 g')) && \text{(by (B1))}.\\[-33pt] \end{align*}
Next, we prove the compatibility between interchangers and rewriting steps:
Lemma B.12. Given a rewriting step
$R\colon \phi\Rrightarrow\phi'\colon f\Rightarrow f' \in \textsf{P}^*_3$
with
$R = \lambda {\ast}_1 (l {\ast}_0 A {\ast}_0 r) {\ast}_1 \rho$
for some
$l,r \in \textsf{P}^*_1$
,
$\lambda,\rho \in \textsf{P}^*_2$
,
$A\colon \mu \Rrightarrow \mu' \in \textsf{P}_3$
, and
$\psi\colon g\Rightarrow g'\in \textsf{P}^*_2$
such that
$R,\psi$
are 0-composable, we have, in
$\overline{\textsf{P}}_3$
, B
Similarly, given
$\phi \in \textsf{P}^*_2$
and a rewriting step
$S\colon \psi\Rrightarrow\psi'\colon g\Rightarrow g'\in \textsf{P}^*_3$
with
$S = \lambda {\ast}_1 (l {\ast}_0 B {\ast}_0 r) {\ast}_1 \rho$
for some
$\lambda,\rho \in \textsf{P}^*_2$
,
$l,r \in \textsf{P}^*_1$
,
$B\colon \nu \Rrightarrow \nu' \in \textsf{P}_3$
such that
$\phi,S$
are 0-composable, we have, in
$\overline{\textsf{P}}_3$
,
Proof. By symmetry, we only prove the first part. Let
\begin{align*} \tilde \mu &= l {\ast}_0 \mu {\ast}_0 r & h &= \partial^-_1(\mu) & \tilde h &= \partial^-_1(\tilde \mu) \\ \tilde \mu' &= l {\ast}_0 \mu' {\ast}_0 r & h' &= \partial^+_1(\mu') & \tilde h' &= \partial^+_1(\tilde \mu) \end{align*}
We have
and, by Lemma B.10,
\begin{equation} \begin{aligned} X_{\phi,\psi} =\; & (((\lambda {\ast}_1 \tilde \mu) {\ast}_0 g) {\ast}_1 X_{\rho,\psi}) \\ &{\ast}_2 (((\lambda {\ast}_0 g) {\ast}_1 X_{\tilde \mu,\psi} {\ast}_1 (\rho {\ast}_0 g'))) \\ &{\ast}_2 ((X_{\lambda,\psi} {\ast}_1 ((\tilde \mu {\ast}_1 \rho) {\ast}_0 g'))) \end{aligned} \end{equation}
\begin{equation} \begin{aligned} X_{\phi',\psi} =\; & (((\lambda {\ast}_1 \tilde \mu') {\ast}_0 g) {\ast}_1 X_{\rho,\psi}) \\ &{\ast}_2 (((\lambda {\ast}_0 g) {\ast}_1 X_{\tilde \mu',\psi} {\ast}_1 (\rho {\ast}_0 g'))) \\ &{\ast}_2 ((X_{\lambda,\psi} {\ast}_1 ((\tilde \mu' {\ast}_1 \rho) {\ast}_0 g'))). \end{aligned} \end{equation}
We start the calculation of the left-hand side of (B5), using (B7). We get
\begin{align*} & ((R {\ast}_0 g) {\ast}_1 (f' {\ast}_0 \psi)) {\ast}_2 (((\lambda {\ast}_1 \tilde \mu') {\ast}_0 g) {\ast}_1 X_{\rho,\psi}) \\ =\;& (\lambda {\ast}_0 g) \\ & {\ast}_1 \Big[((l {\ast}_0 A {\ast}_0 r {\ast}_0 g) {\ast}_1 (\rho {\ast}_0 g) {\ast}_1 (f' {\ast}_0 \psi)) {\ast}_2 ((\mu'{\ast}_0 g) {\ast}_1 X_{\rho,\psi} ) \Big] \\ =\;&(\lambda {\ast}_0 g) \\ & {\ast}_1 \Big[((\mu {\ast}_0 g) {\ast}_1 X_{\rho,\psi} ) {\ast}_2 ((l {\ast}_0 A {\ast}_0 r {\ast}_0 g) {\ast}_1 (\tilde h' {\ast}_0 \psi) {\ast}_1 (\rho {\ast}_0 g'))\Big] && \text{(by Lemma B.2)} \\ =\;&((\lambda {\ast}_0 g) {\ast}_1 (\tilde \mu {\ast}_0 g) {\ast}_1 X_{\rho,\psi} ) \\ &{\ast}_2 ((\lambda {\ast}_0 g) {\ast}_1 (l {\ast}_0 A {\ast}_0 r {\ast}_0 g) {\ast}_1 (\tilde h' {\ast}_0 \psi) {\ast}_1 (\rho {\ast}_0 g')). \end{align*}
Symmetrically, we do a step of calculation for the right-hand side of (B5), using (B6). We get
\begin{align*} & (X_{\lambda,\psi} {\ast}_1 ((\tilde \mu {\ast}_1 \rho) {\ast}_0 g')) {\ast}_2 ((f {\ast}_0 \psi) {\ast}_1 (R {\ast}_0 g')) \\ =\; & ((\lambda {\ast}_0 g) {\ast}_1 (\tilde h {\ast}_0 \psi) {\ast}_1 (l {\ast}_0 A {\ast}_0 r {\ast}_0 g') {\ast}_1 (\rho {\ast}_0 g')) \\ &{\ast}_2 (X_{\lambda,\psi} {\ast}_1 (\tilde \mu' {\ast}_0 g') {\ast}_1 (\rho {\ast}_0 g') ). \end{align*}
Finally, we do the last step of calculation between the left-hand side and the right-hand side of (B5). Note that
\begin{align*} & ((l {\ast}_0 A {\ast}_0 r {\ast}_0 g) {\ast}_1 (\tilde h' {\ast}_0 \psi)) {\ast}_2 X_{\tilde \mu',\psi} \\ =\; & l {\ast}_0 (((A {\ast}_0 r {\ast}_0 g) {\ast}_1 (h' {\ast}_0 r {\ast}_0 \psi)) {\ast}_2 X_{\mu' {\ast}_0 r,\psi}) && \text{(by Lemma B.4(ii))} \\ =\; & l {\ast}_0 (((A {\ast}_0 r {\ast}_0 g) {\ast}_1 (h' {\ast}_0 r {\ast}_0 \psi)) {\ast}_2 X_{\mu',r {\ast}_0 \psi}) && \text{(by Lemma B.4(iii))} \\ =\; & l {\ast}_0 (X_{\mu,r {\ast}_0 \psi} {\ast}_2 ((h {\ast}_0 r {\ast}_0 \psi) {\ast}_1 (A {\ast}_0 r {\ast}_0 g'))) && \text{(by Lemma B.11)}\\ =\; &l {\ast}_0 (X_{\mu {\ast}_0 r,\psi} {\ast}_2 ((h {\ast}_0 r {\ast}_0 \psi) {\ast}_1 (A {\ast}_0 r {\ast}_0 g'))) && \text{(by Lemma B.4(iii))} \\ =\; &X_{\tilde \mu,\psi} {\ast}_2 ((\tilde h {\ast}_0 \psi) {\ast}_1 (l {\ast}_0 A {\ast}_0 r {\ast}_0 g')) && \text{(by Lemma B.4(ii))} \end{align*}
so that
\begin{align*} &((\lambda {\ast}_0 g) {\ast}_1 (l {\ast}_0 A {\ast}_0 r {\ast}_0 g) {\ast}_1 (\tilde h' {\ast}_0 \psi) {\ast}_1 (\rho {\ast}_0 g')) {\ast}_2 ((\lambda {\ast}_0 g) {\ast}_1 X_{\tilde \mu',\psi} {\ast}_1 (\rho {\ast}_0 g')) \\ =\; &(\lambda {\ast}_0 g) {\ast}_1 \left[ ((l {\ast}_0 A {\ast}_0 r {\ast}_0 g) {\ast}_1 (\tilde h' {\ast}_0 \psi)) {\ast}_2 X_{\tilde \mu',\psi}\right] {\ast}_1 (\rho {\ast}_0 g') \\ =\; &(\lambda {\ast}_0 g) {\ast}_1 \left[ X_{\tilde \mu,\psi} {\ast}_2 ((\tilde h {\ast}_0 \psi) {\ast}_1 (l {\ast}_0 A {\ast}_0 r {\ast}_0 g'))\right] {\ast}_1 (\rho {\ast}_0 g') \\ =\; &((\lambda {\ast}_0 g) {\ast}_1 X_{\tilde \mu,\psi} {\ast}_1 (\rho {\ast}_0 g')){\ast}_2 ((\lambda {\ast}_0 g) {\ast}_1 (\tilde h {\ast}_0 \psi) {\ast}_1 (l {\ast}_0 A {\ast}_0 r {\ast}_0 g') {\ast}_1 (\rho {\ast}_0 g')). \end{align*}
By combining the previous equations, we obtain
\begin{align*} & ((R {\ast}_0 g) {\ast}_1 (f' {\ast}_0 \psi)) {\ast}_2 X_{\phi',\psi} \\ =\; & ((\lambda {\ast}_0 g) {\ast}_1 (l {\ast}_0 A {\ast}_0 r {\ast}_0 g) {\ast}_1 (\rho {\ast}_0 g){\ast}_1 (f' {\ast}_0 \psi)) \\ & {\ast}_2 (((\lambda {\ast}_1 \tilde \mu') {\ast}_0 g) {\ast}_1 X_{\rho,\psi}) \\ &{\ast}_2 (((\lambda {\ast}_0 g) {\ast}_1 X_{\tilde \mu',\psi} {\ast}_1 (\rho {\ast}_0 g'))) \\ &{\ast}_2 ((X_{\lambda,\psi} {\ast}_1 ((\tilde \mu' {\ast}_1 \rho) {\ast}_0 g'))) \\ =\; & (((\lambda {\ast}_1 \tilde \mu) {\ast}_0 g) {\ast}_1 X_{\rho,\psi}) \\ &{\ast}_2 (((\lambda {\ast}_0 g) {\ast}_1 X_{\tilde \mu,\psi} {\ast}_1 (\rho {\ast}_0 g'))) \\ &{\ast}_2 ((X_{\lambda,\psi} {\ast}_1 ((\tilde \mu {\ast}_1 \rho) {\ast}_0 g'))) \\ & {\ast}_2 ((f {\ast}_0 \psi) {\ast}_1 (\lambda {\ast}_0 g) {\ast}_1 (l {\ast}_0 A {\ast}_0 r {\ast}_0 g) {\ast}_1 (\rho {\ast}_0 g)) \\ =\; & X_{\phi,\psi} {\ast}_2 ((f {\ast}_0 \psi) {\ast}_1 (R {\ast}_0 g')) \end{align*}
which is what we wanted.
We can deduce the complete compatibility between interchangers and 3-cells:
Lemma B.13. Given
$F\colon \phi \Rrightarrow \phi'\colon f \Rightarrow f' \in \overline{\textsf{P}}_3$
and
$\psi\colon g \Rightarrow g' \in \overline{\textsf{P}}_2$
such that
$F,\psi$
are 0-composable, we have
Similarly, given
$\phi\colon f \Rightarrow f' \in\overline{\textsf{P}}_2$
and
$G\colon \psi \Rrightarrow \psi'\colon g \Rightarrow g' \in \overline{\textsf{P}}_3$
such that
$\phi,G$
are 0-composable, we have
Proof. Remember that each 3-cell
$\overline{\textsf{P}}$
can be written as a sequence of rewriting steps of
$\textsf{P}$
. By induction on the length of such a sequence defining F or G as in the statement, we conclude using Lemma B.12.
We can conclude that:
Theorem 3.3.2. Given a Gray presentation
$\textsf{P}$
, the presented precategory
$\overline{\textsf{P}}$
is canonically a lax Gray category.
C. Finiteness of critical branchings
In this section, we give a proof of Theorem 4.4.6, that is, that Gray presentations, under some reasonable conditions, have a finite number of critical branchings. Our proof is constructive so that we can extract a program to compute the critical branchings of such Gray presentations. First, we aim at showing that there is no critical branching
$(S_1,S_2)$
of a Gray presentation
$\textsf{P}$
where both inner 3-generators of
$S_1$
and
$S_2$
are interchange generators. We begin with a technical lemma for minimal and independent branchings:
Lemma C.1. Given a minimal local branching
$(S_1,S_2)$
of a Gray presentation
$\textsf{P}$
, with
and
$l_i,r_i \in \textsf{P}^*_1$
,
$\lambda_i,\rho_i \in \textsf{P}^*_2$
,
$A_i \in \textsf{P}_3$
for
$i \in \{1,2\}$
, the followings hold:
-
(i) either
$\lambda_1$
or
$\lambda_2$
is an identity,
-
(ii) either
$\rho_1$
or
$\rho_2$
is an identity,
-
(iii)
$(S_1,S_2)$
is independent if and only if
\begin{equation*} |\partial^-_2(A_1)| + |\partial^-_2(A_2)| \le |\partial^-_2(S_1)| \qquad\text{and}\qquad |\lambda_1||\rho_1| = |\lambda_2||\rho_2| = 0. \end{equation*}
If
$(S_1,S_2)$
is moreover not independent:
-
(iv) either
$l_1$
or
$l_2$
is an identity,
-
(v) either
$r_1$
or
$r_2$
is an identity.
Proof. Suppose that neither
$\lambda_1$
nor
$\lambda_2$
are identities. Then, since
we have
$\lambda_i = w {\ast}_1 \lambda_i'$
for some
$w \in \textsf{P}^*_2$
and
$\lambda_i' \in \textsf{P}^*_2$
for
$i \in \{1,2\}$
, such that
$|w| \ge 1$
, contradicting the minimality of
$(S_1,S_2)$
. So either
$\lambda_1$
or
$\lambda_2$
is an identity and similarly for
$\rho_1$
and
$\rho_2$
, which concludes (i) and (ii).
By the definition of independent branching, the first implication of (iii) is trivial. For the converse, suppose that
$(S_1,S_2)$
is such that
We can suppose by symmetry that
$\lambda_1$
is a unit. Since
$|\partial^-_2(S_1)| = |\lambda_1| + |\partial^-_2(A_1)| + |\rho_1|$
, we have that
$|\partial^-_2(A_2)| \le |\rho_1|$
.
If
$|\rho_1| = 0$
, then
thus, since
$|\lambda_2||\rho_2| = 0$
, we have
In both cases,
$(S_1,S_2)$
is independent.
Otherwise,
$|\rho_1| > 0$
and, by (ii), we have
$|\rho_2| = 0$
so that
Since
$|\partial^-_2(A_2)| \le |\rho_1|$
, we have
$\rho_1 = \chi {\ast}_1 (l_2 {\ast}_0 \partial^-_2(A_2) {\ast}_0 r_2)$
for some
$\chi \in \textsf{P}^*_2$
and, since
$\partial^-_2(S_1) = \partial^-_2(S_2)$
, we get
So
$\lambda_2 = (l_1 {\ast}_0 \partial^-_2(A_1) {\ast}_0 r_1) {\ast}_1 \chi$
and hence
$(S_1,S_2)$
is an independent branching, which concludes the proof of (iii).
Finally, suppose that
$(S_1,S_2)$
is not independent. By (iii), it implies that
If
$|\lambda_1||\rho_1| > 0$
, then
$|\lambda_2| = |\rho_2| = 0$
by (i) and (ii), so that
thus there exists
$\lambda_1',\rho_1' \in \textsf{P}^*_2$
such that
and we have
Thus,
$l_1$
and
$l_2$
have the same prefix l of size
$k = \min\!(|l_1|,|l_2|)$
and we can write
for some rewriting steps
$S_1,S_2 \in \textsf{P}^*_3$
. Since
$(S_1,S_2)$
is minimal, we have
$k = 0$
, so
$|l_1||l_2| = 0$
. We show similarly that
$|r_1||r_2| = 0$
. The case where
$|\lambda_2||\rho_2| > 0$
is handled similarly.
So suppose that
In particular, we get that
$|\partial^-_2(A_i)| > 0$
for
$i \in \{1,2\}$
. Let
$u_i,v_i \in \textsf{P}^*_1$
and
$\alpha_i \in \textsf{P}_2$
for
$i \in \{1,\ldots,r\}$
with
$r = |\partial^-_2(S_1)|$
such that
The condition last part of (C1) implies that there is
$i_0$
such that
$l_1$
and
$l_2$
are both prefix of
$u_{i_0}$
. So,
$l_1$
and
$l_2$
have the same prefix l of length
$k = \min\!(|l_1|,|l_2|)$
.
Now, we prove that
$\lambda_1 = l {\ast}_0 \lambda_1'$
for some
$\lambda_1' \in \textsf{P}^*_2$
. If
$|\lambda_1| = 0$
, then
so
$\lambda = l {\ast}_0 \lambda_1'$
for some
$\lambda' \in \textsf{P}^*_2$
. Otherwise, if
$|\lambda_1| > 0$
, since
$|\lambda_1||\rho_1| = 0$
, we have
$|\rho_1| = 0$
and, by (i),
$|\lambda_2| = 0$
. Also, by the last part of (C1), we have
$|\lambda_1| < |\partial^-_2(A_2)|$
. Thus,
so
$\lambda_1 = l {\ast}_0 \lambda_1'$
for some
$\lambda_1 \in \textsf{P}^*_2$
. Similarly, there are
$\rho_1', \lambda_2',\rho_2'\in \textsf{P}^*_2$
such that
Hence,
$S_1 = l {\ast}_0 S_1'$
and
$S_2 = l {\ast}_0 S_2'$
for some rewriting steps
$S'_1,S'_2 \in \textsf{P}^*_3$
. Since
$(S_1,S_2)$
is minimal, we have
$|l_1||l_2| = |l| = 0$
, which proves (iv). The proof of (v) is similar.
We now have enough material to show that:
Proposition C.2. Given a Gray presentation
$\textsf{P}$
, there are no critical branching
$(S_1,S_2)$
of
$\textsf{P}$
such that both the inner 3-generators of
$S_1$
and
$S_2$
are interchange generators.
Proof. Let
$(S_1,S_2)$
be a local minimal branching such that, for
$i \in \{1,2\}$
,
for some
$l_i,r_i,g_i \in \textsf{P}^*_1$
,
$\lambda_i,\rho_i \in \textsf{P}^*_2$
and
$\alpha_i,\beta_i \in \textsf{P}_2$
, and let
$\phi$
be
$\partial^-_2(S_1)$
. Since
$|\partial^-_2(X_{\alpha_1,g_1,\beta_1})| = 2$
, we have
$|\phi| \ge 2$
.
If
$|\phi| = 2$
, then
$|\lambda_i| = |\rho_i| = 0$
for
$i \in \{1,2\}$
. Thus, since
$\partial^-_2(S_1) = \partial^-_2(S_2)$
, we get
By the unique decomposition property given by Theorem 2.8.3, we obtain
So
$g_1 \ast_0 \partial^-_1(\beta_1) \ast_0 r_1 = g_2 \ast_0 \partial^-_1(\beta_1) \ast_0 r_1$
, which implies that
$g_1 = g_2$
. Hence,
$(S_1,S_2)$
is trivial.
If
$|\phi| = 3$
, then
$|\lambda_i| + |\rho_i| = 1$
for
$i \in \{1,2\}$
, and, by Lemma C.1,
By symmetry, we can suppose that
$|\rho_1| = |\lambda_2| = 1$
, which implies that
$|\lambda_1| = |\rho_2| = 0$
. By unique decomposition of whiskers, since
$\partial^-_2(S_1) = \partial^-_2(S_2)$
, we have
\begin{align*} l_1 \ast_0 \alpha_1 \ast_0 g_1 \ast_0 \partial^-_1(\beta_1) \ast_0 r_1 & = \lambda_2 \\ l_1 \ast_0 \partial^+_1(\alpha_1) \ast_0 g_1 \ast_0 \beta_1 \ast_0 r_1 & = l_2 \ast_0 \alpha_2 \ast_0 g_2 \ast_0 \partial^-_1(\beta_2) \ast_0 r_2 \\ \rho_1 & = l_2 \ast_0 \partial^+_1(\alpha_2) \ast_0 g_2 \ast_0 \beta_2 \ast_0 r_2 \end{align*}
and the second line implies that
$l_1 \ast_0 \partial^+_1(\alpha_1) \ast_0 g_1 = l_2$
,
$\beta_1 = \alpha_2$
and
$r_1 = g_2 \ast_0 \partial^-_1(\beta_2) \ast_0 r_2$
. Since
$(S_1,S_2)$
is minimal, we have
$|l_1| = |r_2| = 0$
. So
thus
$(S_1,S_2)$
is a natural branching, hence not a critical one.
Finally, if
$|\phi| \ge 4$
, then, since
$|\lambda_i| + |\rho_i| = |\phi| - 2 \ge 2$
for
$i \in \{1,2\}$
, by Lemma C.1, we have that
In either case,
so, by Lemma C.1(iii),
$(S_1,S_2)$
is independent, hence not critical.
Until the end of this section, we denote by
$\textsf{P}$
a Gray presentation such that
$\textsf{P}_2$
and
$\textsf{P}_3$
are finite and
$|\partial^-_2(A)| > 0$
for every
$A\in \textsf{P}_3$
, that is, a Gray presentation satisfying the hypothesis of Theorem 4.4.6. The next result we prove is a characterization of independent branchings among minimal ones:
Lemma C.3. Given a minimal branching
$(S_1,S_2)$
of
$\textsf{P}$
with
for some
$l_i,r_i \in \textsf{P}^*_1$
,
$\lambda_i,\rho_i \in \textsf{P}^*_2$
and
$A_i \in \textsf{P}_3$
for
$i \in \{1,2\}$
, we have that
$(S_1,S_2)$
is independent if and only if
Proof. If
$(S_1,S_2)$
is independent, then, by Lemma 83,
that is,
By hypothesis, we have
$|\partial^-_2(A_1)| > 0$
so that
$|\lambda_2| + |\rho_2| > 0$
. If
$|\lambda_2| > 0$
, then, by Lemma C.1(i),
$|\lambda_1| = 0$
so
$|\partial^-_2(A_2)|\le |\rho_1|$
. Similarly, if
$|\rho_2| > 0$
, then
$|\partial^-_2(A_2)| \le |\lambda_1|$
, which proves the first implication.
Conversely, if
$|\lambda_1| \ge |\partial^-_2(A_2)|$
, then, since
$\partial^-_2(A_2) > 0$
by our hypothesis on
$\textsf{P}$
, we have
$|\lambda_1| > 0$
. By Lemma C.1(i), we get that
$|\lambda_2| = 0$
. Also,
so
$|\rho_2| \ge |\partial^-_2(A_1)| + |\rho_1|$
, thus
$|\rho_1| < |\rho_2|$
. By Lemma C.1(ii), we have
$|\rho_1| = 0$
. Moreover,
hence, by Lemma C.1(iii),
$(S_1,S_2)$
is independent.
Then, we prove that minimal non-independent branchings are uniquely characterized by a small amount of information:
Lemma C.4. Given a minimal non-independent branching
$(S_1,S_2)$
of
$\textsf{P}$
with
for some
$l_i,r_i \in \textsf{P}^*_1$
,
$\lambda_i,\rho_i \in \textsf{P}^*_2$
, and
$A_i \in \textsf{P}_3$
for
$i \in \{1,2\}$
, we have that
$(S_1,S_2)$
is uniquely determined by
$A_1$
,
$A_2$
,
$|\lambda_1|$
, and
$|\lambda_2|$
.
Proof. Let the unique
$k_1,k_2 >0$
,
$u_i,u'_i,v_i,v'_i \in \textsf{P}^*_1$
, and
$\alpha_i,\beta_i \in \textsf{P}_2$
such that
and
Let
$i_1 = 1 + |\lambda_1|$
and
$i_2 = 1 + |\lambda_2|$
. Since
and, by Lemma C.3,
$|\lambda_1| < |\partial^-_2(A_2)|$
and
$|\lambda_2| < |\partial^-_2(A_1)|$
, we get
so that
By Lemma C.1(iv), either
$l_1$
or
$l_2$
is an identity. Thus, if
$|u_{i_2}| \le |v_{i_1}|$
, then
$|l_1| \ge |l_2|$
so
$l_2$
is a unit and
$l_2$
is the prefix of
$u_{i_2}$
of size
$|u_{i_2}| - |v_{i_1}|$
. Otherwise, if
$|u_{i_2}| \le |v_{i_1}|$
, we obtain similarly that
$l_1$
is the prefix of
$v_{i_1}$
of size
$|v_{i_1}| - |u_{i_2}|$
and
$l_2$
is a unit. In both cases,
$l_1$
and
$l_2$
are completely determined by
$A_1$
,
$A_2$
,
$|\lambda_1|$
, and
$|\lambda_2|$
. A similar argument holds for
$r_1$
and
$r_2$
.
Now, if
$|\lambda_1| >0$
, by Lemma C.1(i),
$|\lambda_2| = 0$
. By (C2) and since
$|\lambda_1| < |\partial^-_2(A_2)|$
,
$\lambda_1$
is the prefix of
$l_2 {\ast}_0 \partial^-_2(A_2) {\ast}_0 r_2$
of length
$|\lambda_1|$
. Otherwise, if
$|\lambda_1| = 0$
, then
$\lambda_1 = \text{id}_{l_1 {\ast}_0 \partial^-_1(A_1){\ast}_0 r_1}$
. In both cases,
$\lambda_1$
is completely determined by
$A_1$
,
$A_2$
, and
$|\lambda_1|$
. A similar argument holds for
$\lambda_2$
. Note that, if we prove that
$|\rho_1|$
and
$|\rho_2|$
are completely determined by
$A_1$
,
$A_2$
,
$|\lambda_1|$
, and
$|\lambda_2|$
, the above argument also applies to
$\rho_1$
and
$\rho_2$
and the lemma is proved. But
so that if
$|\lambda_1| + |\partial^-_2(A_1)| \ge |\lambda_2| + |\partial^-_2(A_2)|$
, then, by Lemma C.1(ii),
$|\rho_1| = 0$
and
Otherwise, if
$|\lambda_1| +|\partial^-_2(A_1)| \le |\lambda_2| + |\partial^-_2(A_2)|$
, we get similarly that
and
$|\rho_2| = 0$
. In both cases,
$|\rho_1|$
and
$|\rho_2|$
are completely determined by
$A_1$
,
$A_2$
,
$|\lambda_1|$
, and
$|\lambda_2|$
, which concludes the proof.
Given
$A \in \textsf{P}_3$
, we say that A is an operational generator if it is not an interchange generator. We now prove that an operational generator can form a critical branching with a finite number of interchange generators:
Lemma C.5. Given an operational
$A_1 \in \textsf{P}_3$
, there are a finite number interchange generator
$A_2 \in P_3$
so that there is a critical branching
$(S_1,S_2)$
of
$\textsf{P}$
with
for some
$l_i,r_i \in \textsf{P}^*_1$
,
$\lambda_i,\rho_i \in \textsf{P}^*_2$
for
$i \in \{1,2\}$
.
Proof. Let
$\alpha,\beta \in \textsf{P}_2$
,
$u \in \textsf{P}^*_1$
,
$A_2 = X_{\alpha,u,\beta}$
,
$l_i,r_i \in \textsf{P}^*_1$
,
$\lambda_i,\rho_i \in \textsf{P}^*_2$
for
$i \in \{1,2\}$
so that
$(S_1,S_2)$
is a critical branching of
$\textsf{P}$
with
for
$i \in \{1,2\}$
. Let the unique
$k \ge 2$
,
$v_i,v'_i \in \textsf{P}^*_1$
,
$\gamma_i \in \textsf{P}_2$
for
$i \in \{1,\ldots,k\}$
such that
By Lemma C.3, since
$(S_1,S_2)$
is non-independent,
Note that we cannot have
$|\lambda_1| = |\rho_1| = 1$
. Indeed, otherwise, by Lemma C.1, we would have
$|\lambda_2| = |\rho_2| = 0$
so that
and thus
$|\partial^-_2(A_1)| = 0$
, contradicting our hypothesis on the 3-generators of
$\textsf{P}$
. This leaves three cases to handle.
Suppose that
$|\lambda_1| = |\rho_1| = 0$
. Then,
Thus,
so
and u is the suffix of
$l_1 {\ast}_0 v_{2 + |\lambda_2|}$
of length
$|l_1 {\ast}_0 v_{2+|\lambda_2|}| - |l_2 {\ast}_0 \partial^+_1(\alpha)|$
. In particular,
$X_{\alpha,u,\beta}$
is completely determined by
$A_1$
and
$|\lambda_2|$
. And since
there is a finite number of possible
$X_{\alpha,u,\beta}$
which induce a critical branching
$(S_1,S_2)$
.
Suppose now that
$|\lambda_1| = 1$
and
$|\rho_1| = 0$
. Then, by Lemma C.1,
$|\lambda_2| = 0$
. So
and
In particular, we have
$\beta = \gamma_1$
and
$r_2 = v'_1 {\ast}_0 r_1$
, so
$|r_1| \le |r_2|$
. By Lemma C.1(v), we have
$|r_1| = 0$
and
$r_2 = v'_1$
. Note that we have
$|u| < |v_1|$
. Indeed, otherwise
$u = u' {\ast}_0 v_1$
for some u’ and, since
we get that
$|l_2| \le |l_1|$
. By Lemma C.1(iv), it implies that
$|l_2| = 0$
and
$l_1 = \partial^+_1(\alpha) {\ast}_0 u'$
, which gives
and
so that
$(S_1,S_2)$
is a natural branching, contradicting the fact that
$(S_1,S_2)$
is a critical branching.
Hence,
$|u| < |v_1|$
and u is a strict suffix of
$v_1$
; thus, there are
$|v_1|$
such possible u. Moreover, since
$\textsf{P}_2$
is finite, there are a finite number of possible
$\alpha \in \textsf{P}_2$
. Hence, there are a finite number of possible
$X_{\alpha,u,\beta} \in \textsf{P}_2$
that induces a critical branching
$(S_1,S_2)$
such that
$|\lambda_1| = 1$
and
$|\rho_1| = 0$
. The case where
$|\lambda_1| = 0$
and
$|\rho_1| = 1$
is similarly handled, which concludes the proof.
We can now conclude the finiteness property for critical branchings of Gray presentations:
Theorem 4.4.6. Given a Gray presentation
$\textsf{Q}$
where
$\textsf{Q}_2$
and
$\textsf{Q}_3$
are finite and
$|\partial^-_2(A)| > 0$
for every
$A \in \textsf{Q}_3$
, there is a finite number of local branchings
$(S_1,S_2)$
with rewriting steps
$S_1,S_2 \in \textsf{Q}^*_3$
such that
$(S_1,S_2)$
is a critical branching.
Proof. Let
$S_i = \lambda_i \ast_1 (l_i \ast_0 A_i \ast_0 r_i) \ast_1 \rho_i$
with
$l_i,r_i \in \textsf{Q}^*_1$
,
$\lambda_i,\rho_i \in \textsf{Q}^*_2$
, and
$A_i \in \textsf{Q}_3$
for
$i \in \{1,2\}$
such that
$(S_1,S_2)$
is a critical branching of
$\textsf{Q}$
. By Lemma C.4, such a branching is uniquely determined by
$A_1$
,
$A_2$
,
$|\lambda_1|$
, and
$|\lambda_2|$
. By Lemma C.3,
Hence, for a given pair
$(A_1,A_2)$
, there are a finite number of tuples
$(l_1,l_2,r_1,r_2,\lambda_1,\lambda_2,\rho_1,\rho_2)$
such that
$(S_1,S_2)$
is a critical branching. Moreover, by Proposition C.2, either
$A_1$
or
$A_2$
is an operational generator. By symmetry, we can suppose that
$A_1$
is operational. Since
$\textsf{Q}_3$
is finite, there is a finite number of such
$A_1$
. Moreover, there are a finite number of pairs
$(A_1,A_2)$
where
$A_2$
is operational too. If
$A_2$
is an interchange generator, then, by Lemma C.5, there are a finite number of possible
$A_2$
for a given
$A_1$
such that
$(S_1,S_2)$
is a critical branching, which concludes the finiteness analysis.














