Commutative magma
   HOME

TheInfoList



OR:

In mathematics, there exist
magmas Magma () is the molten or semi-molten natural material from which all igneous rocks are formed. Magma is found beneath the surface of the Earth, and evidence of magmatism has also been discovered on other terrestrial planets and some natural sa ...
that are
commutative In mathematics, a binary operation is commutative if changing the order of the operands does not change the result. It is a fundamental property of many binary operations, and many mathematical proofs depend on it. Most familiar as the name of ...
but not associative. A simple example of such a magma may be derived from the children's game of
rock, paper, scissors Rock paper scissors (also known by other orderings of the three items, with "rock" sometimes being called "stone," or as Rochambeau, roshambo, or ro-sham-bo) is a hand game originating in China, usually played between two people, in which each ...
. Such magmas give rise to
non-associative algebra A non-associative algebra (or distributive algebra) is an algebra over a field where the binary operation, binary multiplication operation is not assumed to be associative operation, associative. That is, an algebraic structure ''A'' is a non-ass ...
s. A magma which is both commutative and associative is a commutative semigroup.


A commutative non-associative magma derived from the rock, paper, scissors game

Let M := \ , standing for the "rock", "paper" and "scissors" gestures respectively, and consider the binary operation \cdot : M \times M \to M derived from the rules of the game as follows: : For all x, y \in M: :* If x \neq y and x beats y in the game, then x \cdot y = y \cdot x = x :* x \cdot x = x     I.e. every x is idempotent. : So that for example: :* r \cdot p = p \cdot r = p   "paper beats rock"; :* s \cdot s = s   "scissors tie with scissors". This results in the Cayley table: : \begin \cdot & r & p & s\\ \hline r & r & p & r\\ p & p & p & s\\ s & r & s & s \end By definition, the magma (M, \cdot) is commutative, but it is also non-associative, as shown by: :r \cdot (p \cdot s) = r \cdot s = r but :(r \cdot p) \cdot s = p \cdot s = s i.e. :r \cdot (p \cdot s) \neq (r \cdot p) \cdot s


Other examples

The "arithmetic mean, mean" operation x \oplus y = ( x + y ) / 2 on the rational numbers (or any commutative number system closed under division) is also commutative but not in general associative, e.g. :-4 \oplus (0 \oplus +4) = -4 \oplus +2 = -1 but :(-4 \oplus 0) \oplus +4 = -2 \oplus +4 = +1 Generally, the mean operations studied in topology need not be associative. The construction applied in the previous section to rock-paper-scissors applies readily to variants of the game with other numbers of gestures, as described in the section ''rock-paper-scissors#Variations, Variations'', as long as there are two players and the conditions are symmetric between them; more abstractly, it may be applied to any Trichotomy (mathematics), trichotomous binary relation (like "beats" in the game). The resulting magma will be associative if the relation is transitive and hence is a (strict) total order; otherwise, if finite, it contains directed cycles (like rock-paper-scissors-rock) and the magma is non-associative. To see the latter, consider combining all the elements in a cycle in reverse order, i.e. so that each element combined beats the previous one; the result is the last element combined, while associativity and commutativity would mean that the result only depended on the set of elements in the cycle. The bottom row in the Karnaugh diagram above gives more example operations, defined on the integers (or any commutative ring).


Derived commutative non-associative algebras

Using the rock-paper-scissors example, one can construct a commutative non-associative algebra over a field K: take A to be the three-dimensional vector space over K whose elements are written in the form :(x, y, z) = x r + y p + z s, for x, y, z \in K. Vector addition and scalar multiplication are defined vector component, component-wise, and vectors are multiplied using the above rules for multiplying the elements r, p, s. The set :\ i.e. \{ r, p, s \} forms a basis (linear algebra), basis for the algebra A. As before, vector multiplication in A is commutative, but not associative. The same procedure may be used to derive from any commutative magma M a commutative algebra over K on K ^ M, which will be non-associative if M is. Non-associative algebra