let n be Nat; for R being Element of Permutations n st R = Rev (idseq n) holds
( R is even iff (n choose 2) mod 2 = 0 )
let r be Element of Permutations n; ( r = Rev (idseq n) implies ( r is even iff (n choose 2) mod 2 = 0 ) )
assume A1:
r = Rev (idseq n)
; ( r is even iff (n choose 2) mod 2 = 0 )
per cases
( n < 2 or n >= 2 )
;
suppose A4:
n >= 2
;
( r is even iff (n choose 2) mod 2 = 0 )set CH =
n choose 2;
reconsider n2 =
n - 2 as
Nat by A4, NAT_1:21;
reconsider R =
r as
Element of
Permutations (n2 + 2) ;
consider K being
Fanoian Field;
set S =
2Set (Seg (n2 + 2));
A5:
FinOmega (2Set (Seg (n2 + 2))) = 2Set (Seg (n2 + 2))
by MATRIX_2:def 17;
idseq (n2 + 2) is
Element of
(Group_of_Perm (n2 + 2))
by MATRIX_2:23;
then reconsider I =
idseq (n2 + 2) as
Element of
Permutations (n2 + 2) by MATRIX_2:def 13;
set D =
{ s where s is Element of 2Set (Seg (n2 + 2)) : ( s in 2Set (Seg (n2 + 2)) & (Part_sgn I,K) . s <> (Part_sgn R,K) . s ) } ;
A6:
{ s where s is Element of 2Set (Seg (n2 + 2)) : ( s in 2Set (Seg (n2 + 2)) & (Part_sgn I,K) . s <> (Part_sgn R,K) . s ) } c= 2Set (Seg (n2 + 2))
then reconsider D =
{ s where s is Element of 2Set (Seg (n2 + 2)) : ( s in 2Set (Seg (n2 + 2)) & (Part_sgn I,K) . s <> (Part_sgn R,K) . s ) } as
finite set ;
2Set (Seg (n2 + 2)) c= D
proof
let x be
set ;
TARSKI:def 3 ( not x in 2Set (Seg (n2 + 2)) or x in D )
assume
x in 2Set (Seg (n2 + 2))
;
x in D
then reconsider s =
x as
Element of
2Set (Seg (n2 + 2)) ;
consider i,
j being
Nat such that A7:
i in Seg (n2 + 2)
and A8:
j in Seg (n2 + 2)
and A9:
i < j
and A10:
s = {i,j}
by MATRIX11:1;
A11:
I . j = j
by A8, FUNCT_1:34;
reconsider i9 =
i,
j9 =
j,
n29 =
n2 as
Element of
NAT by ORDINAL1:def 13;
A12:
j9 <= n2 + 2
by A8, FINSEQ_1:3;
i9 <= n29 + 2
by A7, FINSEQ_1:3;
then reconsider ni =
((n29 + 2) - i9) + 1,
nj =
((n29 + 2) - j9) + 1 as
Element of
NAT by A12, FINSEQ_5:1;
ni in Seg (n2 + 2)
by A7, FINSEQ_5:2;
then A13:
I . ni = ni
by FUNCT_1:34;
A14:
len (idseq (n2 + 2)) = n29 + 2
by FINSEQ_1:def 18;
then
i in dom I
by A7, FINSEQ_1:def 3;
then A15:
R . i9 = I . ni
by A1, A14, FINSEQ_5:61;
j in dom I
by A8, A14, FINSEQ_1:def 3;
then A16:
R . j9 = I . nj
by A1, A14, FINSEQ_5:61;
nj in Seg (n2 + 2)
by A8, FINSEQ_5:2;
then A17:
I . nj = nj
by FUNCT_1:34;
I . i = i
by A7, FUNCT_1:34;
then A18:
(Part_sgn I,K) . s = 1_ K
by A7, A8, A9, A10, A11, MATRIX11:def 1;
((n29 + 2) + 1) - i9 > ((n29 + 2) + 1) - j9
by A9, XREAL_1:17;
then
(Part_sgn R,K) . s = - (1_ K)
by A7, A8, A9, A10, A15, A16, A13, A17, MATRIX11:def 1;
then
(Part_sgn I,K) . s <> (Part_sgn R,K) . s
by A18, MATRIX11:22;
hence
x in D
;
verum
end; then A19:
2Set (Seg (n2 + 2)) = D
by A6, XBOOLE_0:def 10;
A20:
card (2Set (Seg (n2 + 2))) = n choose 2
by Th10;
end; end;