The semi-direct product of monoids s and m, which is a monoid
when m acts on s. Structurally, the semi-direct product is
just a pair (s,m). However, the monoid instance is different.
In particular, we have
(s1,m1) <> (s2,m2) = (s1 <> (m1 `act` s2), m1 <> m2)We call the monoid m the quotient monoid and the monoid s the
sub-monoid of the semi-direct product. The semi-direct product
Semi s m is an extension of the monoid s with m being the
quotient.