Profinite word

In mathematics, more precisely in formal language theory, the profinite words are a generalization of the notion of finite words into a complete topological space.

This notion allows the use of topology to study languages and finite semigroups.

For example, profinite words are used to give an alternative characterization of the algebraic notion of a variety of finite semigroups.

The set of profinite words over A consists of the completion of a metric space whose domain is the set

The distance used to define the metric is given using a notion of separation of words.

Let M and N be monoids, and let p and q be elements of the monoid M. Let φ be a morphism of monoids from M to N. It is said that the morphism φ separates p and q if

sending a word to the parity of its length separates the words ababa and abaa.

It is said that N separates p and q if there exists a morphism of monoids φ from M to N that separates p and q.

separates ababa and abaa.

separates any words whose size are not congruent modulo n. In general, any two distinct words can be separated, using the monoid whose elements are the factors of p plus a fresh element 0.

The morphism sends prefixes of p to themselves and everything else to 0.

The distance between two distinct words p and q is defined as the inverse of the size of the smallest monoid N separating p and q.

Thus, the distance of ababa and abaa is

Thus the topology defined by this metric is discrete.

, is the completion of the set of finite words under the distance defined above.

The completion preserves the monoid structure.

, with M finite can be extended uniquely into a monoid morphism

, and this morphism is uniformly continuous (using any metric on

compatible with the discrete topology).

is the least topological space with this property.

A profinite word is an element of

A few examples of profinite words that are not finite are now given.

This is due to the fact that, for any morphism

is idempotent, and the sequence is constant.

The notion of profinite languages allows one to relate notions of semigroup theory to notions of topology.

More precisely, given P a profinite language, the following statements are equivalent: Similar statements also hold for languages P of finite words.

Those characterisations are due to the more general fact that, taking the closure of a language of finite words, and restricting a profinite language to finite words are inverse operations, when they are applied to recognisable languages.

Mathematical Foundations of Automata Theory (PDF).

Finite semigroups and universal algebra.

River Edge, NJ: World Scientific Publishing Co. Inc. ISBN 981-02-1895-8.