let n, i, j be Nat; :: thesis: ( i in Seg n & j in Seg n & i < j implies ex ODD, EVEN being finite set st
( EVEN = { p where p is Element of Permutations n : p is even } & ODD = { q where q is Element of Permutations n : not q is even } & EVEN /\ ODD = {} & EVEN \/ ODD = Permutations n & ex PERM being Function of EVEN,ODD ex perm being Element of Permutations n st
( perm is being_transposition & perm . i = j & dom PERM = EVEN & PERM is bijective & ( for p being Element of Permutations n st p in EVEN holds
PERM . p = p * perm ) ) ) )

assume A1: ( i in Seg n & j in Seg n & i < j ) ; :: thesis: ex ODD, EVEN being finite set st
( EVEN = { p where p is Element of Permutations n : p is even } & ODD = { q where q is Element of Permutations n : not q is even } & EVEN /\ ODD = {} & EVEN \/ ODD = Permutations n & ex PERM being Function of EVEN,ODD ex perm being Element of Permutations n st
( perm is being_transposition & perm . i = j & dom PERM = EVEN & PERM is bijective & ( for p being Element of Permutations n st p in EVEN holds
PERM . p = p * perm ) ) )

set P = Permutations n;
consider tr being Element of Permutations n such that
A2: ( tr is being_transposition & tr . i = j ) by A1, Th16;
consider PE being Permutation of (Permutations n) such that
A3: for p being Element of Permutations n holds PE . p = p * tr by Th44;
set EVEN = { p where p is Element of Permutations n : p is even } ;
set ODD = { q where q is Element of Permutations n : not q is even } ;
A4: { p where p is Element of Permutations n : p is even } c= Permutations n
proof
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in { p where p is Element of Permutations n : p is even } or x in Permutations n )
assume x in { p where p is Element of Permutations n : p is even } ; :: thesis: x in Permutations n
then ex p being Element of Permutations n st
( p = x & p is even ) ;
hence x in Permutations n ; :: thesis: verum
end;
A5: { q where q is Element of Permutations n : not q is even } c= Permutations n
proof
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in { q where q is Element of Permutations n : not q is even } or x in Permutations n )
assume A6: x in { q where q is Element of Permutations n : not q is even } ; :: thesis: x in Permutations n
ex q being Element of Permutations n st
( q = x & not q is even ) by A6;
hence x in Permutations n ; :: thesis: verum
end;
then reconsider O = { q where q is Element of Permutations n : not q is even } , E = { p where p is Element of Permutations n : p is even } as finite set by A4, FINSET_1:13, MATRIX_2:30;
take O ; :: thesis: ex EVEN being finite set st
( EVEN = { p where p is Element of Permutations n : p is even } & O = { q where q is Element of Permutations n : not q is even } & EVEN /\ O = {} & EVEN \/ O = Permutations n & ex PERM being Function of EVEN,O ex perm being Element of Permutations n st
( perm is being_transposition & perm . i = j & dom PERM = EVEN & PERM is bijective & ( for p being Element of Permutations n st p in EVEN holds
PERM . p = p * perm ) ) )

take E ; :: thesis: ( E = { p where p is Element of Permutations n : p is even } & O = { q where q is Element of Permutations n : not q is even } & E /\ O = {} & E \/ O = Permutations n & ex PERM being Function of E,O ex perm being Element of Permutations n st
( perm is being_transposition & perm . i = j & dom PERM = E & PERM is bijective & ( for p being Element of Permutations n st p in E holds
PERM . p = p * perm ) ) )

thus ( E = { p where p is Element of Permutations n : p is even } & O = { q where q is Element of Permutations n : not q is even } ) ; :: thesis: ( E /\ O = {} & E \/ O = Permutations n & ex PERM being Function of E,O ex perm being Element of Permutations n st
( perm is being_transposition & perm . i = j & dom PERM = E & PERM is bijective & ( for p being Element of Permutations n st p in E holds
PERM . p = p * perm ) ) )

thus E /\ O = {} :: thesis: ( E \/ O = Permutations n & ex PERM being Function of E,O ex perm being Element of Permutations n st
( perm is being_transposition & perm . i = j & dom PERM = E & PERM is bijective & ( for p being Element of Permutations n st p in E holds
PERM . p = p * perm ) ) )
proof
assume E /\ O <> {} ; :: thesis: contradiction
then consider x being set such that
A7: x in E /\ O by XBOOLE_0:def 1;
( x in E & x in O ) by A7, XBOOLE_0:def 4;
then ( ex p being Element of Permutations n st
( p = x & p is even ) & ex q being Element of Permutations n st
( q = x & not q is even ) ) ;
hence contradiction ; :: thesis: verum
end;
thus E \/ O = Permutations n :: thesis: ex PERM being Function of E,O ex perm being Element of Permutations n st
( perm is being_transposition & perm . i = j & dom PERM = E & PERM is bijective & ( for p being Element of Permutations n st p in E holds
PERM . p = p * perm ) )
proof
thus E \/ O c= Permutations n by A4, A5, XBOOLE_1:8; :: according to XBOOLE_0:def 10 :: thesis: Permutations n c= E \/ O
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in Permutations n or x in E \/ O )
assume A8: x in Permutations n ; :: thesis: x in E \/ O
reconsider p = x as Element of Permutations n by A8;
( p is even or not p is even ) ;
then ( p in E or p in O ) ;
hence x in E \/ O by XBOOLE_0:def 3; :: thesis: verum
end;
{i,j} in 2Set (Seg n) by A1, Th1;
then reconsider n2 = n - 2 as Nat by Th2, NAT_1:21, NAT_1:23;
tr is Element of Permutations (n2 + 2) ;
then not tr is even by A2, Th27;
then A9: PE .: E = O by A3, Th47;
set PERM = PE | E;
A10: dom PE = Permutations n by FUNCT_2:67;
then A11: ( dom (PE | E) = E & rng (PE | E) = O ) by A4, A9, RELAT_1:91, RELAT_1:148;
then reconsider PERM = PE | E as Function of E,O by FUNCT_2:3;
take PERM ; :: thesis: ex perm being Element of Permutations n st
( perm is being_transposition & perm . i = j & dom PERM = E & PERM is bijective & ( for p being Element of Permutations n st p in E holds
PERM . p = p * perm ) )

take tr ; :: thesis: ( tr is being_transposition & tr . i = j & dom PERM = E & PERM is bijective & ( for p being Element of Permutations n st p in E holds
PERM . p = p * tr ) )

( PERM is one-to-one & PERM is onto ) by A11, FUNCT_1:84, FUNCT_2:def 3;
hence ( tr is being_transposition & tr . i = j & dom PERM = E & PERM is bijective ) by A2, A4, A10, RELAT_1:91; :: thesis: for p being Element of Permutations n st p in E holds
PERM . p = p * tr

let p be Element of Permutations n; :: thesis: ( p in E implies PERM . p = p * tr )
assume A12: p in E ; :: thesis: PERM . p = p * tr
( PERM . p = PE . p & PE . p = p * tr ) by A3, A11, A12, FUNCT_1:70;
hence PERM . p = p * tr ; :: thesis: verum