Permutation
Definition 1. A function is called
) injective (or one-to-one) if for some necessarily implies that
) surjective (or onto) if for each there exists such that
) bijective if is both injective and surjective.
Definition 2. Let and be functions. Then, the composition of functions, denoted , is a function from A to C defined as
for all .
Lemma 1. Let , and be functions. Then:
) , that is, function composition is associative;
)if and are injective then is injective;
)if and are surjective then is surjective;
)if and are bijective then is bijective.
Proof. ) By Definition , for any we have
) If for some then (since is injective) we have which implies (since f is injective) that .
) Let be an element of . Then (since is surjective) there exists such that . Since is surjective, there exists such that . Therefore, we have .
4) Follows immediately from ), ) and Item of Definition 1.
Definition 3. A function is called a permutation on n elements if is bijective. The set of all permutations on n elements we denote . For example, functions defined by , and are elements of . One way to denote a permutation is to use so called two-line notation. In two-line notation (or two-row notation) of a permutation , one lists the elements of in the first row, and for each one its image bellow it in the second row, that is
where is an ordered list of elements of in which each element of occurs only once. For example, functions from above can be written in two-line notation in one of the following ways:
and
Note that
1. in the first row of two-line notation (1), the elements of may appear in any order;
2. distinct objects can be arranged in an ordered line in ways.
This immediately implies the following:
Statement 1. There are permutation in and each of these permutations can be written in two-line notation in ways.
For example, there are elements in
Let us calculate and . We have
and
that is
and .
Theorem 1. Let be the set of all permutation on elements. Then
1) for any ;
) for any ;
) has a special permutation called the identity permutation, denoted id_n, such that
id_nid_n for any
) for each there exists an element in , denoted , called the inverse of , such that
id_n;
) if , the composition of permutations of is not commutative, that is, there are such that
Proof. ) Since, by Definition 3, and are bijections, the statement follows immediately from item 4 of Lemma 1.
2) Since, by Definition 3, and are functions, the statement follows immediately from item1 of Lemma 1.
3) It is straightforward to check that the identity permutation of , id_n, should be defined as id_n for , that is
id_n
) If is defined by () then it is straightforward to check that the inverse of , should be defined as
) The statement follows immediately from .
Remark. Theorem 1 means that forms a non-commutative group with respect to composition of functions, . This group is called full symmetry group of -element set.
Definition 4. Let be an ordered list of the elements of such that each element of occurs (in the list) only once. The ordered pair of elements is called an inversionof the list if and . For example, the pairs , and are all the inversions of the ordered list .
Definition 5. Suppose that a permutation is written in the form (). The sign (or signature or signum) of , denoted sgn, is defined to be
sgn
where and is the number of inversions in the ordered list and , respectively.
Lemma 2. The value of does not depend on the choice of representation of f in the form () (that is, Definition 5 is correct).
Theorem 2. For any we have sgnsgnsgn.
Proof. Let us choose the representations of and in the form () such that the first row of is equal to the second row of , that is and .
Then we have . Due to our choice of the representations of and , we have and , therefore sgn
and
sgnsgn.
Thus, sgnsgnsgn.
Definition 6. A permutation is called the transposition of elements if k and , for ,
Proposition 1.
1) sgn(id_n)
2) sgnsgn for any ;
3) if is a transposition then sgn
Proof. 1) Since id_n can be written in the form , we have (id_n)(id_n). Therefore, by Definition sgn(id_n)
2) Since if is written in the form then can be written as , we have and Therefore, by Definition sgn
3) Suppose that is the transposition of elements . Then can be written as .
It should be clear that in this case we have either (if l < k) or (ifl > k). In both cases, by Definition 5, sgn
Definition 7. A permutation is called
1) an even permutation if sgn
2) an odd permutation if sgn