Documentation

CslibFrontier.Foundations.Data.List.WordsLe

Words of bounded length #

Over a finite alphabet there are finitely many words of length at most T (List.finite_length_le). List.wordsLe Γ T is the finite set of these words, the range of a finite sum over words of bounded length.

Main definitions #

noncomputable def List.wordsLe (Γ : Type u_1) [Finite Γ] (T : ℕ) :

The finite set of the words of length at most T over a finite alphabet Γ.

@[simp]
theorem List.mem_wordsLe {Γ : Type u_1} [Finite Γ] {T : ℕ} {w : List Γ} :
w ∈ wordsLe Γ T ↔ w.length ≤ T