Definition A monoid is an algebraic structure, (A,∗,1) where, A:Set is the carrier. ∗:A→A→A is a binary operator. 1:A is the unit element. x∗1=1∗x=x - 1 is a unit over ∗. x∗(y∗z)=(x∗y)∗z - ∗ is associative.