Solution to Bucher's density problem for context-free languages
arXiv:2609.08571
Abstract
In 1980 Bucher asked whether, given context-free languages with infinite, there must be a context-free language between them for which both and are infinite. We give a negative answer. We first construct an infinite language with context-free complement such that, for every regular language , either or is finite. The words of encode computations of factorials; repetition of letters ensures that each finite automaton either accepts all but finitely many words of or rejects all but finitely many words of , while a one-counter automaton recognizes errors in the encodings. We then construct and from the complement of . A grammar argument shows that any context-free intermediate language would divide in the same way as some regular language. This proves the required impossibility. Both and can be taken over a binary alphabet.