let F be Field; :: thesis: for E being FieldExtension of F
for T being non empty finite Subset of E
for p being Polynomial of (card T),F
for x being b2 -evaluating Function of (card T),E holds Ext_eval (p,x) in the carrier of (RAdj (F,T))

let E be FieldExtension of F; :: thesis: for T being non empty finite Subset of E
for p being Polynomial of (card T),F
for x being b1 -evaluating Function of (card T),E holds Ext_eval (p,x) in the carrier of (RAdj (F,T))

let T be non empty finite Subset of E; :: thesis: for p being Polynomial of (card T),F
for x being T -evaluating Function of (card T),E holds Ext_eval (p,x) in the carrier of (RAdj (F,T))

let p be Polynomial of (card T),F; :: thesis: for x being T -evaluating Function of (card T),E holds Ext_eval (p,x) in the carrier of (RAdj (F,T))
let x be T -evaluating Function of (card T),E; :: thesis: Ext_eval (p,x) in the carrier of (RAdj (F,T))
set n = card T;
set R = F;
A0: F is Subring of E by FIELD_4:def 1;
defpred S1[ Nat] means for p being Polynomial of (card T),F st card (Support p) = $1 holds
Ext_eval (p,x) in the carrier of (RAdj (F,T));
A1: ex k being Element of NAT st card (Support p) = k ;
A2: for k being Nat st S1[k] holds
S1[k + 1]
proof
let k be Nat; :: thesis: ( S1[k] implies S1[k + 1] )
assume A3: S1[k] ; :: thesis: S1[k + 1]
let p be Polynomial of (card T),F; :: thesis: ( card (Support p) = k + 1 implies Ext_eval (p,x) in the carrier of (RAdj (F,T)) )
assume A4: card (Support p) = k + 1 ; :: thesis: Ext_eval (p,x) in the carrier of (RAdj (F,T))
set sgp = SgmX ((BagOrder (card T)),(Support p));
set bg = (SgmX ((BagOrder (card T)),(Support p))) /. (len (SgmX ((BagOrder (card T)),(Support p))));
A5: BagOrder (card T) linearly_orders Support p by POLYNOM2:18;
Support p <> {} by A4;
then 1 <= len (SgmX ((BagOrder (card T)),(Support p))) by NAT_1:14;
then len (SgmX ((BagOrder (card T)),(Support p))) in Seg (len (SgmX ((BagOrder (card T)),(Support p)))) by FINSEQ_1:1;
then A6: len (SgmX ((BagOrder (card T)),(Support p))) in dom (SgmX ((BagOrder (card T)),(Support p))) by FINSEQ_1:def 3;
then (SgmX ((BagOrder (card T)),(Support p))) /. (len (SgmX ((BagOrder (card T)),(Support p)))) = (SgmX ((BagOrder (card T)),(Support p))) . (len (SgmX ((BagOrder (card T)),(Support p)))) by PARTFUN1:def 6;
then (SgmX ((BagOrder (card T)),(Support p))) /. (len (SgmX ((BagOrder (card T)),(Support p)))) in rng (SgmX ((BagOrder (card T)),(Support p))) by A6, FUNCT_1:def 3;
then A7: (SgmX ((BagOrder (card T)),(Support p))) /. (len (SgmX ((BagOrder (card T)),(Support p)))) in Support p by A5, PRE_POLY:def 2;
then A8: p . ((SgmX ((BagOrder (card T)),(Support p))) /. (len (SgmX ((BagOrder (card T)),(Support p))))) <> 0. F by POLYNOM1:def 4;
set r2 = (0_ ((card T),F)) +* (((SgmX ((BagOrder (card T)),(Support p))) /. (len (SgmX ((BagOrder (card T)),(Support p))))),(p . ((SgmX ((BagOrder (card T)),(Support p))) /. (len (SgmX ((BagOrder (card T)),(Support p)))))));
set r1 = p +* (((SgmX ((BagOrder (card T)),(Support p))) /. (len (SgmX ((BagOrder (card T)),(Support p))))),(0. F));
reconsider bg = (SgmX ((BagOrder (card T)),(Support p))) /. (len (SgmX ((BagOrder (card T)),(Support p)))) as bag of card T ;
dom p = Bags (card T) by FUNCT_2:def 1;
then A9: p +* (((SgmX ((BagOrder (card T)),(Support p))) /. (len (SgmX ((BagOrder (card T)),(Support p))))),(0. F)) = p +* (bg .--> (0. F)) by FUNCT_7:def 3;
reconsider r1 = p +* (((SgmX ((BagOrder (card T)),(Support p))) /. (len (SgmX ((BagOrder (card T)),(Support p))))),(0. F)) as Function of (Bags (card T)), the carrier of F ;
for u being object st u in Support r1 holds
u in Support p
proof
let u be object ; :: thesis: ( u in Support r1 implies u in Support p )
assume A10: u in Support r1 ; :: thesis: u in Support p
then reconsider u = u as Element of Bags (card T) ;
then not u in dom (bg .--> (0. F)) by TARSKI:def 1;
then p . u = r1 . u by A9, FUNCT_4:11;
then p . u <> 0. F by A10, POLYNOM1:def 4;
hence u in Support p by POLYNOM1:def 4; :: thesis: verum
end;
then Support r1 c= Support p ;
then reconsider r1 = r1 as Polynomial of (card T),F by POLYNOM1:def 5;
A12: dom p = Bags (card T) by FUNCT_2:def 1;
A13: for u being object st u in Support p holds
u in (Support r1) \/ {bg}
proof
let u be object ; :: thesis: ( u in Support p implies u in (Support r1) \/ {bg} )
assume A14: u in Support p ; :: thesis: u in (Support r1) \/ {bg}
then reconsider u = u as Element of Bags (card T) ;
A15: p . u <> 0. F by A14, POLYNOM1:def 4;
end;
bg in dom (bg .--> (0. F)) by TARSKI:def 1;
then r1 . bg = (bg .--> (0. F)) . bg by A9, FUNCT_4:13;
then A16: r1 . bg = 0. F by FUNCOP_1:72;
then A17: not bg in Support r1 by POLYNOM1:def 4;
for u being object st u in (Support r1) \/ {bg} holds
u in Support p
proof end;
then Support p = (Support r1) \/ {bg} by A13, TARSKI:2;
then A21: k + 1 = (card (Support r1)) + 1 by A4, A17, CARD_2:41;
dom (0_ ((card T),F)) = Bags (card T) by FUNCT_2:def 1;
then A22: (0_ ((card T),F)) +* (((SgmX ((BagOrder (card T)),(Support p))) /. (len (SgmX ((BagOrder (card T)),(Support p))))),(p . ((SgmX ((BagOrder (card T)),(Support p))) /. (len (SgmX ((BagOrder (card T)),(Support p))))))) = (0_ ((card T),F)) +* (bg .--> (p . bg)) by FUNCT_7:def 3;
reconsider r2 = (0_ ((card T),F)) +* (((SgmX ((BagOrder (card T)),(Support p))) /. (len (SgmX ((BagOrder (card T)),(Support p))))),(p . ((SgmX ((BagOrder (card T)),(Support p))) /. (len (SgmX ((BagOrder (card T)),(Support p))))))) as Function of (Bags (card T)), the carrier of F ;
A23: for u being object st u in Support r2 holds
u in {bg}
proof
let u be object ; :: thesis: ( u in Support r2 implies u in {bg} )
assume A24: u in Support r2 ; :: thesis: u in {bg}
then reconsider u = u as Element of Bags (card T) ;
A25: r2 . u <> 0. F by A24, POLYNOM1:def 4;
now :: thesis: not u <> bg
assume u <> bg ; :: thesis: contradiction
then not u in dom (bg .--> (p . bg)) by TARSKI:def 1;
then r2 . u = (0_ ((card T),F)) . u by A22, FUNCT_4:11;
hence contradiction by A25, POLYNOM1:22; :: thesis: verum
end;
hence u in {bg} by TARSKI:def 1; :: thesis: verum
end;
A50: for u being object st u in {bg} holds
u in Support r2
proof
let u be object ; :: thesis: ( u in {bg} implies u in Support r2 )
bg in dom (bg .--> (p . bg)) by TARSKI:def 1;
then r2 . bg = (bg .--> (p . bg)) . bg by A22, FUNCT_4:13;
then A26: r2 . bg = p . bg by FUNCOP_1:72;
assume u in {bg} ; :: thesis: u in Support r2
then u = bg by TARSKI:def 1;
hence u in Support r2 by A8, A26, POLYNOM1:def 4; :: thesis: verum
end;
then Support r2 = {bg} by A23, TARSKI:2;
then reconsider r2 = r2 as Polynomial of (card T),F by POLYNOM1:def 5;
A28: for u being object st u in Bags (card T) holds
(r1 + r2) . u = p . u
proof
let u be object ; :: thesis: ( u in Bags (card T) implies (r1 + r2) . u = p . u )
assume u in Bags (card T) ; :: thesis: (r1 + r2) . u = p . u
then reconsider u = u as bag of card T ;
per cases ( u = bg or u <> bg ) ;
suppose A29: u = bg ; :: thesis: (r1 + r2) . u = p . u
bg in dom (bg .--> (p . bg)) by TARSKI:def 1;
then r2 . bg = (bg .--> (p . bg)) . bg by A22, FUNCT_4:13;
then A30: r2 . bg = p . bg by FUNCOP_1:72;
u in dom (bg .--> (0. F)) by A29, TARSKI:def 1;
then A31: r1 . u = (bg .--> (0. F)) . bg by A9, A29, FUNCT_4:13;
(r1 + r2) . u = (r1 . u) + (r2 . u) by POLYNOM1:15
.= (0. F) + (p . bg) by A29, A31, A30, FUNCOP_1:72
.= p . bg ;
hence (r1 + r2) . u = p . u by A29; :: thesis: verum
end;
suppose A32: u <> bg ; :: thesis: (r1 + r2) . u = p . u
then A33: not u in dom (bg .--> (0. F)) by TARSKI:def 1;
not u in dom (bg .--> (p . bg)) by A32, TARSKI:def 1;
then r2 . u = (0_ ((card T),F)) . u by A22, FUNCT_4:11;
then A34: r2 . u = 0. F by POLYNOM1:22;
(r1 + r2) . u = (r1 . u) + (r2 . u) by POLYNOM1:15
.= p . u by A9, A33, A34, FUNCT_4:11 ;
hence (r1 + r2) . u = p . u ; :: thesis: verum
end;
end;
end;
reconsider a = Ext_eval (r1,x) as Element of (RAdj (F,T)) by A3, A21;
reconsider c = Ext_eval (r2,x) as Element of (RAdj (F,T)) by A50, A23, TARSKI:2, Lm7;
dom (r1 + r2) = Bags (card T) by FUNCT_2:def 1;
then Ext_eval (p,x) = Ext_eval ((r1 + r2),x) by A12, A28, FUNCT_1:2
.= (Ext_eval (r1,x)) + (Ext_eval (r2,x)) by A0, FIELD_11:19
.= a + c by FIELD_6:15 ;
hence Ext_eval (p,x) in the carrier of (RAdj (F,T)) ; :: thesis: verum
end;
A36: S1[ 0 ]
proof
let p be Polynomial of (card T),F; :: thesis: ( card (Support p) = 0 implies Ext_eval (p,x) in the carrier of (RAdj (F,T)) )
assume card (Support p) = 0 ; :: thesis: Ext_eval (p,x) in the carrier of (RAdj (F,T))
then Support p = {} ;
then p = 0_ ((card T),F) by FIELD_11:5;
then Ext_eval (p,x) = 0. E by FIELD_11:16
.= 0. (RAdj (F,T)) by FIELD_6:def 4 ;
hence Ext_eval (p,x) in the carrier of (RAdj (F,T)) ; :: thesis: verum
end;
for k being Nat holds S1[k] from NAT_1:sch 2(A36, A2);
hence Ext_eval (p,x) in the carrier of (RAdj (F,T)) by A1; :: thesis: verum