let n, i, j be Nat; :: thesis: ( i in Seg (n + 1) & j in Seg (n + 1) implies card { p1 where p1 is Element of Permutations (n + 1) : p1 . i = j } = n ! )
assume A1:
( i in Seg (n + 1) & j in Seg (n + 1) )
; :: thesis: card { p1 where p1 is Element of Permutations (n + 1) : p1 . i = j } = n !
reconsider N = n as Element of NAT by ORDINAL1:def 13;
set n1 = N + 1;
set X = finSeg (N + 1);
set P1 = Permutations (N + 1);
set F = { p where p is Element of Permutations (N + 1) : p . i = j } ;
set X' = (finSeg (N + 1)) \ {i};
set Y = (finSeg (N + 1)) \ {j};
set F' = { f where f is Function of (((finSeg (N + 1)) \ {i}) \/ {i}),(((finSeg (N + 1)) \ {j}) \/ {j}) : ( f is one-to-one & f . i = j ) } ;
A2:
( ((finSeg (N + 1)) \ {i}) \/ {i} = finSeg (N + 1) & ((finSeg (N + 1)) \ {j}) \/ {j} = finSeg (N + 1) & not i in (finSeg (N + 1)) \ {i} & not j in (finSeg (N + 1)) \ {j} )
by A1, ZFMISC_1:64, ZFMISC_1:140;
then A3:
( card (finSeg (N + 1)) = (card ((finSeg (N + 1)) \ {i})) + 1 & card (finSeg (N + 1)) = (card ((finSeg (N + 1)) \ {j})) + 1 & card (finSeg (N + 1)) = N + 1 )
by CARD_2:54, FINSEQ_1:78;
A4:
{ f where f is Function of (((finSeg (N + 1)) \ {i}) \/ {i}),(((finSeg (N + 1)) \ {j}) \/ {j}) : ( f is one-to-one & f . i = j ) } c= { p where p is Element of Permutations (N + 1) : p . i = j }
{ p where p is Element of Permutations (N + 1) : p . i = j } c= { f where f is Function of (((finSeg (N + 1)) \ {i}) \/ {i}),(((finSeg (N + 1)) \ {j}) \/ {j}) : ( f is one-to-one & f . i = j ) }
then A7:
{ p where p is Element of Permutations (N + 1) : p . i = j } = { f where f is Function of (((finSeg (N + 1)) \ {i}) \/ {i}),(((finSeg (N + 1)) \ {j}) \/ {j}) : ( f is one-to-one & f . i = j ) }
by A4, XBOOLE_0:def 10;
( (finSeg (N + 1)) \ {j} is empty implies (finSeg (N + 1)) \ {i} is empty )
by A3;
hence card { p1 where p1 is Element of Permutations (n + 1) : p1 . i = j } =
card { f where f is Function of ((finSeg (N + 1)) \ {i}),((finSeg (N + 1)) \ {j}) : f is one-to-one }
by A2, A7, CARD_FIN:5
.=
((card ((finSeg (N + 1)) \ {j})) ! ) / (((card ((finSeg (N + 1)) \ {j})) -' (card ((finSeg (N + 1)) \ {i}))) ! )
by A3, CARD_FIN:7
.=
((card ((finSeg (N + 1)) \ {j})) ! ) / 1
by A3, NEWTON:18, XREAL_1:234
.=
n !
by A3
;
:: thesis: verum