Langlib

Langlib.Classes.ContextFree.Inclusion.Recursive

Context-Free Languages Included in Recursive Languages #

This file proves that every context-free language over a finite, encodable alphabet is recursive. The proof chooses an encoded CFG for the language, specializes the uniform encoded-CFG membership decider to that code, and then applies the generic construction of a recursive language from a total computable Boolean decider.

Main results #

theorem is_Recursive_of_is_CF {T : Type} [Fintype T] [DecidableEq T] [Primcodable T] {L : Language T} (hL : is_CF L) :

Every context-free language over a finite alphabet is recursive.

The context-free languages are included in the recursive languages.