Is a semigroup with unique right identity and left inverse a group?
Solution 1:
As has been shown in a comment, (2) does not hold. However, (1) does.
Let $e$ be the unique right identity, and for any $x$, let $x'$ denote a left inverse.
For any $x$, $$ e = x''x' = x''ex' = x''x'xx' = ex x'. $$ Hence, for any $y$, $$ y = ye = yexx' = y xx', $$ which shows that $xx'$ is a right identity. Since it is unique, $xx' = e$. Hence every element $x$ has a two-sided inverse.
Finally, for any $x$, $$ ex = xx'x = xe = x, $$ so $e$ is a two-sided identity and the semigroup is a group.