Langlib

Langlib.Classes.ContextFree.Inclusion.Indexed

Indexed Language Inclusions #

This file proves that every context-free language is an indexed language.

The key idea: a context-free grammar can be viewed as an indexed grammar with an empty flag type (Empty). Since there are no flags, no rule consumes or pushes flags, and every nonterminal carries the trivial empty stack throughout derivations.

Main declarations #

Convert a context-free grammar to an indexed grammar (with no flags).

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    theorem is_Indexed_of_is_CF {T : Type} {L : Language T} :

    Every context-free language is an indexed language.

    Every context-free language is an indexed language.