let L be non empty right_complementable add-associative right_zeroed left-distributive unital associative doubleLoopStr ; for z0, z1, z2, x being Element of L holds eval (<%z0,z1,z2%>,x) = (z0 + (z1 * x)) + ((z2 * x) * x)
let z0, z1, z2, x be Element of L; eval (<%z0,z1,z2%>,x) = (z0 + (z1 * x)) + ((z2 * x) * x)
consider F being FinSequence of L such that
A1:
eval (<%z0,z1,z2%>,x) = Sum F
and
A2:
len F = len <%z0,z1,z2%>
and
A3:
for n being Element of NAT st n in dom F holds
F . n = (<%z0,z1,z2%> . (n -' 1)) * ((power L) . (x,(n -' 1)))
by POLYNOM4:def 2;
A4:
now ( 1 in dom F implies F . 1 = z0 )assume
1
in dom F
;
F . 1 = z0hence F . 1 =
(<%z0,z1,z2%> . (1 -' 1)) * ((power L) . (x,(1 -' 1)))
by A3
.=
(<%z0,z1,z2%> . 0) * ((power L) . (x,(1 -' 1)))
by XREAL_1:232
.=
(<%z0,z1,z2%> . 0) * ((power L) . (x,0))
by XREAL_1:232
.=
z0 * ((power L) . (x,0))
by Th21
.=
z0 * (1_ L)
by GROUP_1:def 7
.=
z0
by GROUP_1:def 4
;
verum end;
not not len F = 0 & ... & not len F = 3
by A2, Th25;
per cases then
( len F = 0 or len F = 1 or len F = 2 or len F = 3 )
;
suppose A7:
len F = 1
;
eval (<%z0,z1,z2%>,x) = (z0 + (z1 * x)) + ((z2 * x) * x)then
0 + 1
in Seg (len F)
by FINSEQ_1:1;
then
F = <*z0*>
by A4, A7, FINSEQ_1:def 3, FINSEQ_1:40;
hence eval (
<%z0,z1,z2%>,
x) =
z0
by A1, RLVECT_1:44
.=
(z0 + ((0. L) * x)) + (((<%z0,z1,z2%> . 2) * x) * x)
by A2, A7, ALGSEQ_1:8
.=
(z0 + ((<%z0,z1,z2%> . 1) * x)) + (((<%z0,z1,z2%> . 2) * x) * x)
by A2, A7, ALGSEQ_1:8
.=
(z0 + (z1 * x)) + (((<%z0,z1,z2%> . 2) * x) * x)
by Th22
.=
(z0 + (z1 * x)) + ((z2 * x) * x)
by Th23
;
verum end; suppose A8:
len F = 2
;
eval (<%z0,z1,z2%>,x) = (z0 + (z1 * x)) + ((z2 * x) * x)
F = <*z0,(z1 * x)*>
by A4, A5, A8, FINSEQ_1:44, FINSEQ_3:25;
hence eval (
<%z0,z1,z2%>,
x) =
(z0 + (z1 * x)) + (((0. L) * x) * x)
by A1, RLVECT_1:45
.=
(z0 + (z1 * x)) + (((<%z0,z1,z2%> . 2) * x) * x)
by A2, A8, ALGSEQ_1:8
.=
(z0 + (z1 * x)) + ((z2 * x) * x)
by Th23
;
verum end; suppose A9:
len F = 3
;
eval (<%z0,z1,z2%>,x) = (z0 + (z1 * x)) + ((z2 * x) * x)F . 3 =
(<%z0,z1,z2%> . (3 -' 1)) * ((power L) . (x,(3 -' 1)))
by A3, A9, FINSEQ_3:25
.=
z2 * ((power L) . (x,2))
by Lm2, Th23
.=
z2 * (x * x)
by GROUP_1:51
.=
(z2 * x) * x
by GROUP_1:def 3
;
then
F = <*z0,(z1 * x),((z2 * x) * x)*>
by A4, A5, A9, FINSEQ_1:45, FINSEQ_3:25;
hence
eval (
<%z0,z1,z2%>,
x)
= (z0 + (z1 * x)) + ((z2 * x) * x)
by A1, RLVECT_1:46;
verum end; end;