Commutative magma
In mathematics, there exist magmas that are commutative but not associative. A simple example of such a magma may be derived from the children's game of rock, paper, scissors. Such magmas give rise to non-associative algebras.
A commutative non-associative magma derived from the rock, paper, scissors game
Let [math]\displaystyle{ M := \{ r, p, s \} }[/math] , standing for the "rock", "paper" and "scissors" gestures respectively, and consider the binary operation [math]\displaystyle{ \cdot : M \times M \to M }[/math] derived from the rules of the game as follows:
- For all [math]\displaystyle{ x, y \in M }[/math]:
- If [math]\displaystyle{ x \neq y }[/math] and [math]\displaystyle{ x }[/math] beats [math]\displaystyle{ y }[/math] in the game, then [math]\displaystyle{ x \cdot y = y \cdot x = x }[/math]
- [math]\displaystyle{ x \cdot x = x }[/math] I.e. every [math]\displaystyle{ x }[/math] is idempotent.
- So that for example:
- [math]\displaystyle{ r \cdot p = p \cdot r = p }[/math] "paper beats rock";
- [math]\displaystyle{ s \cdot s = s }[/math] "scissors tie with scissors".
This results in the Cayley table:
- [math]\displaystyle{ \begin{array}{c|ccc} \cdot & r & p & s\\ \hline r & r & p & r\\ p & p & p & s\\ s & r & s & s \end{array} }[/math]
By definition, the magma [math]\displaystyle{ (M, \cdot) }[/math] is commutative, but it is also non-associative, as shown by:
- [math]\displaystyle{ r \cdot (p \cdot s) = r \cdot s = r }[/math]
but
- [math]\displaystyle{ (r \cdot p) \cdot s = p \cdot s = s }[/math]
i.e.
- [math]\displaystyle{ r \cdot (p \cdot s) \neq (r \cdot p) \cdot s }[/math]
Other examples
The "mean" operation [math]\displaystyle{ x \oplus y = ( x + y ) / 2 }[/math] on the rational numbers (or any commutative number system closed under division) is also commutative but not in general associative, e.g.
- [math]\displaystyle{ -4 \oplus (0 \oplus +4) = -4 \oplus +2 = -1 }[/math]
but
- [math]\displaystyle{ (-4 \oplus 0) \oplus +4 = -2 \oplus +4 = +1 }[/math]
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 Variations, as long as there are two players and the conditions are symmetric between them; more abstractly, it may be applied to any 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 [math]\displaystyle{ K }[/math]: take [math]\displaystyle{ A }[/math] to be the three-dimensional vector space over [math]\displaystyle{ K }[/math] whose elements are written in the form
- [math]\displaystyle{ (x, y, z) = x r + y p + z s, }[/math]
for [math]\displaystyle{ x, y, z \in K }[/math]. Vector addition and scalar multiplication are defined component-wise, and vectors are multiplied using the above rules for multiplying the elements [math]\displaystyle{ r, p, s }[/math]. The set
- [math]\displaystyle{ \{ (1, 0, 0), (0, 1, 0), (0, 0, 1) \} }[/math] i.e. [math]\displaystyle{ \{ r, p, s \} }[/math]
forms a basis for the algebra [math]\displaystyle{ A }[/math]. As before, vector multiplication in [math]\displaystyle{ A }[/math] is commutative, but not associative.
The same procedure may be used to derive from any commutative magma [math]\displaystyle{ M }[/math] a commutative algebra over [math]\displaystyle{ K }[/math] on [math]\displaystyle{ K ^ M }[/math], which will be non-associative if [math]\displaystyle{ M }[/math] is.
This article does not cite any external source. HandWiki requires at least one external source. See citing external sources. (2021) (Learn how and when to remove this template message) |
Original source: https://en.wikipedia.org/wiki/Commutative magma.
Read more |