Magma (Algebraic)
magma
A magma is a set
Some Examples
Take the set
("projection") - ...
Two Possible Properties
We may want to ask: Is the operation
- associative:
(think of from the integers, parenthesis don't matter, here the operations can be applied in whatever order as long as it's in-order)) - commutativity:
( ) (order doesn't matter)
Looking at the examples above:
- Both (commutative and associative)
- Both
- Both (equivalent to
) - Both (same as (3))
- Not Commutative (since
), but is Associative - Not Commutative (since
), and Not Associative ( vs. , just choose an example where ) - Commutative but not associative
It's actually not too uncommon to find operations that aren't commutative, but the associativity is an important property, since there's only a few operations that really aren't associative (ex: the cross product