Linear ⊊ Context-Free #
The language {0ⁿ1ⁿ2ᵐ3ᵐ} over Fin 4 (L4) is context-free (L4_is_CF, in
Langlib.Classes.ContextFree.Examples.L4) but not linear (L4_not_is_Linear, in
Langlib.Classes.Linear.Examples.L4). This file assembles those two facts into the
strict inclusion, transported to an arbitrary alphabet T with at least four symbols by
relabelling along an embedding e : Fin 4 ↪ T.
Main results #
Linear_strict_subclass_CF—Linear ⊊ CFoverFin 4.Linear_strict_subclass_CF_of_card—Linear ⊊ CFfor any4 ≤ Fintype.card T.
Transport to an arbitrary alphabet with at least four symbols #
Linear languages are a strict subclass of context-free languages over any finite alphabet with at least four symbols.