An alternating form changes sign when two of its
arguments are swapped (Theorem 7.2.1). To
compare with , we reach one list from the other
by swaps and collect a factor per swap. But the same
rearrangement can be reached by different sequences of
swaps, and Chapter 0 showed that even their number is
not unique. If one route used an even number of swaps
and another an odd number, we would get for every alternating form, which
is absurd for signed volume. This section rules that
out. It attaches to each permutation a sign defined
without any choices, proves that the sign is
multiplicative, and deduces that the parity of the
number of transpositions is well defined, as Chapter 0
promised.
7.3.1.
Permutations, recalled
Recall from Chapter 0 that is the group of
bijections , with elements. A
permutation can be written in two-line notation, with
below
, or as a product
of cycles. The product is the
composition : first , then , so
products of cycles are read from right to left (Example (Computing with cycles)).
A transposition swaps
and and fixes
everything else, and for every permutation is a product of
transpositions (Theorem 0.10.4). The
product is far from unique, since Here the numbers of transpositions are , all even. The
goal is to show this is no accident.
Why can we not simply define the
sign of as
, where is a product of
transpositions?
Because that definition depends on a choice of product,
and we would have to prove that every choice gives the
same answer. That is the statement we are trying to
prove. We need a definition that involves no choice at
all.
7.3.2. Inversions
and the sign
To measure how much a permutation scrambles , look at
the bottom row of its two-line notation and
count the pairs of entries that are in the wrong order.
A sorted row has none, and each swap of two neighboring
entries changes the count by exactly one. So the count
is a natural candidate for tracking the parity of
swaps.
The sign of a permutation records whether it puts
an even or an odd number of pairs out of order.
Definition
7.3.1 (Inversion)
Let . An inversion of is a pair of positions with
and.
We write
for the number of inversions of .
Definition
7.3.2 (Sign of a Permutation)
The sign of is The permutation is
even if and
odd if .
In words: an inversion is a pair of positions whose
order reverses. The condition makes each pair
of positions count once, and
says the values come out in the opposite order. Since
is the size of a subset of the finite set of pairs , it is a
well-defined integer between and , and there is
nothing to choose. That is the whole reason for this
definition.
The identity. Its bottom row is
sorted, so and
is even. In this is the only permutation, with sign
. The degenerate
case matters: the identity is the empty product of
transpositions, and its sign is what a
product of swaps
should give.
All of . Here is
each permutation with its bottom row and inversions.
bottom row
inversions
none
, ,
,
,
For ,
the bottom row is , and the
out-of-order pairs of positions are , since , and , since .
Two things stand out. The three transpositions are
odd, although has three inversions, not one. And the two
-cycles are even,
consistent with being a product of two
transpositions.
Why all pairs, not just neighbors. A
tempting shortcut counts only adjacent
positions with . For , with bottom row
, this count
is , which would
make “even”.
But , as one checks by following , , , and each factor has adjacent count . A count that is to be
multiplicative must give here, so the
adjacent count is the wrong one.
Quick check. Find in by counting
inversions.
Solution. The bottom row is . The pairs of
positions in the wrong order are ,
since is larger
than everything after it, and , since
and . The pair is in order. So
and .
7.3.3. The sign is
multiplicative
The key property is that signs multiply when
permutations are composed.
Theorem
7.3.1 (The Sign Is Multiplicative)
For all ,
Idea. Count inversions one pair at
a time, and record each pair as (order kept) or (order reversed). The
sign is the product of these ’s. Applying and then moves a pair of
positions
to and then to . The order is reversed overall
exactly when it is reversed at one of the two stages but
not both, which is multiplication of ’s. Finally, as runs over all
pairs, so does , so the contributions of multiply to , just in a
different order.
Proof. For a nonzero integer let if and if . Then for nonzero integers , by the sign
rules for products of integers.
Let
be the set of -element subsets of . For
and
, define This is defined: and since is injective, so the
product is nonzero; and exchanging the names and negates both factors,
so the product does not depend on the order in which the
subset is written. If , then , so exactly when ,
that is, when is an inversion of . Hence, by Definition 7.3.2,
Now let . Since , we
have . Multiplying inside by this positive
integer does not change the value, so Let , ; the image has two elements because
is injective.
The same construction with gives an
inverse function, so is a bijection
(Theorem 0.4.7). Taking
the product over all and using (1) three times, where the second equality substitutes , which
runs over exactly once
because is
a bijection, and reorders the finite product of
integers. This proves the theorem.
By induction on the number of factors, .
In the language of Chapter 0, the set is a group
under multiplication (it contains , and it is closed under
products and inverses, since ), and the
theorem says exactly that is a group homomorphism (Definition 0.10.3).
7.3.4.
Transpositions and parity
Now we can compute the sign of the building
blocks.
Corollary
7.3.2 (Sign of a Transposition)
Every transposition is odd: for all
in .
Proof. Since , we may
assume .
Let
and let be
positions. We decide when .
If neither
nor lies in , then : no inversion.
If , then : one inversion.
If and
, then
and
, an
inversion exactly when . This gives
inversions.
If and
, then
and
, an
inversion exactly when . This gives
inversions.
If (so
), then
; if (so ), then : no inversion.
These cases cover every pair, so , an odd number. Hence .
The Quick check above is the case :
inversions. Combining the corollary with
multiplicativity gives the fact that Chapter 0 left
open.
Corollary
7.3.3 (Parity Is Well Defined)
Let and
. If
is a product of transpositions, then
. Consequently, if also with transpositions , then and are both even or both
odd.
So a permutation is even exactly when it is a product
of an even number of transpositions, and the “number of
swaps” has a well-defined parity even though the number
itself is not defined.
Proposition
7.3.4 (Sign of a Cycle)
A -cycle has
sign . In
particular, cycles of even length are odd and cycles of
odd length are even.
Proof. For the cycle is , with sign . Let and let . We claim Apply the factors from right to left. The
element is sent
to by , and no later
factor involves . For , the
element is
fixed by the factors before , sent to by it, then to by , and no
later factor involves . The element
is fixed until
the last factor sends it to . Elements outside the
cycle are fixed by every factor. This agrees with everywhere,
proving the claim. The product has transpositions, so
by Corollary 7.3.3.
Warning.Only the parity of
the number of transpositions is determined, and it is
not the parity of the cycle length. The
identity in
equals
and also , since ; the numbers and differ, only their
parity agrees. And a -cycle, “of length ”, is
even: . One more trap concerns
order: but . Multiplying in the wrong order
gives the wrong permutation and the wrong bottom row,
even though, by Theorem 7.3.1, it
happens to give the right sign.
7.3.5. The
alternating group
Since is a
homomorphism, its kernel is a subgroup of (Theorem 0.10.3).
Definition
7.3.3 (Alternating Group)
The alternating group is the kernel of
, that is, the subgroup of
even permutations in .
For example, by the table above, and
. For
, exactly
half of the permutations are even (Exercise C1). The odd
permutations do not form a subgroup:
they do not contain . The name is no
coincidence: as we see below and in the next section,
rearranging the arguments of an alternating form by an
even permutation leaves its value unchanged.
7.3.6. Back to
alternating forms
Here is why this section exists. Let be an alternating -linear form and compare
with . Swapping the first two arguments
of gives , and swapping the last two then
gives . By Theorem 7.2.1 (a)
each swap costs a factor , so . The list is for
,
with bottom row , and the factor we found is .
A different sequence of swaps could have been used,
possibly a longer one. By Corollary 7.3.3,
every such sequence has an even number of swaps, so
every route gives the same factor. In general, the next
section proves that for every alternating -linear form, and uses
it to turn each of the surviving terms of the
expansion sketched in the first section of this chapter
into . Without the corollary, the
factor computed swap by swap could depend on the route,
and could not be identified with .
7.3.7. Computing
signs in practice
There are now two independent ways to find a sign:
count inversions, or factor into cycles and use Proposition 7.3.4
with multiplicativity. Doing both is a good check.
Example
(A Sign Computed Two Ways)
Find the sign of the permutation with
two-line notation , first by
counting inversions and then from its cycles.
Solution.Inversions. Go
through the bottom row from left to right, and for each
entry count the later entries that are
smaller:
The following cell checks the example, and also tests
Theorem 7.3.1 and Proposition 7.3.4 on
all of by brute
force. Permutations are stored as tuples of values , shifted to start at .
from itertools import permutations, combinationsdef inv(s):returnsum(1for i, j in combinations(range(len(s)), 2) if s[i] > s[j])def sgn(s):return (-1) ** inv(s)def compose(s, t): # (s t)(i) = s(t(i)): first t, then sreturntuple(s[t[i]] for i inrange(len(t)))def cycle(entries, n): # the cycle (entries[0] entries[1] ...), 0-based s =list(range(n))for a, b inzip(entries, entries[1:] + entries[:1]): s[a] = breturntuple(s)sigma = (4, 5, 3, 6, 2, 1)sigma0 =tuple(x -1for x in sigma)print("inversions:", inv(sigma0), " sign:", sgn(sigma0))print("(1 4 6)(2 5) equals sigma:", compose(cycle([0, 3, 5], 6), cycle([1, 4], 6)) == sigma0)S5 =list(permutations(range(5)))print("multiplicative on S_5:", all(sgn(compose(s, t)) == sgn(s) * sgn(t) for s in S5 for t in S5))print("k-cycles have sign (-1)^(k-1):", all(sgn(cycle(list(range(k)), 5)) == (-1) ** (k -1) for k inrange(1, 6)))
7.3.8.
Exercises
A. Check your
understanding
Exercise
(A1)
(a) Define an
inversion of and the sign .
(b) True or false:
every -cycle is
odd. Justify your answer.
(c) True or false:
some permutation is a product of transpositions and also
a product of
transpositions. Justify your answer.
(d) What is the
kernel of ? Is the set of odd permutations a
subgroup?
(e) True or false:
for all ,
even when . Justify your answer.
(f) Let be an alternating -linear form. Express
in terms of .
(b) False. By Proposition 7.3.4 a
-cycle has sign
, so it
is even; for instance .
(c) False. By Corollary 7.3.3 the
numbers of transpositions in two such products have the
same parity, and
and do
not.
(d) The kernel is
the alternating group of even permutations
(Definition 7.3.3).
The odd permutations do not form a subgroup: is even, so it is not
among them.
(e) True. By Theorem 7.3.1 both
sides equal , and multiplication of integers
is commutative. For example , but both are -cycles, with sign .
(f) Swapping the
first two arguments of gives , and swapping the first and third
then gives . Each swap costs a
factor by Theorem 7.2.1 (a), so
. This matches the sign of the
rearrangement with bottom row
, namely
,
which is even.
B. Practice
Exercise
(B1: Computing Signs)
Find the sign of each permutation, both by counting
inversions and by using cycles.
(a) with
two-line notation .
(b).
(c).
Solution.
(a)Inversions. In the bottom row , the entry
is followed by
the smaller entry , the entry by and , and the entry by nothing smaller. So
and .
Cycles., so , a
-cycle, with sign
by Proposition 7.3.4.
(b)Cycles. By Proposition 7.3.4 and
Theorem 7.3.1, the
sign is . Inversions. The permutation sends
, , , , , so the
bottom row is . The inversions are , and , so there are
, and the sign is
.
(c)Cycles. Both factors are -cycles, so the sign is
.
Inversions. Apply first: ,
, , . The bottom row is , with
inversions
and . So the
sign is ,
and in fact the product is .
Exercise
(B2: Sign of the Inverse)
Prove that for every .
Solution. Let . By Theorem 7.3.1, , since has no inversions.
Since and ,
multiplying both sides by gives .
Exercise
(B3: The Reversal Permutation)
Let
be the reversal, . Show that . Hence find the for which is even, and decide
the sign of
for and .
Solution. For ,
. So every pair
is an
inversion, and
is the number of -element subsets of
,
which is .
Hence .
Write
with . Then is for , for , for
, and for
. The first
two are even and the last two are odd. So is even exactly when
leaves remainder
or on division by . For , and is odd; for , and is even.
C. Going deeper
Exercise
(C1: Half the Permutations Are Even)
Let .
Prove that exactly permutations in
are even.
Hint: consider .
Solution. Let and be the sets of even and
odd permutations; they are disjoint and , so . Let , which exists since , and define ,
. By Theorem 7.3.1 and Corollary 7.3.2,
, so maps into and into . Since , , so
restricted to
is a bijection
with
inverse
restricted to (Theorem 0.4.7). Hence
.
Exercise
(C2: Sign from the Number of Cycles)
Suppose is written as a product of disjoint cycles
(no element appears in two of them) whose lengths add up to
, where fixed
points are included as cycles of length . (Such a product always
exists: follow each element around its loop, as in Example (Computing with cycles).)