Langlib

Langlib.Classes.Regular.Inclusion.StrictContextFree

RG ⊊ CF #

This file uses the example language {aⁿbⁿ} to show that regular languages form a strict subclass of context-free languages.

Main results #

There exists a context-free language that is not regular.

There exists a context-free nonregular language over any nontrivial alphabet.

Right-regular languages form a strict subclass of context-free languages over any nontrivial alphabet.