homomorphism of languages
Let Σ1 and Σ2 be two alphabets. A function h:Σ*1→Σ*2 is called a homomorphism if it is a semigroup homomorphism from semigroups Σ*1 to Σ*2. This means that
-
•
h preserves the empty word
: h(λ)=λ, and
-
•
h preserves concatenation
: h(αβ)=h(α)h(β) for any words α,β∈Σ*1.
Since the alphabet Σ1 freely generates Σ*1, h is uniquely determined by its restriction to Σ1. Conversely, any function from Σ1 extends to a unique homomorphism from Σ*1 to Σ*2. In other words, it is enough to know what h(a) is for each symbol a in Σ1. Since every word w over Σ is just a concatenation of symbols in Σ, h(w) can be computed using the second condition above. The first condition takes care of the case when w is the empty word.
Suppose h:Σ*1→Σ*2 is a homomorphism, L1⊆Σ*1 and L2⊆Σ*2. Define
h(L1):= |
If belong to a certain family of languages, one is often interested to know if or belongs to that same family. We have the following result:
-
1.
If and are regular
, so are and .
-
2.
If and are context-free, so are and .
-
3.
If and are type-0, so are and .
However, the family of context-sensitive languages is not closed under homomorphisms, nor inverse
homomorphisms. Nevertheless, it can be shown that is closed under a restricted class of homomorphisms, namely, -free homomorphisms. A homomorphism is said to be -free or non-erasing if for any .
Remarks.
-
•
Every homomorphism induces a substitution in a trivial way: if is a homomorphism, then defined by is a substitution.
-
•
One can likewise introduce the notion of antihomomorphism of languages. A map is an antihomomorphism if , for any words over . It is easy to see that is an antihomomorphism iff is a homomorphism, where is the reversal operator. Closure under antihomomorphisms for a family of languages follows the closure under homomorphisms, provided that the family is closed under reversal.
References
- 1 S. Ginsburg, The Mathematical Theory of Context-Free Languages, McGraw-Hill, New York (1966).
- 2 H.R. Lewis, C.H. Papadimitriou Elements of the Theory of Computation. Prentice-Hall, Englewood Cliffs, New Jersey (1981).
Title | homomorphism of languages |
---|---|
Canonical name | HomomorphismOfLanguages |
Date of creation | 2013-03-22 18:55:06 |
Last modified on | 2013-03-22 18:55:06 |
Owner | CWoo (3771) |
Last modified by | CWoo (3771) |
Numerical id | 12 |
Author | CWoo (3771) |
Entry type | Definition |
Classification | msc 68Q45 |
Synonym | -free |
Synonym | non-erasing |
Related topic | StringSubstitution |
Related topic | Substitution |
Defines | homomorphism |
Defines | antihomomorphism |
Defines | -free |