Deterministic Context-Free Languages Are Not Closed Under Reversal #
The counterargument packages two DPDAs behind distinct leading markers. If DCFLs were closed under reversal, those markers would move to the right. Regular right quotient removes either marker, a second reversal restores the payloads, and inverse homomorphism removes the payload tag. This would make DCFLs closed under union, contradicting the established union counterexample.
The construction first gives a five-symbol witness alphabet Bool ⊕ Fin 3. An
injective relabelling then transports failure to every finite alphabet with at least
five symbols.
If regular right quotient is available, DCFLs over the five-symbol marked alphabet cannot be closed under reversal.
Deterministic context-free languages over the five-symbol marked alphabet are not closed under reversal.
DCFLs are not closed under reversal over any finite alphabet with at least five symbols.