Equational Theories

6 Selected magmas

Each magma can be used to establish anti-implications: if Γ is the set of all laws obeyed by a magma G, then we have ¬EE whenever EΓ and EΓ. Large numbers of implications can already be obtained from

  • All magmas of order at most 4, up to isomorphism (of which there are 178,985,294);

  • All commutative magmas of order 5, up to isomorphism determine their count;

  • Cyclic groups Z/NZ with 2N12 and xy=ax2+bxy+cy2+dx+ey for randomly chosen a,b,c,d,e.

  • There are only 1410 distinct cancellative magmas of order 5 (up to isomorphism), and Mace4 can generate all of them in under 20 seconds. A shell script to do this is available here. A magma is cancellative if xy=xz implies y=z and yx=zx implies y=z.

We also note that a systematic (computer-assisted) study of magmas of order 3 was performed in [ 4 ] , though with current computational resources it was feasible to iterate over all magmas of order up to 4 by a brute force approach.

Some other magmas have been used to establish counterexamples:

  • The cyclic group Z/6Z with the addition law.

  • The natural numbers with law xy=x+1.

  • The natural numbers with law xy=xy+1.

  • The reals with xy=(x+y)/2.

  • The natural numbers with xy equal to x when x=y and x+1 otherwise.

  • The set of strings with xy equal to y when x=y or when x ends with yyy, or xy otherwise (see this Zulip thread).

  • Vector spaces F2n over F2, which obey Definition 2.32 (and hence all the subsequent laws mentioned in Theorem 5.6).

  • Knuth’s construction [ 7 ] of a central groupoid (Definition 2.23) as follows. Let S be a (finite) set with a distinguished element 0, and a binary operation such that x0=0 and 0x=x for all x, and for each x,y there is a unique z with xz=y. One can then define a central groupoid on S×S by defining (a,b)(c,d) to equal (b,c) if c,d0; (b,e) if be=c is non-zero and d=0; and (ab,0) if c=0. One such example in [ 7 ] is when S={0,1,2} with 11=21=2 and 12=22=1.

  • Cancellative magmas of orders 7 to 9, found by hand-guided search using various solvers.

  • Two magmas of cardinality 8 were constructed by Z3.

  • A large number of ad-hoc finite magmas were constructed using the Vampire theorem prover. In some cases, inputting theoretical information is useful: see this discussion.

  • Linear magmas xy=ax+by on various fields, such as Fp for small primes p, have also been used to establish counterexamples. One such choice is (p,a,b)=(11,1,7). See this discussion. For a noncommutative example, see this discussion. For a more systematic exploration of the implications that can be obtained by both commutative and noncommutative linear models, see this discussion.

  • A variation of the translation-invariant magma construction which resolved the Asterix / Obelix anti-implication is used to show that Definition 2.36 does not imply Definition 2.34.