Finite languages
TheoremSingle-word languages are regular#✓fully proved
Cslib.Language.IsRegular.singleton_word
For every word \(w\) over any alphabet, the language whose only word is \(w\) is regular.
Used by 1
Used byFinite languages are regular
TheoremFinite languages are regular#✓fully proved
Cslib.Language.IsRegular.of_finite
Every finite language over any alphabet is regular.
theorem IsRegular.of_finite {l : Language Symbol} (h : Set.Finite l) : l.IsRegular
TheoremLanguages of bounded word length are regular#✓fully proved
Cslib.Language.IsRegular.of_length_le
Over a finite alphabet, if every word of a language \(L\) has length at most \(n\), for some natural number \(n\), then \(L\) is regular.
theorem IsRegular.of_length_le [Finite Symbol] {l : Language Symbol} (n : ℕ)
(h : ∀ w ∈ l, w.length ≤ n) : l.IsRegular
Uses 1
Proof usesFinite languages are regular
3 fully proved
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.