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· e = a$ for all $a\in G$.
(b) Give $a\in G$, there exists an element $y(a)\in G$ such that $a·y(a) = e$. Prove that $G$ must be a group under this product.
My solution goes like this:
First we need to verify the closure property i.e if $a,b\in G $ then $a.b\in G$, which is true by definition. Next, we need to verify the associative property i.e if $a,b,c\in G$ then , $a.(b.c)=(a.b).c$. Next , we verify the inverse property , i.e for every $a\in G$ ,$\exists y(a)\in G $ such that $a.y(a)=e$ ,which means $y(a).a.y(a)=y(a).e=y(a)$. Now, $y(a)\in G $, hence $\exists y(y(a))\in G $ such that $y(a).y(y(a))=e$. Thus, $y(a).a.y(a).y(y(a))=y(a).y(y(a))=e$, which means , $(y(a).a).y(a).y(y(a))=y(a).y(y(a))=e$, hence $y(a).a=e$. Thus $$y(a)\in G $$ is the inverse for every $a\in G $ . Next, we verify the identity property . Given, $\forall a \in G $,$\exists e\in G$ such that $a.e=a$ which means $a.y(a).a=a$, hence $(a.y(a)).a=a$ which means $e.a=a$, hence $e\in G $ is the identity element. Hence, $G $ is a group under this binary operation.
Is the above proof valid? I know that there are numerous threads relating this post. But ,is the above proof correct? If not, then why? I just want to verify my proof...