2 Sets and functions

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 m1 transpositions

    (a1,,am)=(a1,a2)(a2,a3)(am1,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 sSn. If s could be written both as a product of an even number and an odd number of transpositions, say

s=t1t2t2a=t1t2t2b+1

then we could rearrange to get

id=t2at2a1t2t1t1t2t2b+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 sSn, 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=x1x2+x34+x5 then

s(f) =xs(1)xs(2)+xs(3)4+xs(5)
=x2x3+x14+x5.

Now define

Δn=1i<jn(xixj)

so that, for example,

Δ3=(x1x2)(x1x3)(x2x3).

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 (xaxi) with a<ib and (xixb) with ai<b, a total of 2(ba)1 sign changes (as (xaxb) 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(st)=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 st can be written as a product of m+n transpositions. So

sign(st) =(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(s1).

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)(am1,am)

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

  2. 2.

    If s=t1tm is a product of m transpositions, s1=tm1t11. But the inverse of a transposition is a transposition, so s1 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)m1.