LR languages are a strict subclass of context-free languages #
Positive-lookahead LR(k), existential-lookahead LR, and deterministic
context-free languages are the same language class. Transporting the known
strict inclusion DCF ⊊ CF therefore gives the result directly for the LR
classes named in the hierarchy table.
theorem
LRk_strict_subclass_CF_of_card
{T : Type}
[Fintype T]
(k : ℕ)
(hk : 0 < k)
(hT : 3 ≤ Fintype.card T)
:
For every fixed positive k, LR(k) languages form a strict subclass of
context-free languages over every finite alphabet with at least 3 elements.
Existential finite-lookahead LR languages form a strict subclass of context-free languages over every finite alphabet with at least 3 elements.