Homomorphism
Homomorphism is a closure property of regular languages that allows the mapping of input and output elements of a language to another language without changing its properties.
We can say, if
Note: The homomorphism of a regular language is also regular
Example
Let's discuss an example below:
Suppose there is a language
First, the homomorphic images of each input symbol/alphabet are determined. In this case, we may take:
Take
The language above is the homomorphism of the language
Closure under homomorphism
Now we'll see the proof of how homomorphism is closed under regular languages. The algorithm is:
Let
be a regular expression of a certain language. Map each symbol/alphabet with its homomorphic image.
The resulting RE will be
which must be regular.
Suppose:
Let a regular expression of a regular language
Then
By equating, we see that
Free Resources