Let $G$ be a nonempty set closed under an associative product, which in addition satisfies :
A. There exists an $e$ in $G$ such that $a \cdot e=a$ for all $a \in G$.
B. Given $a \in G$, there exists an element $y(a) \in G$ such that $a \cdot y(a) =e$.
Prove that $G$ must be a group under this product.
Attempt -Since Associativity is given and Closure also, also the right identity and right inverse is given .So i just have to prove left identity and left inverse.
Now as $ae=a$ post multiplying by a, $aea=aa$. Now pre multiply by a^{-1} I get hence $ea=a$. And doing same process for inverse Is this Right?