To say that an element a in a magma (M,*) is left-cancellative, is to say that the function g:x\mapsto a*x is
injective where is also an element of . That the function g is injective implies that given some equality of the form a*x=b, where the only unknown is x , there is only one possible value of x satisfying the equality. More precisely, we are able to define some function f , the inverse of g , such that for all x , f(g(x))=f(a*x)=x. Put another way, for all x and
y in M , if a*x=a*y, then x=y . Similarly, to say that the element a is right-cancellative, is to say that the function h:x\mapsto x*a is injective and that for all x and
y in M , if x*a=y*a, then x=y . == Examples of cancellative monoids and semigroups ==