Infinite recursive languages and infinite regular languages.

321 Views Asked by At

Could the following statement be correct?

"Every infinite recursive language has as a subset an infinite regular language."

1

There are 1 best solutions below

1
On

No. Call a language lacunary if it is infinite and the gaps between the distinct lengths of words goes to infinity; for example, the language of words whose length is square.

By the pumping lemma, no lacunary language is regular (or context-free), and every infinite subset of a lacunary language is lacunary.