arXiv:2111.03951v1 [math.GR] 6 Nov 2021 The Lehmer factorial norm on S n Paweł Zawiślak Department of Mathematics and Mathematical Economics SGH Warsaw School of Economics Al. Niepodległości 162, 02-554 Warszawa, Poland E-mail: [email protected]November 9, 2021 Abstract We introduce a new family of norms on the permutation groups S n . We examine their properties. 1 Introduction Metrics on the permutation groups S n were considered in many different contexts. On one side, permutations can be used used as rankings, therefore some metrics on permutations originate from attempts of comparing rankings. Many well known measures of similarity between rankings lead to definition of metric on S n . The most popular measures of similarity are Kendall’s τ ([K]) and Spearman’s ρ ([S]). These two measures leads to Kendall’s distance and Spearman’s distance. Together with Spearman footrule (also known as Manhattan distance) and Hamming distance, these four metrics are the most popular metrics on S n used in the statistics ([DG] and [DH]). 2020 Mathematics Subject Classification: 05A05, 62H20, 54E35, 20B99 Key words and phrases: Lehmer code, Lehmer factorial norm, permutation 1
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
arX
iv:2
111.
0395
1v1
[m
ath.
GR
] 6
Nov
202
1
The Lehmer factorial norm on Sn
Paweł ZawiślakDepartment of Mathematics and Mathematical Economics
SGH Warsaw School of EconomicsAl. Niepodległości 162, 02-554 Warszawa, Poland
By σ−1 we denote the inverse permutation to σ, by στ – the composition of σ
and τ , defined by (στ)(i) = σ(τ(i)) for i = 1,2, . . . , n, whereas σ stands for the
permutation reverse to σ, given by σ(i) = σ(n + 1 − i) for i = 1,2, . . . , n.
For s = 1,2, . . . , n − 1 let
σs = (1,2, . . . , s − 1, s + 1, s, s + 2, . . . , n)(so σs is the adjacent transposition – (s, s + 1) in the cycle notation).
Definition 2.1. For a permutation σ ∈ Sn its Lehmer code lc(σ) (see [G]) is defined
by
lc(σ) = [c1(σ), c2(σ), . . . , cn(σ)]where the numbers ci(σ) (for i = 1,2, . . . , n) are given by
ci(σ) = ∣{j ∈ [n] ∶ j > i and σ(j) < σ(i)}∣The Lehmer code of σ coincides with the factorial number system representa-
tion of its position in the list of permutations of [n] in the lexicographical order
(numbering the positions starting from 0) – compare [G] to [L1] and [L2].
The Lehmer codes of permutations σ ∈ S3 are presented in Table 1.
3 The Lehmer factorial norm
In this section we define the Lehmer factorial norm on the group Sn. We also examine
its basic features.
We start with establishing some basic properties of the Lehmer code. To do this,
we need some technical notation. For a permutation σ ∈ Sn and for i = 1,2, . . . , n let
C(σ)i = {j ∈ [n] ∶ j > i and σ(j) < σ(i)} and A(σ)i = [i] ∪C(σ)i
4 P. Zawiślak
Note, that if we denote the cardinality of X by ∣X ∣, then ∣C(σ)i∣ = ci(σ) and ∣A(σ)i∣ =i + ci(σ).Lemma 3.1. For all permutations σ, τ ∈ Sn and for all i = 1,2, . . . , n the following
hold:
(i) σ(i) ≤ i + ci(σ),(ii) ci(στ) ≤ ci(τ) + cτ(i)(σ),(iii) σ−1 determines the bijection between A(σ−1)σ(i) and A(σ)i. In particular
i + ci(σ) = σ(i) + cσ(i)(σ−1)Proof. (i) Note that ∣{j ∈ [n] ∶ j > i}∣ = n − i, so
∣{j ∈ [n] ∶ j > i and σ(j) > σ(i)}∣ = n − i − ci(σ)On the other hand
∣{σ(j) ∶ j ∈ [n] and σ(j) > σ(i)}∣ = n − σ(i)And since
σ[{j ∈ [n] ∶ j > i and σ(j) > σ(i)}] ⊆ {σ(j) ∶ j ∈ [n] and σ(j) > σ(i)}it follows that n − i − ci(σ) ≤ n − σ(i).
(ii) Choose k ∈ C(στ)i. If τ(k) < τ(i), then k ∈ C(τ)i. Otherwise τ(k) > τ(i) and
σ(τ(k)) < σ(τ(i)), therefore τ(k) ∈ C(σ)τ(i).(iii) Choose k ∈ A(σ−1)σ(i) and let l = σ−1(k). We will show that l ∈ A(σ)i. There
are two possible cases.
(a) k ≤ σ(i): If l ≤ i, then l ∈ [i] ⊆ A(σ)i. Otherwise l > i, and since σ(l) = k ≤ σ(i),it follows that σ(l) < σ(i) hence l ∈ C(σ)i ⊆ A(σ)i.
(b) k > σ(i): Therefore k ∈ C(σ−1)σ(i), so l = σ−1(k) < σ−1(σ(i)) = i and thus
l ∈ [i] ⊆ A(σ)i.
The Lehmer factorial norm on Sn 5
We have shown that σ−1 [A(σ−1)σ(i)] ⊆ A(σ)i. Replacing σ with σ−1 leads to the
second inclusion, which completes the proof.
As an obvious conclusion of Lemma 3.1 (iii) we get:
Corollary 3.2. Elements of the Lehmer code of the inverse permutation to σ are
given by
ci(σ−1) = cσ−1(i)(σ) + σ−1(i) − i
for i = 1,2, . . . , n.
In the next lemma we describe how the Lehmer code changes when a permutation
is multiplied by an adjacent transposition.
Lemma 3.3. (i) ci(σs) = δis (the Kronecker delta) for i = 1,2, . . . , n and s =1,2, . . . , n − 1.
(ii) Let τ = σσs. If σ(s) < σ(s + 1), then
⎧⎪⎪⎪⎪⎨⎪⎪⎪⎪⎩ci(τ) = ci(σ) for i ≠ s, s + 1
cs(τ) = cs+1(σ) + 1
cs+1(τ) = cs(σ)otherwise ⎧⎪⎪⎪⎪⎨⎪⎪⎪⎪⎩
ci(τ) = ci(σ) for i ≠ s, s + 1
cs(τ) = cs+1(σ)cs+1(τ) = cs(σ) − 1
Proof. (i) Follows definitions of the Lehmer code and σs.
(ii) Note first, that
τ = (σ(1), σ(2), . . . , σ(s − 1), σ(s + 1), σ(s), σ(s + 2), . . . , σ(n))Threrefore ci(σ) = ci(τ) for i ≠ s, s + 1 (for i < s we have: s ∈ C(σ)i if and only if
s + 1 ∈ C(τ)i).Suppose that σ(s) < σ(s + 1). In this case
C(τ)s = C(σ)s+1 ∪ {s + 1} and C(τ)s+1 = C(σ)s
6 P. Zawiślak
If σ(s) > σ(s + 1), then
C(τ)s = C(σ)s+1 and C(τ)s+1 = C(σ)s ∖ {s + 1}This finishes the proof.
Now we are ready to define the Lehmer factorial norm on Sn.
Definition 3.4. Let σ ∈ Sn be a permutation with the Lehmer code
lc(σ) = [c1(σ), c2(σ), . . . , cn(σ)] = [kn−1(σ), kn−2(σ), . . . , k0(σ)](here ki(σ) = cn−i(σ) for i = 0,1, . . . , n − 1). The Lehmer factorial norm (with base 2)
LF2 ∶ Sn → N is given by
LF2(σ) = n−1
∑i=0
[2i − 2i−ki(σ)]Remark 3.5. For a number m ∈ N let
m = kn−1 ⋅ (n − 1)! + . . . + k1 ⋅ 1! + k0 ⋅ 0!
be the (unique!) decomposition of m in such a way, that 0 ≤ ki ≤ i! for i = 0,1, . . . , n−
1 (in particular k0 = 0). Therefore m has the following factorial number system
∣LF2(τ) −LF2(σ)∣ = 2−min{cs(σ),cs+1(σ)}LF2(σs)Proof. (i) Note that LF2(σ) ≥ 0 with the equality holds only if ki(σ) = 0 for i =0,1, . . . , n − 1. In such a case σ = en.
(ii) The proof is similar to the one of (i). Namely, LF2(σ) is maximal only if
ki(σ) = i for i = 0,1, . . . , n − 1 and this implies σ = en.
(iii) It is enough to see that ci(σs) = δis (see Lemma 3.3 (i)).
(iv) Follows the fact that for σ = (σ(1), σ(2), . . . , σ(n)) and ιn(σ) = (1,1+σ(1),1+σ(2), . . . ,1+σ(n)) we have c1(ιn(σ)) = 0 and ci(ιn(σ)) = ci−1(σ) for i = 2,3, . . . , n+1.
(v) First note, that
LF2(σ) = n−1
∑i=0
[2i− 2i−ki(σ)] = n−1
∑i=0
[2i− 2i−cn−i(σ)] = n
∑j=1
[2n−j− 2n−j−cj(σ)]
8 P. Zawiślak
Consequently, the equality LF2(σ) = LF2(σ−1) is equivalent to
n
∑j=1
2n−j−cj(σ) =n
∑j=1
2n−j−cj(σ−1)
Now according to Corollary 3.2
n − j − cj(σ−1) = n − j − [cσ−1(j)(σ) + σ−1(j) − j] = n − σ−1(j) − cσ−1(j)(σ)hence it is enough to notice that
n
∑j=1
2n−j−cj(σ) =n
∑j=1
2n−σ−1(j)−cσ−1(j)(σ)
is just change of order of summation. The last equality holds since for j taking all
values from [n] the same holds for σ−1(j).(vi) We have the following equalities:
LF2(σ) = n
∑j=1
[2n−j− 2n−j−cj(σ)]
LF2(τ) = n
∑j=1
[2n−j− 2n−j−cj(τ)]
and
LF2(στ) = n
∑j=1
[2n−j− 2n−j−cj(στ)]
Therefore the inequality
LF2(στ) ≤ LF2(σ) +LF2(τ)is equivalent to the following ones
n
∑j=1
[2n−j− 2n−j−cj(στ)] ≤ n
∑j=1
[2n−j− 2n−j−cj(σ)] + n
∑j=1
[2n−j− 2n−j−cj(τ)]
n
∑j=1
2n−j−cj(τ)+
n
∑j=1
2n−j−cj(σ) ≤n
∑j=1
2n−j+
n
∑j=1
2n−j−cj(στ)
n
∑j=1
1
2j+cj(τ)+
n
∑j=1
1
2j+cj(σ)≤
n
∑j=1
1
2j+
n
∑j=1
1
2j+cj(στ)
The Lehmer factorial norm on Sn 9
n
∑j=1
1
2j+cj(τ)+
n
∑j=1
1
2τ(j)+cτ(j)(σ)≤
n
∑j=1
1
2τ(j)+
n
∑j=1
1
2j+cj(στ)
The last inequality holds since for j taking all values from [n] the same holds for
τ(j).To finish the proof, it is enough to show that for every j = 1,2, . . . , n we have
(3.1)1
2j+cj(τ)+
1
2τ(j)+cτ(j)(σ)≤
1
2τ(j)+
1
2j+cj(στ)
By Lemma 3.1 (i) and (ii),
(3.2) cj(στ) ≤ cj(τ) + cτ(j)(σ) and τ(j) ≤ j + cj(τ).Since for non negative numbers a, b, c, d and e satisfying
e ≤ b + d and c ≤ a + b
it holds1
2a+b+
1
2c+d≤
1
2c+
1
2a+e
hence (3.1) is a consequence of (3.2) by substitution
a = j, b = cj(τ), c = τ(j), d = cτ(j)(σ) and e = cj(στ)(vii)
LF2(τ) −LF2(σ) = n−1
∑i=0
[2i− 2i−ki(τ)] − n−1
∑i=0
[2i− 2i−ki(σ)] = n−1
∑i=0
[2i−ki(σ)− 2i−ki(τ)] =
=n−1
∑i=0
[2i−cn−i(σ)− 2i−cn−i(τ)] = n
∑j=1
[2n−j−cj(σ)− 2n−j−cj(τ)]
Now according to Lemma 3.3 (ii) cj(τ) = cj(σ) for j ≠ s, s + 1, hence