Word Combinatorics: Shuffles and Splits #
This file defines the shuffle of two words and prefix-suffix splits of a word, counted with multiplicity, as lists. These are shared between the rough-path signature theory (shuffle identities) and the Munthe-Kaas-Wright Hopf algebra of ordered forests, whose product is a shuffle of forests.
Main definitions #
Word.shuffle- all shuffles of two words, counted with multiplicityWord.splits- all prefix-suffix decompositions of a word
All shuffles of two words, with multiplicity.
Equations
Instances For
Shuffling a single letter into a word ending in b: either a lands at
the very end, or it shuffles into the prefix.
Shuffling a word ending in a with a single letter b: either b lands
at the very end, or it shuffles into the prefix.
The right-end recursion for shuffles: every shuffle of u ++ [a] and
v ++ [b] ends in either a or b.
Shuffle associativity at the level of multisets of words: shuffling x ⧢ y
against z produces the same words, with multiplicity, as shuffling x
against y ⧢ z.
Exchange of the shuffle arguments: shuffling x ⧢ y against z gives
the same multiset of words as shuffling x ⧢ z against y.
Independent flatMaps commute up to permutation.
All prefix-suffix decompositions of a word.
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.