let F be Field; :: thesis: for E being Polynom-Ring F -homomorphic FieldExtension of F
for a being F -algebraic Element of E
for p being Polynomial of F st deg p < deg (MinPoly (a,F)) holds
Ext_eval (p,a) in Lin (Base a)

let E be Polynom-Ring F -homomorphic FieldExtension of F; :: thesis: for a being F -algebraic Element of E
for p being Polynomial of F st deg p < deg (MinPoly (a,F)) holds
Ext_eval (p,a) in Lin (Base a)

let a be F -algebraic Element of E; :: thesis: for p being Polynomial of F st deg p < deg (MinPoly (a,F)) holds
Ext_eval (p,a) in Lin (Base a)

let p be Polynomial of F; :: thesis: ( deg p < deg (MinPoly (a,F)) implies Ext_eval (p,a) in Lin (Base a) )
assume ASdeg: deg p < deg (MinPoly (a,F)) ; :: thesis: Ext_eval (p,a) in Lin (Base a)
H0: F is Subring of E by FIELD_4:def 1;
set V = VecSp ((FAdj (F,{a})),F);
set ma = MinPoly (a,F);
set K = FAdj (F,{a});
deg (MinPoly (a,F)) >= 0 + 1 by INT_1:7, RING_4:def 4;
then reconsider degma = (deg (MinPoly (a,F))) - 1 as Element of NAT by INT_1:3;
H0a: F is Subring of FAdj (F,{a}) by FIELD_4:def 1;
per cases ( p = 0_. F or p <> 0_. F ) ;
suppose p = 0_. F ; :: thesis: Ext_eval (p,a) in Lin (Base a)
then H: Ext_eval (p,a) = 0. E by ALGNUM_1:13
.= 0. (FAdj (F,{a})) by dFA
.= 0. (VecSp ((FAdj (F,{a})),F)) by FIELD_4:def 6
.= Sum (ZeroLC (VecSp ((FAdj (F,{a})),F))) by VECTSP_6:15 ;
ZeroLC (VecSp ((FAdj (F,{a})),F)) is Linear_Combination of Base a by VECTSP_6:5;
hence Ext_eval (p,a) in Lin (Base a) by H, VECTSP_7:7; :: thesis: verum
end;
suppose X: p <> 0_. F ; :: thesis: Ext_eval (p,a) in Lin (Base a)
defpred S1[ Nat] means for p being Polynomial of F st deg p = $1 holds
Ext_eval (p,a) in Lin (Base a);
IA: S1[ 0 ]
proof
now :: thesis: for p being Polynomial of F st deg p = 0 holds
Ext_eval (p,a) in Lin (Base a)
let p be Polynomial of F; :: thesis: ( deg p = 0 implies Ext_eval (p,a) in Lin (Base a) )
assume AS1: deg p = 0 ; :: thesis: Ext_eval (p,a) in Lin (Base a)
then AS: p is constant by RATFUNC1:def 2;
defpred S2[ object , object ] means ( ( $1 = a |^ 0 & $2 = p . 0 ) or ( $1 <> a |^ 0 & $2 = 0. F ) );
A: for x being object st x in the carrier of (VecSp ((FAdj (F,{a})),F)) holds
ex y being object st
( y in the carrier of F & S2[x,y] )
proof
let x be object ; :: thesis: ( x in the carrier of (VecSp ((FAdj (F,{a})),F)) implies ex y being object st
( y in the carrier of F & S2[x,y] ) )

assume x in the carrier of (VecSp ((FAdj (F,{a})),F)) ; :: thesis: ex y being object st
( y in the carrier of F & S2[x,y] )

per cases ( x = a |^ 0 or x <> a |^ 0 ) ;
suppose x = a |^ 0 ; :: thesis: ex y being object st
( y in the carrier of F & S2[x,y] )

hence ex y being object st
( y in the carrier of F & S2[x,y] ) ; :: thesis: verum
end;
suppose x <> a |^ 0 ; :: thesis: ex y being object st
( y in the carrier of F & S2[x,y] )

hence ex y being object st
( y in the carrier of F & S2[x,y] ) ; :: thesis: verum
end;
end;
end;
consider l being Function of the carrier of (VecSp ((FAdj (F,{a})),F)), the carrier of F such that
L: for x being object st x in the carrier of (VecSp ((FAdj (F,{a})),F)) holds
S2[x,l . x] from FUNCT_2:sch 1(A);
reconsider l = l as Element of Funcs ( the carrier of (VecSp ((FAdj (F,{a})),F)), the carrier of F) by FUNCT_2:8;
A2: not deg (MinPoly (a,F)) <= 0 by RING_4:def 4;
for v being Element of (VecSp ((FAdj (F,{a})),F)) st not v in Base a holds
l . v = 0. F
proof
let v be Element of (VecSp ((FAdj (F,{a})),F)); :: thesis: ( not v in Base a implies l . v = 0. F )
assume not v in Base a ; :: thesis: l . v = 0. F
then v <> a |^ 0 by A2;
hence l . v = 0. F by L; :: thesis: verum
end;
then reconsider l = l as Linear_Combination of VecSp ((FAdj (F,{a})),F) by VECTSP_6:def 1;
now :: thesis: for o being object st o in Carrier l holds
o in Base a
let o be object ; :: thesis: ( o in Carrier l implies o in Base a )
assume o in Carrier l ; :: thesis: o in Base a
then consider v being Element of (VecSp ((FAdj (F,{a})),F)) such that
A1: ( o = v & l . v <> 0. F ) by VECTSP_6:1;
( v = a |^ 0 & l . v = p . 0 ) by L, A1;
hence o in Base a by A1, A2; :: thesis: verum
end;
then Carrier l c= Base a ;
then reconsider l = l as Linear_Combination of Base a by VECTSP_6:def 4;
A6: a |^ 0 = 1_ E by BINOM:8
.= 1. F by H0, C0SP1:def 3 ;
then A8: a |^ 0 = 1. (FAdj (F,{a})) by H0a, C0SP1:def 3;
then reconsider v = a |^ 0 as Element of (VecSp ((FAdj (F,{a})),F)) by FIELD_4:def 6;
the carrier of F c= the carrier of (FAdj (F,{a})) by H0a, C0SP1:def 3;
then reconsider p0 = p . 0 as Element of (FAdj (F,{a})) ;
reconsider a0 = a |^ 0 as Element of (FAdj (F,{a})) by A8;
A3: [(l . v),v] in [: the carrier of F, the carrier of (FAdj (F,{a})):] by A8, ZFMISC_1:def 2;
0 = (len p) - 1 by AS1, HURWITZ:def 2;
then A5: LC p = p . (1 -' 1) by RATFUNC1:def 6
.= p . (1 - 1) by XREAL_0:def 2 ;
A7: [(p . 0),(1. F)] in [: the carrier of F, the carrier of F:] by ZFMISC_1:def 2;
A9: Carrier l = {v}
proof
Y: now :: thesis: for o being object st o in Carrier l holds
o in {v}
let o be object ; :: thesis: ( o in Carrier l implies o in {v} )
assume o in Carrier l ; :: thesis: o in {v}
then consider w being Element of (VecSp ((FAdj (F,{a})),F)) such that
A9b: ( o = w & l . w <> 0. F ) by VECTSP_6:1;
o = v by A9b, L;
hence o in {v} by TARSKI:def 1; :: thesis: verum
end;
hence Carrier l = {v} by TARSKI:2, Y; :: thesis: verum
end;
Sum l = (l . v) * v by A9, VECTSP_6:20
.= ( the multF of (FAdj (F,{a})) | [: the carrier of F, the carrier of (FAdj (F,{a})):]) . ((l . v),v) by FIELD_4:def 6
.= the multF of (FAdj (F,{a})) . ((l . v),v) by A3, FUNCT_1:49
.= the multF of (FAdj (F,{a})) . ((p . 0),(1. F)) by L, A6
.= ( the multF of (FAdj (F,{a})) || the carrier of F) . ((p . 0),(1. F)) by A7, FUNCT_1:49
.= (p . 0) * (1. F) by H0a, C0SP1:def 3
.= Ext_eval (p,a) by A5, AS, exevalconst ;
hence Ext_eval (p,a) in Lin (Base a) by VECTSP_7:7; :: thesis: verum
end;
hence S1[ 0 ] ; :: thesis: verum
end;
IS: for k being Element of NAT st 0 <= k & k < degma & ( for j being Element of NAT st 0 <= j & j <= k holds
S1[j] ) holds
S1[k + 1]
proof
let k be Element of NAT ; :: thesis: ( 0 <= k & k < degma & ( for j being Element of NAT st 0 <= j & j <= k holds
S1[j] ) implies S1[k + 1] )

assume IV0: ( 0 <= k & k < degma ) ; :: thesis: ( ex j being Element of NAT st
( 0 <= j & j <= k & not S1[j] ) or S1[k + 1] )

assume IV1: for j being Element of NAT st 0 <= j & j <= k holds
S1[j] ; :: thesis: S1[k + 1]
now :: thesis: for p being Polynomial of F st deg p = k + 1 holds
Ext_eval (p,a) in Lin (Base a)
let p be Polynomial of F; :: thesis: ( deg p = k + 1 implies Ext_eval (b1,a) in Lin (Base a) )
assume IS0: deg p = k + 1 ; :: thesis: Ext_eval (b1,a) in Lin (Base a)
IS: deg p = (len p) - 1 by HURWITZ:def 2;
then len p <> 0 by IS0;
then consider r being Polynomial of F such that
IS1: ( len r < len p & p = r + (Leading-Monomial p) & ( for n being Element of NAT st n < (len p) - 1 holds
r . n = p . n ) ) by POLYNOM4:16;
(len r) - 1 < (len p) - 1 by IS1, XREAL_1:9;
then IS3: deg r < deg p by IS, HURWITZ:def 2;
IS4: k + 1 < degma + 1 by IV0, XREAL_1:8;
per cases ( r = 0_. F or r <> 0_. F ) ;
suppose r <> 0_. F ; :: thesis: Ext_eval (b1,a) in Lin (Base a)
then reconsider degr = deg r as Element of NAT by FIELD_1:1;
degr <= k by IS3, IS0, NAT_1:13;
then consider lr being Linear_Combination of Base a such that
IS5: Ext_eval (r,a) = Sum lr by IV1, VECTSP_7:7;
set LMp = Leading-Monomial p;
Ext_eval ((Leading-Monomial p),a) in Lin (Base a) by IS4, IS0, lembas1b;
then consider l being Linear_Combination of Base a such that
IS6: Ext_eval ((Leading-Monomial p),a) = Sum l by VECTSP_7:7;
reconsider ls = l + lr as Linear_Combination of Base a by VECTSP_6:24;
Ext_eval ((Leading-Monomial p),a) in { (Ext_eval (p,a)) where p is Polynomial of F : verum } ;
then Ext_eval ((Leading-Monomial p),a) in RAdj (F,{a}) by lemphi5;
then IS8: Ext_eval ((Leading-Monomial p),a) in FAdj (F,{a}) by ch1;
Ext_eval (r,a) in { (Ext_eval (p,a)) where p is Polynomial of F : verum } ;
then Ext_eval (r,a) in RAdj (F,{a}) by lemphi5;
then Ext_eval (r,a) in FAdj (F,{a}) by ch1;
then IS7: [(Sum l),(Sum lr)] in [: the carrier of (FAdj (F,{a})), the carrier of (FAdj (F,{a})):] by IS5, IS6, IS8, ZFMISC_1:def 2;
Sum ls = (Sum l) + (Sum lr) by VECTSP_6:44
.= the addF of (FAdj (F,{a})) . ((Sum l),(Sum lr)) by FIELD_4:def 6
.= ( the addF of E || the carrier of (FAdj (F,{a}))) . ((Sum l),(Sum lr)) by EC_PF_1:def 1
.= (Ext_eval ((Leading-Monomial p),a)) + (Ext_eval (r,a)) by IS5, IS6, IS7, FUNCT_1:49
.= Ext_eval (p,a) by IS1, H0, ALGNUM_1:15 ;
hence Ext_eval (p,a) in Lin (Base a) by VECTSP_7:7; :: thesis: verum
end;
end;
end;
hence S1[k + 1] ; :: thesis: verum
end;
I: for j being Element of NAT st 0 <= j & j <= degma holds
S1[j] from INT_1:sch 8(IA, IS);
reconsider degp = deg p as Element of NAT by FIELD_1:1, X;
degp + 1 <= deg (MinPoly (a,F)) by ASdeg, INT_1:7;
then (degp + 1) - 1 <= (deg (MinPoly (a,F))) - 1 by XREAL_1:9;
hence Ext_eval (p,a) in Lin (Base a) by I; :: thesis: verum
end;
end;