let F be Field; :: thesis: for E being FieldExtension of F
for f being non empty FinSequence of (Polynom-Ring F) st ( for i being Nat st 1 <= i & i <= len f holds
ex q being irreducible monic Element of the carrier of (Polynom-Ring F) st
( f . i = q & q is separable ) ) holds
for p being non constant Element of the carrier of (Polynom-Ring F) st p = Product f holds
( p is separable iff f is one-to-one )

let E be FieldExtension of F; :: thesis: for f being non empty FinSequence of (Polynom-Ring F) st ( for i being Nat st 1 <= i & i <= len f holds
ex q being irreducible monic Element of the carrier of (Polynom-Ring F) st
( f . i = q & q is separable ) ) holds
for p being non constant Element of the carrier of (Polynom-Ring F) st p = Product f holds
( p is separable iff f is one-to-one )

let f be non empty FinSequence of (Polynom-Ring F); :: thesis: ( ( for i being Nat st 1 <= i & i <= len f holds
ex q being irreducible monic Element of the carrier of (Polynom-Ring F) st
( f . i = q & q is separable ) ) implies for p being non constant Element of the carrier of (Polynom-Ring F) st p = Product f holds
( p is separable iff f is one-to-one ) )

assume AS1: for i being Nat st 1 <= i & i <= len f holds
ex q being irreducible monic Element of the carrier of (Polynom-Ring F) st
( f . i = q & q is separable ) ; :: thesis: for p being non constant Element of the carrier of (Polynom-Ring F) st p = Product f holds
( p is separable iff f is one-to-one )

let p be non constant Element of the carrier of (Polynom-Ring F); :: thesis: ( p = Product f implies ( p is separable iff f is one-to-one ) )
assume AS2: p = Product f ; :: thesis: ( p is separable iff f is one-to-one )
A: now :: thesis: ( p is separable implies f is one-to-one )
assume AS3: p is separable ; :: thesis: f is one-to-one
A5: now :: thesis: for i, j being Nat st j <> i & 1 <= i & i <= len f & 1 <= j & j <= len f holds
not f . i = f . j
let i, j be Nat; :: thesis: ( j <> i & 1 <= i & i <= len f & 1 <= j & j <= len f implies not f . i = f . j )
assume A0: ( j <> i & 1 <= i & i <= len f & 1 <= j & j <= len f & f . i = f . j ) ; :: thesis: contradiction
then consider qi being irreducible monic Element of the carrier of (Polynom-Ring F) such that
A1: ( f . i = qi & qi is separable ) by AS1;
consider qj being irreducible monic Element of the carrier of (Polynom-Ring F) such that
A2: ( f . j = qj & qj is separable ) by A0, AS1;
reconsider r = qi * qj as non constant Element of the carrier of (Polynom-Ring F) ;
qi *' qj divides p by AS2, A0, A1, A2, sepprodC;
then r divides p by POLYNOM3:def 10;
then consider s being Polynomial of F such that
A4: p = r *' s by RING_4:1;
A3: s is Element of the carrier of (Polynom-Ring F) by POLYNOM3:def 10;
not r is separable by A0, A1, A2, sepirr;
hence contradiction by A4, A3, AS3, FIELD_15:87; :: thesis: verum
end;
now :: thesis: for x1, x2 being object st x1 in dom f & x2 in dom f & f . x1 = f . x2 holds
x1 = x2
let x1, x2 be object ; :: thesis: ( x1 in dom f & x2 in dom f & f . x1 = f . x2 implies x1 = x2 )
assume A7: ( x1 in dom f & x2 in dom f & f . x1 = f . x2 ) ; :: thesis: x1 = x2
then reconsider i = x1, j = x2 as Element of NAT ;
( i in Seg (len f) & j in Seg (len f) ) by A7, FINSEQ_1:def 3;
then ( 1 <= i & i <= len f & 1 <= j & j <= len f ) by FINSEQ_1:1;
hence x1 = x2 by A5, A7; :: thesis: verum
end;
hence f is one-to-one ; :: thesis: verum
end;
now :: thesis: ( f is one-to-one implies p is separable )
assume A1: f is one-to-one ; :: thesis: p is separable
AS3: now :: thesis: for i, j being Nat st j <> i & 1 <= i & i <= len f & 1 <= j & j <= len f holds
f . i <> f . j
let i, j be Nat; :: thesis: ( j <> i & 1 <= i & i <= len f & 1 <= j & j <= len f implies f . i <> f . j )
assume B: ( j <> i & 1 <= i & i <= len f & 1 <= j & j <= len f ) ; :: thesis: f . i <> f . j
then ( i in Seg (len f) & j in Seg (len f) ) ;
then ( i in dom f & j in dom f ) by FINSEQ_1:def 3;
hence f . i <> f . j by A1, B; :: thesis: verum
end;
now :: thesis: for E being FieldExtension of F st p splits_in E holds
for a being Element of E st a is_a_root_of p,E holds
multiplicity (p,a) = 1
let E be FieldExtension of F; :: thesis: ( p splits_in E implies for a being Element of E st a is_a_root_of p,E holds
multiplicity (p,a) = 1 )

assume A0: p splits_in E ; :: thesis: for a being Element of E st a is_a_root_of p,E holds
multiplicity (p,a) = 1

let a be Element of E; :: thesis: ( a is_a_root_of p,E implies multiplicity (p,a) = 1 )
assume a is_a_root_of p,E ; :: thesis: multiplicity (p,a) = 1
then Ext_eval (p,a) = 0. E by FIELD_4:def 2;
then consider i being Element of dom f, q1 being Polynomial of F such that
A2: ( q1 = f . i & Ext_eval (q1,a) = 0. E ) by AS2, lemsepprodA;
dom f = Seg (len f) by FINSEQ_1:def 3;
then H4: ( 1 <= i & i <= len f ) by FINSEQ_1:1;
then consider qi being irreducible monic Element of the carrier of (Polynom-Ring F) such that
A3: ( f . i = qi & qi is separable ) by AS1;
consider s being Polynomial of F such that
H2: p = qi *' s by AS2, H4, A3, sepprodB, RING_4:1;
reconsider s = s as non zero Polynomial of F by H2;
deg qi > 0 by RING_4:def 4;
then H0: qi is non constant Polynomial of F by RATFUNC1:def 2;
qi *' s splits_in E by A0, H2;
then H1: qi splits_in E by H0, FIELD_13:7;
H2: a is_a_root_of qi,E by A3, A2, FIELD_4:def 2;
A4: multiplicity (qi,a) = 1 by H1, A3, A2, FIELD_4:def 2, FIELD_15:75;
now :: thesis: for j being Nat st j <> i & 1 <= j & j <= len f holds
for q being non zero Element of the carrier of (Polynom-Ring F) st q = f . j holds
multiplicity (q,a) = 0
let j be Nat; :: thesis: ( j <> i & 1 <= j & j <= len f implies for q being non zero Element of the carrier of (Polynom-Ring F) st q = f . j holds
multiplicity (q,a) = 0 )

assume B0: ( j <> i & 1 <= j & j <= len f ) ; :: thesis: for q being non zero Element of the carrier of (Polynom-Ring F) st q = f . j holds
multiplicity (q,a) = 0

let q be non zero Element of the carrier of (Polynom-Ring F); :: thesis: ( q = f . j implies multiplicity (q,a) = 0 )
assume B1: q = f . j ; :: thesis: multiplicity (q,a) = 0
consider q1 being irreducible monic Element of the carrier of (Polynom-Ring F) such that
B2: ( f . j = q1 & q1 is separable ) by B0, AS1;
B3: ( Roots (E,qi) = { a where a is Element of E : a is_a_root_of qi,E } & Roots (E,q) = { a where a is Element of E : a is_a_root_of q,E } ) by FIELD_4:def 4;
hence multiplicity (q,a) = 0 ; :: thesis: verum
end;
hence multiplicity (p,a) = 1 by AS2, A3, A4, H4, sepprodE; :: thesis: verum
end;
hence p is separable by FIELD_15:75; :: thesis: verum
end;
hence ( p is separable iff f is one-to-one ) by A; :: thesis: verum