Context-Free Closure Under Bijections #
This file proves that context-free languages are preserved under renaming terminals along an equivalence.
Strategy #
We reuse the unrestricted-level result bijection_grammar_language by showing
that the CF bijection construction commutes with the embedding into unrestricted
grammars. The derivation correspondence is proved only once at the unrestricted
level; the CF file only needs to verify structure preservation.
Main declarations #
Context-free languages are closed under alphabet maps.
Injective alphabet maps reflect context-freeness.
Map a CF grammar along a terminal bijection.
Equations
Instances For
The bijection CF grammar generates exactly the π-image of the original language.
The class of context-free languages is closed under bijection between terminal alphabets.
The converse direction of CF_of_bijemap_CF, obtained by applying the forward result
to the inverse bijection.
A language is context-free iff its image under a bijection of terminal alphabets is context-free.