A homomorphism is a function from one alphabet to strings over another alphabet. We can extend f to operate on strings by defining:.
We further extend to operate on languages by defining for any language .
a. Show, by giving a formal construction, that the class of regular languages is closed under homomorphism. In other words, given a DFA that recognizes and a homomorphism f, construct a finite automaton role="math" localid="1660800566802" that recognizes Consider the machine role="math" localid="1660800575641" that you constructed. Is it a DFA in every case?
b. Show, by giving an example, that the class of non-regular languages is not closed under homomorphism.