Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Most properties of a single binary operation can be easily read of from the operation's table. For example, given $$\begin{array}{c|ccccc} \cdot & a & b & c & d & e\\\hline a & e & d & b & a & c\\ b & d & c & e & b & a\\ c & b & e & a & c & d\\ d & a & b & c & d & e\\ e & c & a & d & e & b \end{array}$$ it is easy to check that it is closed (no elements occur in the table which don't occur as row or column index), commutative (the table is symmetric), has a neutral element (the row and column of $d$ are copies of the index row/column), and has an inverse element for each element (there's a $d$ in each row and column). In other words, almost all important properties can immediately be seen. The only part missing is associativity.

Therefore my question: Is there a simple way to see directly from the operation's table (i.e. without doing explicitly all the calculations) if an operation is associative?

share|cite|improve this question
up vote 18 down vote accepted

Have you seen Light's associativity test? According to Wikipedia, "Direct verification of the associativity of a binary operation specified by a Cayley table is cumbersome and tedious. Light's associativity test greatly simplifies the task."

If nothing else, the existence of Light's algorithm seems to rule out the possibility that anyone knows an easy way to do it just by looking at the original Cayley table.

share|cite|improve this answer

Using the original $n\times n$ table seems bleak - this is essentially a problem of arity-dimension three, but the Cayley table only gives us two dimensions. However, Light's Associativity Test shows how to systematically reduce the problem of comparing $n$ pairs of Cayley tables. Note that the procedure can be greatly simplified by considering only operations derived from the underlying structure's generators.

share|cite|improve this answer
Thank you (and also the others). This test works in a mechanical way (copying rows/columns around and comparing tables), so it's alreafy quite close to actually "seeing" the result (one might argue that the only reason why one cannot directly see the result of this test is that the short-time memory of the human brain has not enough capacity). I've chosen to accept your answer because it was slightly earlier than Mark's (which would also have qualified as the accepted answer, but I had to choose one). – celtschk Jul 9 '12 at 16:40
@celtschk Thanks - if that is really your criterion for acceptance, you should accept Mark's answer; his timestamp reads two minutes earlier. – user17794 Jul 9 '12 at 16:48
Ah, I indeed misread the time stamps. Given that you got more votes anyway, and that you yourself suggested changing the accept, I'll change it accordingly (although using the older one was more or less a tie-breaker because I simply cannot accept two answers :-)). – celtschk Jul 9 '12 at 17:02

First of all, let my make a personal reflexion on this matter. Light's associativity test (as others have noted) provides a characterization, but (at least from my point of view) it is not really helpful. Indeed, I like to consider this difficulty to check whether a table is associative as the main reason why it is better to introduce associative operations (in particular groups) through presentations. Then, you trivially get associativity since your "object" is by definition a quotient of the free one.

Now, let me note that in the particular case that the operation is commutative (like the example you have written) then it is known an alternative method which is affordable to be done using a pencil. This (quite unkown in my opinion) method is due to S. KAMAL ABDALI and was introduced in his paper "Verification of Associativity of a Binary Operation"

I have never seen this method explained in a book, so it is worth to take a look at this paper (in case you can go through the publisher firewall).

share|cite|improve this answer
Thanks for the reference. Unfortunately the paper is not accessible for me. – celtschk Jul 9 '12 at 17:07
Thank you. You can just add to by user name to get my email address. However I guess for other interested visitors who will also not be able to access it, a short description of the method would be more helpful. – celtschk Jul 9 '12 at 17:25
Paper sent. Right now I am too busy to write down the details of this method. If you go through the paper I suggest you add the details in an answer to your own post. – boumol Jul 9 '12 at 17:29
Thank you. Since only humans and not spiders can use that comment to determine my email address, I don't see the need to delete it. – celtschk Jul 9 '12 at 17:33

There is a randomized algorithm solving this problem in time proportional to the input size. Specifically, the runtime is $O\left(n^2 \log\frac1\delta\right)$ for an $n \times n$ table and error probability $\delta$. See Rajagopalan and Schulman, FOCS 1996, SICOMP 2000.

Free download here.

share|cite|improve this answer
I read and enjoyed this paper. Thanks very much for the reference. – MJD Oct 18 '13 at 2:55

If I remember correctly, this is explained in W. Keith Nicholson's Introduction to Abstract Algebra. I don't have a copy with me in my office, but I will double-check when I get home.

Edit: I believe that what is being described in the book cited above is exactly Light's Associativity Test, which is mentioned in the other answers.

share|cite|improve this answer

A set with an operation used to build a four-dimensional multiplication table with entries $X_{abcd} = (A(BC))D$ is associativ iff $X_{abc1} = X_{1abc}$, with 1 being unity. So it would be a certain three-dimensional symmetry of a four-dimensional table.

share|cite|improve this answer
In this notation the above cited test for commutative operations from S. Kamal Abdali cheks the symmetry of the 3D table: $X_{abc} = A(BC)$. It is checked if $X_{abc} = X_{cba}$, and just using only a lower diagonal due to commutative symmetry. For non-commutative operations, one needs to go to the above stated symmetry of a 4D table. – Franky_GTH Nov 5 '15 at 21:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.