let L be non empty non degenerated right_complementable Abelian add-associative right_zeroed well-unital distributive unital associative commutative domRing-like doubleLoopStr ; for p being Polynomial of L st p . 0 <> 0. L holds
ex q being Polynomial of L st
( len p = len q & q . 0 = 1. L & ( for i being Element of NAT st 0 < i holds
q . i = (p . i) * ((power L) . ((p . 0),(i -' 1))) ) & ( for x being Element of L holds eval (p,((p . 0) * x)) = (p . 0) * (eval (q,x)) ) )
let p be Polynomial of L; ( p . 0 <> 0. L implies ex q being Polynomial of L st
( len p = len q & q . 0 = 1. L & ( for i being Element of NAT st 0 < i holds
q . i = (p . i) * ((power L) . ((p . 0),(i -' 1))) ) & ( for x being Element of L holds eval (p,((p . 0) * x)) = (p . 0) * (eval (q,x)) ) ) )
assume A1:
p . 0 <> 0. L
; ex q being Polynomial of L st
( len p = len q & q . 0 = 1. L & ( for i being Element of NAT st 0 < i holds
q . i = (p . i) * ((power L) . ((p . 0),(i -' 1))) ) & ( for x being Element of L holds eval (p,((p . 0) * x)) = (p . 0) * (eval (q,x)) ) )
defpred S1[ Element of NAT , object ] means ( ( $1 = 0 implies $2 = 1. L ) & ( $1 > 0 implies $2 = (p . $1) * ((power L) . ((p . 0),($1 -' 1))) ) );
A2:
for x being Element of NAT ex y being Element of L st S1[x,y]
consider q being sequence of L such that
A5:
for n being Element of NAT holds S1[n,q . n]
from FUNCT_2:sch 3(A2);
then reconsider q = q as Polynomial of L by ALGSEQ_1:def 1;
take
q
; ( len p = len q & q . 0 = 1. L & ( for i being Element of NAT st 0 < i holds
q . i = (p . i) * ((power L) . ((p . 0),(i -' 1))) ) & ( for x being Element of L holds eval (p,((p . 0) * x)) = (p . 0) * (eval (q,x)) ) )
for m being Nat st m is_at_least_length_of q holds
len p <= m
hence A16:
( len p = len q & q . 0 = 1. L )
by A9, A5, ALGSEQ_1:def 2, ALGSEQ_1:def 3; ( ( for i being Element of NAT st 0 < i holds
q . i = (p . i) * ((power L) . ((p . 0),(i -' 1))) ) & ( for x being Element of L holds eval (p,((p . 0) * x)) = (p . 0) * (eval (q,x)) ) )
thus
for i being Element of NAT st 0 < i holds
q . i = (p . i) * ((power L) . ((p . 0),(i -' 1)))
by A5; for x being Element of L holds eval (p,((p . 0) * x)) = (p . 0) * (eval (q,x))
let x be Element of L; eval (p,((p . 0) * x)) = (p . 0) * (eval (q,x))
consider P being FinSequence of the carrier of L such that
A17:
( eval (p,((p . 0) * x)) = Sum P & len P = len p )
and
A18:
for n being Element of NAT st n in dom P holds
P . n = (p . (n -' 1)) * ((power L) . (((p . 0) * x),(n -' 1)))
by POLYNOM4:def 2;
consider Q being FinSequence of the carrier of L such that
A19:
( eval (q,x) = Sum Q & len Q = len q )
and
A20:
for n being Element of NAT st n in dom Q holds
Q . n = (q . (n -' 1)) * ((power L) . (x,(n -' 1)))
by POLYNOM4:def 2;
reconsider Q = Q as Element of (len q) -tuples_on the carrier of L by A19, FINSEQ_2:92;
len P = len ((p . 0) * Q)
by A17, A16, CARD_1:def 7;
then A21:
dom P = dom ((p . 0) * Q)
by FINSEQ_3:29;
for k being Nat st k in dom P holds
P . k = ((p . 0) * Q) . k
proof
let k be
Nat;
( k in dom P implies P . k = ((p . 0) * Q) . k )
assume A22:
k in dom P
;
P . k = ((p . 0) * Q) . k
reconsider K =
k as
Element of
NAT by ORDINAL1:def 12;
set k1 =
K -' 1;
dom P = dom Q
by A16, A17, A19, FINSEQ_3:29;
then
Q . K = (q . (K -' 1)) * ((power L) . (x,(K -' 1)))
by A22, A20;
then A23:
((p . 0) * Q) . K = (p . 0) * ((q . (K -' 1)) * ((power L) . (x,(K -' 1))))
by A21, A22, FVSUM_1:50;
per cases
( K -' 1 > 0 or K -' 1 = 0 )
;
suppose A24:
K -' 1
> 0
;
P . k = ((p . 0) * Q) . kthen
K -' 1
>= 1
+ 0
by NAT_1:8;
then
(K -' 1) -' 1
= (K -' 1) - 1
by XREAL_1:233;
then
((K -' 1) -' 1) + 1
= K -' 1
;
then A25:
(p . 0) * ((power L) . ((p . 0),((K -' 1) -' 1))) = (power L) . (
(p . 0),
(K -' 1))
by GROUP_1:def 7;
((p . 0) * Q) . K =
(p . 0) * (((p . (K -' 1)) * ((power L) . ((p . 0),((K -' 1) -' 1)))) * ((power L) . (x,(K -' 1))))
by A5, A24, A23
.=
(p . 0) * ((p . (K -' 1)) * (((power L) . ((p . 0),((K -' 1) -' 1))) * ((power L) . (x,(K -' 1)))))
by GROUP_1:def 3
.=
(p . (K -' 1)) * ((p . 0) * (((power L) . ((p . 0),((K -' 1) -' 1))) * ((power L) . (x,(K -' 1)))))
by GROUP_1:def 3
.=
(p . (K -' 1)) * (((p . 0) * ((power L) . ((p . 0),((K -' 1) -' 1)))) * ((power L) . (x,(K -' 1))))
by GROUP_1:def 3
.=
(p . (K -' 1)) * ((power L) . (((p . 0) * x),(K -' 1)))
by GROUP_1:52, A25
;
hence
P . k = ((p . 0) * Q) . k
by A22, A18;
verum end; end;
end;
then
P = (p . 0) * Q
by A21, FINSEQ_1:13;
hence
eval (p,((p . 0) * x)) = (p . 0) * (eval (q,x))
by A17, A19, FVSUM_1:73; verum