幺半群 monoid
A monoid is a triple consisting of a set X, a binary operation □, and a special element (called the identity element of X), satisfying these rules:
(associative law)
(identity law)
for all .
A monoid is a semigroup with an identity element.