Langlib

Langlib.Classes.Regular.Inclusion.StrictLR

RG ⊊ LR #

This file proves that regular languages form a strict subclass of LR languages.

The witness is the language {aⁿbⁿ}, which is LR(0) (via cfg_anbn) but not regular (by the pumping lemma). Combined with the already-established inclusion RGLR, this gives strict containment.

Main results #

Regular languages are a strict subclass of LR languages over any nontrivial finite alphabet.