From a supplied complete1..5element associative commutative monoid table withide...
https://datenvertrag.halowerk.com/v1/finite-monoid-group-completionOverview
From a supplied complete1..5element associative commutative monoid table withidentityelement0,construct its Grothendieck group of formal differences. Pair(a,b) is equivalent(c,d) iff some sourceelementt gives(a+d)+t=(c+b)+t. Return every equivalenceclass with all orderedsourcepairs,leastpair representatives,pair-to-class matrix,complete groupaddition,inverses and canonicalsource map a->[a,0]. Classes ordered byleastpair;members lexicographic. Canonicalidentity class0.