Associativity is usually taken as one of the axioms that define a group, however I'm sure I recall reading that it can instead be proved if it is taken as axiomatic that the left and right inverses are the same. In other words, given a set, $G$, and a binary relation, $\cdot$, can we prove that $(a\cdot b)\cdot c = a\cdot(b\cdot c)$ for all $a,b,c \in G$ from the following axioms?
- Closure: $a\cdot b \in G$ for all $a, b \in G$, .
- Identity: There exists a unique element $e \in G$ such that $e\cdot a = a\cdot e = a$ for all $x \in G$.
- Inverses: For all $x \in G$, there exists a unique element $x^{-1} \in G$ such that $x\cdot x^{-1} = x^{-1}\cdot x = e$.
If not, am I misremembering and is there similar axiom that allows associativity to be proved?