Langlib

Langlib.Classes.Indexed.Examples.AnBnCn

Strict Inclusion: CF ⊊ Indexed #

This file proves that the class of indexed languages strictly contains the class of context-free languages, by exhibiting a witness: the language {aⁿbⁿcⁿ | n ∈ ℕ} is indexed but not context-free.

The indexed grammar uses a stack-bottom marker to ensure that each nonterminal consumes exactly as many flags as were pushed.

Main declarations #

inductive ANBNCN_NT :

Nonterminals for the aⁿbⁿcⁿ indexed grammar.

Instances For
    Equations
    inductive ANBNCN_Flag :

    Flags for the aⁿbⁿcⁿ indexed grammar.

    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For