 # Mahonian STAT on rearrangement class of words

In 2000, Babson and Steingrímsson generalized the notion of permutation patterns to the so-called vincular patterns, and they showed that many Mahonian statistics can be expressed as sums of vincular pattern occurrence statistics. STAT is one of such Mahonian statistics discoverd by them. In 2016, Kitaev and the third author introduced a words analogue of STAT and proved a joint equidistribution result involving two sextuple statistics on the whole set of words with fixed length and alphabet. Moreover, their computer experiments hinted at a finer involution on R(w), the rearrangement class of a given word w. We construct such an involution in this paper, which yields a comparable joint equidistribution between two sextuple statistics over R(w). Our involution builds on Burstein's involution and Foata-Schützenberger's involution that utilizes the celebrated RSK algorithm.

## Authors

##### This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

## 1. Introduction

An occurrence of a classical pattern in a permutation is a subsequence of that is order-isomorphic to , i.e., that has the same pairwise comparisons as . For example, has two occurrences of the pattern in its subsequences and . The study of (classical) permutation patterns have mostly been with respect to avoidance, i.e., on the enumeration of permutations in the symmetric group that have no occurrences of the pattern(s) in question. The tone is generally believed to be set in 1968, when Knuth published Volume one of The Art of Computer Programming . It was observed in  that the number of -avoiding permutations are enumerated by the Catalan numbers. See  and the references therein for a comprehensive introduction to patterns in permutations.

In 2000, Babson and Steingrímsson  traced out a new line of research by generalizing classical patterns to what are now known as vincular patterns. In an occurrence of a vincular pattern, some letters of that order-isomorphic subsequence may be required to be adjacent in the permutation, and this is done by underscoring the adjacent letters in the expression for the pattern. For our previous example, only represents an occurrence of the vincular pattern in . As was investigated thoroughly in , these vincular patterns turned out to be the “building blocks” in their classification of Mahonian statistics. Recall that a permutation statistic is called Mahonian precisely when it has the same distribution, on , as , the number of inversions. Given a vincular pattern and a permutation , we denote by the number of occurrences of the pattern in . When it causes no confusion, we will even drop the parentheses. For instance, it was observed/defined in :

 INV =21=21–––+312–––+321–––+231–––, MAJ =21–––+132–––+231–––+321–––, MAK =21–––+132–––+231–––+32–––1, (1.1) STAT =21–––+13–––2+21–––3+32–––1.

Note that the first three Mahonian statistics are well-known ones putting on a new look, while the last one was one of those introduced in  and shown to be Mahonian.

Now we state the joint equidistribution results involving STAT obtained by Burstein  on and by Kitaev and the third author  on , the set of length words over the alphabet . These two results largely motivated this work. All undefined statistics will be introduced in the next section. For the spelling of the statistics, we follow the convention of , i.e., all Mahonian statistics are spelled with uppercase letters, all Eulerian statistics are spelled with lowercase letters, while all the remaining ones are merely capitalized. Moreover, the italic letters are used for set-valued statistics, such as Id in Theorem 1.3 and Corollary 1.5.

###### Theorem 1.1 (Theorem 2.1 in ).

Statistics and

have the same joint distribution on

for all .

###### Theorem 1.2 (Theorem 2 in ).

Statistics and have the same joint distribution on for all and .

A quick look at Table 1 reveals that when one wants to extend the above results to the rearrangement class , the statistic must be dropped. In the meantime, the involution we are going to construct actually preserves the inverse descent set Id (see Definition 2.2). The following are the main results of this paper.

###### Theorem 1.3.

Statistics and have the same joint distribution on for all .

###### Remark 1.4.

It is worth mentioning that in  it has been shown that and are equidistributed on for all .

In view of this theorem and the standard “coding/decoding” between words and permutations , we derive the following version for words, where the statistics have to be redefined on words accordingly. We defer the details to the next section.

###### Corollary 1.5.

Statistics and have the same joint distribution on for any word .

Since uniquely determinates both and (see Definition 2.2), the next corollary is a consequence of the previous one, and it is similar to Theorem 1.2, except is replaced by and the equidistribution is stated on the rearrangement classes.

###### Corollary 1.6.

Statistics and have the same joint distribution on for any word .

In the next section, we will first present the formal definitions of all the statistics that concern us here, and then explain the transition from Theorem 1.3 to Corollary 1.5. Theorem 1.3 will be proved in Section 3, where Foata-Schützenberger’s involution via RSK correspondence will be recalled. We conclude with some further questions suggested by this work.

## 2. Preliminaries

Since all the statistics that concern us here can be defined on both permutations and words, and that we have two versions of joint equidistribution results, some care needs to be taken to avoid unnecessary repetitions. We decide to define all the statistics on the rearrangement class for a word of length , making sure that when is composed of distinct letters, and thus becomes essentially , all the statistics reduce to the original ones defined on . On the other hand, for the two equidistribution results we first explain how to derive Corollary 1.5 from Theorem 1.3 and then construct, in the next section, the key involution on .

We consider words on a totally ordered alphabet . Without loss of generality, we can always take to be the interval . By rearrangement class , we mean the set of all words that can be obtained by permuting the letters of . Within each class , there is a unique non-decreasing word that we denote by . If the letters of are distinct, then is in bijection with the symmetric group via the following “coding” map .

###### Definition 2.1.

Given a word , we code it by the permutation uniquely defined by

 c(w)i

This gives rise to a map , which we call the coding map, and clearly is a surjection if and only if .

For example, the word is coded by . Now we are ready to define all seven statistics encountered in the introduction. The true or false function is used in the definition of for our convenience: (resp. ) if the statement is true (resp. false).

###### Definition 2.2.

Let be a word. The descent set of , , the inverse descent set of , , and a peculiar index set (needed in Section 3) that we call the shuffle set of , are set-valued statistics defined as follows:

 D(w) ={i:wi>wi+1,1≤iwi+1 or wi

We define the following seven statistics on :

 F w =w1,des w=∑j∈D(w)1,ides w=∑j∈Id(w)1, Adj w =n∑j=1χ(c(w)j=c(w)j+1+1), take c(w)n+1=0, MAJ w =∑j∈D(w)j=(132–––+121–––+231–––+221–––+321–––+21–––)w, IMAJ w =∑j∈Id(w)j, STAT w =(21–––3+21–––2+13–––2+12–––1+32–––1+21–––)w.

We note that all have been extended to words in . Some of the definitions given here may look different but essentially are equivalent to those used in , and our formulation of makes it more convenient to define on words.

When the word happens to be a permutation in , then and all the above statistics agree with their original counterparts defined on permutations. This hopefully justifies our abuse of notation, i.e., we use the same name for these statistics, both on words and permutations. Moreover, it should be routine to verify that the coding map preserves six statistics defined above, with being the only exception.

For the previous example with and , we see , , , etc.

In order to deduce Corollary 1.5 from Theorem 1.3, we need to pay some attention to the “decoding” map from back to . In general, the preimage of a given permutation under the coding map is not unique and therefore this decoding is not well defined. For instance, for both and , we see , with . This should be somewhat expected since when contains repeated letters, we have . To deal with this, we introduce the notion of compatible permutations.

###### Definition 2.3.

Given the rearrangement class for a word of length , we denote the subset of that is the image of under the coding map , and we call it the set of compatible permutations with respect to . More precisely,

 \SSR(w)={π∈\SSn:π=c(v), for some v∈R(w)}.

It is clear from Definition 2.1 that if we restrict on a rearrangement class , it is injective, hence it induces a bijection between and , with a unique inverse defined on :

 c=c|R(w): R(w)→\SSR(w), c−1: \SSR(w)→R(w), (2.2) c−1∘c(v) =v,∀v∈R(w), (2.3) c∘c−1(π) =π,∀π∈\SSR(w).

The next proposition characterizes using and the inverse descent set.

###### Proposition 2.4.

Given and suppose , where and

 u1=⋯=ub1

Then if and only if .

###### Proof.

Take a permutation , then for some , and consequently , this takes care of the “only if” part. We finish the proof by simply noting that both and are enumerated by . ∎

In the next section, we are going to construct an involution on such that for any ,

 (2.4) (des,Id,F,MAJ,STAT)π =(des,Id,F,STAT,MAJ)ϕ(π).

This proves Theorem 1.3. Now consider the function composition

 ϕR(w) =c−1∘ϕ∘c.

Note that for any , , and since , we have thanks to Proposition 2.4, thus is well-defined. Now we show that is an involution on that proves Corollary 1.5.

###### Proof of Corollary 1.5.

We first prove that is indeed an involution. Let , we have

 ϕ2R(w)(v) =(c−1∘ϕ∘c)∘(c−1∘ϕ∘c)v =(c−1∘ϕ)∘(c∘c−1)∘(ϕ∘c)v (2.3) =(c−1∘ϕ)∘(ϕ∘c)v =(c−1∘(ϕ∘ϕ)∘c)v ϕ is an involution =(c−1∘c)v (2.2) =v.

Next we apply (2.1) (twice) and (2.4) to get

 (des,Id,MAJ,STAT)v =(des,Id,STAT,MAJ)ϕR(w)(v).

Finally it is straightforward to check that since by relation (2.4). This immediately establishes Corollary 1.5 and ends the proof. ∎

## 3. Involution ϕ

In this section we aim to construct the aforementioned map from into itself, and we show that i) it is an involution and ii) it satisfies (2.4). First off, we recall an involution defined on that was first considered by Schützenberger  and further explored by Foata-Schützenberger . It builds on two permutation symmetries, namely reversal r and complement c, as well as the famous Robinson-Schensted-Knuth (RSK) algorithm [14, 7.11]. We collect the relevant definitions and notations below. Given a permutation ,

 πr=πr1πr2⋯πrn, with πri=πn+1−i, for 1≤i≤n, πc=πc1πc2⋯πcn, with πci=n+1−πi, for 1≤i≤n, πrc=πrc1πrc2⋯πrcn, with πrci=n+1−πn+1−i, for 1≤i≤n, πRSK⟶(Pπ,Qπ)RSK−1⟶π,

where is a bijection between

and the set of ordered pairs of

-cell standard Young tableaux (SYT) with the same shape. Note that , and are involutions on .

We usually call the insertion tableau and the recording tableau of . In general, for two unrelated permutations , and are unlikely to be of the same shape. However, it was noted in [7, Prop. 5.2] that and are indeed of the same shape, so the following map is a well-defined involution on .

 ȷ: \SSn→\SSn π↦RSK−1(Pπ,Qπrc)

The next property of is of great importance for our later use and is the main reason that urged us to involve in our construction of .

###### Lemma 3.1 (Theorem 2 in ).

For any , the map as defined above preserves the inverse descent set and exchanges the descent set with its complement to . In other words one has simultaneously:

 (3.1) Id(ȷ(π)) =Id(π), and (3.2) D(ȷ(π)) ={n−k:k∈D(π)}.

Now given a permutation with , let us denote as (resp. ) the top (resp. bottom) subword that is composed of all the letters larger (resp. smaller) than . We also need the shuffle set defined in Definition 2.2. For example, let , then , and . Conversely, it should be clear how to recover the unique permutation that corresponds to an appropriate triple , so we omit the details. We are ready to describe our key map using this defining triple: (top subword, bottom subword, shuffle set).

###### Definition 3.2.

Given , let be the unique permutation that corresponds to , where

 (3.3) ϕ(π)t :=c−1∘ȷ∘c(πt), (3.4) ϕ(π)b :=ȷ(πb), (3.5) Sh(ϕ(π)) :={{1}∪{n+1−k:k≥2,k∈Sh(π)} if % |Sh(π)| is odd,{n+1−k:k≥2,k∈Sh(π)} if |Sh(π)| is even.
###### Remark 3.3.

It should be noted that the idea to associate with the triple is motivated by Burstein’s involution introduced in  to prove Theorem 1.1. Actually in our setting, Burstern’s can be defined using the same (3.5), together with (3.3) and (3.4) replaced by

 p(π)t =c−1((c(πt))rc), and p(π)b =(πb)rc.

Moreover, in view of (3.1) and Proposition 2.4, (3.3) is well-defined. Thirdly, by the above definition, it follows that . Lastly, using the fact that is an involution, it is routine (using the associated triple) to check that for any , i.e., is an involution on as claimed.

All remained to be done is to prove (2.4). Namely, we need to show for every :

 des ϕ(π) =des π, Id(ϕ(π)) =Id(π), F ϕ(π) =F π, STAT ϕ(π) =MAJ π, MAJ ϕ(π) =STAT π.

We break it up into the following three lemmas and one corollary.

###### Proof.

First note that when the first letter is fixed, only depends on and , and is not affected by at all. Then we simply use (3.1) to finish the proof. ∎

.

###### Proof.

This is precisely Lemma 2.7 in , hence we omit the proof. ∎

.

###### Proof.

The basic idea is to pair the descents of with the descents of . We discuss by two cases.

• If , then either or . Using (3.2) and (3.5) we see that either or , both of which lead to . So this pair contributes

 i+(n+1−i)=n+1

to the sum .

• If , then , and according to (3.5), , where is the length of the maximal block of consecutive entries of that ends with and is contained in . Therefore this pair contributes

 i+(n+1−i−si)=n+1−si

to the sum .

All such as defined above clearly sum up to the total length of :

 ∑i∈D(π)∩Sh(π)si=|ϕ(π)b|=|πb|=F π−1.

We add the contributions from both cases to arrive at the desired identity. ∎

###### Proof.

It immediately follows from Lemma 3.5 and 3.6 that , and since is an involution we also get . Finally we have:

 (n+1)des ϕ(π)−(F ϕ(π)−1) \tiny Lemma~{}???=MAJ ϕ(π)+MAJ ϕ2(π) aaaϕ2=1aa=STAT π+MAJ π \tiny Lemma~{}???=(n+1)des π−(F π−1).

This involution is admittedly a bit involved, so we include one complete example here to illustrate it.

###### Example 3.8.

Given , take . We first compute the statistics on :

 (des,Id,F,MAJ,STAT)v=(5,{2,3,4,8},4,25,21).

Now let , we proceed to find . First we get the defining triple associated with :

 (πt,πb,Sh(π))=(6 7 9 8,4 3 1 2,{1,2,4,6,8}).

Applying and according to (3.5), we get immediately . But for and , which involve the map , we need to invoke the RSK algorithm. We first apply RSK on and to get the following four SYT. 3+1 111 122 133 214 0.8-1.6 3+1 111 122 133 214 0.8-1.6 3+1 111 123 134 212 0.8-1.6 3+1 111 123 134 212 0.8-1.6 Then we apply inverse RSK on the pair to get , hence . Similarly for , we apply RSK on and to get the following four SYT. 2+1+1 111 122 213 314 0.6-2 2+1+1 111 124 212 313 0.6-2 2+1+1 111 124 212 313 0.6-2 2+1+1 111 122 213 314 0.6-2 Reversing RSK on then produces . Together we have

 (ϕ(π)t,ϕ(π)b,Sh(ϕ(π)))=(9 6 7 8,1 4 3 2,{1,2,4,6,8}),

which corresponds uniquely to . Therefore . Finally we check the statistics match up indeed (with and switched).

 (des,Id,F,STAT,MAJ)ϕR(w)(v)=(5,{2,3,4,8},4,25,21).

## 4. Further questions

Seeing our equidistribution result in Corollary 1.5, a natural next step is to consider the so-called “-extension” (see [8, 9, 5]). Namely, for our prototype of the alphabet, , we take two non-negative integers and such that . Then we call the letters small and the letters large. Now consider any total ordering, say , on that is compatible with , in the sense that for any small letter and any large letter , we have . Both and have their -extensions defined with respect to , so one may ask if there exists a -extension for , such that the joint distribution of are still the same as that of .

Finally, Corollary 1.5 justifies as a new Euler-Mahonian (over rearrangement class of words) pair in the family consisting of and (see  for undefined statistics and further details). It would be interesting to pair other Mahonian statistics discovered in  with either or , and then pigeonhole the resulting pairs into the existing (or even new) families of Euler-Mahonian statistics. Another possible direction for furthering the study on is to consider the equidistribution problems on pattern avoiding permutations, see the recent work in [1, 4].

## Acknowledgement

The first two authors were supported by the Fundamental Research Funds for the Central Universities (No. CQDXWL-2014-Z004) and the National Natural Science Foundation of China (No. 11501061).

## References

•  N. Amini, Equidistributions of Mahonian statistics over pattern avoiding permutations, arXiv:1705.05298.
•  E. Babson and E. Steingrímsson, Generalized permutation patterns and a classification of the Mahonian statistics, Sém. Lothar. Combin, B44b (2000): 18 pp.
•  A. Burstein, On joint distribution of adjacencies, descents and some Mahonian statistics, in: Proc. AN, in: Discrete Math. Theor. Comp. Sci, 2010, pp. 601-612 (also in FPSAC 2010, San Francisco, USA).
•  J. N. Chen, Equidistributions of MAJ and STAT over pattern avoiding permutations, arXiv:1707.07195.
•  R. J. Clarke and D. Foata, Eulerian calculus, II: an extension of Han’s fundamental transformation, European Journal of Combinatorics, 16(3) (1995): 221-252.
•  R. J. Clarke, E. Steingrímsson and J. Zeng, New Euler-Mahonian statistics on permutations and words, Advances in Applied Mathematics, 18(3) (1997): 237-270.
•  D. Foata and M. P. Schützenberger, Major index and inversion number of permutations, Mathematische Nachrichten, 83(1) (1978): 143-159.
•  G. N. Han, Une transformation fondamentale sur les réarrangements de mots, Advances in Mathematics, 105(1) (1994): 26-41.
•  G. N. Han, The -extension of a Mahonian statistic, Advances in Applied Mathematics, 16(3) (1995): 297-305.
•  S. Kitaev, Patterns in permutations and words, Springer Science & Business Media, 2011.
•  S. Kitaev and V. Vajnovszki, Mahonian STAT on words, Information Processing Letters, 116(2) (2016): 157-162.
•  D. E. Knuth, The Art of Computer Programming. Volume 1. Addison-Wesley Publishing Co., Reading, Mass., 1968.
•  M. P. Schützenberger, Quelques remarques sur une construction de Schensted, Séminaire Dubreil. Algèbre et théorie des nombres, 16(2) (1963): 1–12.
•  R. P. Stanley, Enumerative combinatorics, vol. 2, Cambridge University Press, Cambridge, United Kingdom, 1999.