Langlib

Langlib.Classes.ContextFree.Examples.AnBn

a^n b^n as a CFL #

This file constructs a context-free grammar for {a^n b^n} and proves that the language is context-free.

Context-free grammar for the language {aⁿbⁿ | n ∈ ℕ} over Bool.

Equations
Instances For

    The grammar cfg_anbn generates exactly {aⁿbⁿ}.

    The language {aⁿbⁿ} is context-free.