Example. Groups [01KE]

A group is a monoid that has all inverses.

\mathsf {Group}_{\mathcal {U}} :\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(A:\mathsf {Monoid}_{\mathcal {U}})}} {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:\left \lvert {A}\right \rvert )}} \mathsf {inverseOf}_A(x)

We consider the following forgetful reflexive graph structure for groups:

\underline {\mathsf {Group}}_{\mathcal {U}} :\equiv \bigl \{ A:\underline {\mathsf {Monoid}}_{\mathcal {U}} \mathrel {\bigm \vert } {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:\left \lvert {A}\right \rvert )}} \mathsf {inverseOf}_A(x) \bigr \}

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