Basic structures
Generating functions
Proof techniques
Combinatorial identities
Polytopes
In mathematics, by “shuffles” or “un-shuffles” one means certain permutations , namely those which (when thought of as permuting the natural numbers ) are linear order-preserving along the first steps and then again along the remaining steps.
The term ‘shuffle’ conjures up the idea of shuffling a pack of cards. In fact the mathematical idea is nearer to shuffling two packs of cards one through the other. Suppose we have a pack of cards and a pack of cards and we build a pack of cards, whilst retaining the order on the two ‘sub-packs’. The result is a -shuffle.
Or rather, the permutation in question may be seen as describing the un-doing of such a shuffling, whence some authors say “un-shuffle” for the same concept.
In this vein, the following graphics shows an illustration of an example of a -(un-)shuffle of an ordered list of 7 elements:
For two natural numbers, a -shuffle is a permutation
of subject to the condition that
and
In more formal terms, a -shuffle is a permutation (an element of the symmetric group acting on the finite set of elements), such that
hence, equivalently, such that
The signature of a -shuffle is the signature of the corresponding permutation.
Two other equivalent (and dual) ways of defining the notion of -shuffle are as follows (e.g. Hoffbeck-Moerdijk 17, section 1.1), naturally understood as characterizing the non-degenerate simplices in a product of simplices (e.g. Kerodon 2.5.7.2: 00RH):
Consider and as the linear orders and . Then a -shuffle is a way of extending the partial order on the coproduct to a linear order, or equivalently, a surjective monotone function
Consider and as non-empty linear orders and . Then a -shuffle is a maximal chain within the product partial order , or equivalently, an injective monotone function:
Shuffles control the combinatorics of products of simplices. See products of simplices for details.
Related to the product of simplices: shuffles control the Eilenberg-Zilber map. See there for details.
Shuffles are used in defining the pre-cgc structure on in the theory of differential graded coalgebras
Shuffles are also used for defining the shuffle product on , see differential graded Hopf algebra.
In the definition of L-∞ algebras the unshuffle side of shuffles is used.
(number of shuffles)
The number of -shuffles is given by the binomial coefficient
Because, due to the preservation of order in the two “decks”, a shuffle is fully determined by which elements of are in the image of , which is the number of choices of out of elements.
Any pair yields a poset relating the various -shuffles.
For example, consider this -shuffle:
(This Hasse diagram has been laid out horizontally to save space. The bottom is to the left. The vertex corresponds to the shuffle with , and so on.)
We need here to explain the partial order. We take the ‘-signature’ of the shuffle, that is, the ordered set . (Of course, this determines the -signature as that is the complement of .)
Given two -shuffles, represented by and , we set
if, for each in the range , We refer to this poset as .
Going to , the poset for -shuffles, the fact that will mean that this poset is again linear:
This is true in general:
If or , then is a linear poset.
If , is a singleton, and the poset will be:
For , , and the poset is
where at each stage one misses out the single -value.
In all cases, each position is obtained from the one immediately to its ‘left’ by increasing one value, yet remaining with a shuffle. This is more clearly seen in the (2,2) example, which is no longer linear. First we display the grid in which things are happening.
We can then look at the shuffle poset, noting again that it is not linear:
The left hand shuffle, labelled , corresponds to , so gives the path along the bottom of the square and then up the right hand side.
The first change goes to and gives a path with 2 steps,
and corresponds to the shuffle, , so at this position, , there is a choice, either increase 0 by 1 to get or increase 2 by 1 to get . In the first case, we get the path
going horizontally across the square, and the shuffle, , and in the second case, we get the shuffle: , and the obvious path up the middle of the square:
From or , there is only one way to go, namely to and a 2-step path (left to you), and, finally it is just one step from to and the other extremal path.
In summary, each path corresponds to a simplex of maximal dimension in the product. The poset encodes the simplest relationships between those paths with the links in the Hasse diagram corresponding to simple changes in the path, and adjacency of the two simplices in the product, but note that the poset is usually not linear.
There is a total order on related to the above partial order and which is useful when checking cancellation of terms in non-commutative contexts, as occurs in the Whitehead product formula given by Curtis and attributed to Kan. This is the anti-lexicographic order.
We represent a -shuffle by an increasing -sequence , (so with complementary -sequence ).
We order the using just the -sequence as, of course, that determines the -sequence completely. Inductively in , we set
(i) if ,
or
(ii) if and is odd,
whilst if and is even,
where we adopt the notation instead of .
For example, on our (2,2)-shuffles, the total order is
We note the lexicographic order on the sector with is reversed.
For illustrative purposes, we will look at two other examples.
First a generic case: the shuffle poset for is, more or less,
as, at each position, there is only one transposition that can be applied. The anti-lex total order will correspond exactly to this if is odd, but, if is even, it will reverse the order on the last positions giving
There are various points to note. Firstly that if is even, the permutation corresponding to is odd. Secondly, the geometric picture is simply a prism, , and we can easily interpret the above order as a filling scheme for the simplices of , starting with the empty shell of
together with part of the top of the ‘canister’. (In general the total order seems to correspond to some sort of filling scheme although this is not always as clear as here.)
Our second case will be (3,2). Again we will write instead of in order to save confusion over the various different orders being considered. The shuffle poset, , has Hasse diagram given below:
The subgraph of those with , of course, is a copy of our earlier -example, whilst that with , is a copy of . Within that we have, on deleting the 3s from the final positions, a copy of and so on. Taking , we can match it with a within the block, the matching being given by, for instance, , etc. The anti-lex order gives
which is
the ordinal sum, or join, of the anti-lex ordered shuffle sets. This sort of decomposition is quite general.
Original articles:
Review:
Marcelo Aguiar, Swapneel Mahajan, Section 2.2.3 in: Monoidal Functors, Species and Hopf Algebras, With forewords by Kenneth Brown, Stephen Chase, André Joyal. CRM Monograph Series 29 Amer. Math. Soc. 2010. lii+784 pp. (author pdf)
The two dual equivalent characterizations of -shuffles (called shuffles of linear trees or shuffles of linear orders) are discussed in section 1.1 of
Last revised on November 7, 2023 at 16:13:09. See the history of this page for a list of all contributions to it.