Finite Transducers
Lectures given by Prof. Jacques Sakarovitch.
Convention We will denote an alphabet with , the free monoid (the set of words) over by and the empty word by .
Definition A finite automaton on is a directed graph with edges labelled by the letters from . It is described by the 5-tuple , where is the set of states (vertices), is the set of initial states, is the set of transitions and is the set of final states. The accepted language is the set
Note Let be two free monoids. Then is also a monoid, but not free (for example, given and , the elements and commute).
Definition A finite transducer on is a directed graph with edges labelled by pairs from . It is described by the 5-tuple , where is the set of states (vertices), is the set of initial states, is the set of transitions and is the set of final states. We define
Definition A relation from to is defined by its graph and denoted by , with
Its inverse is with the same graph and
Definition additivity Let . Then .
Definition The complement of a relation is the relation such that .
Definition Let be a finite transducer. Then is its realised relation.
Note The domain and range of are regular languages and the relation is also realised by a transducer (with the labels swapped).
Note is a generating set of the monoid . So is .
Definition A transducer is normalised if its labels are in and subnormalised if its labels are in .
Theorem Every transducer is equivalent to a normalised transducer.
Proof We replace the edge with the sequence of edges .
Definition An automaton over a monoid is proper if no edge is labelled by (spontaneous transition).
Theorem Every automaton is equivalent to a proper automaton.
Proof Shown in the main lecture. It uses the backward closure and the forward closure.
Definition Let be a regular language. We define the relation ,
Note Obviously this relation is accepted by a finite transducer.
Note We can extend the notion of a finite transducer to arbitrarily many free monoids.
Note We can also have right automata, which read from right to left. We can model a right automaton as the transpose of a left automaton. However, this does not preserve certain properties (such as determinism), so it is often useful to treat them as a separate concept.
Definition The composition of relations and is the relation defined as , or equivalently
Definition The composition product of two subnormalised transducers is the transducer with ,
Note The composition product might result in spontaneous transitions, which can be eliminated with backward closure.
Theorem ElgotโMegei The relation realised by the composition product of two transducers is the composition of their relations.
Note Let be a monoid. Then with the operations is a semiring.
Definition Let be a monoid and . Then we define .
Lemma Let be a monoid and . Then .
Definition A rational expression over a monoid is an expression built inductively as:
- , and are atomic expressions,
- if are expressions, then , and are expressions.
The subset denoted by a rational expression is
A subset is rational if it is denoted by a rational expression. The set of all rational subsets is denoted .
Note The name โrationalโ comes from the fact that , which could be rewritten as
So although does not actually mean anything, we can imagine it as being the multiplicative inverse of . This is analogous to the geometric series identity
Theorem A subset of a monoid is rational if and only if it is accepted by a finite automaton over .
Proof Analogous to the one for regular languages.
- (โ)
- Operations on standard automata.
- (โ)
- State elimination method.
Note Unlike regular languages, rational sets are not closed under intersection. For example, let
Both of these can be recognised by a finite transducer, but their intersection is
which is clearly not rational.
Corollary Rational sets are not closed under complement.
Theorem The complement if the identity is a rational expression.
Corollary Any function is a rational expression.
Proof
Theorem Rabin & Scott, 1959 Given with , it is undecidable whether .
Theorem Fischer & Rosenberg, 1968 If , it is undecidable whether two transducers over are equivalent.
Theorem Gibbons & Ryther, 1986 Given , it is decidable whether .
Theorem Ibarra, 1978; Liskovik, 1979 It is undecidable whether two transducers over are equivalent.
Problem Post correspondence problem Let be a set with at least elements and . Does there exist a sequence of indices such that ?
Theorem The Post correspondence problem is recursively undecidable.
Note Take the sets from the Post correspondence problem and define morphisms as . Then the Post correspondence problem can be reformulated as deciding whether , or equivalently, .
Note Let . Define the injective morphism . Then
This somehow implies that the equivalence of rational sets is undecidable.
Theorem Let with . Then it is undecidable whether .
Proof
Note Let and . Define the projections the obvious way. Then for a given we have
Definition Let be two finite automata. A graph-morphism is a function such that
We denote .
Theorem If , then .
Theorem The projection from to is a graph-morphism.
Theorem If , then also .
Definition A graph-morphism is conformal if every computation in is the image of a computation in .
Definition Given an automaton , denote by the normalised version of with two new subliminal states . A graph-morphism can be naturally extended to a morphism .
Definition The outgoing bouquet of a state in an automaton is
The ingoing bouquet of a state in an automaton is
Definition A graph-morphism is locally outsurjective/outbijective if for all , the morphism is surjective/bijective.
Definition Let be two finite automata. A morphism from to is a graph-morphism which is surjective and locally outsurjective. If there exists a morphism from to , is a quotient of .
Theorem If is a quotient of , then .
Definition A graph-morphism is locally insurjective/inbijective if for all , the morphism is surjective/bijective.
Definition Let be two finite automata. A comorphism from to is a graph-morphism which is surjective and locally insurjective. If there exists a comorphism from to , is a coquotient of .
Definition Let be two finite automata. A covering from to is a graph-morphism which is surjective and locally outbijective.
Definition Let be two finite automata. A cocovering from to is a graph-morphism which is surjective and locally inbijective.
Definition An automaton is unambiguous if every accepted word has only one computation.
Theorem If is a morphism, then there exists a subautomaton of such that is a covering.
Definition A state in a subnormalised transducer is stalled/tape-consistent if, if an ingoing transition is labeled in (resp. ), then all outgoing transitions are labeled in (resp. ).
Definition A subnormalised transducer is synchronous if every state is stalled. A relation is synchronous if it is realised by a synchronous transducer. The set of synchronous relations is denoted .
Note This corresponds to a Turing machine with two tapes where both tape heads only move forward and simultaneously.
Theorem The inverse of a synchronous relation is a synchronous relation.
Theorem The universal relation is synchronous.
Theorem is an effective Boolean algebra.
Theorem A synchronous transducer can be determinised.
Definition A transducer is homogeneous if for every state , either:
- all ingoing transitions of are in ( is of type ฮฑ), or
- all ingoing transitions of are in ( is of type ฮฒ), or
- all ingoing transitions of are in ( is of type ฮณ).
Theorem Every synchronous transducer has a homogeneous covering.
Definition A transducer is complete if:
- is homogeneous,
- for every state of type and every there exists at least one transition out of labeled by ,
- for every state of type (resp. ) and every (resp. ) there exists at least one transition out of labeled by ,
Theorem Every homogenous synchronous transducer can be made complete.
Theorem It is recursively undecidable if a rational relation is synchronous.
Definition The matrix representation of an automaton is the morphism defined as
We will also represent as a row vector and as a column vector. Then we can write .
Lemma For every and ,
Corollary
Definition A language is recognisable if there exists a finite monoid , a morphism and such that .
Theorem A language is recognisable if and only if it is accepted by a finite automaton.
Proof - (โ)
- Let be an automaton accepting , represented as a matrix. Take
Then .
- (โ)
- Let with transitions
Note that this automaton is deterministic and for all ,
Note This construction could in theory be used to determinise an automaton, but itโs even worse than the subset construction because it may produce up to states.
Note An automaton defined on a non-free monoid does not necessarily have a matrix representation because not every function defined on a generating set can be extended to a morphism.
Definition A finite real-time transducer is a tuple , where is a finite set, and . Note that the subsets of may be infinite!
Theorem A relation is rational if and only if it is realised by a finite real-time transducer.
Theorem Let . Then the entries of belong to the rational closure of the entries of .
Theorem If is a morphism, then .