# Semigroup where the Binary Operation is not Associative. [closed]

I am working on my functional composition, which has the associative property, to show if a given pair is a semigroup or not. I believe all Semigroups have to have a binary operation that is associative.

Am I correct?

## closed as unclear what you're asking by Daniel, user223391, hardmath, Batominovski, graydadAug 10 '15 at 1:06

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• Yes that is part of the definition of a semigroup. – David Wheeler May 29 '15 at 22:40
• Ok thank you! Didn't know if there were any special cases. – TheCrownedPixel May 29 '15 at 22:41
• Without the requirement that a binary operation be associative, the structure closed under a binary operation is called a magma. This is more general than a semigroup, not a special case of semigroups. – hardmath Aug 9 '15 at 23:33

In mathematics, a semigroup is an algebraic structure consisting of a set together with an associative binary operation

-Wikipedia, 2015

If you're interested in a set with a not-necessarily-associative binary operation, you're looking for a "magma".

• Thank you, I am learning this, so wanted quick reassurance from some better mathematicians. – TheCrownedPixel May 29 '15 at 22:41
• Ok, I have read about them, but our course has yet to cover that. – TheCrownedPixel May 29 '15 at 22:43

Associativity is part of the definition of semigroup, so yes, all semigroups are associative.

If you need to show that some set with an operation on it is a semigroup, though, you can't take it for granted. You must instead show that the operation is defined for every pair of elements and that it is indeed associative.

• Ok, this is where I need to look into this further! – TheCrownedPixel May 29 '15 at 22:43