Products of the lists List.ofFn f #
In a monoid, the product of the letters β (w 0) ⋯ β (w (n + 1)) of a word w obtained from a
word u of length n by inserting two consecutive letters d, e at the positions p and
p + 1 factors as L * β d * β e * R, where L and R depend only on u and p
(List.exists_prod_ofFn_insertNth_insertNth). This is how a relation among the products
β d * β e passes to the products of all words carrying the letters d, e in a fixed position.
A nonempty product f₀ f₁ ⋯ fₙ is the left fold of f₁, …, fₙ starting from f₀
(List.prod_ofFn_eq_foldl), and multiplicative maps, not necessarily unital, preserve such left
folds (List.map_foldl_ofFn_mul). Together they move nonempty products through nonunital
homomorphisms.
The product of a word whose letters all equal c except for a single letter a in position p
is c ^ p * a * c ^ (n - p) (List.prod_ofFn_ite).
A multiplicative map, not necessarily unital, carries a left fold of products to the left fold of the images.