Example. Identity elements in semigroups [01KB]

Let A be a semigroup. An identity element for A is defined to be an element \epsilon :\left \lvert {A}\right \rvert satisfying the following condition:

\mathsf {isIdentity}_A(\epsilon ) :\equiv {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:\left \lvert {A}\right \rvert )}} (x\bullet _A \epsilon =_{\left \lvert {A}\right \rvert } x) \times (\epsilon \bullet _A x =_{\left \lvert {A}\right \rvert } x)

Of course, because \left \lvert {A}\right \rvert is a set, \mathsf {isIdentity_A(\epsilon )} is also a proposition. We will however that not only is the condition of being an identity element a proposition, but in fact the type of identity elements \mathsf {IdentityElt}(A) :\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(\epsilon :\left \lvert {A}\right \rvert )}}\mathsf {isIdentity}_A(\epsilon ) overall is a proposition. Fixing \epsilon ,\epsilon ':A and h_\epsilon :\mathsf {isIdentity}_A(\epsilon ) and h_{\epsilon '}:\mathsf {isIdentity}_A(\epsilon ) we must identify \left \langle \epsilon ,h_\epsilon \right \rangle with \left \langle \epsilon ',h_{\epsilon '}\right \rangle . By the above, it suffices to verify \epsilon =_{\left \lvert {A}\right \rvert }\epsilon '. We note that by h_\epsilon and h_{\epsilon '} we have:

\epsilon =_{\left \lvert {A}\right \rvert } \epsilon \bullet _A \epsilon ' =_{\left \lvert {A}\right \rvert } \epsilon '

Hence, \mathsf {IdentityElt}(A) is a proposition for any semigroup A.