A magma which is both commutative and associative is a commutative semigroup.
Example: rock, paper, scissors
In the game of rock paper scissors, let , standing for the "rock", "paper" and "scissors" gestures respectively, and consider the binary operation derived from the rules of the game as follows:[1]
By definition, the magma is commutative, but it is also non-associative,[2] as shown by:
but
i.e.
It is the simplest non-associative magma that is conservative, in the sense that the result of any magma operation is one of the two values given as arguments to the operation.[2]
^ abBeaudry, Martin; Dubé, Danny; Dubé, Maxime; Latendresse, Mario; Tesson, Pascal (2014), "Conservative groupoids recognize only regular languages", Information and Computation, 239: 13–28, doi:10.1016/j.ic.2014.08.005, MR3281897
^Ginestet, Cedric E.; Simmons, Andrew; Kolaczyk, Eric D. (2012), "Weighted Frechet means as convex combinations in metric spaces: properties and generalized median inequalities", Statistics & Probability Letters, 82 (10): 1859–1863, arXiv:1204.2194, doi:10.1016/j.spl.2012.06.001, MR2956628
^Etherington, I. M. H. (1941), "Non-associative algebra and the symbolism of genetics", Proceedings of the Royal Society of Edinburgh, Section B: Biology, 61 (1): 24–42, doi:10.1017/s0080455x00011334