Grammars, parsing and pushdown automata

Grammar basics and derivation forests, Chomsky and Greibach normal forms, ε- and unit-production elimination, CYK and Earley recognizers, leftmost derivations and (inherent) ambiguity, pushdown automata, deterministic context-free languages, and the grammar–PDA equivalence.

TheoremRegular languages over a finite alphabet are context-free#✓fully proved

Over a finite alphabet, every regular language is context-free.

Finiteness of the alphabet is necessary: a grammar has finitely many productions, hence mentions only finitely many terminal symbols, but a DFA over an infinite alphabet may accept every one-letter word.

theorem IsRegular.isContextFree [Finite T] {L : Language T} (hL : L.IsRegular) :
    L.IsContextFree
Uses 5

The dependency explorer needs JavaScript and its graph data.

Download the complete graph data.