Example. Semigroup homomorphisms [01KU]

Let A and B be semigroups. A homomorphism of semigroups from A to B is just a function on the underlying sets that commutes with the binary operation.

\hom _{\mathsf {Semigroup}}(A,B) :\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(f:\left \lvert {A}\right \rvert \to \left \lvert {B}\right \rvert )}} {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x,y:\left \lvert {A}\right \rvert )}} f(x\bullet _A y) =_{\left \lvert {B}\right \rvert } fx\bullet _A fy

We can exhibit a univalent reflexive graph structure on semigroup homomorphisms as follows:

\underline {\hom }_{\mathsf {Semigroup}}(A,B) :\equiv \bigl \lbrace f : {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:\left \lvert {A}\right \rvert )}}\Delta \left \lvert {B}\right \rvert \mathrel {\bigm \vert } {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x,y:\left \lvert {A}\right \rvert )}} f(x\bullet _A y) =_{\left \lvert {B}\right \rvert } fx\bullet _A fy \bigr \rbrace