let F be Field; :: thesis: for p being non constant Element of the carrier of (Polynom-Ring F) holds
( p is separable iff for E being FieldExtension of F st p splits_in E holds
card (Roots (E,p)) = deg p )

let p be non constant Element of the carrier of (Polynom-Ring F); :: thesis: ( p is separable iff for E being FieldExtension of F st p splits_in E holds
card (Roots (E,p)) = deg p )

A: now :: thesis: ( p is separable implies for E being FieldExtension of F st p splits_in E holds
card (Roots (E,p)) = deg p )
assume A1: p is separable ; :: thesis: for E being FieldExtension of F st p splits_in E holds
card (Roots (E,p)) = deg p

now :: thesis: for E being FieldExtension of F holds
( not p splits_in E or not card (Roots (E,p)) <> deg p )
assume ex E being FieldExtension of F st
( p splits_in E & card (Roots (E,p)) <> deg p ) ; :: thesis: contradiction
then consider E being FieldExtension of F such that
A2: ( p splits_in E & card (Roots (E,p)) <> deg p ) ;
the carrier of (Polynom-Ring F) c= the carrier of (Polynom-Ring E) by FIELD_4:10;
then reconsider p1 = p as Element of the carrier of (Polynom-Ring E) ;
( deg p > 0 & deg p1 = deg p ) by FIELD_4:20, RING_4:def 4;
then reconsider p1 = p1 as non constant Element of the carrier of (Polynom-Ring E) by RING_4:def 4;
reconsider p1 = p1 as non constant separable Element of the carrier of (Polynom-Ring E) by A1, FIELD_15:88;
consider a being non zero Element of E, q being Ppoly of E such that
A4: p = a * q by A2, FIELD_4:def 5;
deg p1 = card (Roots p1) by A4, FIELD_4:def 5, FIELD_15:79
.= card (Roots (E,p)) by FIELD_7:13 ;
hence contradiction by A2, FIELD_4:20; :: thesis: verum
end;
hence for E being FieldExtension of F st p splits_in E holds
card (Roots (E,p)) = deg p ; :: thesis: verum
end;
now :: thesis: ( ( for E being FieldExtension of F st p splits_in E holds
card (Roots (E,p)) = deg p ) implies p is separable )
end;
hence ( p is separable iff for E being FieldExtension of F st p splits_in E holds
card (Roots (E,p)) = deg p ) by A; :: thesis: verum