2.16 Sign

2.16.1 Definition of odd and even permutations

Theorem 2.15.3 says that every permutation can be expressed as a product of transpositions.

Definition 2.16.1.

A permutation is odd if it can be expressed as a product of an odd number of transpositions and even if it can be expressed as a product of an even number of transpositions.

(Sometimes people refer to the parity of a permutation to mean whether it is odd or even.)

Example 2.16.1.
  • •

    (1,2) is odd.

  • •

    id=(1,2)⁢(1,2) is even.

  • •

    (1,2,3)=(1,2)⁢(2,3) is even.

  • •

    The expression for an m-cycle a=(a1,…,am) as a product of m−1 transpositions

    (a1,…,am)=(a1,a2)⁢(a2,a3)⁢⋯⁢(am−1,am)

    in Lemma 2.15.2 shows that an m cycle is even if m is odd and odd if m is even.

2.16.2 The odd xor even theorem

It seems possible that a permutation could be odd AND even at the same time, but this isn’t the case. The proof is a little strange because it involves a seemingly-unrelated polynomial — if you prefer a proof that refers only to permutations, take a look at the unassessed exercises.

Theorem 2.16.1.

No permutation is both odd and even.

Proof.

Let s∈Sn. If s could be written both as a product of an even number and an odd number of transpositions, say

s=t1⁢t2⁢⋯⁢t2⁢a=t1′⁢t2′⁢⋯⁢t2⁢b+1′

then we could rearrange to get

id=t2⁢a⁢t2⁢a−1⁢⋯⁢t2⁢t1⁢t1′⁢t2′⁢⋯⁢t2⁢b+1′

which expresses the identity permutation as a product of an odd number 2⁢(a+b)+1 of transpositions. So it’s enough to show that this is impossible.

Introduce variables x1,x2,…,xn. Given any polynomial f in these variables and any permutation s∈Sn, we define a new polynomial s⁢(f) which is obtained by replacing every variable xi in f by xs⁢(i). For example, if s=(1,2,3) and f=x1⁢x2+x34+x5 then

s⁢(f) =xs⁢(1)⁢xs⁢(2)+xs⁢(3)4+xs⁢(5)
=x2⁢x3+x14+x5.

Now define

Δn=∏1⩽i<j⩽n(xi−xj)

so that, for example,

Δ3=(x1−x2)⁢(x1−x3)⁢(x2−x3).

Let t=(a,b) be any transposition, where a<b. We have t⁢(Δn)=−Δn, because t only affects factors of Δn containing xa or xb, and the only factors to change sign are (xa−xi) with a<i⩽b and (xi−xb) with a⩽i<b, a total of 2⁢(b−a)−1 sign changes (as (xa−xb) appears in both cases). It follows that any product of an odd number of transpositions sends Δn to −Δn. Since the identity sends Δn to Δn, it cannot be written as the product of an odd number of transpositions. ∎

2.16.3 Sign of a permutation

Definition 2.16.2.
  • •

    The sign of a permutation is 1 if it is even and −1 if it is odd.

  • •

    We write sign⁡(s) for the sign of the permutation s.

So if s can be written as a product of m transpositions, sign⁡(s)=(−1)m.

Lemma 2.16.2.

For any two permutations s and t, sign⁡(s⁢t)=sign⁡(s)⁢sign⁡(t)

Proof.

If s can be written as a product of m transpositions and t can be written as a product of n transpositions, then s⁢t can be written as a product of m+n transpositions. So

sign⁡(s⁢t) =(−1)n+m
=(−1)m⁢(−1)n
=sign⁡(s)⁢sign⁡(t)

∎

This rule about the sign of a product means that

  • •

    an even permutation times an even permutation is even,

  • •

    an even permutation times an odd permutation is odd, and

  • •

    an odd permutation times an odd permutation is even

just like when we multiply odd and even integers.

2.16.4 Two results on the sign of a permutation

Lemma 2.16.3.
  1. 1.

    Even length cycles are odd and odd length cycles are even.

  2. 2.

    If s is any permutation, sign⁡(s)=sign⁡(s−1).

Proof.
  1. 1.

    We saw in the proof of Lemma 2.15.2 that if a=(a1,…,am) is any m-cycle,

    (a1⁢…,am)=(a1,a2)⁢(a2,a3)⁢⋯⁢(am−1,am)

    so an m-cycle can be written as a product of m−1 transpositions. The number of transpositions in this expression therefore has the opposite parity to m, as required.

  2. 2.

    If s=t1⁢⋯⁢tm is a product of m transpositions, s−1=tm−1⁢⋯⁢t1−1. But the inverse of a transposition is a transposition, so s−1 is also the product of m transpositions.

∎

Another way to express the first part of this lemma would be to say that sign⁡(a1,…,am)=(−1)m−1.