Closure Properties of Formal Language Classes #
Vocabulary for formal languages and string homomorphisms, plus the closure properties of context-free languages.
CFL Closure Properties #
Context-free languages are closed under string homomorphisms and under intersection with regular languages (Hopcroft & Ullman 1979, pp. 130–135).
@cite{shieber-1985}'s proof uses the contrapositive: if applying a homomorphism f to a language L and intersecting with a regular language r produces a non-context-free result, then L is not context-free.
A letter-to-letter homomorphism: each source symbol maps to exactly one target symbol. This is the case used by @cite{shieber-1985}.
Equations
- StringHom.letterMap f a = [f a]