What is the correct definition of a group? More precisely the predicate "being a group"? According to Wikipedia
A group is a set, G, together with an operation • (called the group law of G) that...
How should one interpret this?
$\textbf{Definition A)}\\ \quad \quad G \text{ is a set},\\ \quad \quad +:G\times G\to G \\ \langle G,+\rangle \text{ is a group} :\iff\\ \quad \quad +\text{ is asscociative},\\ \quad \quad \exists 0\in G : \forall x\in G:x+0=0+x=x \text{ and } \exists y:x+y=y+x=0 $
or
$\textbf{Definition B)}\\ \quad \quad G \text{ is a set}\\ G \text{ is a group} :\iff\\ \quad \quad \exists +:G\times G\to G:\\ \quad \quad \quad +\text{ is asscociative},\\ \quad \quad \quad \exists 0\in G : \\ \quad \quad \quad \quad\forall x\in G:x+0=0+x=x \text{ and } \exists y:x+y=y+x=0 $
And is there a separate notion of "$G$ being a group with operation $+$"?
zero
and methodsmult,inv
with the desired behaviour. Then groups correspond to the classes that implement that interface. Elements of the group are actually instances of the class. Also, one can overload functions. – user21820 Jul 21 '16 at 12:52