Semigroup action
"S-set" redirects here. For the suburban train fleet, see Sydney Trains S set.
In algebra and theoretical computer science, an action of a semigroup on a set is a rule. It links each element of the semigroup to a change, or transformation, of that set. The rule works so that combining two elements of the semigroup, using its operation, matches the composite of their two transformations. The name fits the idea that the semigroup's elements are "acting" on the set. From an algebraic point of view, a semigroup action is a broader version of a group action, which is studied in group theory. In computer science, semigroup actions are closely connected to automata. Here the set stands for the state of the automaton, and the action stands for how that state changes when it receives inputs.
A special case is a monoid action, or act, where the semigroup is a monoid. The monoid's identity element then acts as the identity transformation on the set, which means it changes nothing. From a category theoretic view, a monoid is a category with one object, and an act is a functor from that category to the category of sets. This makes it possible to extend monoid acts to objects in categories other than the category of sets.
Another important special case is a transformation semigroup. This is a semigroup made up of transformations of a set, so it naturally acts on that same set. This idea is connected to the more general idea of a semigroup through a rule similar to Cayley's theorem.
The words used in this area differ from one author to another, and sometimes by a lot.
Formal definitions
Let S be a semigroup. A (left) semigroup action of S is a set X together with a way of combining elements of S with elements of X, written •. This combining must follow the operation of the semigroup. Doing t and then s to a point x gives the same result as using the combined element s ∗ t on x. This is the semigroup version of a (left) group action. It is also the same as a semigroup homomorphism into the set of functions on X. Right actions work in a similar way. If M is a monoid, a monoid action also requires that the identity element leaves every x unchanged. A monoid with an action on a set is called an operator monoid.
A set X with such an action is called a left S-act, S-set, or similar name. The rule works like associativity, so brackets can be left out. In computer science, letters from S can be written side by side, like strings of letters, to act on X. Right acts can always be viewed as left acts over the opposite semigroup, so the two ideas are basically the same. Each element of S gives a change to X, and this matches Currying and a semigroup homomorphism into the full transformation monoid of X. Maps between acts that respect the action are called S-homomorphisms. Acts form a group of ideas similar to the left and right modules.
Examples
Every semigroup can act on itself. It uses its own operation as the action. This works because the operation follows the rule of associativity. The same idea also works when one semigroup is connected to another by a homomorphism. Then the first semigroup acts on the second.
For any set X, the natural numbers under multiplication act on sequences of elements of X. They do this by repeating a sequence n times. The natural numbers under multiplication also have a right action on themselves. In this case, x acts on y by multiplying them.
Transformation semigroups
Main article: Transformation semigroup
Any transformation semigroup can be turned into a semigroup action. Each element of the semigroup changes the points of the set. This action is faithful, which means it matches a map that is injective.
It also works the other way. A semigroup action can be turned into a transformation semigroup by keeping only the image of the map. If the map is injective, it is a semigroup isomorphism. This means that if the action is faithful, nothing important is lost. Because of this, some authors see no difference between faithful semigroup actions and transformation semigroups.
Applications to computer science
Semiautomata
Main article: Semiautomaton
Transformation semigroups help us understand finite-state machines in automata theory. A semiautomaton has an input alphabet, a set of states, and rules that show how inputs move the machine from one state to another. Semiautomata come from deterministic automata when the starting state and the accept states are left out. The changes made by the inputs form a characteristic semigroup, which is also a transition monoid. The inputs can also be seen as strings made from the alphabet, which are part of a free monoid.
Krohn–Rhodes theory
Main article: Krohn–Rhodes theory
Krohn–Rhodes theory, sometimes also called algebraic automata theory, shows how finite transformation semigroups can be broken into simpler parts that are linked together in a chain.

Quiz time!
4 questions about Semigroup action
What does a semigroup action link each element of the semigroup to?
Keep exploring
This article is a child-friendly adaptation of the Wikipedia article on Semigroup action, available under CC BY-SA 4.0.