We will be interested in seeing which laws imply which other laws, in the sense that magmas obeying the former law automatically obey the latter. We will also be interested in anti-implications showing that one law does not imply another, by producing examples of magmas that obey the former law but not the latter. Here is a formal definition.
If we define if implies , then this is a pre-order on the set of laws, and equivalence is an equivalence relation.
Note that we view the stronger law as less than or equal to the weaker law. This is because the class of magmas that obey the stronger law is a subset of the class of magmas that obey the weaker law. It is also consistent with the conventions of Lean’s Mathlib.
Every magma has a reversal, formed by by replacing the magma operation with its opposite . There is a natural isomorphism between these magmas, which induces an involution on words . Every law then has a dual.
For instance, the dual of the law is , which after relabeling is . A list of equations and their duals can be found here. Of the 4694 equations under consideration, 84 are self-dual, leaving 2305 pairs of dual equations.
If each have order at least one, then the law is implied by the constant law (Definition 2.20). If exactly one of has order zero, and the law is not implied by the constant law.
If is such that every variable appears the same number of times in both and , and implies another law , then every variable appears the same number of times in both and .
Proof
▶
Consider the magma of multisets over an arbitrary set (which can be seen as finitely supported maps ), with the multiset addition law . By hypothesis, this magma obeys , and hence , giving the claim by comparing the orders of the elements of appearing in and in this magma. □