Automata.WordWords over the character alphabet.
A word is a Char.t list (i.e. a string list). This module provides the ordered, hashable, comparable type t needed to use words as map and set keys, together with the suffix / prefix closure operations used by the gen encoding and the Angluin learner.
module T : sig ... endmodule TC : sig ... endinclude module type of struct include TC endinclude sig ... endval comparator : (T.t, comparator_witness) Base__Comparator.comparatortype 'a map = (t, 'a, comparator_witness) Base.Map.ttype set = (t, comparator_witness) Base.Set.tval prefixes : Char.t Base.List.t -> (TC.t, TC.comparator_witness) Base.Set.tprefixes w returns the set ε, a₁, a₁a₂, …, w of all prefixes of w.
val suffixes : Char.t Base.List.t -> (TC.t, TC.comparator_witness) Base.Set.tsuffixes w returns the set ε, aₙ, aₙ₋₁aₙ, …, w of all suffixes of w. Used by the gen encoding to compute the generator variable closure and by the SWAL learner's Suffixes counterexample extension strategy.