$\mathcal{A}$ and if $x,y,z \in \mathcal{A}$, then
$\alg{\set{x,y,z}}$ is the smallest subalgebra of $\mathcal{A}$
containing the set $\set{x,y,z}$.
+
+ If $R$ has a multiplicative identity (that is, a unit) element,
+ then that element is denoted by $\unit{R}$.
\end{section}
\begin{section}{Algorithm}
\input{mjo-common} % for \of, and \binopmany
+% The multiplicative identity element of its argument, which should be
+% an algebraic structure.
+\newcommand*{\unit}[1]{ 1_{{#1}} }
+
+\ifdefined\newglossaryentry
+ \newglossaryentry{unit}{
+ name={\ensuremath{\unit{R}}},
+ description={the multiplicative identity (unit) element of $R$},
+ sort=u
+ }
+\fi
+
% The direct sum of two things.
\newcommand*{\directsum}[2]{ {#1}\oplus{#2} }
}
\fi
-% The identity operator/arrow on its argument.
+% The identity function/arrow on its argument.
\newcommand*{\identity}[1]{ \operatorname{id}_{{#1}} }
+\ifdefined\newglossaryentry
+ \newglossaryentry{identity}{
+ name={\ensuremath{\identity{X}}},
+ description={the identity function or arrow on $X$},
+ sort=i
+ }
+\fi
+
% The composition of two arrows/functions. For example, the
% composition of g with f is \compose{g}{f}\of{x} === g\of{f\of{x}}.
\newcommand*{\compose}[2]{ {#1}\circ{#2} }