text/appendixes/comparing_defs.tex
author Scott Morrison <scott@tqft.net>
Mon, 12 Dec 2011 21:05:33 -0800
changeset 965 987af9e53631
parent 963 d875a8378d83
child 966 d9e4d7e1cbf6
permissions -rw-r--r--
more diagrams, doing the complicated one in tikz again now that I've discovered pos (and an annoying bug in tikz)

%!TEX root = ../../blob1.tex

\section{Comparing \texorpdfstring{$n$}{n}-category definitions}
\label{sec:comparing-defs}

In \S\ref{sec:example:traditional-n-categories(fields)} we showed how to construct
a disk-like  $n$-category from a traditional $n$-category; the morphisms of the 
disk-like  $n$-category are string diagrams labeled by the traditional $n$-category.
In this appendix we sketch how to go the other direction, for $n=1$ and 2.
The basic recipe, given a disk-like $n$-category $\cC$, is to define the $k$-morphisms
of the corresponding traditional $n$-category to be $\cC(B^k)$, where
$B^k$ is the {\it standard} $k$-ball.
One must then show that the axioms of \S\ref{ss:n-cat-def} imply the traditional $n$-category axioms.
One should also show that composing the two arrows (between traditional and disk-like $n$-categories)
yields the appropriate sort of equivalence on each side.
Since we haven't given a definition for functors between disk-like $n$-categories, we do not pursue this here.

We emphasize that we are just sketching some of the main ideas in this appendix ---
it falls well short of proving the definitions are equivalent.

%\nn{cases to cover: (a) ordinary $n$-cats for $n=1,2$; (b) $n$-cat modules for $n=1$, also 2?;
%(c) $A_\infty$ 1-cat; (b) $A_\infty$ 1-cat module?; (e) tensor products?}

\subsection{1-categories over \texorpdfstring{$\Set$ or $\Vect$}{Set or Vect}}
\label{ssec:1-cats}
Given a disk-like $1$-category $\cX$ we construct a $1$-category in the conventional sense, $c(\cX)$.
This construction is quite straightforward, but we include the details for the sake of completeness, 
because it illustrates the role of structures (e.g. orientations, spin structures, etc) 
on the underlying manifolds, and 
to shed some light on the $n=2$ case, which we describe in \S \ref{ssec:2-cats}.

Let $B^k$ denote the \emph{standard} $k$-ball.
Let the objects of $c(\cX)$ be $c(\cX)^0 = \cX(B^0)$ and the morphisms of $c(\cX)$ be $c(\cX)^1 = \cX(B^1)$.
The boundary and restriction maps of $\cX$ give domain and range maps from $c(\cX)^1$ to $c(\cX)^0$.

Choose a homeomorphism $B^1\cup_{pt}B^1 \to B^1$.
Define composition in $c(\cX)$ to be the induced map $c(\cX)^1\times c(\cX)^1 \to c(\cX)^1$ 
(defined only when range and domain agree).
By isotopy invariance in $\cX$, any other choice of homeomorphism gives the same composition rule.
Also by isotopy invariance, composition is strictly associative.

Given $a\in c(\cX)^0$, define $\id_a \deq a\times B^1$.
By extended isotopy invariance in $\cX$, this has the expected properties of an identity morphism.

We have now defined the basic ingredients for the 1-category $c(\cX)$.
As we explain below, $c(\cX)$ might have additional structure corresponding to the
unoriented, oriented, Spin, $\text{Pin}_+$ or $\text{Pin}_-$ structure on the 1-balls used to define $\cX$.

For 1-categories based on unoriented balls, 
there is a map $\dagger:c(\cX)^1\to c(\cX)^1$
coming from $\cX$ applied to an orientation-reversing homeomorphism (unique up to isotopy) 
from $B^1$ to itself.
(Of course our $B^1$ is unoriented, i.e.\ not equipped with an orientation.
We mean the homeomorphism which would reverse the orientation if there were one;
$B^1$ is not oriented, but it is orientable.)
Topological properties of this homeomorphism imply that 
$a^{\dagger\dagger} = a$ ($\dagger$ is order 2), $\dagger$ reverses domain and range, and $(ab)^\dagger = b^\dagger a^\dagger$
($\dagger$ is an anti-automorphism).
Recall that in this context 0-balls should be thought of as equipped with a germ of a 1-dimensional neighborhood.
There is a unique such 0-ball, up to homeomorphism, but it has a non-identity automorphism corresponding to reversing the
orientation of the germ.
Consequently, the objects of $c(\cX)$ are equipped with an involution, also denoted $\dagger$.
If $a:x\to y$ is a morphism of $c(\cX)$ then $a^\dagger: y^\dagger\to x^\dagger$.

For 1-categories based on oriented balls, there are no non-trivial homeomorphisms of 0- or 1-balls, and thus no 
additional structure on $c(\cX)$.

For 1-categories based on Spin balls,
the nontrivial spin homeomorphism from $B^1$ to itself which covers the identity
gives an order 2 automorphism of $c(\cX)^1$.
There is a similar involution on the objects $c(\cX)^0$.
In the case where there is only one object and we are enriching over complex vector spaces, this
is just a super algebra.
The even elements are the $+1$ eigenspace of the involution on $c(\cX)^1$, 
and the odd elements are the $-1$ eigenspace of the involution.

For 1-categories based on $\text{Pin}_-$ balls,
we have an order 4 antiautomorphism of $c(\cX)^1$.
For 1-categories based on $\text{Pin}_+$ balls,
we have an order 2 antiautomorphism and also an order 2 automorphism of $c(\cX)^1$,
and these two maps commute with each other.
In both cases there is a similar map on objects.


\noop{
\medskip

In the other direction, given a $1$-category $C$
(with objects $C^0$ and morphisms $C^1$) we will construct a disk-like
$1$-category $t(C)$.

If $X$ is a 0-ball (point), let $t(C)(X) \deq C^0$.
If $S$ is a 0-sphere, let $t(C)(S) \deq C^0\times C^0$.
If $X$ is a 1-ball, let $t(C)(X) \deq C^1$.
Homeomorphisms isotopic to the identity act trivially.
If $C$ has extra structure (e.g.\ it's a *-1-category), we use this structure
to define the action of homeomorphisms not isotopic to the identity
(and get, e.g., an unoriented disk-like 1-category).

The domain and range maps of $C$ determine the boundary and restriction maps of $t(C)$.

Gluing maps for $t(C)$ are determined by composition of morphisms in $C$.

For $X$ a 0-ball, $D$ a 1-ball and $a\in t(C)(X)$, define the product morphism 
$a\times D \deq \id_a$.
It is not hard to verify that this has the desired properties.

\medskip

The compositions of the constructions above, $$\cX\to c(\cX)\to t(c(\cX))$$ 
and $$C\to t(C)\to c(t(C)),$$ give back 
more or less exactly the same thing we started with.  

As we will see below, for $n>1$ the compositions yield a weaker sort of equivalence.
} %end \noop

\medskip

Similar arguments show that modules for disk-like 1-categories are essentially
the same thing as traditional modules for traditional 1-categories.


\subsection{Pivotal 2-categories}
\label{ssec:2-cats}
Let $\cC$ be a disk-like 2-category.
We will construct from $\cC$ a traditional pivotal 2-category $D$.
(The ``pivotal" corresponds to our assumption of strong duality for $\cC$.)

We will try to describe the construction in such a way that the generalization to $n>2$ is clear,
though this will make the $n=2$ case a little more complicated than necessary.

Before proceeding, we must decide whether the 2-morphisms of our
pivotal 2-category are shaped like rectangles or bigons.
Each approach has advantages and disadvantages.
For better or worse, we choose bigons here.

Define the $k$-morphisms $D^k$ of $D$ to be $\cC(B^k) \trans E$, where $B^k$ denotes the standard
$k$-ball, which we also think of as the standard bihedron (a.k.a.\ globe).
(For $k=1$ this is an interval, and for $k=2$ it is a bigon.)
Since we are thinking of $B^k$ as a bihedron, we have a standard decomposition of the $\bd B^k$
into two copies of $B^{k-1}$ which intersect along the ``equator" $E \cong S^{k-2}$.
Recall that the subscript in $\cC(B^k) \trans E$ means that we consider the subset of $\cC(B^k)$
whose boundary is splittable along $E$.
This allows us to define the domain and range of morphisms of $D$ using
boundary and restriction maps of $\cC$.

Choosing a homeomorphism $B^1\cup B^1 \to B^1$ defines a composition map on $D^1$.
This is not associative, but we will see later that it is weakly associative.

Choosing a homeomorphism $B^2\cup B^2 \to B^2$ defines a ``vertical" composition map 
on $D^2$ (Figure \ref{fzo1}).
Isotopy invariance implies that this is associative.
We will define a ``horizontal" composition later.

\begin{figure}[t]
\centering
\begin{tikzpicture}

\newcommand{\vertex}{node[circle,fill=black,inner sep=1pt] {}}
\newcommand{\nsep}{1.8}

\node[outer sep=\nsep](A) at (0,0) {
\begin{tikzpicture}
	\draw (0,0) coordinate (p1);
	\draw (4,0) coordinate (p2);
	\draw (2,1.2) coordinate (pu);
	\draw (2,-1.2) coordinate (pd);

	\draw (p1) .. controls (pu) .. (p2) .. controls (pd) .. (p1);
	\draw (p1)--(p2);

	\draw (p1) \vertex;
	\draw (p2) \vertex;
	
	\node at (2.1, .44) {$B^2$};
	\node at (2.1, -.44) {$B^2$};
	
\end{tikzpicture}
};

\node[outer sep=\nsep](B) at (6,0) {
\begin{tikzpicture}
	\draw (0,0) coordinate (p1);
	\draw (4,0) coordinate (p2);
	\draw (2,.6) coordinate (pu);
	\draw (2,-.6) coordinate (pd);

	\draw (p1) .. controls (pu) .. (p2) .. controls (pd) .. (p1);
	\draw[help lines, dashed] (p1)--(p2);

	\draw (p1) \vertex;
	\draw (p2) \vertex;
	
	\node at (2.1,0) {$B^2$};
	
\end{tikzpicture}
};

\draw[->, thick, blue!50!green] (A) -- node[black, above] {$\cong$} (B);

\end{tikzpicture}
\caption{Vertical composition of 2-morphisms}
\label{fzo1}
\end{figure}

Given $a\in D^1$, define $\id_a = a\times I \in D^2$ (pinched boundary).
Extended isotopy invariance for $\cC$ shows that this morphism is an identity for 
vertical composition.

Given $x\in C^0$, define $\id_x = x\times B^1 \in C^1$.
We will show that this 1-morphism is a weak identity.
This would be easier if our 2-morphisms were shaped like rectangles rather than bigons.

In showing that identity 1-morphisms have the desired properties, we will
rely heavily on the extended isotopy invariance of 2-morphisms in $\cC$.
Extended isotopy invariance implies that adding a product collar to a 2-morphism of $\cC$ has no effect,
and by cutting and regluing we can insert (or delete) product regions in the interior of 2-morphisms as well.
Figure \ref{fig:product-regions} shows some examples.
\begin{figure}[t]
$$
\mathfig{0.5}{triangle/triangle2}
$$
\begin{align*}
\begin{tikzpicture}[baseline]
\node[draw] (c) at (0,0) [circle through = {(1,0)}] {$f$};
\node (d) at (c.east) [circle through = {(0.25,0)}] {};
\foreach \n in {1,2} {
	\node (p\n) at (intersection \n of c and d) {};
	\fill (p\n) circle (2pt);
}
\begin{scope}[decoration={brace,amplitude=10,aspect=0.5}]
	\draw[decorate] (p2.east) -- node[right=2ex] {$a$} (p1.east);
\end{scope}
\end{tikzpicture} & = 
\begin{tikzpicture}[baseline]
\node[draw] (c) at (0,0) [circle through = {(1,0)}] {};
\begin{scope}
\path[clip] (c) circle (1);
\node[draw,dashed] (d) at (c.east) [circle through = {(0.25,0)}] {};
\foreach \n in {1,2} {
	\node (p\n) at (intersection \n of c and d) {};
}
\node[left] at (c) {$f$};
\path[clip] (d) circle (0.75);
\foreach \y in {1,0.86,...,-1} {
	\draw[green!50!brown] (0,\y)--(1,\y);
}
\end{scope}
\draw[->,blue] (1.5,-1) node[below] {$a \times I$} -- (0.75,0);
\end{tikzpicture} \\
\begin{tikzpicture}[baseline]
\node[draw] (c) at (0,0) [ellipse, minimum height=2cm,minimum width=2.5cm] {};
\draw[dashed] (c.north) -- (c.south);
\node[right=6] at (c) {$g$};
\node[left=6] at (c) {$f$};
\end{tikzpicture} & =
\begin{tikzpicture}[baseline]
\node[draw] (c) at (0,0) [ellipse, minimum height=2cm,minimum width=2.5cm] {};
\node[right=9] at (c) {$g$};
\node[left=9] at (c) {$f$};
\draw[dashed] (c.north) to[out=-115,in=115] (c.south) to[out=65,in=-65] (c.north);
\begin{scope}
\path[clip] (c.north) to[out=-115,in=115] (c.south) to[out=65,in=-65] (c.north);
\foreach \y in {1,0.86,...,-1} {
	\draw[green!50!brown] (-1,\y)--(1,\y);
}
\end{scope}
\draw[->,blue] (.75,-1.25) node[below] {$a \times I$} -- (0,-0.25);
\end{tikzpicture} \\
\begin{tikzpicture}[baseline]
\node[draw] (c) at (0,0) [ellipse, minimum height=2cm,minimum width=2.5cm] {};
\draw[dashed] (c.north) -- (c.south);
\node[right=18] at (c) {$g$};
\node[left=10] at (c) {$f$};
\fill (0,0.4) node (p1) {} circle (2pt);
\fill (0,-0.4) node (p2) {} circle (2pt);
\begin{scope}[decoration={brace,amplitude=5,aspect=0.5}]
	\draw[decorate] (p1.east) -- node[right=0.5ex] {\scriptsize $a$} (p2.east);
\end{scope}
\end{tikzpicture} & =
\begin{tikzpicture}[baseline]
\node[draw] (c) at (0,0) [ellipse, minimum height=2cm,minimum width=2.5cm] {};
\node[draw,dashed] (d) at (0,0) [circle, minimum height=1cm,minimum width=1cm] {};
\draw[dashed] (c.north) -- (d.north) (d.south) -- (c.south);
\node[right=18] at (c) {$g$};
\node[left=18] at (c) {$f$};
\clip (0,0) circle (0.5cm);
\foreach \y in {1,0.86,...,-1} {
	\draw[green!50!brown] (-1,\y)--(1,\y);
}
\end{tikzpicture} \\
\begin{tikzpicture}[baseline]
\begin{scope}
\clip (-1.3,-2) rectangle (0,2);
\node[draw] (c) at (0,0) [ellipse, minimum height=2cm,minimum width=2.5cm] {};
\end{scope}
\begin{scope}
\clip (1,-2) rectangle (0,2);
\node[draw] (d) at (0,-0.4) [ellipse, minimum height=1.2cm, minimum width=1.5cm] {};
\end{scope}
\draw (c.north) -- (d.north);
\draw[dashed] (d.north) -- (d.south);
\node[right=8,below=4] at (c) {$g$};
\node[left=10] at (c) {$f$};
\end{tikzpicture} & =
\begin{tikzpicture}[baseline]
\begin{scope}
	\clip (-1.3,-2) rectangle (0,2);
	\node[draw] (c) at (0,0) [ellipse, minimum height=2cm,minimum width=2.5cm] {};
\end{scope}
\draw[dashed] (c.north) to[out=-120,in=120] (c.south);
\draw[dashed] (c.south) to[out=60,in=-90] (0.35,0) node (m) {};
\draw (m.center) to[out=90,in=-60] (c.north);
\begin{scope}
	\clip (c.north) to[out=-120,in=120] (c.south) to[out=60,in=-90] (m) to[out=90,in=-60] (c.north);
	\foreach \y in {1,0.86,...,-1} {
		\draw[green!50!brown] (-1,\y)--(1,\y);
	}
\end{scope}
\draw (m.center) .. controls +(1,0) and +(1,0) .. (c.south);
\node[right=15,below=8] at (c) {$g$};
\node[left=12] at (c) {$f$};
\end{tikzpicture}
\end{align*}
\caption{Examples of inserting or deleting product regions.}
\label{fig:product-regions}
\end{figure}


Let $a: y\to x$ be a 1-morphism.
Define 2-morphsims $a \to a\bullet \id_x$ and $a\bullet \id_x \to a$
as shown in Figure \ref{fzo2}.
\begin{figure}[t]
\centering
\begin{tikzpicture}
\newcommand{\rr}{6}
\newcommand{\vertex}{node[circle,fill=black,inner sep=1pt] {}}
\newcommand{\namedvertex}[1]{node[circle,fill=black,inner sep=1pt] (#1) {}}

\node(A) at (0,0) {
\begin{tikzpicture}
\node[red,left] at (0,0)  {$y$};
\draw (0,0) \vertex arc (-120:-105:\rr) node[red,below] {$a$} arc(-105:-90:\rr) \vertex node[red,below](x2) {$x$};
\draw (0,0) \vertex arc (120:105:\rr) node[red,above] {$a$} arc (105:90:\rr) \vertex node[red,above](x1) {$x$} -- (x2);
\begin{scope}
	\path[clip] (0,0) arc (-120:-60:\rr) arc (60:120:\rr);
	\foreach \x in {0,0.24,...,3} {
		\draw[green!50!brown] (\x,1) -- (\x,-1);
	}
\end{scope}
\draw[red, decorate,decoration={brace,amplitude=5pt}] ($(x1)+(0.2,-0.2)$) -- ($(x2)+(0.2,0.2)$) node[midway, xshift=0.7cm] {$x \times I$};
\end{tikzpicture}
};

\node(B) at (-4,-4) {
\begin{tikzpicture}
\node[red,left] at (0,0) {$y$};
\draw (0,0) \vertex 
	arc (120:105:\rr) node[red,above] {$a$}
	arc (105:90:\rr) node[red,above] {$x$} \namedvertex{x1};
%	arc (90:75:\rr) node[red,above] {$x \times I$};
%	arc (75:60:\rr) \vertex node[red,right] {$x$}
%	arc (-60:-90:\rr) node[red,below] {$a$}
%	arc (-90:-120:\rr);
\draw (0,0)
	arc (-120:-90:\rr) node[red,below] {$a$}
	arc (-90:-61:\rr) \namedvertex{x2} node[red,right] {$x$};
\draw (x1) -- node[red, above=3pt] {$x \times I$} (x2);
\begin{scope}
	\path[clip] (0,0) arc (-120:-60:\rr) arc (60:120:\rr);
	\foreach \x in {0,0.48,...,9} {
		\draw[green!50!brown] (\x/4,1) -- (\x,-1);
	}
\end{scope}
\end{tikzpicture}
};

\node(C) at (4,-4) {
\begin{tikzpicture}[y=-1cm]
\node[red,left] at (0,0) {$y$};
\draw (0,0) \vertex 
	arc (120:105:\rr) node[red,below] {$a$}
	arc (105:90:\rr) node[red,below] {$x$} \namedvertex{x1};
%	arc (90:75:\rr) node[red,below] {$x \times I$}
%	arc (75:60:\rr) \vertex node[red,right] {$x$}
%	arc (-60:-90:\rr) node[red,above] {$a$}
%	arc (-90:-120:\rr);
\draw (0,0)
	arc (-120:-90:\rr) node[red,above] {$a$}
	arc (-90:-61:\rr) \namedvertex{x2} node[red,right] {$x$};
\draw (x1) -- node[red, below=3pt] {$x \times I$} (x2);
\begin{scope}
	\path[clip] (0,0) arc (-120:-60:\rr) arc (60:120:\rr);
	\foreach \x in {0,0.48,...,9} {
		\draw[green!50!brown] (\x/4,1) -- (\x,-1);
	}
\end{scope}
\end{tikzpicture}
};

\draw[->] (A) -- (B);
\draw[->] (A) -- (C);
\end{tikzpicture}
\caption{Producing weak identities from half pinched products}
\label{fzo2}
\end{figure}
As suggested by the figure, these are two different reparameterizations
of a half-pinched version of $a\times I$
(i.e.\ two different homeomorphisms from the half-pinched $I\times I$ to the standard bigon).
We must show that the two compositions of these two maps give the identity 2-morphisms
on $a$ and $a\bullet \id_x$, as defined above.
Figure \ref{fzo3} shows one case.
\begin{figure}[t]
\centering
\begin{tikzpicture}

\newcommand{\vertex}{node[circle,fill=black,inner sep=1pt] {}}
\newcommand{\nsep}{1.8}

\node(A) at (0,0) {
\begin{tikzpicture}

	\draw (0,0) coordinate (p1);
	\draw (3.6,0) coordinate (p2);
	\draw (2.3,1) coordinate (p3);
	\draw (2.3,-1) coordinate (p4);
	
	\begin{scope}
		\clip (p1) 	.. controls +(.5,-.5) and +(-.8,0)  .. (p4) -- 
				(p2) -- (p3) .. controls +(-.8,0) and +(.5,.5) .. (p1);
		\foreach \x in {0,0.26,...,4} {
			\draw[green!50!brown] (\x,0) -- (intersection cs: first line={(p2)--(p3)}, second line={(0,0)--(0,1)});
			\draw[green!50!brown] (\x,0) -- (intersection cs: first line={(p2)--(p4)}, second line={(0,0)--(0,1)});
		}
	\end{scope}
	
	\draw (p1) .. controls ($(p1) + (.5,.5)$) and ($(p3) + (-.8,0)$) .. node[red, above=3pt] {$a$} (p3);
	\draw (p1) .. controls ($(p1) + (.5,-.5)$) and ($(p4) + (-.8,0)$) .. node[red, below=3pt] {$a$} (p4);
	\draw (p3) -- node[red, above=7pt, right=1pt] {$x \times I$} (p2);
	\draw (p4) -- node[red, below=7pt, right=1pt] {$x \times I$} (p2);
	\draw (p1) -- (p2);
	
	\draw (p1) \vertex;
	\draw (p2) \vertex;
	\draw (p3) \vertex;
	\draw (p4) \vertex;

\end{tikzpicture}
};

\node[outer sep=\nsep](B) at (5.5,0) {
\begin{tikzpicture}

	\draw (0,0) coordinate (p1);
	\draw (3.6,0) coordinate (p2);
	\draw (2.3,1) coordinate (p3);
	\draw (2.3,-1) coordinate (p4);
	\draw (4.6,0) coordinate (p2b);
	
	\begin{scope}
		\clip (p1) 	.. controls +(.5,-.5) and +(-.8,0)  .. (p4) -- 
				(p2) -- (p3) .. controls +(-.8,0) and +(.5,.5) .. (p1);
		\foreach \x in {0,0.26,...,4} {
			\draw[green!50!brown] (\x,0) -- (intersection cs: first line={(p2)--(p3)}, second line={(0,0)--(0,1)});
			\draw[green!50!brown] (\x,0) -- (intersection cs: first line={(p2)--(p4)}, second line={(0,0)--(0,1)});
		}
	\end{scope}
	
	\begin{scope}
		\clip (p3)--(p2)--(p4)--(p2b)--cycle;
		\draw[blue!50!brown, step=.23] ($(p4)+(0,-1)$) grid +(3,3);
	\end{scope}
	
	\draw (p1) .. controls ($(p1) + (.5,.5)$) and ($(p3) + (-.8,0)$) .. node[red, above=3pt] {$a$} (p3);
	\draw (p1) .. controls ($(p1) + (.5,-.5)$) and ($(p4) + (-.8,0)$) .. node[red, below=3pt] {$a$} (p4);
	\draw (p3) -- (p2);
	\draw (p4) -- (p2);
	\draw (p3) -- node[red, above=7pt, right=1pt] {$x \times I$} (p2b);
	\draw (p4) -- node[red, below=7pt, right=1pt] {$x \times I$} (p2b);
	
	\draw (p1) \vertex;
	\draw (p2) \vertex;
	\draw (p3) \vertex;
	\draw (p4) \vertex;
	\draw (p2b) \vertex;

\end{tikzpicture}
};

\node[outer sep=\nsep](C) at (11,0) {
\begin{tikzpicture}

	\draw (0,0) coordinate (p1);
	\draw (2.3,0) coordinate (p2);
	\draw (2.3,1) coordinate (p3);
	\draw (2.3,-1) coordinate (p4);
	\draw (3.6,0) coordinate (p2b);
	
	\begin{scope}
		\clip (p1) 	.. controls +(.5,-.5) and +(-.8,0)  .. (p4) -- 
				(p2) -- (p3) .. controls +(-.8,0) and +(.5,.5) .. (p1);
		\foreach \x in {0,0.26,...,4} {
			\draw[green!50!brown] (\x,-1) -- (\x,1);
		}
	\end{scope}
	
	\begin{scope}
		\clip (p3)--(p2)--(p4)--(p2b)--cycle;
		\draw[blue!50!brown, step=.23] ($(p4)+(0,-1)$) grid +(3,3);
	\end{scope}
	
	\draw (p1) .. controls ($(p1) + (.5,.5)$) and ($(p3) + (-.8,0)$) .. node[red, above=3pt] {$a$} (p3);
	\draw (p1) .. controls ($(p1) + (.5,-.5)$) and ($(p4) + (-.8,0)$) .. node[red, below=3pt] {$a$} (p4);
	\draw[green!50!brown] (p3) -- (p4);
	\draw (p3) -- node[red, above=7pt, right=1pt] {$x \times I$} (p2b);
	\draw (p4) -- node[red, below=7pt, right=1pt] {$x \times I$} (p2b);
	
	\draw (p1) \vertex;
	\draw (p3) \vertex;
	\draw (p4) \vertex;
	\draw (p2b) \vertex;

\end{tikzpicture}
};

\draw[->, thick, blue!50!green] (A) -- (B);
\draw[->, thick, blue!50!green] (B) -- node[black, above] {$=$} (C);

\end{tikzpicture}
\caption{Composition of weak identities, 1}
\label{fzo3}
\end{figure}
In the first step we have inserted a copy of $(x\times I)\times I$.
Figure \ref{fzo4} shows the other case.

\newcommand{\vertex}{node[circle,fill=black,inner sep=1pt] {}}

\begin{figure}[t]
\centering
\begin{tikzpicture}

\newcommand{\nsep}{1.8}

\clip (-4,-1.25)--(12,-1.25)--(16,1.25)--(-1,1.25)--cycle;


\node[outer sep=\nsep](A) at (0,0) {
\begin{tikzpicture}
	\draw (0,0) coordinate (p1);
	\draw (4,0) coordinate (p2);
	\draw (2.4,0) coordinate (p2a);
	\draw (2,1.2) coordinate (pu);
	\draw (2,-1.2) coordinate (pd);

	\begin{scope}
		\clip (p1) .. controls (pu) .. (p2) .. controls (pd) .. (p1);
		\foreach \t in {0,.065,...,1} {
			\draw[green!50!brown] ($(p1)!\t!(p2a)$) -- +(90 - \t*90 + \t*6 : 4);
			\draw[green!50!brown] ($(p1)!\t!(p2a)$) -- +(-90 + \t*90 - \t*6 : 4);
		}
		\draw[dashed] ($(p2a) + (-.6,3)$)--(p2a)--($(p2a) + (-.6,-3)$);
	\end{scope}

	\draw (p1) .. controls (pu) .. (p2) .. controls (pd) .. (p1);
	\draw (p1)--(p2);

	\draw (p1) \vertex;
	\draw (p2) \vertex;
	\draw (p2a) \vertex;
\end{tikzpicture}
};

\node[outer sep=\nsep](B) at (5,0) {
\begin{tikzpicture}
	\draw (0,0) coordinate (p1);
	\draw (4,0) coordinate (p2);
	\draw (2.4,0) coordinate (p2a);
	\draw (2,1.2) coordinate (pu);
	\draw (2,-1.2) coordinate (pd);

	\begin{scope}
	\clip (-.1,3)--($(p2a) + (-.6,3)$)--(p2a)--($(p2a) + (-.6,-3)$)--(-.1,-3)--cycle;

	\begin{scope}
		\clip (p1) .. controls (pu) .. (p2) .. controls (pd) .. (p1);
		\foreach \t in {0,.065,...,1} {
			\draw[green!50!brown] ($(p1)!\t!(p2a)$) -- +(90 - \t*90 + \t*6 : 4);
			\draw[green!50!brown] ($(p1)!\t!(p2a)$) -- +(-90 + \t*90 - \t*6 : 4);
		}
		\draw ($(p2a) + (-.6,3)$)--(p2a)--($(p2a) + (-.6,-3)$);
	\end{scope}


	\draw (p1) .. controls (pu) .. (p2) .. controls (pd) .. (p1);
	%\draw (p1)--(p2);
	\end{scope}

	\begin{scope}
		\clip (p1) .. controls (pu) .. (p2) .. controls (pd) .. (p1);
		\draw ($(p2a) + (-.6,3)$)--(p2a)--($(p2a) + (-.6,-3)$);
	\end{scope}

	\draw (p1) \vertex;
	\draw (p2a) \vertex;
\end{tikzpicture}
};

\node[outer sep=\nsep](C) at (9,0) {
\begin{tikzpicture}
	\draw (0,0) coordinate (p1);
	\draw (4,0) coordinate (p2);
	\draw (2,1.2) coordinate (pu);
	\draw (2,-1.2) coordinate (pd);

	\begin{scope}
		\clip (p1) .. controls (pu) .. (p2) .. controls (pd) .. (p1);
		\foreach \t in {0,.045,...,1} {
			\draw[green!50!brown] ($(p1)!\t!(p2) + (0,2)$) -- +(0,-4);
		}
	\end{scope}

	\draw (p1) .. controls (pu) .. (p2) .. controls (pd) .. (p1);

	\draw (p1) \vertex;
	\draw (p2) \vertex;
\end{tikzpicture}
};

\draw[->, thick, blue!50!green] (A) -- (B);
\draw[->, thick, blue!50!green] ($(B) + (1,0)$) -- node[black, above] {$=$} (C);

\end{tikzpicture}
\caption{Composition of weak identities, 2}
\label{fzo4}
\end{figure}
We notice that a certain subset of the disk is a product region and remove it.

Given 2-morphisms $f$ and $g$, we define the horizontal composition $f *_h g$ to be any of the four
equal 2-morphisms in Figure \ref{fzo5}.
Figure \ref{fig:horizontal-compositions-equal}illustrates part of the proof that these four 2-morphisms are equal.
Similar arguments show that horizontal composition is associative.
\begin{figure}[t]
\begin{align*}
\raisebox{-.9cm}{
\begin{tikzpicture}
	\draw (0,0) .. controls +(1,.8) and +(-1,.8) .. node[above] {$b$} (2.9,0)
				.. controls +(-1,-.8) and +(1,-.8) .. node[below] {$a$} (0,0);
	\draw[->, thick, orange!50!brown] (1.45,-.4)--  node[left, black] {$f$} +(0,.8);
\end{tikzpicture}}
\;\;\;*_h\;\;
\raisebox{-.9cm}{
\begin{tikzpicture}
	\draw (0,0) .. controls +(1,.8) and +(-1,.8) .. node[above] {$d$} (2.9,0)
				.. controls +(-1,-.8) and +(1,-.8) .. node[below] {$c$} (0,0);
	\draw[->, thick, orange!50!brown] (1.45,-.4)--  node[left, black] {$g$} +(0,.8);
\end{tikzpicture}}
\;&=\;
\raisebox{-1.9cm}{
\begin{tikzpicture}
	\draw (0,0) coordinate (p1);
	\draw (5.8,0) coordinate (p2);
	\draw (2.9,.3) coordinate (pu);
	\draw (2.9,-.3) coordinate (pd);
	\begin{scope}
		\clip (p1) .. controls +(.6,.3) and +(-.5,0) .. (pu)
					.. controls +(.5,0) and +(-.6,.3) .. (p2)
					.. controls +(-.6,-.3) and +(.5,0) .. (pd)
					.. controls +(-.5,0) and +(.6,-.3) .. (p1);
		\foreach \t in {0,.03,...,1} {
			\draw[green!50!brown] ($(p1)!\t!(p2) + (0,2)$) -- +(0,-4);
		}
	\end{scope}
	\draw (p1) .. controls +(.6,.3) and +(-.5,0) .. (pu)
				.. controls +(.5,0) and +(-.6,.3) .. (p2)
				.. controls +(-.6,-.3) and +(.5,0) .. (pd)
				.. controls +(-.5,0) and +(.6,-.3) .. (p1);
	\draw (p1) .. controls +(1,-2) and +(-1,-1) .. (pd);
	\draw (p2) .. controls +(-1,2) and +(1,1) .. (pu);
	\draw[->, thick, orange!50!brown] (1.45,-1.1)--  node[left, black] {$f$} +(0,.7);
	\draw[->, thick, orange!50!brown] (4.35,.4)--  node[left, black] {$g$} +(0,.7);
	\draw[->, thick, blue!75!yellow] (1.5,.78) node[black, above] {$(b\cdot c)\times I$} -- (2.5,0);
\end{tikzpicture}} \\
\;&=\;
\raisebox{-2.1cm}{
\begin{tikzpicture}
	\draw (0,0) coordinate (p1);
	\draw (5.8,0) coordinate (p2);
	\draw (2.9,0) coordinate (pu);
	\draw (2.9,-.9) coordinate (pd);
	\begin{scope}
		\clip (p1) .. controls +(.6,-.3) and +(-.5,-.3) .. (pu)
					.. controls +(.5,-.3) and +(-.6,-.3) .. (p2)
					.. controls +(-.6,-.9) and +(.5,0) .. (pd)
					.. controls +(-.5,0) and +(.6,-.9) .. (p1);
		\foreach \t in {0,.03,...,1} {
			\draw[green!50!brown] ($(p1)!\t!(p2) + (0,2)$) -- +(0,-4);
		}
	\end{scope}
	\draw  (p1) .. controls +(.6,-.3) and +(-.5,-.3) .. (pu)
					.. controls +(.5,-.3) and +(-.6,-.3) .. (p2)
					.. controls +(-.6,-.9) and +(.5,0) .. (pd)
					.. controls +(-.5,0) and +(.6,-.9) .. (p1);
	\draw (p1) .. controls +(1,1) and +(-1,1) .. (pu);
	\draw (p2) .. controls +(-1,1) and +(1,1) .. (pu);
	\draw[->, thick, orange!50!brown] (1.45,-0.1)--  node[left, black] {$f$} +(0,.7);
	\draw[->, thick, orange!50!brown] (4.35,-0.1)--  node[left, black] {$g$} +(0,.7);
	\draw[->, thick, blue!75!yellow] (4.3,-1.5) node[black, below] {$(a\cdot c)\times I$} -- (3.3,-0.5);
\end{tikzpicture}} \\
\;&=\;
\raisebox{-1.9cm}{
\begin{tikzpicture}[y=-1cm]
	\draw (0,0) coordinate (p1);
	\draw (5.8,0) coordinate (p2);
	\draw (2.9,.3) coordinate (pu);
	\draw (2.9,-.3) coordinate (pd);
	\begin{scope}
		\clip (p1) .. controls +(.6,.3) and +(-.5,0) .. (pu)
					.. controls +(.5,0) and +(-.6,.3) .. (p2)
					.. controls +(-.6,-.3) and +(.5,0) .. (pd)
					.. controls +(-.5,0) and +(.6,-.3) .. (p1);
		\foreach \t in {0,.03,...,1} {
			\draw[green!50!brown] ($(p1)!\t!(p2) + (0,2)$) -- +(0,-4);
		}
	\end{scope}
	\draw (p1) .. controls +(.6,.3) and +(-.5,0) .. (pu)
				.. controls +(.5,0) and +(-.6,.3) .. (p2)
				.. controls +(-.6,-.3) and +(.5,0) .. (pd)
				.. controls +(-.5,0) and +(.6,-.3) .. (p1);
	\draw (p1) .. controls +(1,-2) and +(-1,-1) .. (pd);
	\draw (p2) .. controls +(-1,2) and +(1,1) .. (pu);
	\draw[<-, thick, orange!50!brown] (1.45,-1.1)--  node[left, black] {$f$} +(0,.7);
	\draw[<-, thick, orange!50!brown] (4.35,.4)--  node[left, black] {$g$} +(0,.7);
	\draw[->, thick, blue!75!yellow] (1.5,.78) node[black, below] {$(a\cdot d)\times I$} -- (2.5,0);
\end{tikzpicture}} \\
\;&=\;
\raisebox{-1.0cm}{
\begin{tikzpicture}[y=-1cm]
	\draw (0,0) coordinate (p1);
	\draw (5.8,0) coordinate (p2);
	\draw (2.9,0) coordinate (pu);
	\draw (2.9,-.9) coordinate (pd);
	\begin{scope}
		\clip (p1) .. controls +(.6,-.3) and +(-.5,-.3) .. (pu)
					.. controls +(.5,-.3) and +(-.6,-.3) .. (p2)
					.. controls +(-.6,-.9) and +(.5,0) .. (pd)
					.. controls +(-.5,0) and +(.6,-.9) .. (p1);
		\foreach \t in {0,.03,...,1} {
			\draw[green!50!brown] ($(p1)!\t!(p2) + (0,2)$) -- +(0,-4);
		}
	\end{scope}
	\draw  (p1) .. controls +(.6,-.3) and +(-.5,-.3) .. (pu)
					.. controls +(.5,-.3) and +(-.6,-.3) .. (p2)
					.. controls +(-.6,-.9) and +(.5,0) .. (pd)
					.. controls +(-.5,0) and +(.6,-.9) .. (p1);
	\draw (p1) .. controls +(1,1) and +(-1,1) .. (pu);
	\draw (p2) .. controls +(-1,1) and +(1,1) .. (pu);
	\draw[<-, thick, orange!50!brown] (1.45,-0.1)--  node[left, black] {$f$} +(0,.7);
	\draw[<-, thick, orange!50!brown] (4.35,-0.1)--  node[left, black] {$g$} +(0,.7);
	\draw[->, thick, blue!75!yellow] (4.3,-1.5) node[black, above] {$(b\cdot d)\times I$} -- (3.3,-0.5);
\end{tikzpicture}} 
\end{align*}
\caption{Horizontal composition of 2-morphisms}
\label{fzo5}
\end{figure}
\begin{figure}[t]
$$
\mathfig{0.6}{triangle/triangle3c}
$$
$$
\begin{tikzpicture}
\node (fg1) at (0,0) {
\begin{tikzpicture}[baseline=-0.6cm]
\path (0,0) coordinate (f1);
\path (3,0) coordinate (f2);
\path (3,-0.5) coordinate (g1);
\path (6,-0.5) coordinate (g2);
\node at (1.5,0.125) {$f$};
\node at (4.5,-0.625) {$g$};
\draw (f1) .. controls +(1,.8) and +(-1,.8) .. (f2);
\draw[dashed] (f1) .. controls +(1,-.4) and +(-1,-.4) .. (f2);
\draw (f1) .. controls +(1,-1) and +(-1,-.4) .. (g1);
\draw (g1) .. controls +(1,-.8) and +(-1,-.8) .. (g2);
\draw[dashed] (g1) .. controls +(1,.4) and +(-1,.4) .. (g2);
\draw (f2) .. controls +(1,.4) and +(-1,1) .. (g2);
%
\draw[blue,->] (-0.8,-1.2) node[below] {$(a \circ d) \times I$} -- (1,-0.5) ;
\path[clip] (f1) .. controls +(1,-.4) and +(-1,-.4) .. (f2)
                    .. controls +(1,.4) and +(-1,1) .. (g2)
                    .. controls +(-1,.4) and +(1,.4) .. (g1)
                    .. controls +(-1,-.4) and +(1,-1) .. (f1);
\foreach \x in {0,0.1, ..., 6} {
	\draw[green!50!brown] (\x,-2) -- + (0,4);
}
\end{tikzpicture}
};
\node (fg2) at (4,-4) {
\begin{tikzpicture}[baseline=-0.1cm]
\path (0,0) coordinate (f1);
\path (3,0) coordinate (f2);
\path (3,-0.5) coordinate (g1);
\path (6,-0.5) coordinate (g2);
\node at (1.5,0.125) {$f$};
\node at (4.5,-0.625) {$g$};
\draw[dashed] (f1) .. controls +(1,.8) and +(-1,.8) .. (f2);
\draw[dashed] (f1) .. controls +(1,-.4) and +(-1,-.4) .. (f2);
\draw (f1) .. controls +(1,-1) and +(-1,-.4) .. (g1);
\draw (g1) .. controls +(1,-.8) and +(-1,-.8) .. (g2);
\draw[dashed] (g1) .. controls +(1,.4) and +(-1,.4) .. (g2);
\draw[dashed] (f2) .. controls +(1,.4) and +(-1,1) .. (g2);
\draw (f1) .. controls +(1,1.5) and +(-1,2)..(g2);
%
\begin{scope}
\path[clip] (f1) .. controls +(1,-.4) and +(-1,-.4) .. (f2)
                    .. controls +(1,.4) and +(-1,1) .. (g2)
                    .. controls +(-1,.4) and +(1,.4) .. (g1)
                    .. controls +(-1,-.4) and +(1,-1) .. (f1);
\foreach \x in {0,0.1, ..., 6} {
	\draw[green!50!brown] (\x,-2) -- + (0,4);
}
\end{scope}
\begin{scope}
\path[clip] (f1) ..  controls +(1,1.5) and +(-1,2).. (g2)
		      .. controls +(-1,1) and +(1,.4) .. (f2)
		      .. controls +(-1,.8) and + (1,.8) .. (f1);
\foreach \x in {0,0.1, ..., 6} {
	\draw[green!50!brown] (\x,-2) -- + (0,4);
}
\end{scope}
\end{tikzpicture}
};
\node (fg3) at (8,0) {
\begin{tikzpicture}[baseline=-2.45cm]
\path (0,0) coordinate (f1);
\path (3,0) coordinate (f2);
\path (3,0) coordinate (g1);
\path (6,0) coordinate (g2);
\node at (1.5,0) {$f$};
\node at (4.5,0) {$g$};
\draw[dashed] (f1) .. controls +(1,.8) and +(-1,.8) .. (f2);
\draw (f1) .. controls +(1,-.8) and +(-1,-.8) .. (f2);
\draw (g1) .. controls +(1,-.8) and +(-1,-.8) .. (g2);
\draw[dashed] (g1) .. controls +(1,.8) and +(-1,.8) .. (g2);
\draw (f1) .. controls +(1,1.5) and +(-1,1.5)..(g2);
%
\draw[blue,->] (4,1.75) node[above] {$(b \circ d) \times I$}-- + (0,-1);
\begin{scope}
\path[clip] (f1) ..  controls +(1,1.5) and +(-1,1.5).. (g2)
		      .. controls +(-1,.8) and +(1,.8) .. (f2)
		      .. controls +(-1,.8) and + (1,.8) .. (f1);
\foreach \x in {0,0.1, ..., 6} {
	\draw[green!50!brown] (\x,-2) -- + (0,4);
}
\end{scope}
\end{tikzpicture}
};
\draw[->] ($(fg1.south)+(0,0.5)$) -- node[left=0.5cm] {add $(b \circ d) \times I$} (fg2);
\draw[->] (fg2) -- node[right=0.5cm] {remove $(a \circ d) \times I$} ($(fg3.south)+(0,1.75)$);
\path (fg1) -- node {$=$} (fg3);
\end{tikzpicture}
$$
\caption{Part of the proof that the four different horizontal compositions of 2-morphisms are equal.}
\label{fig:horizontal-compositions-equal}
\end{figure}

Given 1-morphisms $a$, $b$ and $c$ of $D$, we define the associator from $(a\bullet b)\bullet c$ to $a\bullet(b\bullet c)$
as in Figure \ref{fig:associator}.
This is just a reparameterization of the pinched product $(a\bullet b\bullet c)\times I$ of $\cC$.
\begin{figure}[t]
$$
\mathfig{0.4}{triangle/triangle4a}
$$
$$
\begin{tikzpicture}
\node[circle,fill=black,inner sep=1pt] at (1.73,0) {};
\node[circle,fill=black,inner sep=1pt] at (-1.73,0) {};
\begin{scope}[yshift=-1cm]
\path[clip] (0,0) circle (2);
\begin{scope}[yshift=2cm]
\draw (0,0) circle (2);
\node[circle,fill=black,inner sep=1pt] (L2) at (-90:2) {};
\node[circle,fill=black,inner sep=1pt] (L1) at (-120:2) {};
\node at (-60:2.25) {$c$};
\node at (-105:2.25) {$b$};
\node at (-135:2.25) {$a$};
\end{scope}
\end{scope}
\begin{scope}[yshift=1cm]
\path[clip] (0,0) circle (2);
\begin{scope}[yshift=-2cm]
\node at (120:2.25) {$a$};
\node at (75:2.25) {$b$};
\node at (45:2.25) {$c$};
\draw (0,0) circle (2);
\node[circle,fill=black,inner sep=1pt] (U1) at (90:2) {};
\node[circle,fill=black,inner sep=1pt] (U2) at (60:2) {};
\end{scope}
\end{scope}
\draw[dashed] (L1) -- (U1);
\draw[dashed] (L2) -- (U2);
\begin{scope}
\path[clip] (0,1) circle (2);
\path[clip] (0,-1) circle (2);
		\foreach \t in {-2.5,-2.3,...,-1.2} {
			\draw[green!50!brown] (\t,-1) -- +(1.19,2);
		}
		\foreach \t in {-1.1,-0.9,...,0} {
			\draw[blue!50!brown] (\t,-1) -- +(1.19,2);
		}
		\foreach \t in {0.1,0.3,...,2.5} {
			\draw[red!50!brown] (\t,-1) -- +(1.19,2);
		}
\end{scope}
\draw[->, thick, blue!75!yellow] (-2,0.5) node[black, left] {$a\times I$} -- (-1,0.5);
\draw[->, thick, blue!75!yellow] (-0.25,-1.5) node[black, below] {$b\times I$} -- (-0.25,-0.5);
\draw[->, thick, blue!75!yellow] (2,-0.5) node[black, right] {$c\times I$} -- (1,-0.5);
\end{tikzpicture}
$$
\caption{An associator.}
\label{fig:associator}
\end{figure}

Let $x,y,z$ be objects of $D$ and let $a:x\to y$ and $b:y\to z$ be 1-morphisms of $D$.
We have already defined above 
structure maps $u:a\bullet \id_y\to a$ and $v:\id_y\bullet b\to b$, as well as an associator
$\alpha: (a\bullet \id_y)\bullet b\to a\bullet(\id_y\bullet b)$, as shown in
Figure \ref{fig:ingredients-triangle-axiom}.
(See also Figures \ref{fzo2} and \ref{fig:associator}.)
We now show that $D$ satisfies the triangle axiom, which states that $u\bullet\id_b$ 
is equal to the composition of $\alpha$ and $\id_a\bullet v$.
(Both are 2-morphisms from $(a\bullet \id_y)\bullet b$ to $a\bullet b$.)
\begin{figure}[t]
\begin{align*}
\mathfig{0.4}{triangle/triangle4a} \\
\mathfig{0.4}{triangle/triangle4b} \\
\mathfig{0.4}{triangle/triangle4c} \\
\alpha & = 
\begin{tikzpicture}[baseline]
\node[circle,fill=black,inner sep=1pt] at (1.73,0) {};
\node[circle,fill=black,inner sep=1pt] at (-1.73,0) {};
\begin{scope}[yshift=-1cm]
\path[clip] (0,0) circle (2);
\begin{scope}[yshift=2cm]
\draw (0,0) circle (2);
\node[circle,fill=black,inner sep=1pt] (L2) at (-90:2) {};
\node[circle,fill=black,inner sep=1pt] (L1) at (-120:2) {};
\node at (-60:2.25) {$b$};
\node at (-105:2.25) {\scriptsize $y \times I$};
\node at (-135:2.25) {$a$};
\end{scope}
\end{scope}
\begin{scope}[yshift=1cm]
\path[clip] (0,0) circle (2);
\begin{scope}[yshift=-2cm]
\node at (120:2.25) {$a$};
\node at (75:2.25) {\scriptsize $y \times I$};
\node at (45:2.25) {$b$};
\draw (0,0) circle (2);
\node[circle,fill=black,inner sep=1pt] (U1) at (90:2) {};
\node[circle,fill=black,inner sep=1pt] (U2) at (60:2) {};
\end{scope}
\end{scope}
\draw[dashed] (L1) -- (U1);
\draw[dashed] (L2) -- (U2);
\begin{scope}
\path[clip] (0,1) circle (2);
\path[clip] (0,-1) circle (2);
		\foreach \t in {-2.5,-2.3,...,-1.2} {
			\draw[green!50!brown] (\t,-1) -- +(1.19,2);
		}
		\foreach \t in {-1.1,-0.9,...,0} {
			\draw[blue!50!brown] (\t,-1) -- +(1.19,2);
		}
		\foreach \t in {0.1,0.3,...,2.5} {
			\draw[red!50!brown] (\t,-1) -- +(1.19,2);
		}
	\foreach \x in {0,1,...,10} {
		\path (L1) to[out=60,in=-120] node[pos=\x/10] (p1\x) {}(U1);
		\path (L2) to[out=60,in=-120] node[pos=\x/10] (p2\x) {} (U2);
		\draw[blue!50!brown] (p1\x.center) -- (p2\x.center);
	}
\end{scope}
\draw[->, thick, blue!75!yellow] (-2,0.5) node[black, left] {$a\times I$} -- (-1,0.5);
\draw[->, thick, blue!75!yellow] (-0.1,-1.5) node[black, below] {$y\times I \times I$} -- (-0.25,-0.5);
\draw[->, thick, blue!75!yellow] (2,-0.5) node[black, right] {$b\times I$} -- (1,-0.5);
\end{tikzpicture} \\
u & =
\begin{tikzpicture}[baseline]
\coordinate (P) at (0,0);
\coordinate (Q) at (3,0);
\coordinate (R) at (1.5,-0.5);
\draw (P) \vertex to[out=40,in=140] node[above] {$a$} (Q) \vertex -- node[below] {\scriptsize $y \times I$} (R) \vertex to[out=-180,in=-40] node[below] {$a$} (P);
\clip (P) to[out=40,in=140] (Q) -- (R) to[out=-180,in=-40] (P);
\foreach \x in {1,...,9} {
	\path (P) to[out=40,in=140] node[pos=\x/10] (PQ\x) {} (Q);
	\path (P) to[out=-40,in=-180] node[pos=\x/10] (PR\x) {} (R);
	\draw[green!50!brown] (PQ\x.center) -- (PR\x.center);
}
\end{tikzpicture} \\
v & = 
\begin{tikzpicture}[baseline]
\coordinate (P) at (0,0);
\coordinate (Q) at (3,0);
\coordinate (R) at (1.5,-0.5);
\draw (P) \vertex to[out=40,in=140] node[above] {$b$} (Q) \vertex to[out=-140,in=0] node[below] {$b$} (R) -- node[below] {\scriptsize $y \times I$}  (P);
\clip (P) to[out=40,in=140] (Q) to[out=-140,in=0] (R) -- (P);
\foreach \x in {1,...,9} {
	\path (P) to[out=40,in=140] node[pos=\x/10] (PQ\x) {} (Q);
	\path (R) to[out=0,in=-140] node[pos=\x/10] (RQ\x) {} (Q);
	\draw[brown] (PQ\x.center) -- (RQ\x.center);
}
\end{tikzpicture} \\
\end{align*}
\nn{remember to change `assoc' to $\alpha$}
\caption{Ingredients for the triangle axiom.}
\label{fig:ingredients-triangle-axiom}
\end{figure}

The horizontal compositions $u\bullet\id_b$ and $\id_a\bullet v$ are shown in Figure \ref{fig:horizontal-composition}
(see also Figure \ref{fzo5}).
The vertical composition of $\alpha$ and $\id_a\bullet v$ is shown in Figure \ref{fig:vertical-composition}.
Figure \ref{fig:adding-a-collar} shows that we can add a collar to $u\bullet\id_b$ so that the result differs from
Figure  \ref{fig:vertical-composition} by an isotopy rel boundary.
Note that here we have used in an essential way the associativity of product morphisms (Axiom \ref{axiom:product}.3) 
as well as compatibility of product morphisms with fiber-preserving maps (Axiom \ref{axiom:product}.1).
\begin{figure}[t]
\begin{align*}
\mathfig{0.4}{triangle/triangle4d}
\mathfig{0.4}{triangle/triangle4e}
\end{align*}
\caption{Horizontal compositions in the triangle axiom.}
\label{fig:horizontal-composition}
\end{figure}
\begin{figure}[t]
\begin{align*}
\mathfig{0.4}{triangle/triangle4f} \\
\mathfig{0.4}{triangle/triangle4f_i}
\end{align*}
\caption{Vertical composition in the triangle axiom.}
\label{fig:vertical-composition}
\end{figure}
\begin{figure}[t]
\begin{align*}
\mathfig{0.4}{triangle/triangle5}
\end{align*}
\caption{Adding a collar in the proof of the triangle axiom.}
\label{fig:adding-a-collar}
\end{figure}



\subsection{\texorpdfstring{$A_\infty$}{A-infinity} 1-categories}
\label{sec:comparing-A-infty}
In this section, we make contact between the usual definition of an $A_\infty$ category 
and our definition of a disk-like $A_\infty$ $1$-category, from \S \ref{ss:n-cat-def}.

\medskip

Given a disk-like $A_\infty$ $1$-category $\cC$, we define an ``$m_k$-style" 
$A_\infty$ $1$-category $A$ as follows.
The objects of $A$ are $\cC(pt)$.
The morphisms of $A$, from $x$ to $y$, are $\cC(I; x, y)$
($\cC$ applied to the standard interval with boundary labeled by $x$ and $y$).
For simplicity we will now assume there is only one object and suppress it from the notation.
Henceforth $A$ will also denote its unique morphism space.

A choice of homeomorphism $I\cup I \to I$ induces a chain map $m_2: A\otimes A\to A$.
We now have two different homeomorphisms $I\cup I\cup I \to I$, but they are isotopic.
Choose a specific 1-parameter family of homeomorphisms connecting them; this induces
a degree 1 chain homotopy $m_3:A\ot A\ot A\to A$.
Proceeding in this way we define the rest of the $m_i$'s.
It is straightforward to verify that they satisfy the necessary identities.

\medskip

In the other direction, we start with an alternative conventional definition of an $A_\infty$ algebra:
an algebra $A$ for the $A_\infty$ operad.
(For simplicity, we are assuming our $A_\infty$ 1-category has only one object.)
We are free to choose any operad with contractible spaces, so we choose the operad
whose $k$-th space is the space of decompositions of the standard interval $I$ into $k$
parameterized copies of $I$.
Note in particular that when $k=1$ this implies a $C_*(\Homeo(I))$ action on $A$.
(Compare with Example \ref{ex:e-n-alg} and the discussion which precedes it.)
Given a non-standard interval $J$, we define $\cC(J)$ to be
$(\Homeo(I\to J) \times A)/\Homeo(I\to I)$,
where $\beta \in \Homeo(I\to I)$ acts via $(f, a) \mapsto (f\circ \beta\inv, \beta_*(a))$.
Note that $\cC(J) \cong A$ (non-canonically) for all intervals $J$.
We define a $\Homeo(J)$ action on $\cC(J)$ via $g_*(f, a) = (g\circ f, a)$.
The $C_*(\Homeo(J))$ action is defined similarly.

Let $J_1$ and $J_2$ be intervals, and let $J_1\cup J_2$ denote their union along a single boundary point.
We must define a map $\cC(J_1)\ot\cC(J_2)\to\cC(J_1\cup J_2)$.
Choose a homeomorphism $g:I\to J_1\cup J_2$.
Let $(f_i, a_i)\in \cC(J_i)$.
We have a parameterized decomposition of $I$ into two intervals given by
$g\inv \circ f_i$, $i=1,2$.
Corresponding to this decomposition the operad action gives a map $\mu: A\ot A\to A$.
Define the gluing map to send $(f_1, a_1)\ot (f_2, a_2)$ to $(g, \mu(a_1\ot a_2))$.
Operad associativity for $A$ implies that this gluing map is independent of the choice of
$g$ and the choice of representative $(f_i, a_i)$.

It is straightforward to verify the remaining axioms for a disk-like $A_\infty$ 1-category.







\noop { %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

That definition associates a chain complex to every interval, and we begin by giving an alternative definition that is entirely in terms of the chain complex associated to the standard interval $[0,1]$. 
\begin{defn}
A \emph{topological $A_\infty$ category on $[0,1]$} $\cC$ has a set of objects $\Obj(\cC)$, 
and for each $a,b \in \Obj(\cC)$, a chain complex $\cC_{a,b}$, along with
\begin{itemize}
\item an action of the operad of $\Obj(\cC)$-labeled cell decompositions
\item and a compatible action of $\CD{[0,1]}$.
\end{itemize}
\end{defn}
Here the operad of cell decompositions of $[0,1]$ has operations indexed by a finite set of 
points $0 < x_1< \cdots < x_k < 1$, cutting $[0,1]$ into subintervals.
An $X$-labeled cell decomposition labels $\{0, x_1, \ldots, x_k, 1\}$ by $X$.
Given two cell decompositions $\cJ^{(1)}$ and $\cJ^{(2)}$, and an index $m$, we can compose 
them to form a new cell decomposition $\cJ^{(1)} \circ_m \cJ^{(2)}$ by inserting the points 
of $\cJ^{(2)}$ linearly into the $m$-th interval of $\cJ^{(1)}$.
In the $X$-labeled case, we insist that the appropriate labels match up.
Saying we have an action of this operad means that for each labeled cell decomposition 
$0 < x_1< \cdots < x_k < 1$, $a_0, \ldots, a_{k+1} \subset \Obj(\cC)$, there is a chain 
map $$\cC_{a_0,a_1} \tensor \cdots \tensor \cC_{a_k,a_{k+1}} \to \cC_{a_0,a_{k+1}}$$ and these 
chain maps compose exactly as the cell decompositions.
An action of $\CD{[0,1]}$ is compatible with an action of the cell decomposition operad 
if given a decomposition $\pi$, and a family of diffeomorphisms $f \in \CD{[0,1]}$ which 
is supported on the subintervals determined by $\pi$, then the two possible operations 
(glue intervals together, then apply the diffeomorphisms, or apply the diffeormorphisms 
separately to the subintervals, then glue) commute (as usual, up to a weakly unique homotopy).

Translating between this notion and the usual definition of an $A_\infty$ category is now straightforward.
To restrict to the standard interval, define $\cC_{a,b} = \cC([0,1];a,b)$.
Given a cell decomposition $0 < x_1< \cdots < x_k < 1$, we use the map (suppressing labels)
$$\cC([0,1])^{\tensor k+1} \to \cC([0,x_1]) \tensor \cdots \tensor \cC[x_k,1] \to \cC([0,1])$$
where the factors of the first map are induced by the linear isometries $[0,1] \to [x_i, x_{i+1}]$, and the second map is just gluing.
The action of $\CD{[0,1]}$ carries across, and is automatically compatible.
Going the other way, we just declare $\cC(J;a,b) = \cC_{a,b}$, pick a diffeomorphism 
$\phi_J : J \isoto [0,1]$ for every interval $J$, define the gluing map 
$\cC(J_1) \tensor \cC(J_2) \to \cC(J_1 \cup J_2)$ by the first applying 
the cell decomposition map for $0 < \frac{1}{2} < 1$, then the self-diffeomorphism of $[0,1]$ 
given by $\frac{1}{2} (\phi_{J_1} \cup (1+ \phi_{J_2})) \circ \phi_{J_1 \cup J_2}^{-1}$.
You can readily check that this gluing map is associative on the nose. \todo{really?}

%First recall the \emph{coloured little intervals operad}. Given a set of labels $\cL$, the operations are indexed by \emph{decompositions of the interval}, each of which is a collection of disjoint subintervals $\{(a_i,b_i)\}_{i=1}^k$ of $[0,1]$, along with a labeling of the complementary regions by $\cL$, $\{l_0, \ldots, l_k\}$.  Given two decompositions $\cJ^{(1)}$ and $\cJ^{(2)}$, and an index $m$ such that $l^{(1)}_{m-1} = l^{(2)}_0$ and $l^{(1)}_{m} = l^{(2)}_{k^{(2)}}$, we can form a new decomposition by inserting the intervals of $\cJ^{(2)}$ linearly inside the $m$-th interval of $\cJ^{(1)}$. We call the resulting decomposition $\cJ^{(1)} \circ_m \cJ^{(2)}$.

%\begin{defn}
%A \emph{topological $A_\infty$ category} $\cC$ has a set of objects $\Obj(\cC)$ and for each $a,b \in \Obj(\cC)$ a chain complex $\cC_{a,b}$, along with a compatible `composition map' and an `action of families of diffeomorphisms'.

%A \emph{composition map} $f$ is a family of chain maps, one for each decomposition of the interval, $f_\cJ : A^{\tensor k} \to A$, making $\cC$ into a category over the coloured little intervals operad, with labels $\cL = \Obj(\cC)$. Thus the chain maps satisfy the identity 
%\begin{equation*}
%f_{\cJ^{(1)} \circ_m \cJ^{(2)}} = f_{\cJ^{(1)}} \circ (\id^{\tensor m-1} \tensor f_{\cJ^{(2)}} \tensor \id^{\tensor k^{(1)} - m}).
%\end{equation*}

%An \emph{action of families of diffeomorphisms} is a chain map $ev: \CD{[0,1]} \tensor A \to A$, such that 
%\begin{enumerate}
%\item The diagram 
%\begin{equation*}
%\xymatrix{
%\CD{[0,1]} \tensor \CD{[0,1]} \tensor A \ar[r]^{\id \tensor ev} \ar[d]^{\circ \tensor \id} & \CD{[0,1]} \tensor A \ar[d]^{ev} \\
%\CD{[0,1]} \tensor A \ar[r]^{ev} & A
%}
%\end{equation*}
%commutes up to weakly unique homotopy.
%\item If $\phi \in \Diff([0,1])$ and $\cJ$ is a decomposition of the interval, we obtain a new decomposition $\phi(\cJ)$ and a collection $\phi_m \in \Diff([0,1])$ of diffeomorphisms obtained by taking the restrictions $\restrict{\phi}{[a_m,b_m]} : [a_m,b_m] \to [\phi(a_m),\phi(b_m)]$ and pre- and post-composing these with the linear diffeomorphisms $[0,1] \to [a_m,b_m]$ and $[\phi(a_m),\phi(b_m)] \to [0,1]$. We require that
%\begin{equation*}
%\phi(f_\cJ(a_1, \cdots, a_k)) = f_{\phi(\cJ)}(\phi_1(a_1), \cdots, \phi_k(a_k)).
%\end{equation*}
%\end{enumerate}
%\end{defn}

From a topological $A_\infty$ category on $[0,1]$ $\cC$ we can produce a `conventional' 
$A_\infty$ category $(A, \{m_k\})$ as defined in, for example, \cite{MR1854636}.
We'll just describe the algebra case (that is, a category with only one object), 
as the modifications required to deal with multiple objects are trivial.
Define $A = \cC$ as a chain complex (so $m_1 = d$).
Define $m_2 : A\tensor A \to A$ by $f_{\{(0,\frac{1}{2}),(\frac{1}{2},1)\}}$.
To define $m_3$, we begin by taking the one parameter family $\phi_3$ of diffeomorphisms 
of $[0,1]$ that interpolates linearly between the identity and the piecewise linear 
diffeomorphism taking $\frac{1}{4}$ to $\frac{1}{2}$ and $\frac{1}{2}$ to $\frac{3}{4}$, and then define
\begin{equation*}
m_3(a,b,c) = ev(\phi_3, m_2(m_2(a,b), c)).
\end{equation*}

It's then easy to calculate that
\begin{align*}
d(m_3(a,b,c)) & = ev(d \phi_3, m_2(m_2(a,b),c)) - ev(\phi_3 d m_2(m_2(a,b), c)) \\
 & = ev( \phi_3(1), m_2(m_2(a,b),c)) - ev(\phi_3(0), m_2 (m_2(a,b),c)) - \\ & \qquad - ev(\phi_3, m_2(m_2(da, b), c) + (-1)^{\deg a} m_2(m_2(a, db), c) + \\ & \qquad \quad + (-1)^{\deg a+\deg b} m_2(m_2(a, b), dc) \\
 & = m_2(a , m_2(b,c)) - m_2(m_2(a,b),c) - \\ & \qquad - m_3(da,b,c) + (-1)^{\deg a + 1} m_3(a,db,c) + \\ & \qquad \quad + (-1)^{\deg a + \deg b + 1} m_3(a,b,dc), \\
\intertext{and thus that}
m_1 \circ m_3 & =  m_2 \circ (\id \tensor m_2) - m_2 \circ (m_2 \tensor \id) - \\ & \qquad - m_3 \circ (m_1 \tensor \id \tensor \id) - m_3 \circ (\id \tensor m_1 \tensor \id) - m_3 \circ (\id \tensor \id \tensor m_1)
\end{align*}
as required (c.f. \cite[p. 6]{MR1854636}).
\todo{then the general case.}
We won't describe a reverse construction (producing a topological $A_\infty$ category 
from a ``conventional" $A_\infty$ category), but we presume that this will be easy for the experts.

} %%%%% end \noop %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%