Concatenations of blocks of one length #
A substitution that replaces every letter by a block of the same positive length is injective on
words as soon as it is injective on letters (List.flatMap_injective_of_forall_length_eq): the
blocks can be read back one after the other. It is the case of blocks of one length of
List.flatMap_inj_of_length_eq for self-delimiting codes, since the length of the concatenation
gives the number of blocks. List.flatMap_singleton_injective is the case of
blocks of length one, and List.length_flatMap_of_forall_length_eq gives the length of such a
concatenation. Two substitutions whose blocks have the same lengths on the letters of a word give
the same concatenation exactly when they agree on these letters
(List.flatMap_eq_flatMap_iff_of_forall_length_eq).
A substitution by blocks of one positive length is injective on words when it is injective on letters.