<?xml version="1.0" encoding="UTF-8"?>

<record version="3" id="11902">
 <title>subsemigroup of a cyclic semigroup</title>
 <name>SubsemigroupOfACyclicSemigroup</name>
 <created>2009-09-07 05:16:33</created>
 <modified>2009-09-07 15:30:37</modified>
 <type>Result</type>
<parent id="3559">cyclic semigroup</parent>
 <creator id="3771" name="CWoo"/>
 <author id="3771" name="CWoo"/>
 <classification>
	<category scheme="msc" code="20M99"/>
 </classification>
 <preamble>\usepackage{amssymb,amscd}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{mathrsfs}

% used for TeXing text within eps files
%\usepackage{psfrag}
% need this for including graphics (\includegraphics)
%\usepackage{graphicx}
% for neatly defining theorems and propositions
\usepackage{amsthm}
% making logically defined graphics
\usepackage{xypic}
\usepackage{pst-plot}

% define commands here
\newcommand*{\abs}[1]{\left\lvert #1\right\rvert}
\newtheorem{prop}{Proposition}
\newtheorem{thm}{Theorem}
\newtheorem{cor}{Corollary}
\newtheorem{ex}{Example}
\newcommand{\real}{\mathbb{R}}
\newcommand{\pdiff}[2]{\frac{\partial #1}{\partial #2}}
\newcommand{\mpdiff}[3]{\frac{\partial^#1 #2}{\partial #3^#1}}</preamble>
 <content>It is a well-known fact that the subgroup of a cyclic group is cyclic.  Is this true for semigroups?  The answer is clearly no.  For example, take the cyclic semigroup of positive integers under addition, and the subsemigroup generated by, say, 7 and 17.  If it were cyclic, generated by some positive integer $n$, then $n$ must divide both 7 and 17, which implies that $n=1$.  But there are no positive integers $p$ and $q$ such that $1=7p+17q$, and the result follows.  However, the following does hold:

\begin{prop} Every subsemigroup of a cyclic semigroup is finitely generated. \end{prop}
\begin{proof}  Let $S$ be a cyclic semigroup.  The result is obvious if $S$ is finite.  So assume that $S$ is infinite.  Since every infinite cyclic semigroup is isomorphic to the semigroup of positive integers under addition, we may as well assume that $S=\lbrace 1,2,\ldots\rbrace$.  Let $T$ be a subsemigroup of $S$.  Since $S$ is well-ordered, so is $T$.  Take the least element $p_1$ of $T$.  If $\langle p_1 \rangle = T$, then we are done.  Otherwise, $T-\langle p_1\rangle$ is non-empty, and thus has a least element $p_2$.  So by the Euclidean algorithm, $p_2 = q_1 p_1 + r_1$, where $0 &lt; r_1 &lt; p_1$.  If $\langle p_1, p_2 \rangle = T$, then we are done.  Otherwise, continue this process.  Along the way, we collect the quotients $\lbrace q_1, q_2, \ldots \rbrace$, as well as the remainders $\lbrace r_1, r_2, \ldots \rbrace$.  We make the following observations:
\begin{enumerate}
\item Since $p_1 &lt; p_2 &lt; \cdots $, the quotients are non-decreasing: $q_1 \le q_2 \le \cdots $.  For if $q_{j+1} &lt; q_j$, then $$p_{j+2} = q_{j+1}p_1 + r_{j+1} &lt; q_{j+1}p_1 + p_1 = (1 + q_{j+1})p_1 \le q_j p_1 &lt; q_j p_1 + r_j = p_{j+1},$$ which is a contradiction.  
\item Elements of $\lbrace r_1, r_2, \ldots \rbrace$ are pairwise distinct, for if $r_i = r_j$ for $i&lt; j$, then $$p_{j+1} = q_j p_1 + r_j = q_j p_1 + r_i = (q_i p_1 + r_i) + (q_j-q_i)p_1 = p_{i+1} + (q_j-q_i)p_1.$$  Since $q_i\le q_j$ by the first observation, $p_{j+1}$ lies in the subsemigroup generated by $p_{i+1}$ and $p_1$, contradicting the construction of $p_{j+1}$.
\end{enumerate}
Since the remainders are integers between $0$ and $p_1$, the set $\lbrace r_1, r_2, \ldots \rbrace$ of remainders can not be infinite.  Suppose the set has $k$ elements.  Then we must have $\langle p_1 , p_2 , \ldots, p_{k+1} \rangle = T$.  Otherwise, we may continue the process and find $p_{k+2},q_{k+1}$, and $r_{k+1}$.  This means that $r_{k+1}$ is among one of $r_1,\ldots, r_k$.  But by the second observation, this means that $p_{k+2}\in \langle p_1 , p_2 , \ldots, p_{k+1} \rangle$ after all.
\end{proof}

In fact, the above proof shows that there is an algorithm for finding a finite set of generators for the subsemigroup $T$.

The following result is immediate:
\begin{cor} Any submonoid of a cyclic monoid is finitely generated.  \end{cor}

As an application to formal language theory, we have the following:
\begin{cor} The Kleene star of any language over a singleton alphabet is \PMlinkname{regular}{RegularLanguage}.  \end{cor}
\begin{proof}  The Kleene star of a language $L$ over $\lbrace a\rbrace$ is just a submonoid of the cyclic monoid $\langle a \rangle = \lbrace a \rbrace ^*$, and hence is generated by some finite set $F$ by the proposition above.  Since every finite set is regular, so is $F^* = L^*$.
\end{proof}

\begin{thebibliography}{9}
\bibitem{AS} A. Salomaa, {\em Formal Languages}, Academic Press, New York (1973).
\end{thebibliography}</content>
</record>
