Example. Monoids [01KC]

A semigroup is called a monoid when it has an identity element. The type of monoids in a given universe \mathcal {U} is therefore defined like so:

\mathsf {Monoid}_{\mathcal {U}} :\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(A:\mathsf {Semigroup}_{\mathcal {U}})}} \mathsf {IdentityElt}(A)

The appropriate reflexive graph structure for monoids is, then, the forgetful one:

\underline {\mathsf {Monoid}}_{\mathcal {U}} :\equiv \bigl \{ A:\underline {\mathsf {Semigroup}}_{\mathcal {U}} \bigm \vert \mathsf {IdentityElt}(A) \bigr \}

When \mathcal {U} is univalent, so is \underline {\mathsf {Monoid}}_{\mathcal {U}}.