Are there any interesting semigroups that aren't monoids?

Are there any interesting and natural examples of semigroups that are not monoids (that is, they don't have an identity element)?

To be a bit more precise, I guess I should ask if there any interesting examples of semigroups (X, *) for which there is not a monoid (X, *, e) where e is in X. I don't consider an example like the set of real numbers greater than 10 (considered under addition) to be a sufficiently 'natural' semigroup for my purposes; if the domain can be extended in an obvious way to include an identity element then that's not what I'm after.

-
Yes, I realise that it's subjective what counts as 'interesting' but hopefully potentially answerers can cope with this. –  bryn Jul 22 '10 at 8:55
Yes, but it's a very arcane subject that most people don't understand/care about. Might I suggest that you ask on meta.mathoverflow.net if this question is appropriate for mathoverflow? I am not confident that you will receive a decent answer here. –  user126 Jul 22 '10 at 9:00
I'll try my luck. If the community decides to close the question on grounds of arcaneness then so be it. –  bryn Jul 22 '10 at 9:31
@bryn: I'm suggesting to you that this question might be interesting enough for MathOverflow. You should take it as a compliment. –  user126 Jul 22 '10 at 10:13
@Harry: you have a very funny way of complimenting, I will give you that much! Arcane = compliment haha! –  Vivi Jul 22 '10 at 10:50

Convolution of functions/distributions is useful in a variety of fields, and the identity element, the dirac delta, is not strictly a function.

-
This is a very good answer. Note, however, that in the discrete analog of convolution (say for summable sequences over $Z$), there is an identity: the discrete analog of the delta function! –  Akhil Mathew Jul 22 '10 at 11:39
For reference, the function @Akhil mentions is the Kronecker Delta, specifically the one at 0. –  Larry Wang Jul 22 '10 at 11:46

One source of monoids is given by taking rings with identity, and forgetting about addition. So similarly, one source of semigroups that are not monoids is taking rings without identity, and forgetting about addition. With this in mind, let me explain one basic source of rings without identity.

A basic source of rings is given by taking functions satisfying some reasonable condition on a space, e.g. continuous real or complex valued functions on a space, with pointwise addition and multiplication. Of course, the constant function 1 is continuous, and so this gives a ring with identity.

But suppose now that we impose some condition, such as "all functions that are continuous, and which furthermore vanish at some specified point". This throws out the constant function 1, and so gives a ring without identity. Now you could naturally object that this is artificial (as per the requirement in the question that there not be an obvious extension to a monoid), so let me add more explanation as to why it need not be.

One example of a point to consider is "the point at infinity", i.e. we could look at all functions which vanish at infinity, i.e. which on the complement of larger and larger compact sets, grow smaller and smaller. This is a natural condition to impose in many analytic contexts, and so gives a natural example. (The reason that this kind of growth condition is natural in analysis is that, on a non-compact space, e.g. the real line, a random continuous function may not be integrable (just as an example), and imposing some decay at infinity (perhaps of the kind I specified, or perhaps something more quantitive) becomes a way to rescue the situation.) (Note also that the example that Tomer Vromen gives is exactly of this form.)

Finally, note that if your semigroup doesn't have an identity, then you can always formally adjoin one, just by throwing in an extra element e and declaring that ex = x for all x.

One can do a similar thing for rings without identity. If A is a C-algebra (say) without an identity, then one can form A + C e (the direct sum), and declare that e acts as a multiplicative identity. This is a frequently-used technique in the theory of rings-without-identity.

P.S. I don't know much literature about semigroups without identity, but for rings without identity, the best literature I know of is in functional analysis books; e.g. Naimark's classic Normed Rings often treats the case of Banach algebras (and the like) without identity in addition to the case when they do have identity, exactly so as to be able to handle examples such as the ring of continuous functions on a locally compact space that vanish at infinity.

-

The problem with this question is that any semigroup can be very easily made into a monoid. If your semigroup is not a monoid, then add a new element $1$ and define the lacking multiplication in the only possible way. In a sense, there is no need to study semigroups. We could just study monoids and the effect would be the same. Note that it is easy to distinguish a monoid that was build by adding a unity. It's enough to check whether any element of the monoid apart from $1$ has an inverse. If none has, the unity "has been added" in the sense that it can be removed.

-

Finite sets of matrices of varying dimensions, where the product A*B={PQ|P in A & Q in B & dim(Q)=codim(P)}, and dim & codim are the dimensions of the source & target spaces of a matrix.

The infinite case has an obvious unit.

-
@Thomas: I wouldn't say monads are the inspiration, but categories are, because of the restriction on composition. I though finite sets of matrices under pairwaise multiplication was a slightly easier intuition than finite sets of morphisms over a category under pairwise composition. –  Charles Stewart Jan 8 '12 at 19:22

Here is a cheap answer which takes the stance that semigroups are inherently interesting :) Consider the following definition of a group:

$\textbf{Definition}$ A semigroup $S$ is said to be a group if the following hold:

1. There is an $e \in S$ such that $ea=a$ for all $a\in S$
2. For each $a \in S$ there is an element $a^{-1} \in S$ with $a^{-1}a=e$

At one point in my life, it seemed natural to ask what happens if we replace axiom 2 with the very similar axiom

2$^\prime$. For each $a \in S$ there is an element $a^{-1} \in S$ with $aa^{-1} = e$.

It is a fun exercise to work out some of the consequences that result from this. Here are a few facts about a semigroup $S$ which satisfies $1$ and $2^\prime$:

• If $e$ is the unique element of $S$ satisfying axiom 1, then $S$ is a group
• If $S$ has an identity (in the usual sense) then $S$ is a group
• The principal left ideal $Sa = \{sa \mid s \in S\}$ is a group for all $a \in S$, and in fact all principal left ideals of $S$ are isomorphic as groups.

It is not difficult to find examples of such semigroups that are not groups. For example, consider the following set of $2\times 2$ matrices (with matrix multiplication as the operation): $$\left\{\begin{pmatrix} a & b \\ 0 & 0\end{pmatrix} \mid a,b \in \mathbb{R}, a \neq 0\right\}$$ Or, an example that appears as exercise 30 in section 4 of Fraleigh's abstract algebra text: the nonzero real numbers under the operation $\ast$ defined by $a\ast b = |a|b$.

Certainly it is debatable whether or not semigroups satisfying axioms 1 and 2$^\prime$ are "interesting" or "natural". But I guess I think they are. And, I am not the only one (or the first one, by a long shot!) to think this. See

http://www.ams.org/journals/bull/1944-50-12/S0002-9904-1944-08256-6/S0002-9904-1944-08256-6.pdf

(A bit of googling will turn up more results if you are interested.)

-
Your definition of a group seems wrong to me. You need to require that $e$ is a two-sided identity and that $a^{-1}$ is a two-sided inverse, don't you? –  Qiaochu Yuan Jan 24 '12 at 23:32
@QiaochuYuan: actually, the usual definition is equivalent to this one. –  Dejan Govc Mar 14 '12 at 13:35

Let G be the set of (continuous) functions f: R -> R where f(x) tends to 0 as x tends to infinity: $lim_{x\to \infty}f(x) = 0$. The operator is the usual point-wise multiplication of functions.

G is closed under * since lim(f(x)) = 0 and lim(g(x)) = 0 imply lim(f(x)*g(x)) = 0. G is a subgroup of {f: R->R}, so the identity must be the same - the function which is constantly 1. But this identity is not in G.

EDIT: As Harry correctly points out, {f: R->R} is not a group. Therefore the following correction is needed: consider only functions such that $f(x) \neq 0$ everywhere.

-
-1: {f:R->R} is only a group under addition, not multiplication. –  user126 Jul 22 '10 at 10:34
What, pray tell, is the inverse of f(x)=x? Note that g(x)=1/x is not defined on the entire real line. It is defined as a function R\{0}->R. –  user126 Jul 22 '10 at 10:52
To quote the question, if the domain can be extended in an obvious way to include an identity element then that's not what I'm after. –  Charles Stewart Jul 22 '10 at 11:55

Let $(M,\cdot,e)$ be a monoid and let $M^\circ$ be the set of finite words constructed from $M$. For two words let's define operation $*$ as point-wise application of $\cdot$, truncating according to the shorter word: $$(u_1,\ldots,u_m)*(v_1,\ldots,v_n)=(u_1\cdot v_1,\ldots, u_{\min(m,n)}\cdot v_{\min(m,n)})$$ Then $(M^\circ,*)$ is a semigroup, but it's not a monoid. Any candidate $y$ for the unit element would have only a finite length, so for any $x$ that is longer we'd have $y*x\neq x$. The unit element would have to be an infinite sequence $(e,e,\ldots)$, but $M^\circ$ contains only finite ones.

This example is not arbitrary, it is closely related to zipping lists and convolution.

--

Update: A very simple example of a semigroup that is not a monoid is $(\mathbb{Z},\min)$. While $\min$ is clearly associative, there is no single element in $\mathbb{Z}$ that would serve as the identity. (It is actually a homomorphic image of the previous example, mapping words to their length.)

-

A simple example: the natural numbers under addition, if they are taken to not include zero. Naturally closed and associative, but without 0 there is no identity element.

-
Although this answers the question in the title, it seems to ignore the second paragraph where I try to tighten what is meant by the question. –  bryn Dec 12 '13 at 9:13

Time. You can't turn it back (no inverse) and you can't stop it (no identity).

-
I like the analogy, but I think one should attempt to provide a clean definition of the semigroup elements and the binary operation in this case... –  Alexander Konovalov May 3 at 14:57
@AlexanderKonovalov Well, the usual thing would be a finite-state automaton, but really you can treat a semigroup called $\mathrm{Time}$ as an index set and use that to parameterise any $X$ you’re interested in. –  isomorphismes May 3 at 16:00
@AlexanderKonovalov BTW, this is not my idea; it's the prologue of books.google.com/books?id=0ukzw5VszNwC. –  isomorphismes May 3 at 16:03
Great, thanks for the reference! –  Alexander Konovalov May 3 at 17:08

Excerpts from Grillet’s Semigroups Chapter 1, Page 1,

“There are 1160 distinct … semigroups of order 5; 15793 semigroups of order 6; 836,021 semigroups of order 7…”

Granted, many of those semigroups are not that interesting. However, transformation semigroups (not monoids unless you count the identity map in) are interesting because most transformations(functions) are not bijective. Thus, transformation semigroups are more natural than permutation groups.

-