RG ⊊ Linear #
This file uses the example language {aⁿbⁿ} to show that regular languages
form a strict subclass of linear languages.
Main results #
exists_Linear_not_regular— There exists a linear language overBoolthat is not regular.exists_Linear_not_regular_of_nontrivial— There exists a linear nonregular language over any nontrivial alphabet.RG_strict_subclass_Linear— Right-regular languages form a strict subclass of linear languages.
theorem
map_anbn_is_Linear
{T : Type}
(f : Bool → T)
(_hf : Function.Injective f)
:
is_Linear ((Language.map f) anbn)
There exists a linear nonregular language over any nontrivial alphabet.
Right-regular languages form a strict subclass of linear languages over any nontrivial alphabet.