Misplaced Pages

Rational set

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

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 (or regular) language (understood as defined by regular expressions) to monoids that are not necessarily free.

Definition

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

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

This means that any rational subset of N {\displaystyle N} can be obtained by taking a finite number of finite subsets of N {\displaystyle N} 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 A {\displaystyle A} be an alphabet, the set A {\displaystyle A^{*}} of words over A {\displaystyle A} is a monoid. The rational subset of A {\displaystyle A^{*}} are precisely the regular languages. Indeed, the regular languages may be defined by a finite regular expression.

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

Properties

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

Rational sets are closed under homomorphism: given N {\displaystyle N} and M {\displaystyle M} two monoids and ϕ : N M {\displaystyle \phi :N\rightarrow M} a monoid homomorphism, if S R A T ( N ) {\displaystyle S\in \mathrm {RAT} (N)} then ϕ ( S ) = { ϕ ( x ) x S } R A T ( M ) {\displaystyle \phi (S)=\{\phi (x)\mid x\in S\}\in \mathrm {RAT} (M)} .

R A T ( N ) {\displaystyle \mathrm {RAT} (N)} is not closed under complement as the following example shows. Let N = { a } × { b , c } {\displaystyle N=\{a\}^{*}\times \{b,c\}^{*}} , the sets R = ( a , b ) ( 1 , c ) = { ( a n , b n c m ) n , m N } {\displaystyle R=(a,b)^{*}(1,c)^{*}=\{(a^{n},b^{n}c^{m})\mid n,m\in \mathbb {N} \}} and S = ( 1 , b ) ( a , c ) = { ( a n , b m c n ) n , m N } {\displaystyle S=(1,b)^{*}(a,c)^{*}=\{(a^{n},b^{m}c^{n})\mid n,m\in \mathbb {N} \}} are rational but R S = { ( a n , b n c n ) n N } {\displaystyle R\cap S=\{(a^{n},b^{n}c^{n})\mid n\in \mathbb {N} \}} is not because its projection to the second element { b n c n n N } {\displaystyle \{b^{n}c^{n}\mid n\in \mathbb {N} \}} 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.

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.

See also

References

  1. Mathematical Foundations of Automata Theory
  2. cf. Jean-Éric Pin, Mathematical Foundations of Automata Theory, p. 76, Example 1.3
  3. John Meakin (2007). "Groups and semigroups: connections and contrasts". In C.M. Campbell; M.R. Quick; E.F. Robertson; G.C. Smith (eds.). 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. (ed.). 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. Zbl 1031.20047.

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. Zbl 1188.68177.
Category: