\documentclass{article}
\input{packages}
\input{def}

\homework{Multicategories}

\begin{document}
\maketitle

\begin{remark}
Because of the nature of the problem space of this assignment (e.g.~$n$-ary inputs), you will need to develop a balance between formality and clarity/brevity.
For example, carefully select examples that are simple enough to reason about concisely but complex enough that this reasoning will clearly generalize to all other cases.
Also, explicitly state how given properties of one component (e.g.~the domain of a functor) imply required properties of another component (e.g.~the codomain of a functor), possibly explicitly illustrating this connection with an example.
Do not get buried in the irrelevant details.
\end{remark}

\begin{exercise}
Prove that there is a multicategory~$\cat{Mon}$ whose objects are monoids and whose morphisms are the multilinear homomorphisms with composition and identity are inherited from $\cat{Set}$.
This amounts to defining what nullary multilinear homomorphisms are, and proving that multilinear homomorphisms are closed under composition and identity.
\end{exercise}

\begin{definition}[(Unbiased) ($\cat{Set}$-Enriched) Category]
A tuple $\langle O, M, \cocomp, \prf{a}, \prf{i} \rangle$ whose components have the following types:
\begin{framed}
\begin{description}
\item[Objects $O$:] $\TYPE{1}$
\item[Morphisms $M$:] $O \times O \to \Type$
\item[Composition $\cocomp$:] Maps each path of morphisms from object $\ob{C}_1$ to object $\ob{C}_2$ to a morphism from $\ob{C}_1$ to $\ob{C}_2$
\item[Associativity $\prf{a}$:] Given a path of paths, composing each subpath into a morphism and then compsing the resulting path of morphisms must produce the same result as composing the path resulting from flattening the path of paths.
\item[Identity $\prf{i}$:] Composing the singleton path results in the contained morphism.
\end{description}
\end{framed}
\end{definition}

\begin{theorem}
There is a bijection between biased and unbiased categories.
\end{theorem}
\begin{proof}
The proof is essentially the same as that for the bijection between biased and unbiased monoids.
\end{proof}

\begin{exercise}
Prove that there is a bijection between the set of categories and the set of pairs~$\langle O, M \rangle$ where $O$~is an element of~$\TYPE{1}$ and $M$~is a functor of multicategories from~$\cat{Path}(O)$ to~$\cat{Set}$.
\end{exercise}

\begin{exercise}
Give an example of an internal monoid of~$\cat{Mon}$ whose underlying set is~$\N$.
\end{exercise}

\begin{exercise}
Define a multicategory~$\cat{M}$ with the property that, for any multicategory $\cat{C}$, there is a bijection between the set of functors from~$\cat{M}$ to~$\cat{C}$ and the set of internal monoids of~$\cat{C}$.
\end{exercise}

\begin{definition}
A commutative monoid is a monoid~$\cat{M}$ with the property $\forall m_1, m_2 : M.\; m_1 * m_2 = m_2 * m_1$.
$\cat{CommMon}$ is the multicategory whose objects are commutative monoids and whose morphisms or multilinear monoid homomorphisms.
\end{definition}

\begin{exercise}
Prove that the category~$\cat{CommMon}$ can be enriched in the multicategory~$\cat{CommMon}$. That is, show that there is a functor of multicategories from~$\cat{Path}(O_\cat{CommMon})$ to~$\cat{CommMon}$ that when composed with the underlying functor of multicategories from~$\cat{CommMon}$ to~$\cat{Set}$ produces the functor of multicategories from~$\cat{Path}(O_\cat{CommMon})$ to~$\cat{Set}$ defining the category~$\cat{CommMon}$.
\end{exercise}

\end{document}