Rational set

From HandWiki

In computer science, more precisely in automata theory, a rational set of a monoid is an element of the minimal class of subsets of this monoid that contains all finite subsets and is closed under union, product and Kleene star. Rational sets are useful in automata theory, formal languages and algebra. A rational set generalizes the notion of rational (regular) language (understood as defined by regular expressions) to monoids that are not necessarily free.[example needed]

Definition

Let [math]\displaystyle{ (N,\cdot) }[/math] be a monoid with identity element [math]\displaystyle{ e }[/math]. The set [math]\displaystyle{ \mathrm{RAT}(N) }[/math] of rational subsets of [math]\displaystyle{ N }[/math] is the smallest set that contains every finite set and is closed under

  • union: if [math]\displaystyle{ A,B\in \mathrm{RAT}(N) }[/math] then [math]\displaystyle{ A\cup B\in \mathrm{RAT}(N) }[/math]
  • product: if [math]\displaystyle{ A,B\in \mathrm{RAT}(N) }[/math] then [math]\displaystyle{ A\cdot B=\{a\cdot b\mid a\in A,b\in B\}\in\mathrm{RAT}(N) }[/math]
  • Kleene star: if [math]\displaystyle{ A\in \mathrm{RAT}(N) }[/math] then [math]\displaystyle{ A^*=\bigcup_{i=0}^\infty A^i \in\mathrm{RAT}(N) }[/math] where [math]\displaystyle{ A^0=\{e\} }[/math] is the singleton containing the identity element, and where [math]\displaystyle{ A^{n+1}=A^n \cdot A }[/math].

This means that any rational subset of [math]\displaystyle{ N }[/math] can be obtained by taking a finite number of finite subsets of [math]\displaystyle{ N }[/math] and applying the union, product and Kleene star operations a finite number of times.

In general a rational subset of a monoid is not a submonoid.

Example

Let [math]\displaystyle{ A }[/math] be an alphabet, the set [math]\displaystyle{ A^* }[/math] of words over [math]\displaystyle{ A }[/math] is a monoid. The rational subset of [math]\displaystyle{ A^* }[/math] are precisely the regular languages. Indeed, the regular languages may be defined by a finite regular expression.

The rational subsets of [math]\displaystyle{ \mathbb N }[/math] are the ultimately periodic sets of integers. More generally, the rational subsets of [math]\displaystyle{ \mathbb N^k }[/math] are the semilinear sets.[1]

Properties

McKnight's theorem states that if [math]\displaystyle{ N }[/math] is finitely generated then its recognizable subset are rational sets. This is not true in general, since the whole [math]\displaystyle{ N }[/math] is always recognizable but it is not rational if [math]\displaystyle{ N }[/math] is infinitely generated.

Rational sets are closed under morphism: given [math]\displaystyle{ N }[/math] and [math]\displaystyle{ M }[/math] two monoids and [math]\displaystyle{ \phi:N\rightarrow M }[/math] a morphism, if [math]\displaystyle{ S\in\mathrm{RAT}(N) }[/math] then [math]\displaystyle{ \phi(S)=\{\phi(x)\mid x\in S\}\in\mathrm{RAT}(M) }[/math].

[math]\displaystyle{ \mathrm{RAT}(N) }[/math] is not closed under complement as the following example shows.[2] Let [math]\displaystyle{ N=\{a\}^*\times\{b,c\}^* }[/math], the sets [math]\displaystyle{ R=(a,b)^*(1,c)^* = \{(a^n,b^nc^m)\mid n,m\in\mathbb N\} }[/math] and [math]\displaystyle{ S=(1,b)^*(a,c)^*=\{(a^n,b^mc^n)\mid n,m\in\mathbb N\} }[/math] are rational but [math]\displaystyle{ R\cap S=\{(a^n,b^nc^n)\mid n\in\mathbb N\} }[/math] is not because its projection to the second element [math]\displaystyle{ \{b^nc^n\mid n\in\mathbb N\} }[/math] is not rational.

The intersection of a rational subset and of a recognizable subset is rational.

For finite groups the following result of A. Anissimov and A. W. Seifert is well known: a subgroup H of a finitely generated group G is recognizable if and only if H has finite index in G. In contrast, H is rational if and only if H is finitely generated.[3]

Rational relations and rational functions

A binary relation between monoids M and N is a rational relation if the graph of the relation, regarded as a subset of M×N is a rational set in the product monoid. A function from M to N is a rational function if the graph of the function is a rational set.[4]

See also

References

  1. Mathematical Foundations of Automata Theory
  2. cf. Jean-Eric Pin, Mathematical Foundations of Automata Theory, p. 76, Example 1.3
  3. John Meakin (2007). "Groups and semigroups: connections and contrasts". Groups St Andrews 2005 Volume 2. Cambridge University Press. p. 376. ISBN 978-0-521-69470-4.  preprint
  4. Hoffmann, Michael; Kuske, Dietrich; Otto, Friedrich; Thomas, Richard M. (2002). "Some relatives of automatic and hyperbolic groups". in Gomes, Gracinda M. S.. Semigroups, algorithms, automata and languages. Proceedings of workshops held at the International Centre of Mathematics, CIM, Coimbra, Portugal, May, June and July 2001. Singapore: World Scientific. pp. 379–406. 

Further reading

  • Sakarovitch, Jacques (2009). Elements of automata theory. Translated from the French by Reuben Thomas. Cambridge: Cambridge University Press. Part II: The power of algebra. ISBN 978-0-521-84425-3.