Suppose a finite set $G$ is closed under associative product and that both cancellation laws hold in $G$. Prove $G$ must be a group.
I somehow need to prove identity, inverse, that closure holds to prove that set is a group.
How do i begin? Hints?
Please mention the ideas behind the proof?
Thanks.
EDIT
The proof as posted in link below is
I have doubts regarding this proof
There exists a element $e$ of G such that $f(e)=a$? Why does it exist?
Now as the function is surjective there exists an element $aa_{R} =e$? Why does it exist? What is the role of surjectivity here?
Thanks.