Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  polynom5.miz   Sprache: Mizar

 

:: Fundamental Theorem of Algebra
::  by Robert Milewski
::
:: Received August 21, 2000
:: Copyright (c) 2000-2026 Association of Mizar Users
::           (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
:: This code can be distributed under the GNU General Public Licence
:: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
:: License version 3.0 or later, subject to the binding interpretation
:: detailed in file COPYING.interpretation.
:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
:: licenses, or see http://www.gnu.org/licenses/gpl.html and
:: http://creativecommons.org/licenses/by-sa/3.0/.

environ

 vocabularies NUMBERS, SUBSET_1, CARD_1, RELAT_1, ARYTM_1, ARYTM_3, XXREAL_0,
      REAL_1, FINSEQ_1, FUNCT_1, CARD_3, ORDINAL4, TARSKI, PARTFUN1, XBOOLE_0,
      HAHNBAN1, XCMPLX_0, COMPLFLD, SUPINF_2, COMPLEX1, GROUP_1, POWER,
      STRUCT_0, NAT_1, RLVECT_1, ALGSTR_0, VECTSP_1, BINOP_1, LATTICES,
      POLYNOM1, ALGSEQ_1, POLYNOM3, POLYNOM2, VECTSP_2, MESFUNC1, AFINSQ_1,
      FUNCT_4, CQC_LANG, CFCONT_1, FUNCOP_1, VALUED_1, FUNCT_2, SEQ_4,
      XXREAL_2, COMSEQ_1, VALUED_0, SEQ_2, ORDINAL2, SEQ_1, COMPTRIG, RFINSEQ,
      POLYNOM5, FUNCT_7, ASYMPT_1;
 notations TARSKI, XBOOLE_0, SUBSET_1, ORDINAL1, NUMBERS, XCMPLX_0, XXREAL_2,
      XREAL_0, COMPLEX1, REAL_1, POWER, BINOP_1, NAT_1, RELAT_1, FUNCT_1,
      FUNCT_2, PARTFUN1, FUNCOP_1, FINSEQ_1, FINSEQ_4, POLYNOM1, RVSUM_1,
      STRUCT_0, ALGSTR_0, RLVECT_1, FUNCSDOM, VECTSP_2, VECTSP_1, RFINSEQ,
      CFCONT_1, VALUED_0, VALUED_1, SEQ_1, SEQ_2, SEQ_4, XXREAL_0, COMSEQ_1,
      COMSEQ_2, NAT_D, COMPLFLD, HAHNBAN1, ALGSEQ_1, POLYNOM3, POLYNOM4,
      FUNCT_7, RECDEF_1, GROUP_1;
 constructors FINSEQ_4, ENUMSET1, REAL_1, SEQ_4, FINSOP_1, COMSEQ_2, RVSUM_1,
      CFCONT_1, RFINSEQ, NAT_D, FUNCSDOM, VECTSP_2, ALGSTR_1, MATRIX_1,
      HAHNBAN1, POLYNOM1, POLYNOM4, RECDEF_1, BINOP_2, POWER, SEQ_2, RELSET_1,
      FUNCT_7, FVSUM_1, ALGSEQ_1, ORDINAL1, SEQ_1, GROUP_1;
 registrations FUNCT_1, ORDINAL1, RELSET_1, FUNCT_2, NUMBERS, XCMPLX_0,
      XXREAL_0, XREAL_0, NAT_1, INT_1, MEMBERED, FINSEQ_1, STRUCT_0, GROUP_1,
      VECTSP_1, COMPLFLD, ALGSTR_1, POLYNOM3, POLYNOM4, VALUED_0, VALUED_1,
      CARD_1, SEQ_2, CFUNCT_1, SEQ_1, RVSUM_1;
 requirements NUMERALS, BOOLE, SUBSET, REAL, ARITHM;
 definitions TARSKI, ALGSEQ_1, XBOOLE_0, ALGSTR_0, XXREAL_2, COMSEQ_2;
 equalities XBOOLE_0, RVSUM_1, POLYNOM3, HAHNBAN1, STRUCT_0, ALGSTR_0,
      XCMPLX_0;
 expansions TARSKI, ALGSEQ_1, COMSEQ_2;
 theorems XREAL_0, TARSKI, ENUMSET1, NAT_1, POWER, INT_1, ABSVALUE, FUNCT_1,
      FUNCT_2, FUNCT_7, FINSEQ_1, FINSEQ_2, FINSEQ_3, FINSEQ_4, FINSEQ_5,
      FUNCOP_1, TBSP_1, RFINSEQ, PRE_FF, CFCONT_1, TOPREAL3, INTEGRA5,
      RLVECT_1, VECTSP_1, RVSUM_1, SEQ_2, SEQM_3, SEQ_4, COMSEQ_2, COMSEQ_3,
      CFUNCT_1, FVSUM_1, GROUP_1, ALGSEQ_1, COMPLEX1, COMPLFLD, HAHNBAN1,
      POLYNOM1, POLYNOM2, POLYNOM3, POLYNOM4, XBOOLE_0, XCMPLX_1, VECTSP_2,
      XREAL_1, XXREAL_0, FINSOP_1, NORMSP_1, PARTFUN1, ORDINAL1, VALUED_1,
      CARD_1, NAT_D, VALUED_0, XCMPLX_0, SEQ_1;
 schemes NAT_1, FUNCT_2, FINSEQ_2, FINSEQ_1, FINSEQ_4, SEQ_1, CFCONT_1,
      DOMAIN_1, FUNCT_7;

begin :: Preliminaries

theorem Th1:
  for n,m be Nat st n <> 0 & m <> 0 holds n*m - n - m + 1 >= 0
proof
  let n,m be Nat;
  assume that
A1: n <> 0 and
A2: m <> 0;
  m >= 0+1 by A2,NAT_1:13;
  then
A3: m-1 >= 0+1-1;
  n >= 0+1 by A1,NAT_1:13;
  then n-1 >= 0+1-1;
  then (n-1)*(m-1) >= 0 by A3;
  hence thesis;
end;

theorem Th2:
  for x,y be Real st y > 0 holds min(x,y)/max(x,y) <= 1
proof
  let x,y be Real;
  assume
A1: y > 0;
  per cases;
  suppose
A2: x > 0;
    now
      per cases;
      suppose
A3:     x >= y;
        then max(x,y) = x & min(x,y) = y by XXREAL_0:def 9,def 10;
        hence thesis by A1,A3,XREAL_1:183;
      end;
      suppose
A4:     x < y;
        then max(x,y) = y & min(x,y) = x by XXREAL_0:def 9,def 10;
        hence thesis by A2,A4,XREAL_1:183;
      end;
    end;
    hence thesis;
  end;
  suppose
A5: x <= 0;
    then min (x,y) = x & max (x,y) = y by A1,XXREAL_0:def 9,def 10;
    hence thesis by A1,A5;
  end;
end;

theorem Th3:
  for x,y be Real st for c be Real st c > 0 & c < 1
  holds c*x >= y holds y <= 0
proof
  let x,y be Real;
  assume
A1: for c be Real st c > 0 & c < 1 holds c*x >= y;
  set ma = max(x,y);
  set mi = min(x,y);
  set c = mi/(2*ma);
  assume
A2: y > 0;
  then
A3: y*2 > y by XREAL_1:155;
  per cases;
  suppose
A4: x > 0;
    then
A5: mi > 0 & ma > 0 by A2,XXREAL_0:15,16;
    then mi/ma*2 > mi/ma by XREAL_1:155;
    then mi/ma > mi/ma/2 by XREAL_1:83;
    then
A6: mi/ma > mi/(ma*2) by XCMPLX_1:78;
    mi/ma <= 1 by A4,Th2;
    then c < 1 by A6,XXREAL_0:2;
    then
A7: c*x >= y by A1,A5;
    now
      per cases;
      suppose
        x >= y;
        then ma = x & mi = y by XXREAL_0:def 9,def 10;
        then c*x = y/2 by A4,XCMPLX_1:92;
        hence contradiction by A3,A7,XREAL_1:83;
      end;
      suppose
A8:     x < y;
        then ma = y & mi = x by XXREAL_0:def 9,def 10;
        then c*x < x/(2*y)*y by A4,A8,XREAL_1:98;
        then
A9:     c*x < x/2 by A2,XCMPLX_1:92;
A10:    y > y/2 by A3,XREAL_1:83;
        x/2 < y/2 by A8,XREAL_1:74;
        then c*x < y/2 by A9,XXREAL_0:2;
        hence contradiction by A7,A10,XXREAL_0:2;
      end;
    end;
    hence contradiction;
  end;
  suppose
    x <= 0;
    then 1/2*x <= 0;
    hence contradiction by A1,A2;
  end;
end;

Lm1: for x,y be Real st
   for c be Real st c > 0 & c < 1 holds c*x >= y holds y
<= 0
by Th3;

theorem Th4:
  for p be FinSequence of REAL st for n be Element of NAT st n in
  dom p holds p.n >= 0 for i be Element of NAT st i in dom p holds Sum p >= p.i
proof
  defpred Q[FinSequence of REAL] means (for n be Element of NAT st n in dom $1
holds $1.n >= 0) implies for i be Element of NAT st i in dom $1 holds Sum $1 >=
  $1.i;
A1: for p be FinSequence of REAL for x be Element of REAL st Q[p] holds Q[p^
  <*x*>]
  proof
    let p be FinSequence of REAL;
    let x be Element of REAL;
    assume
A2: (for n be Element of NAT st n in dom p holds p.n >= 0) implies for
    i be Element of NAT st i in dom p holds Sum p >= p.i;
    defpred P[Nat] means Sum (p|$1) >= 0;
    assume
A3: for n be Element of NAT st n in dom (p^<*x*>) holds (p^<*x*>).n >= 0;
A4: dom p c= dom (p^<*x*>) by FINSEQ_1:26;
A5: now
      let n be Element of NAT;
      assume
A6:   n in dom p;
      then (p^<*x*>).n >= 0 by A3,A4;
      hence p.n >= 0 by A6,FINSEQ_1:def 7;
    end;
A7: for j be Nat st P[j] holds P[j+1]
    proof
      let j be Nat;
      assume
A8:   Sum (p|j) >= 0;
      per cases;
      suppose
A9:     j+1 <= len p;
        then p|(j+1) = p|j ^ <*p/.(j+1)*> by FINSEQ_5:82; then
A10:    Sum (p|(j+1)) = Sum(p|j) + p/.(j+1) by RVSUM_1:74;
        j+1 >= 1 by NAT_1:11;
        then
A11:    j+1 in dom p by A9,FINSEQ_3:25;
        then p.(j+1) >= 0 by A5;
        then p/.(j+1) >= 0 by A11,PARTFUN1:def 6;
        hence thesis by A8,A10;
      end;
      suppose
A12:    j+1 > len p;
        then j >= len p by NAT_1:13;
        then p|j = p by FINSEQ_1:58;
        hence thesis by A8,A12,FINSEQ_1:58;
      end;
    end;
    let i be Element of NAT;
    len p+1 >= 0+1 by XREAL_1:6;
    then len (p^<*x*>) >= 1 by FINSEQ_2:16;
    then len (p^<*x*>) in dom (p^<*x*>) by FINSEQ_3:25;
    then (p^<*x*>).len (p^<*x*>) >= 0 by A3;
    then (p^<*x*>).(len p+1) >= 0 by FINSEQ_2:16;
    then x >= 0 by FINSEQ_1:42;
    then
A13: p.i + x >= p.i + 0 by XREAL_1:6;
A14: p|(len p) = p by FINSEQ_1:58;
    len (p^<*x*>) = len p+1 by FINSEQ_2:16;
    then
A15: dom (p^<*x*>) = Seg (len p+1) by FINSEQ_1:def 3
      .= Seg len p \/ {len p+1} by FINSEQ_1:9
      .= dom p \/ {len p+1} by FINSEQ_1:def 3;
A16: P[0] by RVSUM_1:72;
    for j be Nat holds P[j] from NAT_1:sch 2(A16,A7);
    then
A17: Sum p >= 0 by A14;
    assume
A18: i in dom (p^<*x*>);
    per cases by A18,A15,XBOOLE_0:def 3;
    suppose
A19:  i in dom p;
A20:  Sum (p^<*x*>) = Sum p + x by RVSUM_1:74;
      Sum p >= p.i by A2,A5,A19;
      then Sum (p^<*x*>) >= p.i + x by A20,XREAL_1:6;
      then Sum (p^<*x*>) >= p.i by A13,XXREAL_0:2;
      hence thesis by A19,FINSEQ_1:def 7;
    end;
    suppose
      i in {len p+1};
      then i = len p+1 by TARSKI:def 1;
      then (p^<*x*>).i = x by FINSEQ_1:42;
      then Sum p + x >= 0+(p^<*x*>).i by A17,XREAL_1:6;
      hence thesis by RVSUM_1:74;
    end;
  end;
A21: Q[<*>(REAL)];
  thus for p be FinSequence of REAL holds Q[p] from FINSEQ_2:sch 2(A21, A1);
end;

theorem
  for x,y be Real holds -[**x,y**] = [**-x,-y**]
proof
  let x,y be Real;
  thus -[**x,y**] = -(x+y*<i>)
    .= [**-x,-y**];
end;

theorem
  for x1,y1,x2,y2 be Real holds
  [**x1,y1**] - [**x2,y2**] = [**x1 - x2,y1 - y2**]
proof
  let x1,y1,x2,y2 be Real;
  thus [**x1,y1**]-[**x2,y2**] = [**x1,y1**]+[**-x2,-y2**]
    .= [**x1-x2,y1-y2**];
end;

definition let R be non empty multMagma;
 let z be Element of R, n be Nat;
 func power(z,n) -> Element of R equals
 power(R).(z,n);
 coherence;
end;

theorem Th7:
  for z be Element of F_Complex st z <> 0.F_Complex
   for n be Nat holds |.power(z,n).| = |.z.| to_power n
proof
  let z be Element of F_Complex;
  defpred P[Nat] means |.power(z,$1).| = |.z.|
  to_power $1;
  assume z <> 0.F_Complex;
  then
A1: |.z.| <> 0 by COMPLFLD:58;
A2: |.z.| >= 0 by COMPLEX1:46;
A3: for n be Nat st P[n] holds P[n+1]
  proof
    let n be Nat;
    assume
A4: |.power(z,n).| = |.z.| to_power n;
    thus |.power(z,n+1).| = |.(power F_Complex).(z,n)*z.| by
GROUP_1:def 7
      .= (|.z.| to_power n)*|.z.| by A4,COMPLFLD:71
      .= (|.z.| to_power n)*(|.z.| to_power 1) by POWER:25
      .= |.z.| to_power (n+1) by A1,A2,POWER:27;
  end;
  |.(power F_Complex).(z,0).| = 1 by COMPLEX1:48,COMPLFLD:8,GROUP_1:def 7
    .= |.z.| to_power 0 by POWER:24;
  then
A5: P[0];
  thus for n be Nat holds P[n] from NAT_1:sch 2(A5,A3);
end;

definition
  let p be complex-valued FinSequence;
  redefine func |.p.| -> FinSequence of REAL means
  :Def2:
  len it = len p &
  for n be Nat st n in dom p holds it.n = |.p.n.|;
  coherence by RVSUM_1:145;
  compatibility
  proof
    let f be FinSequence of REAL;
    hereby
      assume
A1:   f = |.p.|;
      dom |.p.| = dom p by VALUED_1:def 11;
      hence len f = len p by A1,FINSEQ_3:29;
      let n be Nat such that n in dom p;
      thus f.n = |.p.n.| by A1,VALUED_1:18;
    end;
    assume that
A1: len f = len p and
A2: for n be Nat st n in dom p holds f.n = |.p.n.|;
A3: dom f = dom p by A1,FINSEQ_3:29;
    then for c be object st c in dom f holds f.c = |.p.c.| by A2;
    hence f = |.p.| by A3,VALUED_1:def 11;
  end;
end;

theorem Th8:
  |.<*>the carrier of F_Complex.| = <*>REAL
proof
  len |.<*>the carrier of F_Complex.| = len <*>the carrier of F_Complex by Def2
    .= 0;
  hence thesis;
end;

theorem Th9:
  for x be Complex holds |.<*x*>.| = <*|.x.|*>
proof
  let x be Complex;
  0+1 in Seg (0+1) by FINSEQ_1:4;
  then
A1: 1 in dom <*x*> by FINSEQ_1:38;
A2: len |.<*x*>.| = len <*x*> by Def2
    .= 1 by FINSEQ_1:39;
  then
A3: dom |.<*x*>.| = Seg 1 by FINSEQ_1:def 3;
A5: now
    let n be Nat;
    assume n in dom |.<*x*>.|;
    then
A6: n = 1 by A3,FINSEQ_1:2,TARSKI:def 1;
    hence |.<*x*>.|.n = |.<*x*>.1 .| by A1,Def2
      .= |.x.|
      .= <*|.x.|*>.n by A6;
  end;
  len <*|.x.|*> = 1 by FINSEQ_1:39;
  hence thesis by A2,A5,FINSEQ_2:9;
end;

theorem
  for x,y be Complex holds |.<*x,y*>.| = <*|.x.|,|.y.|*>
proof
  let x,y be Complex;
A1: len |.<*x,y*>.| = len <*x,y*> by Def2
    .= 2 by FINSEQ_1:44;
  then
A2: dom |.<*x,y*>.| = Seg 2 by FINSEQ_1:def 3;
A3: now
    let n be Nat;
    assume
A4: n in dom |.<*x,y*>.|;
    per cases by A2,A4,FINSEQ_1:2,TARSKI:def 2;
    suppose
A5:   n = 1;
      then
A6:   1 in dom <*x,y*> by A2,A4,FINSEQ_1:89;
      |.<*x,y*>.|.1 = |.<*x,y*>.1 .| by A6,Def2;
      then |.<*x,y*>.|.1 = |.x.|;
      hence |.<*x,y*>.|.n = <*|.x.|,|.y.|*>.n by A5;
    end;
    suppose
A7:   n = 2;
      then
A8:   2 in dom <*x,y*> by A2,A4,FINSEQ_1:89;
      |.<*x,y*>.|.2 = |.<*x,y*>.2 .| by A8,Def2;
      then |.<*x,y*>.|.2 = |.y.|;
      hence |.<*x,y*>.|.n = <*|.x.|,|.y.|*>.n by A7;
    end;
  end;
  len <*|.x.|,|.y.|*> = 2 by FINSEQ_1:44;
  hence thesis by A1,A3,FINSEQ_2:9;
end;

theorem
  for x,y,z be Complex holds |.<*x,y,z*>.| = <*|.x.|,|.y.|,|.z.|*>
proof
  let x,y,z be Complex;
A1: len |.<*x,y,z*>.| = len <*x,y,z*> by Def2
    .= 3 by FINSEQ_1:45;
  then
A2: dom |.<*x,y,z*>.| = Seg 3 by FINSEQ_1:def 3;
A3: now
    let n be Nat;
    assume
A4: n in dom |.<*x,y,z*>.|;
    per cases by A2,A4,ENUMSET1:def 1,FINSEQ_3:1;
    suppose
A5:   n = 1;
A6:   1 in dom <*x,y,z*> by FINSEQ_1:81;
      |.<*x,y,z*>.|.1 = |.<*x,y,z*>.1 .| by A6,Def2;
      then |.<*x,y,z*>.|.1 = |.x.|;
      hence |.<*x,y,z*>.|.n = <*|.x.|,|.y.|,|.z.|*>.n by A5;
    end;
    suppose
A7:   n = 2;
A8:   2 in dom <*x,y,z*> by FINSEQ_1:81;
      |.<*x,y,z*>.|.2 = |.<*x,y,z*>.2 .| by A8,Def2;
      then |.<*x,y,z*>.|.2 = |.y.|;
      hence |.<*x,y,z*>.|.n = <*|.x.|,|.y.|,|.z.|*>.n by A7;
    end;
    suppose
A9:   n = 3;
A10:  3 in dom <*x,y,z*> by FINSEQ_1:81;
      |.<*x,y,z*>.|.3 = |.<*x,y,z*>.3 .| by A10,Def2;
      then |.<*x,y,z*>.|.3 = |.z.|;
      hence |.<*x,y,z*>.|.n = <*|.x.|,|.y.|,|.z.|*>.n by A9;
    end;
  end;
  len <*|.x.|,|.y.|,|.z.|*> = 3 by FINSEQ_1:45;
  hence thesis by A1,A3,FINSEQ_2:9;
end;

theorem Th12:
  for p,q be complex-valued FinSequence holds |.p^q.| = |.p.|^|.q.|
proof
  let p,q be complex-valued FinSequence;
A1: dom |.p^q.| = Seg len |.p^q.| by FINSEQ_1:def 3;
A2: now
    let n be Nat;
A3: len |.p.| = len p by Def2;
    assume
A4: n in dom |.p^q.|;
    then
A5: n >= 1 by A1,FINSEQ_1:1;
A6: len |.p^q.| = len (p^q) by Def2;
    then
A7: n in dom (p^q) by A1,A4,FINSEQ_1:def 3;
    per cases;
    suppose
A8:   n in dom p;
A9:   (p^q).n = p.n by A8,FINSEQ_1:def 7;
A10:  n in dom |.p.| by A3,A8,FINSEQ_3:29;
      thus |.p^q.|.n = |.(p^q).n.| by A7,Def2
        .= |.p.|.n by A8,A9,Def2
        .= (|.p.|^|.q.|).n by A10,FINSEQ_1:def 7;
    end;
    suppose
      not n in dom p;
      then
A11:  n > 0 + len p by A5,FINSEQ_3:25;
      then
A12:  n - len p > 0 by XREAL_1:20;
A13:  n = len p + (n-len p) .= len p + (n-'len p) by A12,XREAL_0:def 2;
      n <= len (p^q) by A1,A4,A6,FINSEQ_1:1;
      then n <= len q + len p by FINSEQ_1:22;
      then n-len p <= len q by XREAL_1:20;
      then
A14:  n-'len p <= len q by XREAL_0:def 2;
      1 + len p <= n by A11,NAT_1:13;
      then 1 <= n-len p by XREAL_1:19;
      then 1 <= n-'len p by XREAL_0:def 2;
      then
A15:  (n-'len p) in Seg len q by A14,FINSEQ_1:1;
      then
A16:  (n-'len p) in dom q by FINSEQ_1:def 3;
      len |.q.| = len q by Def2;
      then
A17:  (n-'len p) in dom |.q.| by A15,FINSEQ_1:def 3;
A18:  (p^q).n = q.(n-'len p) by A13,A16,FINSEQ_1:def 7;
      thus |.p^q.|.n = |.(p^q).n.| by A7,Def2
        .= |.q.|.(n-'len p) by A16,A18,Def2
        .= (|.p.|^|.q.|).n by A3,A13,A17,FINSEQ_1:def 7;
    end;
  end;
  len |.p^q.| = len (p^q) by Def2
    .= len p + len q by FINSEQ_1:22
    .= len p + len |.q.| by Def2
    .= len |.p.| + len |.q.| by Def2
    .= len (|.p.|^|.q.|) by FINSEQ_1:22;
  hence thesis by A2,FINSEQ_2:9;
end;

theorem
  for p be complex-valued FinSequence
  for x be Complex holds
  |.p^<*x*>.| = |.p.|^<*|.x.|*> & |.<*x*>^p.| = <*|.x.|*>^|.p.|
proof
  let p be complex-valued FinSequence;
  let x be Complex;
  thus |.p^<*x*>.| = |.p.|^|.<*x*>.| by Th12
    .= |.p.|^<*|.x.|*> by Th9;
  thus |.<*x*>^p.| = |.<*x*>.|^|.p.| by Th12
    .= <*|.x.|*>^|.p.| by Th9;
end;

theorem Th14:
 for p be FinSequence of the carrier of F_Complex holds |.Sum p.| <= Sum|.p.|
proof
  set D = the carrier of F_Complex;
  defpred P[FinSequence of D] means |.Sum $1.| <= Sum|.$1.|;
A1: now
    let p be FinSequence of D;
    let x be Element of D;
    assume P[p];
    then
A2: |.Sum p.| + |.x.| <= Sum|.p.| + |.x.| by XREAL_1:6;
    Sum (p^<*x*>) = Sum p + x by FVSUM_1:71;
    then
A3: |.Sum (p^<*x*>).| <= |.Sum p.| + |.x.| by COMPLFLD:62;
    reconsider xx = |.x.| as Element of REAL by XREAL_0:def 1;
    Sum|.p.| + |.x.| = Sum|.p.| + Sum <*xx*> by FINSOP_1:11
      .= Sum|.p.| + Sum |.<*x*>.| by Th9
      .= Sum(|.p.|^|.<*x*>.|) by RVSUM_1:75
      .= Sum|.p^<*x*>.| by Th12;
    hence P[p^<*x*>] by A2,A3,XXREAL_0:2;
  end;
A4: P[<*>D] by Th8,COMPLFLD:57,RLVECT_1:43,RVSUM_1:72;
  thus for p be FinSequence of D holds P[p] from FINSEQ_2:sch 2(A4,A1 );
end;

begin  :: Operations on Polynomials

definition
  let L be Abelian add-associative right_zeroed right_complementable
  right_unital commutative distributive non empty doubleLoopStr;
  let p be Polynomial of L;
  let n be Nat;
  func p`^n -> sequence of L equals
  (power Polynom-Ring L).(p,n);
  coherence
  proof
    reconsider n as Element of NAT by ORDINAL1:def 12;
    reconsider p1 = p as Element of Polynom-Ring L by POLYNOM3:def 10;
    (power Polynom-Ring L).(p1,n) is Element of Polynom-Ring L;
    hence thesis by POLYNOM3:def 10;
  end;
end;

registration
  let L be Abelian add-associative right_zeroed right_complementable
  right_unital commutative distributive non empty doubleLoopStr;
  let p be Polynomial of L;
  let n be Nat;
  cluster p`^n -> finite-Support;
  coherence
  proof
    reconsider n as Element of NAT by ORDINAL1:def 12;
    reconsider p1 = p as Element of Polynom-Ring L by POLYNOM3:def 10;
    (power Polynom-Ring L).(p1,n) is Polynomial of L by POLYNOM3:def 10;
    hence thesis;
  end;
end;

theorem Th15:
  for L be Abelian add-associative right_zeroed
  right_complementable well-unital commutative distributive non empty
  doubleLoopStr for p be Polynomial of L holds p`^0 = 1_.(L)
proof
  let L be Abelian add-associative right_zeroed right_complementable
  well-unital commutative distributive non empty doubleLoopStr;
  let p be Polynomial of L;
  reconsider p1=p as Element of Polynom-Ring L by POLYNOM3:def 10;
  thus p`^0 = (power Polynom-Ring L).(p1,0)
    .= 1_(Polynom-Ring L) by GROUP_1:def 7
    .= 1_.(L) by POLYNOM3:37;
end;

theorem
  for L be Abelian add-associative right_zeroed right_complementable
  well-unital commutative distributive non empty doubleLoopStr for p be
  Polynomial of L holds p`^1 = p
proof
  let L be Abelian add-associative right_zeroed right_complementable
  well-unital commutative distributive non empty doubleLoopStr;
  let p be Polynomial of L;
  reconsider p1=p as Element of Polynom-Ring L by POLYNOM3:def 10;
  thus p`^1 = (power Polynom-Ring L).(p1,0+1)
    .= (power Polynom-Ring L).(p1,0)*p1 by GROUP_1:def 7
    .= (1_Polynom-Ring L)*p1 by GROUP_1:def 7
    .= p;
end;

theorem
  for L be Abelian add-associative right_zeroed right_complementable
  well-unital commutative distributive non empty doubleLoopStr for p be
  Polynomial of L holds p`^2 = p*'p
proof
  let L be Abelian add-associative right_zeroed right_complementable
  well-unital commutative distributive non empty doubleLoopStr;
  let p be Polynomial of L;
  reconsider p1=p as Element of Polynom-Ring L by POLYNOM3:def 10;
  thus p`^2 = (power Polynom-Ring L).(p1,1+1)
    .= power(p1,0+1)*p1 by GROUP_1:def 7
    .= (power Polynom-Ring L).(p1,0)*p1*p1 by GROUP_1:def 7
    .= (1_Polynom-Ring L)*p1*p1 by GROUP_1:def 7
    .= p1*p1
    .= p*'p by POLYNOM3:def 10;
end;

theorem
  for L be Abelian add-associative right_zeroed right_complementable
  well-unital commutative distributive non empty doubleLoopStr for p be
  Polynomial of L holds p`^3 = p*'p*'p
proof
  let L be Abelian add-associative right_zeroed right_complementable
  well-unital commutative distributive non empty doubleLoopStr;
  let p be Polynomial of L;
  reconsider p1=p as Element of Polynom-Ring L by POLYNOM3:def 10;
  reconsider pp=p1*p1 as Polynomial of L by POLYNOM3:def 10;
  thus p`^3 = (power Polynom-Ring L).(p1,2+1)
    .= power(p1,1+1)*p1 by GROUP_1:def 7
    .= power(p1,0+1)*p1*p1 by GROUP_1:def 7
    .= (power Polynom-Ring L).(p1,0)*p1*p1*p1 by GROUP_1:def 7
    .= (1_Polynom-Ring L)*p1*p1*p1 by GROUP_1:def 7
    .= p1*p1*p1
    .= pp*'p by POLYNOM3:def 10
    .= p*'p*'p by POLYNOM3:def 10;
end;

theorem Th19:
  for L be Abelian add-associative right_zeroed
  right_complementable well-unital commutative distributive non empty
     doubleLoopStr for p be Polynomial of L
   for n be Nat holds p`^(n+1) = (p`^n)*'p
proof
  let L be Abelian add-associative right_zeroed right_complementable
    well-unital commutative distributive non empty doubleLoopStr;
  let p be Polynomial of L;
  let n be Nat;
  reconsider nn=n as Element of NAT by ORDINAL1:def 12;
  reconsider p1=p as Element of Polynom-Ring L by POLYNOM3:def 10;
  thus p`^(n+1) = (power Polynom-Ring L).(p1,nn)*p1 by GROUP_1:def 7
    .= (p`^n)*'p by POLYNOM3:def 10;
end;

theorem Th20:
  for L be Abelian add-associative right_zeroed
  right_complementable well-unital commutative distributive non empty
  doubleLoopStr for n be Element of NAT holds 0_.(L)`^(n+1) = 0_.(L)
proof
  let L be Abelian add-associative right_zeroed right_complementable
  well-unital commutative distributive non empty doubleLoopStr;
  let n be Element of NAT;
  thus 0_.(L)`^(n+1) = (0_.(L)`^n)*'0_.(L) by Th19
    .= 0_.(L) by POLYNOM3:34;
end;

theorem
  for L be Abelian add-associative right_zeroed right_complementable
     well-unital commutative distributive non empty doubleLoopStr
  for n be Nat holds 1_.(L)`^n = 1_.(L)
proof
  let L be Abelian add-associative right_zeroed right_complementable
  well-unital commutative distributive non empty doubleLoopStr;
  defpred P[Nat] means 1_.(L)`^$1 = 1_.(L);
A1: now
    let n be Nat;
    assume P[n];
    then 1_.(L)`^(n+1) = (1_.(L))*'1_.(L) by Th19
      .= 1_.(L) by POLYNOM3:35;
    hence P[n+1];
  end;
A2: P[0] by Th15;
  thus for n be Nat holds P[n] from NAT_1:sch 2(A2,A1);
end;

theorem Th22:
  for L be non degenerated commutative
    Abelian add-associative right_zeroed right_complementable
      associative well-unital distributive non empty doubleLoopStr
  for p be Polynomial of L for x be Element of L
  for n be Nat holds eval(p`^n,x) = (power L).(eval(p,x),n)
proof
  let L be non degenerated commutative
    Abelian add-associative right_zeroed right_complementable
      associative well-unital distributive non empty doubleLoopStr;
  let p be Polynomial of L;
  let x be Element of L;
  defpred P[Nat] means eval(p`^$1,x) = (power L).(eval(p,x),$1);
A1: now
    let n be Nat;
    assume
A2: P[n];
    eval(p`^(n+1),x) = eval((p`^n)*'p,x) by Th19
      .= (power L).(eval(p,x),n)*eval(p,x) by A2,POLYNOM4:24
      .= (power L).(eval(p,x),n+1) by GROUP_1:def 7;
    hence P[n+1];
  end;
  eval(p`^0,x) = eval(1_.(L),x) by Th15
    .= 1_(L) by POLYNOM4:18
    .= (power L).(eval(p,x),0) by GROUP_1:def 7;
  then
A3: P[0];
  thus for n be Nat holds P[n] from NAT_1:sch 2(A3,A1);
end;

Lm2: for L being non empty ZeroStr, p being AlgSequence of L st len p > 0
holds p.(len p -'1) <> 0.L
proof
  let L be non empty ZeroStr, p be AlgSequence of L;
  assume len p > 0;
  then ex k being Nat st len p = k+1 by NAT_1:6;
  then len p = (len p -'1)+1 by NAT_D:34;
  hence thesis by ALGSEQ_1:10;
end;

theorem Th23:
  for L be domRing for p be Polynomial of L st len p <> 0
   for n be Nat holds len(p`^n) = n*len p-n+1
proof
  let L be domRing;
  let p be Polynomial of L;
  defpred P[Nat] means len(p`^$1) = $1*len p-$1+1;
  assume
A1: len p <> 0;
A2: now
    len p >= 0+1 by A1,NAT_1:13;
    then len p-1 >= 0+1-1;
    then
A3: len p-'1 = len p-1 by XREAL_0:def 2;
A4: p.(len p -'1) <> 0.L by A1,Lm2;
    let n be Nat;
    assume
A5: P[n];
    n*(len p-'1)+1 >= 0+1 by XREAL_1:6;
    then (p`^n).(len (p`^n)-'1) <> 0.L by A5,A3,Lm2;
    then
A6: (p`^n).(len (p`^n)-'1) * p.(len p -'1) <> 0.L by A4,VECTSP_2:def 1;
    len(p`^(n+1)) = len((p`^n)*'p) by Th19
      .= n*len p - n + 1 + len p - 1 by A5,A6,POLYNOM4:10
      .= (n+1)*len p - (n+1) + 1;
    hence P[n+1];
  end;
  len(p`^0) = len(1_.(L)) by Th15
    .= 0*len p-0+1 by POLYNOM4:4;
  then
A7: P[0];
  thus for n be Nat holds P[n] from NAT_1:sch 2(A7,A2);
end;

definition
  let L be non empty multMagma;
  let p be sequence of L;
  let v be Element of L;
  func v*p -> sequence of L means
  :Def4:
  for n be Element of NAT holds it.n = v*p.n;
  existence
  proof
    deffunc F(Element of NAT) = v*p.$1;
    consider r be sequence of L such that
A1: for n be Element of NAT holds r.n = F(n) from FUNCT_2:sch 4;
    take r;
    thus thesis by A1;
  end;
  uniqueness
  proof
    let p1,p2 be sequence of L such that
A2: for n be Element of NAT holds p1.n = v*p.n and
A3: for n be Element of NAT holds p2.n = v*p.n;
    now
      let k be Element of NAT;
      thus p1.k = v*p.k by A2
        .= p2.k by A3;
    end;
    hence p1 = p2 by FUNCT_2:63;
  end;
end;

registration
  let L be add-associative right_zeroed right_complementable
  right-distributive non empty doubleLoopStr;
  let p be Polynomial of L;
  let v be Element of L;
  cluster v*p -> finite-Support;
  coherence
  proof
    take s = len p;
    let i be Nat;
    assume
A1: i >= s;
    reconsider ii=i as Element of NAT by ORDINAL1:def 12;
    thus (v*p).i = v*p.ii by Def4
      .= v*0.L by A1,ALGSEQ_1:8
      .= 0.L;
  end;
end;

theorem Th24:
  for L be add-associative right_zeroed right_complementable
distributive non empty doubleLoopStr for p be Polynomial of L holds len (0.L*
  p) = 0
proof
  let L be add-associative right_zeroed right_complementable distributive non
  empty doubleLoopStr;
  let p be Polynomial of L;
  0 is_at_least_length_of (0.L*p)
  proof
    let i be Nat;
    assume i>=0;
    reconsider ii=i as Element of NAT by ORDINAL1:def 12;
    thus (0.L*p).i = 0.L*p.ii by Def4
      .= 0.L;
  end;
  hence thesis by ALGSEQ_1:def 3;
end;

theorem Th25:
  for L be add-associative right_zeroed right_complementable
  well-unital commutative associative distributive almost_left_invertible non
empty doubleLoopStr for p be Polynomial of L for v be Element of L st v <> 0.L
  holds len (v*p) = len p
proof
  let L be add-associative right_zeroed right_complementable well-unital
  commutative associative distributive almost_left_invertible non empty
  doubleLoopStr;
  let p be Polynomial of L;
  let v be Element of L;
  assume
A1: v <> 0.L;
A2: now
    let n be Nat;
    assume
A3: n is_at_least_length_of v*p;
    n is_at_least_length_of p
    proof
      let i be Nat;
      reconsider i1=i as Element of NAT by ORDINAL1:def 12;
      assume i >= n;
      then (v*p).i = 0.L by A3;
      then v*p.i1 = 0.L by Def4;
      hence thesis by A1,VECTSP_1:12;
    end;
    hence len p <= n by ALGSEQ_1:def 3;
  end;
  len p is_at_least_length_of (v*p)
  proof
    let i be Nat;
    assume
A4: i >= len p;
    reconsider ii=i as Element of NAT by ORDINAL1:def 12;
    thus (v*p).i = v*p.ii by Def4
      .= v*0.L by A4,ALGSEQ_1:8
      .= 0.L;
  end;
  hence thesis by A2,ALGSEQ_1:def 3;
end;

theorem Th26:
  for L be add-associative right_zeroed right_complementable
left-distributive non empty doubleLoopStr for p be sequence of L holds 0.L*p
  = 0_.(L)
proof
  let L be add-associative right_zeroed right_complementable left-distributive
  non empty doubleLoopStr;
  let p be sequence of L;
   for n being Element of NAT holds (0_.(L)).n = 0.L*p.n by FUNCOP_1:7;
  hence thesis by Def4;
end;

theorem Th27:
  for L be well-unital non empty multLoopStr for p be sequence
  of L holds 1.L*p = p
proof
  let L be well-unital non empty multLoopStr;
  let p be sequence of L;
  for n be Element of NAT holds p.n = 1.L*p.n;
  hence thesis by Def4;
end;

theorem Th28:
  for L be add-associative right_zeroed right_complementable
right-distributive non empty doubleLoopStr for v be Element of L holds v*0_.(
  L) = 0_.(L)
proof
  let L be add-associative right_zeroed right_complementable
  right-distributive non empty doubleLoopStr;
  let v be Element of L;
  now
    let n be Element of NAT;
    thus (0_.(L)).n = 0.L by FUNCOP_1:7
      .= v*0.L
      .= v*(0_.(L)).n by FUNCOP_1:7;
  end;
  hence thesis by Def4;
end;

theorem Th29:
  for L be add-associative right_zeroed right_complementable
well-unital right-distributive non empty doubleLoopStr for v be Element of L
  holds v*1_.(L) = <%v%>
proof
  let L be add-associative right_zeroed right_complementable well-unital
  right-distributive non empty doubleLoopStr;
  let v be Element of L;
  now
    let n be Element of NAT;
    per cases;
    suppose
A1:   n=0;
      hence <%v%>.n = v by ALGSEQ_1:def 5
        .= v*1.L
        .= v*(1_.(L)).n by A1,POLYNOM3:30;
    end;
    suppose
A2:   n<>0;
A3:   len <%v%> <= 1 by ALGSEQ_1:def 5;
      n >= 0+1 by A2,NAT_1:13;
      hence <%v%>.n = 0.L by A3,ALGSEQ_1:8,XXREAL_0:2
        .= v*0.L
        .= v*(1_.(L)).n by A2,POLYNOM3:30;
    end;
  end;
  hence thesis by Def4;
end;

theorem Th30:
  for L be add-associative right_zeroed right_complementable
  well-unital distributive commutative associative almost_left_invertible non
  empty doubleLoopStr for p be Polynomial of L for v,x be Element of L holds
  eval(v*p,x) = v*eval(p,x)
proof
  let L be add-associative right_zeroed right_complementable well-unital
  distributive commutative associative almost_left_invertible non empty
  doubleLoopStr;
  let p be Polynomial of L;
  let v,x be Element of L;
  consider F1 be FinSequence of the carrier of L such that
A1: eval(p,x) = Sum F1 and
A2: len F1 = len p and
A3: for n be Element of NAT st n in dom F1 holds F1.n = p.(n-'1) * (
  power L).(x,n-'1) by POLYNOM4:def 2;
  consider F2 be FinSequence of the carrier of L such that
A4: eval(v*p,x) = Sum F2 and
A5: len F2 = len (v*p) and
A6: for n be Element of NAT st n in dom F2 holds F2.n = (v*p).(n-'1) * (
  power L).(x,n-'1) by POLYNOM4:def 2;
  per cases;
  suppose
    v <> 0.L;
    then len F1 = len F2 by A2,A5,Th25;
    then
A7: dom F1 = dom F2 by FINSEQ_3:29;
    now
      let i be object;
      assume
A8:   i in dom F1;
      then reconsider i1=i as Element of NAT;
A9:   p.(i1-'1) * (power L).(x,i1-'1) = F1.i by A3,A8
        .= F1/.i by A8,PARTFUN1:def 6;
      thus F2/.i = F2.i by A7,A8,PARTFUN1:def 6
        .= (v*p).(i1-'1) * (power L).(x,i1-'1) by A6,A7,A8
        .= v*p.(i1-'1) * (power L).(x,i1-'1) by Def4
        .= v*(F1/.i) by A9,GROUP_1:def 3;
    end;
    then F2 = v*F1 by A7,POLYNOM1:def 1;
    hence thesis by A1,A4,POLYNOM1:12;
  end;
  suppose
A10: v = 0.L;
    hence eval(v*p,x) = eval(0_.(L),x) by Th26
      .= 0.L by POLYNOM4:17
      .= v*eval(p,x) by A10;
  end;
end;

theorem Th31:
  for L be add-associative right_zeroed right_complementable
  right-distributive unital non empty doubleLoopStr for p be Polynomial of L
  holds eval(p,0.L) = p.0
proof
  let L be add-associative right_zeroed right_complementable
  right-distributive unital non empty doubleLoopStr;
  let p be Polynomial of L;
  consider F be FinSequence of the carrier of L such that
A1: eval(p,0.L) = Sum F and
A2: len F = len p and
A3: for n be Element of NAT st n in dom F holds F.n = p.(n-'1) * (power
  L).(0.L,n-'1) by POLYNOM4:def 2;
  per cases;
  suppose
    len F > 0;
    then 0+1 <= len F by NAT_1:13;
    then
A4: 1 in dom F by FINSEQ_3:25;
    now
      let i be Element of NAT;
      assume that
A5:   i in dom F and
A6:   i <> 1;
      0+1 <= i by A5,FINSEQ_3:25;
      then i > 0+1 by A6,XXREAL_0:1;
      then i-1 > 0 by XREAL_1:20;
      then
A7:   i-'1 > 0 by XREAL_0:def 2;
      thus F/.i = F.i by A5,PARTFUN1:def 6
        .= p.(i-'1) * (power L).(0.L,i-'1) by A3,A5
        .= p.(i-'1) * 0.L by A7,VECTSP_1:36
        .= 0.L;
    end;
    hence eval(p,0.L) = F/.1 by A1,A4,POLYNOM2:3
      .= F.1 by A4,PARTFUN1:def 6
      .= p.(1-'1) * (power L).(0.L,1-'1) by A3,A4
      .= p.(1-'1) * (power L).(0.L,0) by XREAL_1:232
      .= p.(1-'1) * 1_L by GROUP_1:def 7
      .= p.(1-'1) by GROUP_1:def 4
      .= p.0 by XREAL_1:232;
  end;
  suppose
    len F = 0;
    then
A8: p = 0_.(L) by A2,POLYNOM4:5;
    hence eval(p,0.L) = 0.L by POLYNOM4:17
      .= p.0 by A8,FUNCOP_1:7;
  end;
end;

definition
  let L be non empty ZeroStr;
  let z0,z1 be Element of L;
  func <%z0,z1%> -> sequence of L equals
  0_.(L)+*(0,z0)+*(1,z1);
  coherence;
end;

theorem Th32:
  for L be non empty ZeroStr for z0 be Element of L holds <%z0%>.0
  = z0 & for n be Element of NAT st n >= 1 holds <%z0%>.n = 0.L
proof
  let L be non empty ZeroStr;
  let z0 be Element of L;
  thus <%z0%>.0 = z0 by ALGSEQ_1:def 5;
  let n be Element of NAT;
A1: len <%z0%> <= 1 by ALGSEQ_1:def 5;
  assume n >= 1;
  hence thesis by A1,ALGSEQ_1:8,XXREAL_0:2;
end;

theorem Th33:
  for L be non empty ZeroStr for z0 be Element of L st z0 <> 0.L
  holds len <%z0%> = 1
proof
  let L be non empty ZeroStr;
  let z0 be Element of L;
  assume z0 <> 0.L;
  then <%z0%>.0 <> 0.L by ALGSEQ_1:def 5;
  then <%z0%> <> <%0.L%> by ALGSEQ_1:def 5;
  then len <%z0%> <> 0 by ALGSEQ_1:14;
  then
A1: len <%z0%> >= 0+1 by NAT_1:13;
  assume len <%z0%> <> 1;
  then len <%z0%> > 1 by A1,XXREAL_0:1;
  hence contradiction by ALGSEQ_1:def 5;
end;

theorem Th34:
  for L be non empty ZeroStr holds <%0.L%> = 0_.(L)
proof
  let L be non empty ZeroStr;
  len <%0.L%> = 0 by ALGSEQ_1:14;
  hence thesis by POLYNOM4:5;
end;

theorem Th35:
  for L be add-associative right_zeroed right_complementable
  distributive commutative associative well-unital domRing-like non empty
  doubleLoopStr for x,y be Element of L holds <%x%>*'<%y%> = <%x*y%>
proof
  let L be add-associative right_zeroed right_complementable distributive
  commutative associative well-unital domRing-like non empty doubleLoopStr;
  let x,y be Element of L;
A1: len <%x%> <= 1 by ALGSEQ_1:def 5;
A2: len <%y%> <= 1 by ALGSEQ_1:def 5;
  per cases;
  suppose
A3: len <%x%> <> 0 & len <%y%> <> 0;
    x <> 0.L & y <> 0.L
    proof
      assume x = 0.L or y = 0.L;
      then <%x%> = 0_.(L) or <%y%> = 0_.(L) by Th34;
      hence contradiction by A3,POLYNOM4:3;
    end;
    then x*y <> 0.L by VECTSP_2:def 1;
    then
A4: len <%x*y%> = 1 by Th33;
    consider r be FinSequence of the carrier of L such that
A5: len r = 0+1 and
A6: (<%x%>*'<%y%>).0 = Sum r and
A7: for k be Element of NAT st k in dom r holds r.k = <%x%>.(k-'1) *
    <%y%>.(0+1-'k) by POLYNOM3:def 9;
    1 in dom r by A5,FINSEQ_3:25;
    then r.1 = <%x%>.(1-'1) * <%y%>.(0+1-'1) by A7
      .= <%x%>.0 * <%y%>.(1-'1) by XREAL_1:232
      .= <%x%>.0 * <%y%>.0 by XREAL_1:232
      .= <%x%>.0 * y by ALGSEQ_1:def 5
      .= x*y by ALGSEQ_1:def 5;
    then
A8: r = <*x*y*> by A5,FINSEQ_1:40;
A9: now
      let n be Nat;
      assume n < 1;
      then n < 0+1;
      then
A10:  n = 0 by NAT_1:13;
      hence (<%x%>*'<%y%>).n = x*y by A6,A8,RLVECT_1:44
        .= <%x*y%>.n by A10,ALGSEQ_1:def 5;
    end;
    <%x%>.(len <%x%> -'1) <> 0.L & <%y%>.(len <%y%> -'1) <> 0.L by A3,Lm2;
    then
A11: <%x%>.(len <%x%> -'1)*<%y%>.(len <%y%> -'1)<>0.L by VECTSP_2:def 1;
    len <%y%> >= 0+1 by A3,NAT_1:13;
    then
A12: len <%y%> = 1 by A2,XXREAL_0:1;
    len <%x%> >= 0+1 by A3,NAT_1:13;
    then len <%x%> = 1 by A1,XXREAL_0:1;
    then len (<%x%>*'<%y%>) = 1+1-1 by A12,A11,POLYNOM4:10;
    hence thesis by A9,A4,ALGSEQ_1:12;
  end;
  suppose
A13: len <%x%> = 0;
    then
A14: x=0.L by Th33;
    <%x%> = 0_.(L) by A13,POLYNOM4:5;
    hence <%x%>*'<%y%> = 0_.(L) by POLYNOM4:2
      .= <%0.L%> by Th34
      .= <%x*y%> by A14;
  end;
  suppose
A15: len <%y%> = 0;
    then
A16: y=0.L by Th33;
    <%y%> = 0_.(L) by A15,POLYNOM4:5;
    hence <%x%>*'<%y%> = 0_.(L) by POLYNOM3:34
      .= <%0.L%> by Th34
      .= <%x*y%> by A16;
  end;
end;

theorem Th36:
  for L be Abelian add-associative right_zeroed
  right_complementable well-unital associative commutative distributive
almost_left_invertible non empty doubleLoopStr for x be Element of L
  for n be Nat holds <%x%>`^n = <%power(x,n)%>
proof
  let L be Abelian add-associative right_zeroed right_complementable
  well-unital associative commutative distributive almost_left_invertible non
  empty doubleLoopStr;
  let x be Element of L;
  defpred P[Nat] means <%x%>`^$1 = <%power(x,$1)%>;
A1: for n be Nat st P[n] holds P[n+1]
  proof
    let n be Nat;
    assume <%x%>`^n = <%power(x,n)%>;
    hence <%x%>`^(n+1) = <%(power L).(x,n)%>*'<%x%> by Th19
      .= <%(power L).(x,n)*x%> by Th35
      .= <%power(x,n+1)%> by GROUP_1:def 7;
  end;
  <%x%>`^0 = 1_.(L) by Th15
    .= 1.L*1_.(L) by Th27
    .= <%1_L%> by Th29
    .= <%(power L).(x,0)%> by GROUP_1:def 7;
  then
A2: P[0];
  thus for n be Nat holds P[n] from NAT_1:sch 2(A2,A1);
end;

theorem
  for L be add-associative right_zeroed right_complementable unital non
  empty doubleLoopStr for z0,x be Element of L holds eval(<%z0%>,x) = z0
proof
  let L be add-associative right_zeroed right_complementable unital non empty
  doubleLoopStr;
  let z0,x be Element of L;
  consider F be FinSequence of the carrier of L such that
A1: eval(<%z0%>,x) = Sum F and
A2: len F = len <%z0%> and
A3: for n be Element of NAT st n in dom F holds F.n = <%z0%>.(n-'1) * (
  power L).(x,n-'1) by POLYNOM4:def 2;
A4: len F <= 1 by A2,ALGSEQ_1:def 5;
  per cases by A4,NAT_1:25;
  suppose
    len F = 0;
    then
A5: <%z0%> = 0_.(L) by A2,POLYNOM4:5;
    hence eval(<%z0%>,x) = 0.L by POLYNOM4:17
      .= (0_.(L)).0 by FUNCOP_1:7
      .= z0 by A5,Th32;
  end;
  suppose
A6: len F = 1;
    then 0+1 in Seg len F by FINSEQ_1:4;
    then 1 in dom F by FINSEQ_1:def 3;
    then F.1 = <%z0%>.(1-'1) * (power L).(x,1-'1) by A3
      .= <%z0%>.0 * (power L).(x,1-'1) by XREAL_1:232
      .= <%z0%>.0 * (power L).(x,0) by XREAL_1:232
      .= z0 * (power L).(x,0) by Th32
      .= z0 * 1_L by GROUP_1:def 7
      .= z0 by GROUP_1:def 4;
    then F = <*z0*> by A6,FINSEQ_1:40;
    hence thesis by A1,RLVECT_1:44;
  end;
end;

theorem Th38:
  for L be non empty ZeroStr for z0,z1 be Element of L holds <%z0,
z1%>.0 = z0 & <%z0,z1%>.1 = z1 & for n be Nat st n >= 2 holds <%z0,z1%>.n = 0.L
proof
  let L be non empty ZeroStr;
  let z0,z1 be Element of L;
  0 in NAT;
  then
A1: 0 in dom 0_.(L) by FUNCT_2:def 1;
  thus <%z0,z1%>.0 = (0_.(L)+*(0,z0)).0 by FUNCT_7:32
    .= z0 by A1,FUNCT_7:31;
  1 in NAT;
  then 1 in dom (0_.(L)+*(0,z0)) by FUNCT_2:def 1;
  hence <%z0,z1%>.1 = z1 by FUNCT_7:31;
  let n be Nat;
A2: n in NAT by ORDINAL1:def 12;
  assume
A3: n >= 2;
  then n >= 1+1;
  then n > 0+1 by NAT_1:13;
  hence <%z0,z1%>.n = (0_.(L)+*(0,z0)).n by FUNCT_7:32
    .= (0_.(L)).n by A3,FUNCT_7:32
    .= 0.L by A2,FUNCOP_1:7;
end;

registration
  let L be non empty ZeroStr;
  let z0,z1 be Element of L;
  cluster <%z0,z1%> -> finite-Support;
  coherence
  proof
    take 2;
    let n be Nat;
    thus thesis by Th38;
  end;
end;

theorem Th39:
  for L be non empty ZeroStr for z0,z1 be Element of L holds len <%z0,z1%> <= 2
proof
  let L be non empty ZeroStr;
  let z0,z1 be Element of L;
  2 is_at_least_length_of <%z0,z1%>
  by Th38;
  hence thesis by ALGSEQ_1:def 3;
end;

theorem Th40:
  for L be non empty ZeroStr for z0,z1 be Element of L st z1 <> 0.
  L holds len <%z0,z1%> = 2
proof
  let L be non empty ZeroStr;
  let z0,z1 be Element of L;
  assume z1 <> 0.L;
  then <%z0,z1%>.1 <> 0.L by Th38;
  then
A1: for n be Nat st n is_at_least_length_of <%z0,z1%> holds 1+1 <= n
    by NAT_1:13;
  2 is_at_least_length_of <%z0,z1%> by Th38;
  hence thesis by A1,ALGSEQ_1:def 3;
end;

theorem Th41:
  for L be non empty ZeroStr for z0 be Element of L st z0 <> 0.L
  holds len <%z0,0.L%> = 1
proof
  let L be non empty ZeroStr;
  let z0 be Element of L;
A1: 1 is_at_least_length_of <%z0,0.L%>
  proof
    let n be Nat;
    assume
A2: n >= 1;
    per cases by A2,XXREAL_0:1;
    suppose
      n = 1;
      hence thesis by Th38;
    end;
    suppose
      n > 1;
      then n >= 1+1 by NAT_1:13;
      hence thesis by Th38;
    end;
  end;
  assume z0 <> 0.L;
  then <%z0,0.L%>.0 <> 0.L by Th38;
  then for n be Nat st n is_at_least_length_of <%z0,0.L%> holds 0+1 <= n
  by NAT_1:13;
  hence thesis by A1,ALGSEQ_1:def 3;
end;

theorem Th42:
  for L be non empty ZeroStr holds <%0.L,0.L%> = 0_.(L)
proof
  let L be non empty ZeroStr;
  0 is_at_least_length_of <%0.L,0.L%>
  proof
    let n be Nat;
    assume n >= 0;
    per cases;
    suppose
      n = 0;
      hence thesis by Th38;
    end;
    suppose
      n > 0;
      then
A1:   n >= 0+1 by NAT_1:13;
      now
        per cases by A1,XXREAL_0:1;
        suppose
          n = 1;
          hence thesis by Th38;
        end;
        suppose
          n > 1;
          then n >= 1+1 by NAT_1:13;
          hence thesis by Th38;
        end;
      end;
      hence thesis;
    end;
  end;
  then len <%0.L,0.L%> = 0 by ALGSEQ_1:def 3;
  hence thesis by POLYNOM4:5;
end;

theorem
  for L be non empty ZeroStr for z0 be Element of L holds <%z0,0.L%> = <%z0%>
proof
  let L be non empty ZeroStr;
  let z0 be Element of L;
  per cases;
  suppose
A1: z0 = 0.L;
    hence <%z0,0.L%> = 0_.(L) by Th42
      .= <%z0%> by A1,Th34;
  end;
  suppose
A2: z0 <> 0.L;
    then
A3: len <%z0%> = 0+1 by Th33;
A4: now
      let n be Nat;
      assume n < len <%z0%>;
      then
A5:   n = 0 by A3,NAT_1:13;
      hence <%z0,0.L%>.n = z0 by Th38
        .= <%z0%>.n by A5,ALGSEQ_1:def 5;
    end;
    len <%z0,0.L%> = 1 by A2,Th41;
    hence thesis by A2,A4,Th33,ALGSEQ_1:12;
  end;
end;

theorem Th44:
  for L be add-associative right_zeroed right_complementable
left-distributive unital non empty doubleLoopStr for z0,z1,x be Element of L
  holds eval(<%z0,z1%>,x) = z0+z1*x
proof
  let L be add-associative right_zeroed right_complementable left-distributive
  unital non empty doubleLoopStr;
  let z0,z1,x be Element of L;
  consider F be FinSequence of the carrier of L such that
A1: eval(<%z0,z1%>,x) = Sum F and
A2: len F = len <%z0,z1%> and
A3: for n be Element of NAT st n in dom F holds F.n = <%z0,z1%>.(n-'1) *
  (power L).(x,n-'1) by POLYNOM4:def 2;
  len F <= 2 by A2,Th39;
  then len F = 0 or ... or len F = 2;
  then per cases;
  suppose
    len F = 0;
    then
A4: <%z0,z1%> = 0_.(L) by A2,POLYNOM4:5;
    hence eval(<%z0,z1%>,x) = 0.L by POLYNOM4:17
      .= (0_.(L)).0 by FUNCOP_1:7
      .= z0 by A4,Th38
      .= z0 + 0.L by RLVECT_1:def 4
      .= z0 + 0.L*x
      .= z0 + (0_.(L)).1*x by FUNCOP_1:7
      .= z0 + z1*x by A4,Th38;
  end;
  suppose
A5: len F = 1;
    then 0+1 in Seg len F by FINSEQ_1:4;
    then 1 in dom F by FINSEQ_1:def 3;
    then F.1 = <%z0,z1%>.(1-'1) * (power L).(x,1-'1) by A3
      .= <%z0,z1%>.0 * (power L).(x,1-'1) by XREAL_1:232
      .= <%z0,z1%>.0 * (power L).(x,0) by XREAL_1:232
      .= z0 * (power L).(x,0) by Th38
      .= z0 * 1_L by GROUP_1:def 7
      .= z0 by GROUP_1:def 4;
    then F = <*z0*> by A5,FINSEQ_1:40;
    hence eval(<%z0,z1%>,x) = z0 by A1,RLVECT_1:44
      .= z0 + 0.L by RLVECT_1:def 4
      .= z0 + 0.L*x
      .= z0 + <%z0,z1%>.1*x by A2,A5,ALGSEQ_1:8
      .= z0 + z1*x by Th38;
  end;
  suppose
A6: len F = 2;
    then 1 in dom F by FINSEQ_3:25;
    then
A7: F.1 = <%z0,z1%>.(1-'1) * (power L).(x,1-'1) by A3
      .= <%z0,z1%>.0 * (power L).(x,1-'1) by XREAL_1:232
      .= <%z0,z1%>.0 * (power L).(x,0) by XREAL_1:232
      .= z0 * (power L).(x,0) by Th38
      .= z0 * 1_L by GROUP_1:def 7
      .= z0 by GROUP_1:def 4;
A8: 2-'1 = 2-1 by XREAL_0:def 2;
    2 in dom F by A6,FINSEQ_3:25;
    then F.2 = <%z0,z1%>.(2-'1) * (power L).(x,2-'1) by A3
      .= z1 * (power L).(x,1) by A8,Th38
      .= z1 * x by GROUP_1:50;
    then F = <*z0,z1*x*> by A6,A7,FINSEQ_1:44;
    hence thesis by A1,RLVECT_1:45;
  end;
end;

theorem
  for L be add-associative right_zeroed right_complementable
left-distributive well-unital non empty doubleLoopStr for z0,z1,x be Element
  of L holds eval(<%z0,0.L%>,x) = z0
proof
  let L be add-associative right_zeroed right_complementable left-distributive
  well-unital non empty doubleLoopStr;
  let z0,z1,x be Element of L;
  thus eval(<%z0,0.L%>,x) = z0+0.L*x by Th44
    .= z0+0.L
    .= z0 by RLVECT_1:def 4;
end;

theorem
  for L be add-associative right_zeroed right_complementable
left-distributive unital non empty doubleLoopStr for z0,z1,x be Element of L
  holds eval(<%0.L,z1%>,x) = z1*x
proof
  let L be add-associative right_zeroed right_complementable left-distributive
  unital non empty doubleLoopStr;
  let z0,z1,x be Element of L;
  thus eval(<%0.L,z1%>,x) = 0.L+z1*x by Th44
    .= z1*x by RLVECT_1:4;
end;

theorem Th47:
  for L be add-associative right_zeroed right_complementable
left-distributive well-unital non empty doubleLoopStr for z0,z1,x be Element
  of L holds eval(<%z0,1.L%>,x) = z0+x
proof
  let L be add-associative right_zeroed right_complementable left-distributive
  well-unital non empty doubleLoopStr;
  let z0,z1,x be Element of L;
  thus eval(<%z0,1.L%>,x) = z0+1.L*x by Th44
    .= z0+x;
end;

theorem
  for L be add-associative right_zeroed right_complementable
left-distributive well-unital non empty doubleLoopStr for z0,z1,x be Element
  of L holds eval(<%0.L,1.L%>,x) = x
proof
  let L be add-associative right_zeroed right_complementable left-distributive
  well-unital non empty doubleLoopStr;
  let z0,z1,x be Element of L;
  thus eval(<%0.L,1.L%>,x) = 0.L+1.L*x by Th44
    .= 0.L+x
    .= x by RLVECT_1:4;
end;

begin  :: Substitution in Polynomials

definition
  let L be Abelian add-associative right_zeroed right_complementable
  well-unital commutative distributive non empty doubleLoopStr;
  let p,q be Polynomial of L;
  func Subst(p,q) -> Polynomial of L means
  :Def6:
  ex F be FinSequence of the
  carrier of Polynom-Ring L st it = Sum F & len F = len p & for n be Element of
  NAT st n in dom F holds F.n = p.(n-'1)*(q`^(n-'1));
  existence
  proof
    defpred P[Nat,set] means $2 = p.($1-'1)*(q`^($1-'1));
    set k = len p;
A1: now
      let n be Nat;
      assume n in Seg k;
      reconsider x = p.(n-'1)*(q`^(n-'1)) as Element of Polynom-Ring L by
POLYNOM3:def 10;
      take x;
      thus P[n,x];
    end;
    consider F being FinSequence of the carrier of Polynom-Ring L such that
A2: dom F = Seg k & for n be Nat st n in Seg k holds P[n,F.n] from
    FINSEQ_1:sch 5(A1);
    reconsider r=Sum F as Polynomial of L by POLYNOM3:def 10;
    take r,F;
    thus thesis by A2,FINSEQ_1:def 3;
  end;
  uniqueness
  proof
    let y1,y2 be Polynomial of L;
    given F1 be FinSequence of the carrier of Polynom-Ring L such that
A3: y1 = Sum F1 and
A4: len F1 = len p and
A5: for n be Element of NAT st n in dom F1 holds F1.n = p.(n-'1)*(q`^( n-'1));
    given F2 be FinSequence of the carrier of Polynom-Ring L such that
A6: y2 = Sum F2 and
A7: len F2 = len p and
A8: for n be Element of NAT st n in dom F2 holds F2.n = p.(n-'1)*(q`^( n-'1));
A9: dom F1 = Seg len F1 by FINSEQ_1:def 3;
    now
      let n be Nat;
      assume
A10:  n in dom F1;
      then
A11:  n in dom F2 by A4,A7,A9,FINSEQ_1:def 3;
      thus F1.n = p.(n-'1)*(q`^(n-'1)) by A5,A10
        .= F2.n by A8,A11;
    end;
    hence y1 = y2 by A3,A4,A6,A7,FINSEQ_2:9;
  end;
end;

theorem Th49:
  for L be Abelian add-associative right_zeroed
  right_complementable well-unital commutative distributive non empty
  doubleLoopStr for p be Polynomial of L holds Subst(0_.(L),p) = 0_.(L)
proof
  let L be Abelian add-associative right_zeroed right_complementable
  well-unital commutative distributive non empty doubleLoopStr;
  let p be Polynomial of L;
  consider F be FinSequence of the carrier of Polynom-Ring L such that
A1: Subst(0_.(L),p) = Sum F and
  len F = len (0_.(L)) and
A2: for n be Element of NAT st n in dom F holds F.n = (0_.(L)).(n-'1)*(p
  `^(n-'1)) by Def6;
  now
    let n be Element of NAT;
    assume n in dom F;
    hence F.n = (0_.(L)).(n-'1)*(p`^(n-'1)) by A2
      .= 0.L*(p`^(n-'1)) by FUNCOP_1:7
      .= 0_.(L) by Th26
      .= 0.(Polynom-Ring L) by POLYNOM3:def 10;
  end;
  hence Subst(0_.(L),p) = 0.(Polynom-Ring L) by A1,POLYNOM3:1
    .= 0_.(L) by POLYNOM3:def 10;
end;

theorem
  for L be Abelian add-associative right_zeroed right_complementable
  well-unital commutative distributive non empty doubleLoopStr for p be
  Polynomial of L holds Subst(p,0_.(L)) = <%p.0%>
proof
  let L be Abelian add-associative right_zeroed right_complementable
  well-unital commutative distributive non empty doubleLoopStr;
  let p be Polynomial of L;
  consider F be FinSequence of the carrier of Polynom-Ring L such that
A1: Subst(p,0_.(L)) = Sum F and
A2: len F = len p and
A3: for n be Element of NAT st n in dom F holds F.n = p.(n-'1)*((0_.(L))
  `^(n-'1)) by Def6;
  per cases;
  suppose
    len F <> 0;
    then 0+1 <= len F by NAT_1:13;
    then
A4: 1 in dom F by FINSEQ_3:25;
    now
      let n be Element of NAT;
      assume that
A5:   n in dom F and
A6:   n <> 1;
      n >= 1 by A5,FINSEQ_3:25;
      then
A7:   n > 0+1 by A6,XXREAL_0:1;
      then n >= 1+1 by NAT_1:13;
      then
A8:   n-2 >= 1+1-2 by XREAL_1:9;
      n-1 >= 0 by A7;
      then
A9:   n-'1 = n-(1+1)+1 by XREAL_0:def 2
        .= n-'2+1 by A8,XREAL_0:def 2;
      thus F/.n = F.n by A5,PARTFUN1:def 6
        .= p.(n-'1)*((0_.(L))`^(n-'1)) by A3,A5
        .= p.(n-'1)*(0_.(L)) by A9,Th20
        .= 0_.(L) by Th28
        .= 0.(Polynom-Ring L) by POLYNOM3:def 10;
    end;
    hence Subst(p,0_.(L)) = F/.1 by A1,A4,POLYNOM2:3
      .= F.1 by A4,PARTFUN1:def 6
      .= p.(1-'1)*((0_.(L))`^(1-'1)) by A3,A4
      .= p.(1-'1)*((0_.(L))`^0) by XREAL_1:232
      .= p.0*((0_.(L))`^0) by XREAL_1:232
      .= p.0*(1_.(L)) by Th15
      .= <%p.0%> by Th29;
  end;
  suppose
    len F = 0;
    then
A10: p = 0_.(L) by A2,POLYNOM4:5;
    hence Subst(p,0_.(L)) = 0_.(L) by Th49
      .= <%0.L%> by Th34
      .= <%p.0%> by A10,FUNCOP_1:7;
  end;
end;

theorem
  for L be Abelian add-associative right_zeroed right_complementable
  well-unital associative commutative distributive almost_left_invertible non
  empty doubleLoopStr for p be Polynomial of L for x be Element of L holds len
  Subst(p,<%x%>) <= 1
proof
  let L be Abelian add-associative right_zeroed right_complementable
  well-unital associative commutative distributive almost_left_invertible non
  empty doubleLoopStr;
  let p be Polynomial of L;
  let x be Element of L;
  now
    now
      consider F be FinSequence of the carrier of Polynom-Ring L such that
A1:   Subst(p,<%x%>) = Sum F and
      len F = len p and
A2:   for n be Element of NAT st n in dom F holds F.n = p.(n-'1)*(<%x
      %>`^(n-'1)) by Def6;
      defpred P[Nat] means for p be Polynomial of L st p = Sum(F|$1) holds len
      p <= 1;
A3:   for n be Nat st P[n] holds P[n+1]
      proof
        let n be Nat;
        reconsider nn=n as Element of NAT by ORDINAL1:def 12;
        reconsider F1 = Sum(F|n) as Polynomial of L by POLYNOM3:def 10;
        reconsider maxFq = max(len F1,len (p.nn*(<%x%>`^n)))
                 as Element of NAT
        by ORDINAL1:def 12;
A4:     len (p.nn*(<%x%>`^n)) <= 1
        proof
          per cases;
          suppose
            p.n <> 0.L;
            then len (p.nn*(<%x%>`^n)) = len (<%x%>`^n) by Th25
              .= len <%power(x,n)%> by Th36;
            hence thesis by ALGSEQ_1:def 5;
          end;
          suppose
            p.n = 0.L;
            hence thesis by Th24;
          end;
        end;
        assume
A5:     for q be Polynomial of L st q = Sum(F|n) holds len q <= 1;
        then len F1 <= 1;
        then
A6:     maxFq <= 1 by A4,XXREAL_0:28;
        let q be Polynomial of L;
        assume
A7:     q = Sum(F|(n+1));
A8:     maxFq >= len F1 & maxFq >= len (p.nn*(<%x%>`^n)) by XXREAL_0:25;
        now
          per cases;
          suppose
A9:         n+1 <= len F;
            n+1 >= 1 by NAT_1:11;
            then
A10:        n+1 in dom F by A9,FINSEQ_3:25;
            then
A11:        F/.(n+1) = F.(n+1) by PARTFUN1:def 6
              .= p.(n+1-'1)*(<%x%>`^(n+1-'1)) by A2,A10
              .= p.nn*(<%x%>`^(n+1-'1)) by NAT_D:34
              .= p.nn*(<%x%>`^n) by NAT_D:34;
            F|(n+1) = F|n ^ <*F/.(n+1)*> by A9,FINSEQ_5:82;
            then q = Sum(F|n) + F/.(n+1) by A7,FVSUM_1:71
              .= F1 + p.nn*(<%x%>`^n) by A11,POLYNOM3:def 10;
            then len q <= maxFq by A8,POLYNOM4:6;
            hence thesis by A6,XXREAL_0:2;
          end;
          suppose
A12:        n+1 > len F;
            then n >= len F by NAT_1:13;
            then
A13:        F|n = F by FINSEQ_1:58;
            F|(n+1) = F by A12,FINSEQ_1:58;
            hence thesis by A5,A7,A13;
          end;
        end;
        hence thesis;
      end;
A14:  F|(len F) = F by FINSEQ_1:58;
A15:  P[0]
      proof
        let p be Polynomial of L;
A16:    F|0 = <*>the carrier of Polynom-Ring L;
        assume p = Sum(F|0);
        then p = 0.(Polynom-Ring L) by A16,RLVECT_1:43
          .= 0_.(L) by POLYNOM3:def 10;
        hence thesis by POLYNOM4:3;
      end;
      for n be Nat holds P[n] from NAT_1:sch 2(A15,A3);
      hence thesis by A1,A14;
    end;
    hence thesis;
  end;
  hence thesis;
end;

theorem Th52:
  for L be Field for p,q be Polynomial of L st len p <> 0 & len q
  > 1 holds len Subst(p,q) = (len p)*(len q)-len p-len q+2
proof
  let L be Field;
  let p,q be Polynomial of L;
  assume that
A1: len p <> 0 and
A2: len q > 1;
  consider F be FinSequence of the carrier of Polynom-Ring L such that
A3: Subst(p,q) = Sum F and
A4: len F = len p and
A5: for n be Element of NAT st n in dom F holds F.n = p.(n-'1)*(q`^(n-'1
  )) by Def6;
A6: 0+1 <= len F by A1,A4,NAT_1:13;
  then
A7: 1 in dom F by FINSEQ_3:25;
  reconsider k = len p * len q - len p - len q + 1 as Element of NAT by A1,A2
,Th1,INT_1:3;
  len p >= 0+1 by A1,NAT_1:13;
  then
A8: len p-1 >=0;
A9: len (q`^(len F-'1)) = (len p-'1)*len q - (len p-'1) + 1 by A2,A4,Th23
    .= (len p-'1)*len q-(len p-1)+1 by A8,XREAL_0:def 2
    .= (len p-1)*len q-(len p-1)+1 by A8,XREAL_0:def 2
    .= (len p)*(len q)-len p-len q+(1+1);
A10: len Subst(p,q) >= (len p)*(len q)-len p-len q+(1+1)
  proof
    set lF1 = len F-'1;
    set F1 = F|lF1;
    reconsider sF1 = Sum F1 as Polynomial of L by POLYNOM3:def 10;
A11: len F = lF1+1 by A6,XREAL_1:235;
    then
A12: F = F1^<*F/.len F*> by FINSEQ_5:21;
    then
A13: Sum F = Sum F1 + F/.len F by FVSUM_1:71;
A14: len F = len F1 + 1 by A12,FINSEQ_2:16;
    assume
A15: len Subst(p,q) < (len p)*(len q)-len p-len q+(1+1);
    then len Subst(p,q) < k+1;
    then len Subst(p,q) <= k by NAT_1:13;
    then
A16: Subst(p,q).k = 0.L by ALGSEQ_1:8;
    now
      per cases;
      suppose
A17:    len F1 <> {};
        defpred P[Nat] means for F2 be Polynomial of L st F2 = Sum(F1|$1)
        holds len F2 <= $1*len q-len q-$1+2;
A18:    F1|(len F1) = F1 by FINSEQ_1:58;
A19:    for n be non zero Nat st P[n] holds P[n+1]
        proof
          let n be non zero Nat;
          assume
A20:      for F2 be Polynomial of L st F2 = Sum(F1|n) holds len F2 <=
          n*len q-len q-n+2;
          len q >= 0+(1+1) by A2,NAT_1:13;
          then len q-2 >= 0 by XREAL_1:19;
          then n*len q-n+1+0 <= n*len q-n+1+(len q-2) by XREAL_1:7;
          then
          n*len q-len q-n+2+0 <= n*len q-len q-n+2+1 & n*len q-n+1-(len q
          -2) <= n*len q-n+1 by XREAL_1:6,20;
          then
A21:      n*len q-len q-n+2 <= n*len q-n+1 by XXREAL_0:2;
          reconsider F3 = Sum(F1|n) as Polynomial of L by POLYNOM3:def 10;
          let F2 be Polynomial of L;
          assume
A22:      F2 = Sum(F1|(n+1));
          len F3 <= n*len q-len q-n+2 by A20;
          then
A23:      len F3 <= n*len q-n+1 by A21,XXREAL_0:2;
          now
            per cases;
            suppose
A24:          n+1 <= len F1;
              reconsider nn = n as Element of NAT by ORDINAL1:def 12;
A25:          n+1 >= 1 by NAT_1:11;
              reconsider maxFq = max(len F3,len (p.nn*(q`^nn))) as Element of
              NAT by ORDINAL1:def 12;
A26:          maxFq >= len F3 & maxFq >= len (p.nn*(q`^nn)) by XXREAL_0:25;
              len (p.nn*(q`^nn)) <= n*len q-n+1
              proof
                per cases;
                suppose
                  p.n <> 0.L;
                  then len (p.nn*(q`^nn)) = len (q`^nn) by Th25;
                  hence thesis by A2,Th23;
                end;
                suppose
A27:              p.n = 0.L;
                  len q >= 0+1 by A2;
                  then len q-1 >= 0;
                  then
A28:              n*(len q-1) >= 0;
                  n*len q <= n*len q+1 by NAT_1:11;
                  then n*len q-n <= n*len q+1-n by XREAL_1:9;
                  hence thesis by A27,A28,Th24;
                end;
              end;
              then
A29:          maxFq <= n*len q-n+1 by A23,XXREAL_0:28;
              len F1 <= len F by A14,NAT_1:11;
              then n+1 <= len F by A24,XXREAL_0:2;
              then
A30:          n+1 in dom F by A25,FINSEQ_3:25;
A31:          n+1 in dom F1 by A24,A25,FINSEQ_3:25;
              then
A32:          F1/.(n+1) = F1.(n+1) by PARTFUN1:def 6
                .= F.(n+1) by A12,A31,FINSEQ_1:def 7
                .= p.(n+1-'1)*(q`^(n+1-'1)) by A5,A30
                .= p.nn*(q`^(n+1-'1)) by NAT_D:34
                .= p.nn*(q`^nn) by NAT_D:34;
              F1|(nn+1) = F1|nn ^ <*F1/.(nn+1)*> by A24,FINSEQ_5:82;
              then F2 = Sum(F1|n) + F1/.(n+1) by A22,FVSUM_1:71
                .= F3 + p.nn*(q`^nn) by A32,POLYNOM3:def 10;
              then len F2 <= maxFq by A26,POLYNOM4:6;
              hence len F2 <= (n+1)*len q-len q-(n+1)+2 by A29,XXREAL_0:2;
            end;
            suppose
A33:          n+1 > len F1;
              -len q <= -1 by A2,XREAL_1:24;
              then n*len q-n+-len q <= n*len q-n+-1 by XREAL_1:6;
              then
A34:          n*len q-len q-n+2 <= (n+1)*len q-len q-(n+1)+2 by XREAL_1:6;
              n >= len F1 by A33,NAT_1:13;
              then
A35:          F1|n = F1 by FINSEQ_1:58;
              F1|(n+1) = F1 by A33,FINSEQ_1:58;
              then len F2 <= n*len q-len q-n+2 by A20,A22,A35;
              hence len F2 <= (n+1)*len q-len q-(n+1)+2 by A34,XXREAL_0:2;
            end;
          end;
          hence len F2 <= (n+1)*len q-len q-(n+1)+2;
        end;
        0+len q >= 1+1 by A2,NAT_1:13;
        then 2-len q <= 0 by XREAL_1:20;
        then
A36:    2-len q+k <= 0+k by XREAL_1:6;
        0+1 <= len F1 by A17,NAT_1:13;
        then
A37:    1 in dom F1 by FINSEQ_3:25;
A38:    P[1]
        proof
          let F2 be Polynomial of L;
Z:        F1.1 = F1/.1 by A37,PARTFUN1:def 6;
          F1|1 = <*F1.1*> by A17,CARD_1:27,FINSEQ_5:20;
          then
A39:      Sum(F1|1) = F1.1 by Z,RLVECT_1:44
            .= F.1 by A12,A37,FINSEQ_1:def 7
            .= p.(1-'1)*(q`^(1-'1)) by A5,A7
            .= p.0*(q`^(1-'1)) by XREAL_1:232
            .= p.0*(q`^0) by XREAL_1:232
            .= p.0*(1_.(L)) by Th15
            .= <%p.0%> by Th29;
          assume F2 = Sum(F1|1);
          hence len F2 <= 1*len q-len q-1+2 by A39,ALGSEQ_1:def 5;
        end;
        for n be non zero Nat holds P[n] from NAT_1:sch 10(A38,A19);
        then len sF1 <= (len F1)*(len q)-len q-len F1+2 by A17,A18;
        then
A40:    sF1.k = 0.L by A4,A14,A36,ALGSEQ_1:8,XXREAL_0:2;
A41:    len F in dom F by A6,FINSEQ_3:25;
        then F/.len F = F.len F by PARTFUN1:def 6
          .= p.lF1*(q`^lF1) by A5,A41;
        then Subst(p,q) = sF1 + p.lF1*(q`^lF1) by A3,A13,POLYNOM3:def 10;
        then
A42:    Subst(p,q).k = sF1.k + (p.lF1*(q`^lF1)).k by NORMSP_1:def 2
          .= (p.lF1*(q`^lF1)).k by A40,RLVECT_1:def 4
          .= p.lF1*((q`^lF1).k) by Def4;
        len (q`^lF1) = k+1 by A9;
        then
A43:    (q`^lF1).k <> 0.L by ALGSEQ_1:10;
        p.lF1 <> 0.L by A4,A11,ALGSEQ_1:10;
        hence contradiction by A16,A42,A43,VECTSP_1:12;
      end;
      suppose
A44:    len F1 = {};
A45:    F/.1 = F.1 by A7,PARTFUN1:def 6
          .= p.(1-'1)*(q`^(1-'1)) by A5,A7
          .= p.0*(q`^(1-'1)) by XREAL_1:232
          .= p.0*(q`^0) by XREAL_1:232
          .= p.0*(1_.(L)) by Th15
          .= <%p.0%> by Th29;
A46:    0.(Polynom-Ring L) = 0_.(L) by POLYNOM3:def 10;
A47:    len F = 0+1 by A12,A44,FINSEQ_2:16;
        then
A48:    p.0 <> 0.L by A4,ALGSEQ_1:10;
        F1 = <*>(the carrier of Polynom-Ring L) by A44;
        then Sum F = 0.(Polynom-Ring L) + F/.1 by A13,A47,RLVECT_1:43
          .= 0_.(L) + <%p.0%> by A45,A46,POLYNOM3:def 10
          .= <%p.0%> by POLYNOM3:28;
        hence contradiction by A3,A4,A15,A47,A48,Th33;
      end;
    end;
    hence contradiction;
  end;
  defpred P[Nat] means for F1 be Polynomial of L st F1 = Sum(F|$1) holds len
  F1 <= len (q`^($1-'1));
A49: for n be non zero Nat st P[n] holds P[n+1]
  proof
    let n be non zero Nat;
    assume
A50: for F1 be Polynomial of L st F1 = Sum(F|n) holds len F1 <= len (q
    `^(n-'1));
    reconsider nn = n as Element of NAT by ORDINAL1:def 12;
    reconsider F2 = Sum(F|n) as Polynomial of L by POLYNOM3:def 10;
    let F1 be Polynomial of L;
    assume
A51: F1 = Sum(F|(n+1));
    n*len q+(len q-'1) >= n*len q by NAT_1:11;
    then
A52: n*len q-(len q-'1) <= n*len q by XREAL_1:20;
    len q >= 0+1 by A2;
    then len q-1 >=0;
    then n*len q-(len q-1) <= n*len q by A52,XREAL_0:def 2;
    then n*len q-len q+1-n <= n*len q-n by XREAL_1:9;
    then
A53: n*len q-len q-n+1+1 <= n*len q-n+1 by XREAL_1:6;
    len(q`^(n-'1)) = (n-'1)*len q-(n-'1)+1 by A2,Th23
      .= (n-1)*len q-(n-'1)+1 by XREAL_0:def 2
      .= n*len q-1*len q-(n-1)+1 by XREAL_0:def 2
      .= n*len q-len q-n+1+1;
    then
A54: len (q`^(n-'1)) <= len (q`^nn) by A2,A53,Th23;
    per cases;
    suppose
A55:  n+1 <= len F;
      reconsider maxFq = max(len F2,len (p.nn*(q`^nn))) as Element of NAT by
ORDINAL1:def 12;
       p.n <> 0.L or p.n = 0.L;
      then
A56:  len (p.nn*(q`^nn)) <= len (q`^nn)by Th24,Th25;
      len F2 <= len (q`^(n-'1)) by A50;
      then len F2 <= len (q`^nn) by A54,XXREAL_0:2;
      then
A57:  maxFq <= len (q`^nn) by A56,XXREAL_0:28;
      F|(n+1) = F|n ^ <*F/.(nn+1)*> by A55,FINSEQ_5:82;
      then
A58:  F1 = Sum(F|n) + F/.(n+1) by A51,FVSUM_1:71;
      n+1 >= 1 by NAT_1:11;
      then
A59:  n+1 in dom F by A55,FINSEQ_3:25;
      then F/.(n+1) = F.(n+1) by PARTFUN1:def 6
        .= p.(n+1-'1)*(q`^(n+1-'1)) by A5,A59
        .= p.nn*(q`^(n+1-'1)) by NAT_D:34
        .= p.nn*(q`^nn) by NAT_D:34;
      then
A60:  F1 = F2 + p.nn*(q`^nn) by A58,POLYNOM3:def 10;
      maxFq >= len F2 & maxFq >= len (p.nn*(q`^nn)) by XXREAL_0:25;
      then len F1 <= maxFq by A60,POLYNOM4:6;
      then len F1 <= len (q`^nn) by A57,XXREAL_0:2;
      hence thesis by NAT_D:34;
    end;
    suppose
A61:  n+1 > len F;
      then n >= len F by NAT_1:13;
      then
A62:  F|n = F by FINSEQ_1:58;
      F|(n+1) = F by A61,FINSEQ_1:58;
      then len F1 <= len (q`^(n-'1)) by A50,A51,A62;
      then len F1 <= len (q`^nn) by A54,XXREAL_0:2;
      hence thesis by NAT_D:34;
    end;
  end;
A63: F|len F = F by FINSEQ_1:58;
A64: P[1]
  proof
    let F1 be Polynomial of L;
Z:  F.1 = F/.1 by A7,PARTFUN1:def 6;
    F|1 = <*F.1*> by A1,A4,CARD_1:27,FINSEQ_5:20;
:::       .= <*F/.1*>;
    then
A65: Sum(F|1) = F.1 by Z,RLVECT_1:44
      .= p.(1-'1)*(q`^(1-'1)) by A5,A7
      .= p.0*(q`^(1-'1)) by XREAL_1:232
      .= p.0*(q`^0) by XREAL_1:232
      .= p.0*(1_.(L)) by Th15
      .= <%p.0%> by Th29;
    assume F1 = Sum(F|1);
    then len F1 <= 1 by A65,ALGSEQ_1:def 5;
    then len F1 <= len (1_.(L)) by POLYNOM4:4;
    then len F1 <= len (q`^0) by Th15;
    hence thesis by XREAL_1:232;
  end;
  for n be non zero Nat holds P[n] from NAT_1:sch 10(A64,A49);
  then len Subst(p,q) <= len (q`^(len F-'1)) by A1,A3,A4,A63;
  hence thesis by A9,A10,XXREAL_0:1;
end;

theorem Th53:
  for L be Field for p,q be Polynomial of L for x be Element of L
  holds eval(Subst(p,q),x) = eval(p,eval(q,x))
proof
  let L be Field;
  let p,q be Polynomial of L;
  let x be Element of L;
  consider F1 be FinSequence of the carrier of L such that
A1: eval(p,eval(q,x)) = Sum F1 and
A2: len F1 = len p and
A3: for n be Element of NAT st n in dom F1 holds F1.n = p.(n-'1)*(power
  L).(eval(q,x),n-'1) by POLYNOM4:def 2;
  consider F be FinSequence of the carrier of Polynom-Ring L such that
A4: Subst(p,q) = Sum F and
A5: len F = len p and
A6: for n be Element of NAT st n in dom F holds F.n = p.(n-'1)*(q`^(n-'1
  )) by Def6;
  defpred P[Nat] means for r be Polynomial of L st r = Sum(F|$1)
  holds eval(r,x) = Sum(F1|$1);
A7: for n be Nat st P[n] holds P[n+1]
  proof
    let n be Nat;
     reconsider nn=n as Element of NAT by ORDINAL1:def 12;
    assume
A8: for r be Polynomial of L st r = Sum(F|n) holds eval(r,x) = Sum(F1 |n);
    let r be Polynomial of L;
    assume
A9: r = Sum(F|(n+1));
    per cases;
    suppose
A10:  n+1 <= len F;
      then
A11:  F1|(n+1) = F1|n ^ <*F1/.(n+1)*> by A5,A2,FINSEQ_5:82;
      F|(n+1) = F|n ^ <*F/.(n+1)*> by A10,FINSEQ_5:82;
      then
A12:  r = Sum(F|n) + F/.(n+1) by A9,FVSUM_1:71;
      reconsider r1 = Sum(F|n) as Polynomial of L by POLYNOM3:def 10;
      n+1 >= 1 by NAT_1:11;
      then
A13:  n+1 in dom F by A10,FINSEQ_3:25;
A14:  dom F = dom F1 by A5,A2,FINSEQ_3:29;
      then
A15:  p.(n+1-'1)*(power L).(eval(q,x),n+1-'1) = F1.(n+1) by A3,A13
        .= F1/.(n+1) by A13,A14,PARTFUN1:def 6;
      F/.(n+1) = F.(n+1) by A13,PARTFUN1:def 6
        .= p.(n+1-'1)*(q`^(n+1-'1)) by A6,A13
        .= p.nn*(q`^(n+1-'1)) by NAT_D:34
        .= p.nn*(q`^n) by NAT_D:34;
      then r = r1 + p.nn*(q`^n) by A12,POLYNOM3:def 10;
      hence eval(r,x) = eval(r1,x) + eval(p.nn*(q`^n),x) by POLYNOM4:19
        .= Sum(F1|n) + eval(p.nn*(q`^n),x) by A8
        .= Sum(F1|n) + p.nn*eval(q`^n,x) by Th30
        .= Sum(F1|n) + p.nn*(power L).(eval(q,x),n) by Th22
        .= Sum(F1|n) + p.(n+1-'1)*(power L).(eval(q,x),n) by NAT_D:34
        .= Sum(F1|n) + F1/.(n+1) by A15,NAT_D:34
        .= Sum(F1|(n+1)) by A11,FVSUM_1:71;
    end;
    suppose
A16:  n+1 > len F;
      then n >= len F by NAT_1:13;
      then
A17:  F|n = F & F1|n = F1 by A5,A2,FINSEQ_1:58;
      F|(n+1) = F & F1|(n+1) = F1 by A5,A2,A16,FINSEQ_1:58;
      hence thesis by A8,A9,A17;
    end;
  end;
A18: F|(len F) = F & F1|(len F1) = F1 by FINSEQ_1:58;
A19: P[0]
  proof
    let r be Polynomial of L;
A20: F|0 = <*>the carrier of Polynom-Ring L;
A21: F1|0 = <*>the carrier of L;
    assume r = Sum(F|0);
    then r = 0.(Polynom-Ring L) by A20,RLVECT_1:43
      .= 0_.(L) by POLYNOM3:def 10;
    hence eval(r,x) = 0.L by POLYNOM4:17
      .= Sum(F1|0) by A21,RLVECT_1:43;
  end;
  for n be Nat holds P[n] from NAT_1:sch 2(A19,A7);
  hence thesis by A4,A5,A1,A2,A18;
end;

begin  :: Fundamental Theorem of Algebra

definition
  let L be unital non empty doubleLoopStr;
  let p be Polynomial of L;
  let x be Element of L;
  pred x is_a_root_of p means

  eval(p,x) = 0.L;
end;

definition
  let L be unital non empty doubleLoopStr;
  let p be Polynomial of L;
  attr p is with_roots means

  ex x be Element of L st x is_a_root_of p;
end;

theorem Th54:
  for L be unital non empty doubleLoopStr holds 0_.(L) is with_roots
proof
  let L be unital non empty doubleLoopStr;
  set x = the Element of L;
  take x;
  thus eval(0_.(L),x) = 0.L by POLYNOM4:17;
end;

registration
  let L be unital non empty doubleLoopStr;
  cluster 0_.(L) -> with_roots;
  coherence by Th54;
end;

theorem
  for L be unital non empty doubleLoopStr for x be Element of L holds
  x is_a_root_of 0_.(L)
by POLYNOM4:17;

registration
  let L be unital non empty doubleLoopStr;
  cluster with_roots for Polynomial of L;
  existence
  proof
    take 0_.(L);
    thus thesis;
  end;
end;

definition
  let L be unital non empty doubleLoopStr;
  attr L is algebraic-closed means

  for p be Polynomial of L st len p > 1 holds p is with_roots;
end;

definition
  let L be unital non empty doubleLoopStr;
  let p be Polynomial of L;
  func Roots(p) -> Subset of L means
  :Def10:
  for x be Element of L holds x in it iff x is_a_root_of p;
  existence
  proof
    { x where x is Element of L : x is_a_root_of p } c= the carrier of L
    proof
      let y be object;
      assume y in {x where x is Element of L : x is_a_root_of p};
      then ex x be Element of L st x = y & x is_a_root_of p;
      hence thesis;
    end;
    then reconsider
    X = { x where x is Element of L : x is_a_root_of p } as Subset
    of L;
    take X;
    let x be Element of L;
    thus x in X implies x is_a_root_of p
    proof
      assume x in X;
      then ex y be Element of L st x = y & y is_a_root_of p;
      hence thesis;
    end;
    assume x is_a_root_of p;
    hence thesis;
  end;
  uniqueness
  proof
    let X1,X2 be Subset of L such that
A1: for x be Element of L holds x in X1 iff x is_a_root_of p and
A2: for x be Element of L holds x in X2 iff x is_a_root_of p;
    thus X1 c= X2
    by A1,A2;
    let x be object;
    assume
A3: x in X2;
    then reconsider y=x as Element of L;
    y is_a_root_of p by A2,A3;
    hence thesis by A1;
  end;
end;

definition
  let L be commutative associative well-unital distributive
  almost_left_invertible non empty doubleLoopStr;
  let p be Polynomial of L;
  func NormPolynomial(p) -> sequence of L means
  :Def11:
  for n be Element of NAT holds it.n = p.n / p.(len p-'1);
  existence
  proof
    deffunc F(Element of NAT) = p.$1 / p.(len p-'1);
    consider q be sequence of L such that
A1: for n be Element of NAT holds q.n = F(n) from FUNCT_2:sch 4;
    take q;
    thus thesis by A1;
  end;
  uniqueness
  proof
    let p1,p2 be sequence of L such that
A2: for n be Element of NAT holds p1.n = p.n / p.(len p-'1) and
A3: for n be Element of NAT holds p2.n = p.n / p.(len p-'1);
    now
      let n be Element of NAT;
      thus p1.n = p.n / p.(len p-'1) by A2
        .= p2.n by A3;
    end;
    hence p1 = p2 by FUNCT_2:63;
  end;
end;

registration
  let L be add-associative right_zeroed right_complementable commutative
  associative well-unital distributive almost_left_invertible non empty
  doubleLoopStr;
  let p be Polynomial of L;
  cluster NormPolynomial(p) -> finite-Support;
  coherence
  proof
    now
      let n be Nat;
      assume
A1:   n >= len p;
      reconsider nn = n as Element of NAT by ORDINAL1:def 12;
      thus (NormPolynomial(p)).n = p.nn / p.(len p-'1) by Def11
        .= 0.L / p.(len p-'1) by A1,ALGSEQ_1:8
        .= 0.L * (p.(len p-'1))"
        .= 0.L;
    end;
    hence thesis;
  end;
end;

theorem Th56:
  for L be commutative associative well-unital distributive
  almost_left_invertible non empty doubleLoopStr for p be Polynomial of L st
  len p <> 0 holds (NormPolynomial p).(len p-'1) = 1.L
proof
  let L be commutative associative well-unital distributive
  almost_left_invertible non empty doubleLoopStr;
  let p be Polynomial of L;
  assume len p <> 0;
  then len p >= 0+1 by NAT_1:13;
  then len p = len p-'1+1 by XREAL_1:235;
  then
A1: p.(len p-'1) <> 0.L by ALGSEQ_1:10;
  thus (NormPolynomial p).(len p-'1) = p.(len p-'1) / p.(len p-'1) by Def11
    .= p.(len p-'1) * (p.(len p-'1))"
    .= 1.L by A1,VECTSP_1:def 10;
end;

theorem Th57:
  for L be Field for p be Polynomial of L st len p <> 0 holds len
  NormPolynomial(p) = len p
proof
  let L be Field;
  let p be Polynomial of L;
  assume len p <> 0;
  then len p >= 0+1 by NAT_1:13;
  then len p = len p-'1+1 by XREAL_1:235;
  then p.(len p-'1) <> 0.L by ALGSEQ_1:10;
  then
A1: (p.(len p-'1))" <> 0.L by VECTSP_1:25;
A2: now
    let n be Nat;
    assume
A3: n is_at_least_length_of NormPolynomial(p);
    n is_at_least_length_of p
    proof
      let i be Nat;
      reconsider ii = i as Element of NAT by ORDINAL1:def 12;
      assume i >= n;
      then (NormPolynomial(p)).i = 0.L by A3;
      then p.ii / p.(len p-'1) = 0.L by Def11;
      then p.ii * (p.(len p-'1))" = 0.L;
      hence thesis by A1,VECTSP_1:12;
    end;
    hence len p <= n by ALGSEQ_1:def 3;
  end;
  len p is_at_least_length_of NormPolynomial(p)
  proof
    let n be Nat;
    assume
A4: n >= len p;
    reconsider nn = n as Element of NAT by ORDINAL1:def 12;
    thus (NormPolynomial(p)).n = p.nn / p.(len p-'1) by Def11
      .= 0.L / p.(len p-'1) by A4,ALGSEQ_1:8
      .= 0.L * (p.(len p-'1))"
      .= 0.L;
  end;
  hence thesis by A2,ALGSEQ_1:def 3;
end;

theorem Th58:
  for L be Field for p be Polynomial of L st len p <> 0 for x be
  Element of L holds eval(NormPolynomial(p),x) = eval(p,x)/p.(len p-'1)
proof
  let L be Field;
  let p be Polynomial of L;
  assume
A1: len p <> 0;
  set NPp = NormPolynomial(p);
  let x be Element of L;
  consider F1 be FinSequence of the carrier of L such that
A2: eval(p,x) = Sum F1 and
A3: len F1 = len p and
A4: for n be Element of NAT st n in dom F1 holds F1.n = p.(n-'1) * (
  power L).(x,n-'1) by POLYNOM4:def 2;
  consider F2 be FinSequence of the carrier of L such that
A5: eval(NPp,x) = Sum F2 and
A6: len F2 = len NPp and
A7: for n be Element of NAT st n in dom F2 holds F2.n = NPp.(n-'1) * (
  power L).(x,n-'1) by POLYNOM4:def 2;
  len F1 = len F2 by A1,A3,A6,Th57;
  then
A8: dom F1 = dom F2 by FINSEQ_3:29;
  now
    let i be object;
    assume
A9: i in dom F1;
    then reconsider i1=i as Element of NAT;
A10: p.(i1-'1) * (power L).(x,i1-'1) = F1.i by A4,A9
      .= F1/.i by A9,PARTFUN1:def 6;
    thus F2/.i = F2.i by A8,A9,PARTFUN1:def 6
      .= NPp.(i1-'1) * (power L).(x,i1-'1) by A7,A8,A9
      .= p.(i1-'1) / p.(len p-'1) * (power L).(x,i1-'1) by Def11
      .= p.(i1-'1) * (p.(len p-'1))" * (power L).(x,i1-'1)
      .= (F1/.i)*(p.(len p-'1))" by A10,GROUP_1:def 3;
  end;
  then F2 = F1*(p.(len p-'1))" by A8,POLYNOM1:def 2;
  then eval(NormPolynomial(p),x) = eval(p,x) * (p.(len p-'1))" by A2,A5,
POLYNOM1:13;
  hence thesis;
end;

theorem Th59:
  for L be Field for p be Polynomial of L st len p <> 0 for x be
  Element of L holds x is_a_root_of p iff x is_a_root_of NormPolynomial(p)
proof
  let L be Field;
  let p be Polynomial of L;
  assume
A1: len p <> 0;
  then len p >= 0+1 by NAT_1:13;
  then len p = len p-'1+1 by XREAL_1:235;
  then p.(len p-'1) <> 0.L by ALGSEQ_1:10;
  then
A2: (p.(len p-'1))" <> 0.L by VECTSP_1:25;
  let x be Element of L;
  thus x is_a_root_of p implies x is_a_root_of NormPolynomial(p)
  proof
    assume x is_a_root_of p;
    then eval(p,x) = 0.L;
    then eval(NormPolynomial(p),x) = 0.L/p.(len p-'1) by A1,Th58
      .= 0.L * (p.(len p-'1))"
      .= 0.L;
    hence thesis;
  end;
  assume x is_a_root_of NormPolynomial(p);
  then 0.L = eval(NormPolynomial(p),x)
    .= eval(p,x)/p.(len p-'1) by A1,Th58
    .= eval(p,x) * (p.(len p-'1))";
  then eval(p,x) = 0.L by A2,VECTSP_1:12;
  hence thesis;
end;

theorem Th60:
  for L be Field for p be Polynomial of L st len p <> 0 holds p is
  with_roots iff NormPolynomial(p) is with_roots
proof
  let L be Field;
  let p be Polynomial of L;
  assume
A1: len p <> 0;
  thus p is with_roots implies NormPolynomial(p) is with_roots
  proof
    assume p is with_roots;
    then consider x be Element of L such that
A2: x is_a_root_of p;
    x is_a_root_of NormPolynomial(p) by A1,A2,Th59;
    hence thesis;
  end;
  assume NormPolynomial(p) is with_roots;
  then consider x be Element of L such that
A3: x is_a_root_of NormPolynomial(p);
  x is_a_root_of p by A1,A3,Th59;
  hence thesis;
end;

theorem
  for L be Field for p be Polynomial of L st len p <> 0 holds Roots(p) =
  Roots(NormPolynomial p)
proof
  let L be Field;
  let p be Polynomial of L;
  assume
A1: len p <> 0;
  thus Roots(p) c= Roots(NormPolynomial p)
  proof
    let x be object;
    assume
A2: x in Roots(p);
    then reconsider x1=x as Element of L;
    x1 is_a_root_of p by A2,Def10;
    then x1 is_a_root_of NormPolynomial p by A1,Th59;
    hence thesis by Def10;
  end;
  thus Roots(NormPolynomial p) c= Roots(p)
  proof
    let x be object;
    assume
A3: x in Roots(NormPolynomial p);
    then reconsider x1=x as Element of L;
    x1 is_a_root_of NormPolynomial p by A3,Def10;
    then x1 is_a_root_of p by A1,Th59;
    hence thesis by Def10;
  end;
end;

theorem Th62:
  id(COMPLEX) is_continuous_on COMPLEX
proof
A1: now
    let x be Complex;
    let r be Real;
    assume that
    x in COMPLEX and
A2: 0 < r;
    take s=r;
    thus 0 < s by A2;
    let y be Complex;
    assume that
  y in COMPLEX and
A3: |.y-x.| < s;
    reconsider xx=x, yy=y as Element of COMPLEX by XCMPLX_0:def 2;
    |.id(COMPLEX)/.yy - id(COMPLEX)/.xx.| < r by A3;
    hence |.id(COMPLEX)/.y - id(COMPLEX)/.x.| < r;
  end;
  dom id(COMPLEX) = COMPLEX by FUNCT_2:def 1;
  hence thesis by A1,CFCONT_1:39;
end;

theorem Th63:
  for x be Element of COMPLEX holds COMPLEX --> x is_continuous_on COMPLEX
proof
  let x be Element of COMPLEX;
A1: now
    let x1 be Complex;
    let r be Real;
    assume that
A2:  x1 in COMPLEX and
A3: 0 < r;
    take s=r;
    thus 0 < s by A3;
    let x2 be Complex;
    assume that
A4:  x2 in COMPLEX and
    |.x2-x1.| < s;
    reconsider xx1=x1, xx2=x2 as Element of COMPLEX by A2,A4;
    (COMPLEX --> x)/.xx1 = x & (COMPLEX --> x)/.xx2 = x by FUNCOP_1:7;
    hence |.(COMPLEX --> x)/.x2 - (COMPLEX --> x)/.x1 .| < r by A3,COMPLEX1:44;
  end;
  dom (COMPLEX --> x) = COMPLEX by FUNCOP_1:13;
  hence thesis by A1,CFCONT_1:39;
end;

definition
  let L be unital non empty multMagma;
  let x be Element of L;
  let n be Nat;
  func FPower(x,n) -> Function of L,L means
  :Def12:
  for y be Element of L holds it.y = x*power(y,n);
  existence
  proof
    deffunc F(Element of L) = x*power($1,n);
    consider f be Function of the carrier of L,the carrier of L such that
A1: for y be Element of L holds f.y = F(y) from FUNCT_2:sch 4;
    reconsider f as Function of L,L;
    take f;
    thus thesis by A1;
  end;
  uniqueness
  proof
    let f1,f2 be Function of L,L such that
A2: for y be Element of L holds f1.y=x*power(y,n) and
A3: for y be Element of L holds f2.y=x*power(y,n);
    now
      let y be Element of L;
      thus f1.y = x*power(y,n) by A2
        .= f2.y by A3;
    end;
    hence f1 = f2 by FUNCT_2:63;
  end;
end;

theorem
  for L be unital non empty multMagma holds
    FPower(1_L,1) = id the carrier of L
proof
  let L be unital non empty multMagma;
A1: now
    let x be object;
    assume x in the carrier of L;
    then reconsider x1=x as Element of L;
    FPower(1_L,1).x1 = 1_L*power(x1,1) by Def12
      .= (power L).(x1,1) by GROUP_1:def 4;
    hence FPower(1_L,1).x = x by GROUP_1:50;
  end;
  dom FPower(1_L,1) = the carrier of L by FUNCT_2:def 1;
  hence thesis by A1,FUNCT_1:17;
end;

theorem
  FPower(1_F_Complex,2) = id(COMPLEX)(#)id(COMPLEX)
proof
  the carrier of F_Complex = COMPLEX by COMPLFLD:def 1;
  then reconsider
  f=id(COMPLEX)(#)id(COMPLEX) as Function of F_Complex,F_Complex;
  now
    let x be Element of F_Complex;
    reconsider x1=x as Element of COMPLEX by COMPLFLD:def 1;
    id(COMPLEX)/.x1 = x1 & dom (id(COMPLEX)(#)id(COMPLEX)) = COMPLEX by
FUNCT_2:def 1;
    hence f.x = x*x by VALUED_1:def 4
      .= (power F_Complex).(x,2) by GROUP_1:51
      .= 1_F_Complex*power(x,2);
  end;
  hence thesis by Def12;
end;

theorem Th66:
  for L be unital non empty multMagma for x be Element of L
  holds FPower(x,0) = (the carrier of L) --> x
proof
  let L be unital non empty multMagma;
  let x be Element of L;
  reconsider f=(the carrier of L) --> x as Function of L,L;
  now
    let y be Element of L;
    thus f.y = x by FUNCOP_1:7
      .= x*1_L by GROUP_1:def 4
      .= x*power(y,0) by GROUP_1:def 7;
  end;
  hence thesis by Def12;
end;

theorem
  for x be Element of F_Complex
  ex x1 be Element of COMPLEX st x = x1 & FPower(x,1) = x1(#)id(COMPLEX)
proof
  let x be Element of F_Complex;
  reconsider x1=x as Element of COMPLEX by COMPLFLD:def 1;
  take x1;
  thus x = x1;
  the carrier of F_Complex = COMPLEX by COMPLFLD:def 1;
  then reconsider f=x1(#)id(COMPLEX) as Function of F_Complex,F_Complex;
  now
    let y be Element of F_Complex;
    reconsider y1=y as Element of COMPLEX by COMPLFLD:def 1;
    thus f.y = x1*id(COMPLEX).y1 by VALUED_1:6
      .= x*y
      .= x*power(y,1) by GROUP_1:50;
  end;
  hence thesis by Def12;
end;

theorem
  for x be Element of F_Complex ex x1 be Element of COMPLEX st
  x = x1 & FPower(x,2) = x1(#)(id(COMPLEX)(#)id(COMPLEX))
proof
  let x be Element of F_Complex;
  reconsider x1=x as Element of COMPLEX by COMPLFLD:def 1;
  take x1;
  thus x = x1;
  the carrier of F_Complex = COMPLEX by COMPLFLD:def 1;
  then reconsider f=x1(#)(id(COMPLEX)(#)id(COMPLEX)) as Function of F_Complex,
  F_Complex;
  now
    let y be Element of F_Complex;
    reconsider y1=y as Element of COMPLEX by COMPLFLD:def 1;
    thus f.y = x1*(id(COMPLEX)(#)id(COMPLEX)).y1 by VALUED_1:6
      .= x1*(id(COMPLEX).y1*id(COMPLEX).y1) by VALUED_1:5
      .= x1*(y1*id(COMPLEX).y1)
      .= x*(y*y)
      .= x*power(y,2) by GROUP_1:51;
  end;
  hence thesis by Def12;
end;

theorem Th69:
  for x be Element of F_Complex for n be Nat
   ex f be Function of COMPLEX,COMPLEX
    st f = FPower(x,n) & FPower(x,n+1) = f(#)id(COMPLEX)
proof
  let x be Element of F_Complex;
  let n be Nat;
A1: the carrier of F_Complex = COMPLEX by COMPLFLD:def 1;
  then reconsider f=FPower(x,n) as Function of COMPLEX,COMPLEX;
  reconsider g=f(#)id(COMPLEX) as Function of F_Complex,F_Complex by A1;
  take f;
  thus f = FPower(x,n);
  now
    let y be Element of F_Complex;
    reconsider y1=y as Element of COMPLEX by COMPLFLD:def 1;
    thus g.y = f.y1*id(COMPLEX).y1 by VALUED_1:5
      .= FPower(x,n).y*y
      .= x*power(y,n)*y by Def12
      .= x*((power F_Complex).(y,n)*y)
      .= x*power(y,n+1) by GROUP_1:def 7;
  end;
  hence thesis by Def12;
end;

theorem Th70:
  for x be Element of F_Complex
  for n be Nat ex f be Function of COMPLEX,COMPLEX st
    f = FPower(x,n) & f is_continuous_on COMPLEX
proof
  let x be Element of F_Complex;
  defpred P[Nat] means
ex f be Function of COMPLEX,COMPLEX st f =
  FPower(x,$1) & f is_continuous_on COMPLEX;
A1: the carrier of F_Complex = COMPLEX by COMPLFLD:def 1;
A2: for n be Nat st P[n] holds P[n+1]
  proof
    let n be Nat;
    reconsider g=FPower(x,n+1) as Function of COMPLEX,COMPLEX by A1;
    given f be Function of COMPLEX,COMPLEX such that
A3: f = FPower(x,n) & f is_continuous_on COMPLEX;
    take g;
    thus g = FPower(x,n+1);
     ex f1 be Function of COMPLEX,COMPLEX st
     f1 = FPower(x,n) & FPower(x,n+1) = f1(#)id(COMPLEX) by Th69;
    hence thesis by A3,Th62,CFCONT_1:43;
  end;
A4: P[0]
  proof
    reconsider f=FPower(x,0) as Function of COMPLEX,COMPLEX by A1;
    take f;
    thus f = FPower(x,0);
    f = (the carrier of F_Complex) --> x by Th66;
    hence thesis by A1,Th63;
  end;
  thus for n be Nat holds P[n] from NAT_1:sch 2(A4,A2);
end;

definition
  let L be well-unital non empty doubleLoopStr;
  let p be Polynomial of L;
  func Polynomial-Function(L,p) -> Function of L,L means
  :Def13:
  for x be Element of L holds it.x = eval(p,x);
  existence
  proof
    deffunc F(Element of L) = eval(p,$1);
    consider f be Function of the carrier of L,the carrier of L such that
A1: for x be Element of L holds f.x = F(x) from FUNCT_2:sch 4;
    reconsider f as Function of L,L;
    take f;
    thus thesis by A1;
  end;
  uniqueness
  proof
    let f1,f2 be Function of L,L such that
A2: for x be Element of L holds f1.x = eval(p,x) and
A3: for x be Element of L holds f2.x = eval(p,x);
    now
      let x be Element of L;
      thus f1.x = eval(p,x) by A2
        .= f2.x by A3;
    end;
    hence f1 = f2 by FUNCT_2:63;
  end;
end;

theorem Th71:
  for p be Polynomial of F_Complex
  ex f be Function of COMPLEX,COMPLEX st
    f = Polynomial-Function(F_Complex,p) & f is_continuous_on COMPLEX
proof
  set FuFF=Funcs(COMPLEX,COMPLEX);
  let p be Polynomial of F_Complex;
  reconsider fzero = COMPLEX --> 0c as Element of FuFF by FUNCT_2:9;
  defpred P[Nat,set] means $2 = FPower(p.($1-'1),$1-'1);
A1: the carrier of F_Complex = COMPLEX by COMPLFLD:def 1;
  then reconsider f = Polynomial-Function(F_Complex,p) as Function of COMPLEX,
  COMPLEX;
  deffunc F(Element of FuFF,Element of FuFF) = $1+$2;
  take f;
  thus f = Polynomial-Function(F_Complex,p);
A2: for x,y being Element of FuFF holds F(x,y) in FuFF by FUNCT_2:8;
  consider fadd be BinOp of FuFF such that
A3: for x,y be Element of FuFF holds fadd.(x,y) = F(x,y) from FUNCT_7:
  sch 1(A2);
  reconsider L=addLoopStr(#FuFF,fadd,fzero#) as non empty addLoopStr;
A4: now
    let u,v,w be Element of L;
    reconsider u1=u, v1=v, w1=w as Function of COMPLEX,COMPLEX by FUNCT_2:66;
A5: u1+v1 in Funcs(COMPLEX,COMPLEX) by FUNCT_2:9;
A6: v1+w1 in Funcs(COMPLEX,COMPLEX) by FUNCT_2:9;
    thus (u+v)+w = fadd.(u1+v1,w) by A3
      .= u1+v1+w1 by A3,A5
      .= u1+(v1+w1) by CFUNCT_1:13
      .= fadd.(u,v1+w1) by A3,A6
      .= u+(v+w) by A3;
  end;
A7: now
    let v be Element of L;
    reconsider v1=v as Function of COMPLEX,COMPLEX by FUNCT_2:66;
A8: now
      let x be Element of COMPLEX;
      thus (v1+fzero).x = v1.x+fzero.x by VALUED_1:1
        .= v1.x+0c by FUNCOP_1:7
        .= v1.x;
    end;
    thus v + 0.L = v1+fzero by A3
      .= v by A8,FUNCT_2:63;
  end;
  L is right_complementable
  proof
    let v be Element of L;
    reconsider v1=v as Function of COMPLEX,COMPLEX by FUNCT_2:66;
    reconsider w=-v1 as Element of L by FUNCT_2:9;
    take w;
A9: now
      let x be Element of COMPLEX;
      thus (v1+-v1).x = v1.x+(-v1).x by VALUED_1:1
        .= v1.x+-v1.x by VALUED_1:8
        .= fzero.x by FUNCOP_1:7;
    end;
    thus v + w = v1+-v1 by A3
      .= 0.L by A9,FUNCT_2:63;
  end;
  then reconsider
  L as add-associative right_zeroed right_complementable non empty
  addLoopStr by A4,A7,RLVECT_1:def 3,def 4;
A10: now
    let n be Nat;
    reconsider x = FPower(p.(n-'1),n-'1) as Element of L by A1,FUNCT_2:9;
    assume n in Seg len p;
    take x;
    thus P[n,x];
  end;
  consider F be FinSequence of the carrier of L such that
A11: dom F = Seg len p and
A12: for n be Nat st n in Seg len p holds P[n,F.n] from FINSEQ_1:sch 5(
  A10 );
A13: F|len F = F by FINSEQ_1:58;
  reconsider SF = Sum F as Function of COMPLEX,COMPLEX by FUNCT_2:66;
A14: now
    let x be Element of COMPLEX;
    reconsider x1=x as Element of F_Complex by COMPLFLD:def 1;
    consider H be FinSequence of the carrier of F_Complex such that
A15: eval(p,x1) = Sum H and
A16: len H = len p and
A17: for n be Element of NAT st n in dom H holds H.n = p.(n-'1)*(power
    F_Complex).(x1,n-'1) by POLYNOM4:def 2;
    defpred P[Nat] means
for SFk be Function of COMPLEX,COMPLEX st
    SFk = Sum (F|$1) holds Sum (H|$1) = SFk.x;
A18: len F = len p by A11,FINSEQ_1:def 3;
A19: for k be Nat st P[k] holds P[k+1]
    proof
      let k be Nat;
       reconsider kk=k as Element of NAT by ORDINAL1:def 12;
      assume
A20:  for SFk be Function of COMPLEX,COMPLEX st SFk = Sum (F|k) holds
      Sum (H|k) = SFk.x;
      reconsider SFk1 = Sum (F|k) as Function of COMPLEX,COMPLEX by FUNCT_2:66;
      let SFk be Function of COMPLEX,COMPLEX;
      assume
A21:  SFk = Sum (F|(k+1));
      per cases;
      suppose
A22:    len F > k;
        reconsider g2 = FPower(p.kk,k) as Function of COMPLEX,COMPLEX by A1;
A23:    k+1 >= 1 by NAT_1:11;
        k+1 <= len F by A22,NAT_1:13;
        then
A24:    k+1 in dom F by A23,FINSEQ_3:25;
        then
A25:    F/.(k+1) = F.(k+1) by PARTFUN1:def 6
          .= FPower(p.(k+1-'1),k+1-'1) by A11,A12,A24
          .= FPower(p.kk,k+1-'1) by NAT_D:34
          .= FPower(p.kk,k) by NAT_D:34;
        F|(k+1) = F|k ^ <*F.(k+1)*> by A22,FINSEQ_5:83
          .= F|k ^ <*F/.(k+1)*> by A24,PARTFUN1:def 6;
        then
A26:    SFk = Sum(F|k) + F/.(k+1) by A21,FVSUM_1:71
          .= SFk1+g2 by A3,A25;
A27:    Sum (H|k) = SFk1.x by A20;
A28:    dom F = dom H by A11,A16,FINSEQ_1:def 3;
        then
A29:    H/.(k+1) = H.(k+1) by A24,PARTFUN1:def 6
          .= p.(k+1-'1)*(power F_Complex).(x1,k+1-'1) by A17,A28,A24
          .= p.kk*(power F_Complex).(x1,k+1-'1) by NAT_D:34
          .= p.kk*power(x1,k) by NAT_D:34
          .= FPower(p.kk,k).x by Def12;
        H|(k+1) = H|k ^ <*H.(k+1)*> by A16,A18,A22,FINSEQ_5:83
          .= H|k ^ <*H/.(k+1)*> by A28,A24,PARTFUN1:def 6;
        hence Sum (H|(k+1)) = Sum(H|k) + H/.(k+1) by FVSUM_1:71
          .= SFk.x by A29,A26,A27,VALUED_1:1;
      end;
      suppose
A30:    len F <= k;
        k <= k+1 by NAT_1:11;
        then
A31:    F|(k+1) = F & H|(k+1) = H by A16,A18,A30,FINSEQ_1:58,XXREAL_0:2;
        F|k = F & H|k = H by A16,A18,A30,FINSEQ_1:58;
        hence thesis by A20,A21,A31;
      end;
    end;
A32: P[0]
    proof
      let SFk be Function of COMPLEX,COMPLEX;
A33:  F|0 = <*>the carrier of L;
      assume SFk = Sum (F|0);
      then
A34:  SFk = 0.L by A33,RLVECT_1:43
        .= COMPLEX --> 0c;
      H|0 = <*>the carrier of F_Complex;
      hence Sum (H|0) = 0.F_Complex by RLVECT_1:43
        .= SFk.x by A34,COMPLFLD:7,FUNCOP_1:7;
    end;
A35: for k be Nat holds P[k] from NAT_1:sch 2(A32,A19);
A36: Sum(F|len F) = SF by FINSEQ_1:58;
    thus f.x = Sum H by A15,Def13
      .= Sum (H|len H) by FINSEQ_1:58
      .= SF.x by A16,A18,A35,A36;
  end;
  defpred P[Nat] means
for g be PartFunc of COMPLEX,COMPLEX st g =
  Sum (F|$1) holds g is_continuous_on COMPLEX;
A37: for k be Nat st P[k] holds P[k+1]
  proof
    let k be Nat;
    reconsider kk=k as Element of NAT by ORDINAL1:def 12;
    reconsider g1 = Sum (F|k) as Function of COMPLEX,COMPLEX by FUNCT_2:66;
    assume
A38: for g be PartFunc of COMPLEX,COMPLEX st g = Sum (F|k) holds g
    is_continuous_on COMPLEX;
    then
A39: g1 is_continuous_on COMPLEX;
    let g be PartFunc of COMPLEX,COMPLEX;
    assume
A40: g = Sum (F|(k+1));
    per cases;
    suppose
A41:  len F > k;
A42:  k+1 >= 1 by NAT_1:11;
      k+1 <= len F by A41,NAT_1:13;
      then
A43:  k+1 in dom F by A42,FINSEQ_3:25;
      then
A44:  F/.(k+1) = F.(k+1) by PARTFUN1:def 6
        .= FPower(p.(k+1-'1),k+1-'1) by A11,A12,A43
        .= FPower(p.kk,k+1-'1) by NAT_D:34
        .= FPower(p.kk,k) by NAT_D:34;
      consider g2 be Function of COMPLEX,COMPLEX such that
A45:  g2 = FPower(p.kk,k) and
A46:  g2 is_continuous_on COMPLEX by Th70;
      F|(k+1) = F|k ^ <*F.(k+1)*> by A41,FINSEQ_5:83
        .= F|k ^ <*F/.(k+1)*> by A43,PARTFUN1:def 6;
      then g = Sum(F|k) + F/.(k+1) by A40,FVSUM_1:71
        .= g1+g2 by A3,A44,A45;
      hence thesis by A39,A46,CFCONT_1:43;
    end;
    suppose
A47:  len F <= k;
      k <= k+1 by NAT_1:11;
      then F|(k+1) = F by A47,FINSEQ_1:58,XXREAL_0:2
        .= F|k by A47,FINSEQ_1:58;
      hence thesis by A38,A40;
    end;
  end;
A48: P[0]
  proof
    let g be PartFunc of COMPLEX,COMPLEX;
A49: F|0 = <*>the carrier of L;
    assume g = Sum(F|0);
    then g = 0.L by A49,RLVECT_1:43
      .= COMPLEX --> 0c;
    hence thesis by Th63;
  end;
  for k be Nat holds P[k] from NAT_1:sch 2(A48,A37);
  hence thesis by A13,A14,FUNCT_2:63;
end;

theorem Th72:
  for p be Polynomial of F_Complex st len p > 2 & |.p.(len p-'1).|=1
  for F be FinSequence of REAL st len F = len p & for n be Element of NAT st
    n in dom F holds F.n = |.p.(n-'1).|
  for z be Element of F_Complex st |.z.| > Sum F holds
    |.eval(p,z).| >= |.z.| > |.p.0 .|+1
proof
  let p be Polynomial of F_Complex;
  assume that
A1: len p > 2 and
A2: |.p.(len p-'1).|=1;
  let F be FinSequence of REAL;
  assume that
A3: len F = len p and
A4: for n be Element of NAT st n in dom F holds F.n = |.p.(n-'1).|;
  set lF1 = len F-'1;
A5: lF1+1 = len F by A1,A3,XREAL_1:235,XXREAL_0:2;
  then
A6: F = F|(lF1+1) by FINSEQ_1:58
    .= F|lF1 ^ <*F/.(lF1+1)*> by A5,FINSEQ_5:82;
A7: len p > 1 by A1,XXREAL_0:2;
  then
A8: 1 in dom F by A3,FINSEQ_3:25;
A9: now
    let n be Element of NAT;
A10: dom(F|lF1) c= dom F by FINSEQ_5:18;
    assume
A11: n in dom (F|lF1);
    then (F|lF1).n = (F|lF1)/.n by PARTFUN1:def 6
      .= F/.n by A11,FINSEQ_4:70
      .= F.n by A11,A10,PARTFUN1:def 6
      .= |.p.(n-'1).| by A4,A11,A10;
    hence (F|lF1).n >= 0 by COMPLEX1:46;
  end;
A12: len (F|lF1) = lF1 by A5,FINSEQ_1:59,NAT_1:11;
  |.p.0 .| >= 0 by COMPLEX1:46;
  then
A13: |.p.0 .|+1 >= 0+1 by XREAL_1:6;
  let z be Element of F_Complex;
  consider G be FinSequence of the carrier of F_Complex such that
A14: eval(p,z) = Sum G and
A15: len G = len p and
A16: for n be Element of NAT st n in dom G holds G.n = p.(n-'1)*(power
  F_Complex).(z,n-'1) by POLYNOM4:def 2;
  set lF2 = len F-'2;
  assume
A17: |.z.| > Sum F;
A18: len F in dom F by A7,A3,FINSEQ_3:25;
  then F/.(lF1+1) = F.(lF1+1) by A5,PARTFUN1:def 6
    .= 1 by A2,A3,A4,A5,A18;
  then
A19: Sum F = Sum(F|lF1) + 1 by A6,RVSUM_1:74;
A20: len F >= 1+1+0 by A1,A3;
  then lF1 >= 1 by A5,XREAL_1:6;
  then
A21: 1 in dom (F|lF1) by A12,FINSEQ_3:25;
  then (F|lF1).1 = (F|lF1)/.1 by PARTFUN1:def 6
    .= F/.1 by A21,FINSEQ_4:70
    .= F.1 by A8,PARTFUN1:def 6
    .= |.p.(1-'1).| by A4,A8
    .= |.p.0 .| by XREAL_1:232;
  then Sum(F|lF1) >= |.p.0 .| by A21,A9,Th4;
  then
A22: Sum F >= |.p.0 .|+1 by A19,XREAL_1:6;
  then
A23: z <> 0.F_Complex by A17,A13,COMPLFLD:59;
  G = G|(lF1+1) by A3,A15,A5,FINSEQ_1:58
    .= G|lF1 ^ <*G/.(lF1+1)*> by A3,A15,A5,FINSEQ_5:82;
  then
A24: Sum G = Sum(G|lF1) + G/.(lF1+1) by FVSUM_1:71;
A25: dom F = dom G by A3,A15,FINSEQ_3:29;
  then G/.(lF1+1) = G.(lF1+1) by A5,A18,PARTFUN1:def 6
    .= p.lF1*(power F_Complex).(z,lF1) by A16,A5,A18,A25;
  then |.G/.(lF1+1).| = 1*|.(power F_Complex).(z,lF1).| by A2,A3,COMPLFLD:71;
  then
A26: |.eval(p,z).| >= |.(power F_Complex).(z,lF1).|- |.Sum(G|lF1).| by A14,A24,
COMPLFLD:64;
A27: len F-1 >= 0 by A7,A3;
A28: len (F|lF1) = lF1 by A5,FINSEQ_1:59,NAT_1:11
    .= len (G|lF1) by A3,A15,A5,FINSEQ_1:59,NAT_1:11;
  then
A29: F|lF1|(len (F|lF1)) = F|lF1 & G|lF1|(len (F|lF1)) = G|lF1 by FINSEQ_1:58;
  defpred P[Nat] means
|.Sum(G|lF1|$1).| <= (Sum (F|lF1|$1))*|.(
  power F_Complex).(z,lF2).|;
  len F-2 >=0 by A20,XREAL_1:19;
  then
A30: lF2+1 = len F-2+1 by XREAL_0:def 2
    .= lF1 by A27,XREAL_0:def 2;
  then (power F_Complex).(z,lF1) = (power F_Complex).(z,lF2)*z by GROUP_1:def 7
;
  then
A31: |.(power F_Complex).(z,lF1).|- |.(power F_Complex).(z,lF2).|*Sum (F|lF1
) = |.(power F_Complex).(z,lF2).|*|.z.|- |.(power F_Complex).(z,lF2).|*Sum (F|
  lF1) by COMPLFLD:71
    .= |.(power F_Complex).(z,lF2).|*(|.z.|-Sum (F|lF1));
A32: |.z.| > |.p.0 .|+1 by A17,A22,XXREAL_0:2;
  then
A33: |.z.| > 1 by A13,XXREAL_0:2;
A34: dom (F|lF1) = dom (G|lF1) by A28,FINSEQ_3:29;
    reconsider GG = G|lF1 as FinSequence of the carrier of F_Complex;
    reconsider FF = F|lF1 as FinSequence of REAL;
A35: for n be Nat st P[n] holds P[n+1]
  proof
    let n be Nat;
     reconsider nn=n as Element of NAT by ORDINAL1:def 12;
    assume
A36: |.Sum(G|lF1|n).| <= (Sum (F|lF1|n))*|.(power F_Complex).(z,lF2).|;
    then
A37: |.Sum(GG|n).|+|.GG/.(n+1).| <= (Sum (FF|n))*|.(power
    F_Complex).(z,lF2).|+|.GG/.(n+1).| by XREAL_1:6;
    per cases;
    suppose
A38:  n+1 <= len (G|lF1);
      then n+1 <= lF2+1 by A3,A15,A5,A30,FINSEQ_1:59,NAT_1:11;
      then n <= lF2 by XREAL_1:6;
      then |.z.| to_power n <= |.z.| to_power lF2 by A33,PRE_FF:8;
      then |.z.| to_power n <= |.power(z,lF2).| by A23,Th7;
      then
A39:  |.p.nn.| >= 0 & |.power(z,n).|<=|.power(z,lF2).|
           by A23,Th7,COMPLEX1:46;
      GG|(n+1) = GG|n ^ <*GG/.(n+1)*> by A38,FINSEQ_5:82;
      then Sum(GG|(n+1)) = Sum(GG|n) + GG/.(n+1) by FVSUM_1:71;
      then |.Sum(GG|(n+1)).| <= |.Sum(GG|n).|+|.GG/.(n+1).| by COMPLFLD:62;
      then
A40:  |.Sum(GG|(n+1)).| <= (Sum (FF|n))*|.(power F_Complex).(z,lF2)
      .|+|.GG/.(n+1).| by A37,XXREAL_0:2;
A41:  dom GG c= dom G by FINSEQ_5:18;
      n+1 >= 1 by NAT_1:11;
      then
A42:  n+1 in dom GG by A38,FINSEQ_3:25;
      then
A43:  (F|lF1)/.(n+1) = F/.(n+1) by A34,FINSEQ_4:70
        .= F.(n+1) by A25,A42,A41,PARTFUN1:def 6
        .= |.p.(n+1-'1).| by A4,A25,A42,A41
        .= |.p.nn.| by NAT_D:34;
      GG/.(n+1) = G/.(n+1) by A42,FINSEQ_4:70
        .= G.(n+1) by A42,A41,PARTFUN1:def 6
        .= p.(n+1-'1)*(power F_Complex).(z,n+1-'1) by A16,A42,A41
        .= p.nn*(power F_Complex).(z,n+1-'1) by NAT_D:34
        .= p.nn*(power F_Complex).(z,n) by NAT_D:34;
      then |.GG/.(n+1).| = (F|lF1)/.(n+1)*|.(power F_Complex).(z,n).|
      by A43,COMPLFLD:71;
      then |.GG/.(n+1).| <= (F|lF1)/.(n+1)*|.(power F_Complex).(z,lF2).|
      by A43,A39,XREAL_1:64;
      then
A44:  (Sum(F|lF1|n))*|.(power F_Complex).(z,lF2).|+|.GG/.(n+1).| <=
      (Sum((F|lF1)|n))*|.(power F_Complex).(z,lF2).|+ ((F|lF1)/.(n+1))*|.(power
      F_Complex).(z,lF2).| by XREAL_1:6;
      (F|lF1)|(n+1) = (F|lF1)|n ^ <*(F|lF1)/.(n+1)*> by A28,A38,FINSEQ_5:82;
      then Sum(F|lF1|(n+1)) = Sum ((F|lF1)|n) + (F|lF1)/.(n+1) by RVSUM_1:74;
      hence thesis by A40,A44,XXREAL_0:2;
    end;
    suppose
A45:  n+1 > len GG;
      then n >= len GG by NAT_1:13;
      then
A46:  GG|n = GG & (F|lF1)|n = (F|lF1) by A28,FINSEQ_1:58;
      GG|(n+1) = GG by A45,FINSEQ_1:58;
      hence thesis by A28,A36,A45,A46,FINSEQ_1:58;
    end;
  end;
  G|lF1|0 = <*>the carrier of F_Complex;
  then
A47: P[0] by COMPLFLD:57,RLVECT_1:43,RVSUM_1:72;
  for n be Nat holds P[n] from NAT_1:sch 2(A47,A35);
  then |.Sum(G|lF1).| <= (Sum (F|lF1))*|.(power F_Complex).(z,lF2).| by A29;
  then
  |.(power F_Complex).(z,lF1).|- |.Sum(G|lF1).| >= |.(power F_Complex).(z
  ,lF1).|-(Sum (F|lF1))*|.(power F_Complex).(z,lF2).| by XREAL_1:13;
  then
A48: |.eval(p,z).| >= |.(power F_Complex).(z,lF1).|- |.(power F_Complex).(z,
  lF2).|*Sum (F|lF1) by A26,XXREAL_0:2;
  len F >= 2+1 by A1,A3,NAT_1:13;
  then len F-2 >= 1 by XREAL_1:19;
  then lF2 >= 1 by XREAL_0:def 2;
  then |.z.| to_power lF2 >= |.z.| to_power 1 by A33,PRE_FF:8;
  then |.power(z,lF2).| >= |.z.| to_power 1 by A23,Th7;
  then
  |.(power F_Complex).(z,lF2).| >= |.power(z,1).| by A23,Th7;
  then
A49: |.(power F_Complex).(z,lF2).| >= |.z.| by GROUP_1:50;
  |.(power F_Complex).(z,lF2).| >= 0 & |.z.|-Sum (F|lF1) > 1 by A17,A19,
COMPLEX1:46,XREAL_1:20;
  then
  |.(power F_Complex).(z,lF2).|*(|.z.|-Sum (F|lF1)) >= |.(power F_Complex
  ).(z,lF2).|*1 by XREAL_1:64;
  then |.eval(p,z).| >= |.(power F_Complex).(z,lF2).| by A48,A31,XXREAL_0:2;
  then |.eval(p,z).| >= |.z.| by A49,XXREAL_0:2;
  hence thesis by A32;
end;

theorem Th73:
  for p be Polynomial of F_Complex st len p > 2
  ex z0 be Element of F_Complex st
  for z be Element of F_Complex holds |.eval(p,z).| >= |.eval(p,z0).|
proof
  defpred P[as of a Order Sorted Algebra. {L}:  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 2
  let p be Polynomial of F_Complex;
 np=NormPolynomialp;
  );
 : P[z } as Subset of
REALfromDOMAIN_1s 8;
 q=lower_bound ;
A1  s 
  proof
      XYbeOrderSortedSet ofR;
letbbe ExtReal
    assume b in D;
    thenconsider be   such that
A2:    b = In(|.eval(np,z).|,REAL);
     breconsider M  X (/ Y as ManySortedSet ofR
    hencebyCOMPLEX146
  endhencethesis A1X1;
  java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
  . <+(1+)
|(p,.F_Complex.|REAL)=|.val(p0F_Complex).;
   then
A3: reconsider N1  N as OrderSortedSubset of M by Def1java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
:fornbe Natex g  st [,]
  

    be suchthat
:r in D and
n1 byA3A1,: 2;
    consider g1 be Element oftheSorts ofU OrderSortedSet Sby OSALG_1:17;
 =In|evaln,)|REAL) by A5;
    java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 5
    take g,g1;
    thus g1 = g;
thus thesisby A6,7;
  end;
  considerG beComplex_Sequencesuch that
A8thus thesis by Th3java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
  deffunc G(NatMSAlgebra(the   U0the of#) is ordersorted
  consider F be FinSequence of REAL such that
A9: len F = der-orted  MSSubAlgebraU0java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
 forn be Nat st in  Fholds F.  G(n) : java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
  assume
A11:len p>2java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
  
A12: len p = len p-'1+1 by XREAL_1:235,XXREAL_0:2;
  then p.(len p-'1) <> 0.F_Complex by ALGSEQ_1:10;
  then
A13: |.p.(len p-'1).| >take ;
  G  bounded
  proof
    take r = Sum F + 1;
    java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 12
    consider Gn be Element of F_Complex such that
 Gn  .n
).|  q1(+) A8;
    n+1>=0+1 by XREAL_1:6;
    then
A16:1(n+1)= 1byXREAL_1:211;
   pbyTh57
then
A18: np.(len np-'1) = let be  of U0such hat
    |.G.n.| <= Sum F
    proof
java.lang.StringIndexOutOfBoundsException: Range [27, 3) out of bounds for length 44
      In(|.np.0reserve S1 for OrderSortedSign,
      then |np..|in Dby A19;
      |np. | > q by A1,SEQ_4:ef2java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
      
A20:  |.np.0 .|+1      then consider s2 such that
: n beElementofNAT stnindomF  .n=|np.n-1.java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
     proof letjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      assume n  dom F;
       then Fendjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
      hence  func OSCl M -> OrderSortedSet of S1 means
    end;
      assume |.G.n.| > Sum F;
| > |.np. .+1
       by A11,A9,14A17A18,A21,COMPLFLD60,h72;
      then|eval,Gn)|>|.p |1 byXXREAL_0:;
      hence contradiction by A15,A20,XXREAL_0:2;
    end;
then |G.|0<rby XREAL_1:;
java.lang.StringIndexOutOfBoundsException: Range [12, 4) out of bounds for length 17

thenconsiderG1be Complex_Sequencethat
22:G1subsequenceofG 
A23end;
  defpred P[assume
  G1.assume
      for s be object st s in the carrier of S1 holds W1.s = W2.s
  then reconsider z0=lim G1 as Element of       then reconsider t = s as SortSymbol of S1;
A24: for n behence thesis;
  proof
    let n be Nat;
    reconsider  in the carrier of S1;
    reconsider G1n = G1  M. in {M.s1:s1<= s;
      hence thesis by Def4java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
    take g,java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
   thusG1n =G1.;
    thus thesis;
  end;
  consider H be Complex_Sequence such that
 nbeNat holds P,.] from CFCONT_1:sch 1A24;
 reconsider enp0  eval(p,)as  ofCOMPLEX by COMPLFLD:def1
  consider g be Complex such that
A26A9:s1 = s by A7;
  ex n  Nat st for m be Nat st n <= m holds |.G1.m-g.| < p
 java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
:g inCOMPLEX XCMPLX_0def java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
  then reconsider g1   c=X&OSClX=X  ,h8;
:: following should be rewritten to use OSCl Constants:: maybe later
  now
      proof
        consider Function 
A28: fPF = Polynomial-Function(F_Complex,np) and
A29: fPF is_continuous_on COMPLEX by Th71;
    assume 0 <       let s be o;
    then consider p1 be Real such that      .s1 OSConstantsOU0,1  A1;
A30: 0 < p1 and
A31: for x1 be Complex f ordersorted
    holds |.fPF/       xbe bjectjava.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
  considern be Nat such that
A32:for m be  st  < m holds |G1-g| <p1by A26,;
    take n;
    let m be Nat;
     reconsider mm= m as Elementlet W1, W2 be SSubset of OU0;
    assume n <= m;
    then
A33:|.1mg|<p1  A32;
    ex G1m be Element of F_Complex stassume s in the carrier of S1;
    then
A34
    eg = fPF/.g by A28,java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 5
|..-eg|<p byA31,33,34;
  endjava.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6

A35: H is convergent;
 consider PF be Function of COMPLEX,OMPLEX such that
F_Complex,np)and
A37: PF is_continuous_on COMPLEX by Th71;
  now
    A4:x in (SConstants(OU0))i 
A38: lim G1 in COMPLEX by XCMPLX_0:def 2;
    assume 0 <a;
        
A39: 0 <   considers1 being SortSymbolofS1such that
A40:A9:s1<= s by A7;
    holds |.PF/.x1 -   in (onstants(OU0).s1 by A6,,MSUALG_2:efjava.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 51
consider n be Nat such that
A41: java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
COMSEQ_2:def 6;
    take n;
    let m be Nat;
reconsidermm=as     O:ef12;
    assume n <= m;
    then
.< ;
    ex A3 s1=java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
        ;
A43: PF/.(G1.mm) = H.m by A36,Def13;
    PF/.lim G1 = eval(np,z0) by A36,Def13;
     |Hm -enp0 . <aby ,A42A43;
  end;
  then
44 enp0 =lim H yA35,COMSEQ_2def 6;
  deffunc F(Nat) = 1/($1+1);
  consider  end;
A45: for n be Nat holds R.n =  = O().;
   z0;
  let z be Element of F_Complex;
  reconsider v = |.eval(np,z).| as Element of REAL by XREAL_0:def 1;
set Rcons=seq_const |.eval(np,z).|;
  consider Nseq  let OU1 be OSSubAlgebra of OU0;
A46: G1 = G*Nseq by A22,VALUED_0:def 17;
z).|;
  then |.eval(np,z).| in D;    assume i in thecarrier of S1;
  then
A1 ConstantsOU0 c= ( Sorts of OU1)by :def 18;
48 now
    let n be Nat;
A49:  n in NAT by ORDINAL1:def 12;
    consider A4: for X being st  in {onstantsOU0s1) s1 < s}holds  X c=(the

;
considerbe   such that
A52: gNn = G.(Nseq.n) and
A53:|eval,gNn)| <q1/(Nseq.)1 by 8;
    Nseq.n >= n by SEQM_3:14;
    then Nseq.n+1 >= n+1 by XREAL_1:6;
    then 1/(Nseq.n+1OSAlgebra of S,OU1 being non-empty OSSubAlgebra of OU0 holds OSConstants(OU0)
   then q/(seq+1 < q+1/(+1)byXREAL_1:6java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
    then |.eval(np,gNn)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    then ::
      for I set for M  ManySortedSet of I for x being set
A54: Rcons.n = |.eval(np,z).| & |.eval(np,zjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    by A47,SEQ_1:57,XXREAL_0:2;
     (..-)   byFUNCT_2:ef 1;
    A2: fori being object st  in dombool holds x1. in(bool M).
      .= |.H.|.n-1/(n+1) by A45
      .= |.eval(np,G1n).|-1/(n+1) by A51,VALUED_1:18;
    hence Rcons.n       x1. c .by A1,3java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  end;
A55: R is convergent       .= dom bool M by :def2java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
  then|H.-R is convergent by A35;
   Rcons. =|.val(np,). &lim(|H|-)<= lim Rcons by A48,SEQ_1:java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76

  then
 SEQ_4:25;
  lim (|.H.|-R) = lim  proof
    .= |.lim H.| - lim R by    . in (bool M)i  A1,6A7java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
    .= |.lim H.| - 0 by A45,SEQ_4  hence thesis by A4,BOOLE:def18java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
  then |.java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
  then |  func OSbool(M)- set means
  then |.eval(p,z).|/|.p.(len p-'  existence
ALGSEQ_1:10,COMPLFLD:73;
  then |.eval(p,z).|A1:fory being set holds y in  iff y in f &Py from XFAMILY:ch 1;
,LGSEQ_1:,COMPLFLD73;
  hence thesis by A13,XREAL_1:74;
end;

::$N Fundamental Theorem of Algebra
::$L https://en.wikipedia.org/wiki/Fundamental_theorem_of_algebra Fundamental Theorem of Algebra
oremTh74java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
  for pbe  F_Complex st lenp>1    with_roots
proof
  let p be Polynomial of F_Complex;
assume
: len p > 1
  then
A2: len p >= 1+1 by NAT_1let x  object;
  per casesexy being Element of SubSort(A)stjava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 72
  suppose
    len p > 2;
    then consider z0 be Element of F_Complex such that
A3t Sorts  OU0 OrderSortedSetof S1 by OSALG_1:7;
| 
    set q = Substjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
    defpred P  clusterOSSubSortA -non empty;
    len <%z0,1_F_Complex%> = java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 10
    then
A4: len q = 2*len p - len p - 2end;
      . len pjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
:ex k be Nat st P[]
    proof
  isOrderSortedSet S1java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
      then reconsider k=len q-x2in{ywhere y is Elementof SubSortOU0):y  OrderSortedSet of S1
      take k;
      len q >= 1+1 by A1,  cluster OSSubSort(U0 - nonempty;
          OSSubSo()=(java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
      len q = k+1;
      hence q.k <> 0.F_Complex by ALGSEQ_1:  let e be Element of OSSubSort;
    end;
    consider k be Nat such that
A6: P[k] and
A7: for n be Nat st P[n] holds k <= n from NAT_1:sch 5(A5);
+>1 byA6,AT_1:3java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
   k1 as non zero Element of NAT by A6,:def 12
java.lang.StringIndexOutOfBoundsException: Range [10, 4) out of bounds for length 41
    deffunc O(Nat) =
       (q.In(k1+$1,NAT))*((power F_Complex).(sq,In(k1+$1,NAT)));
    consider F2 be FinSequence of the carrier of F_Complex such that
A9: len F2 = len q-'(k1+1) and
A10: for n be Nat stjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    k1 < len q by A6,ALGSEQ_1:8;
    then
A11: k+1+0 <= proof
     len (+)>=0by XREAL_1:;
    then
A12: len F2 = len java.lang.StringIndexOutOfBoundsException: Range [18, 8) out of bounds for length 8
A13:eval(,0) = eval(,+._) by RLVECT_1def4
      %>,0F_Complex)byTh47
 . (0F_omplex) byTh53java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
A14: now
      let z be Element of F_Complex;A5:BinSubSortA byA2,M:java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
      eval(q,z) = ;
 eval(,0z byTh47;
      then |.eval(q,z).| >= |.let Bbe  ofOU0java.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27
      hence |.eval(q,z).| >= |.q.0 .| by A13,Th31;
    end;
    java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 32
      let c be Real;
      assume that
 <c and
A16:  c < 1;
      set       OSSubSortA >set 
       F1 be FinSequenceof  carrier of F_Complex such that
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
A18: len F1 =len  and
A19:  for n be Element of NAT st n in dom F1 holds F1.n = q.(n-'1)*(
      powerF_Complex).(z1,n-'1) by POLYNOM4:def 2;
:dom((1/^(k))**cto_power  (k+),0*])= dom (1/(+1))
      by POLYNOM1:def 2;
21  k1  len F1 by A6,18,ALGSEQ_1:8;
      reconsider FF = F1|k1 as FinSequence of the carrier of F_Complex;   for  be  holds  in X iff ex B be OSSubset of OU0 st  n
      1 in Seg k by A6,FINSEQ_1:1;
      (  OU0s c=union (Sorts) 74
         in implies ex B be OSSubset of OU0 st B in OSSubSort(A) & x = B
A22:  1 in dom FF by FINSEQ_1:def 3;
A23:  dom FF c= dom F1 by FINSEQ_5:18;
      now
        let i beproof
        assume that
24: in dom FF and
A25:    i <>  forx being object olds in  iff Px]holds X1  X2
A26:    0+1 <
        then i > 1 by A25,XXREAL_0:1;
        then i >= 1+1 by NAT_1:13;
        then i-1 >= 1+1-1 by XREAL_1:9;
        then
A27:    i-    assume x in OSSubSort(A,;
        i <= len (F1|k) by A24,FINSEQ_3:25;
        then i <= k by A21 hence thesis by A1,A2,Def10OSALG_1:def 6;
        then i        then i 
        then
A28:    theorem Th22:
        i-1 >= 0 by A26;
        then
def 2;
thusFF/. =F1/. by A24,FINSEQ_4:
= F1.i by A23,A24,PARTFUN1:def 6
          .= q.(i-'1)*(power F_Complex).(z1,  OSSubSort(A c=SubSort(A)by Th16;
          .= 0.F_Complex*(power F_Complex)e;
          .= 0.F_Complex;
      end;
      then
A30:  Sum FF = FF/.1 by A22,POLYNOM2:3
  reconsider B=theSorts of OU0 of OU0by ;
        .=  then B in OSSubSort(A) by Def10;
        .= q.(1-'egistration
        .= q.0*(power F_Complex).(z1  OSSubSortAs >nonemptyjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
        .= q.0*(power   let A be OSSubset of OU0
        .Def11:
. .java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
      A1: dom= S1 s  S1 .=Fs
      java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
NSEQ_1def3;
      
A32:  F1.(k+1) = F1/.(k+1) A2   f.s  meet(SSubSort(,s) by;
      set gc = Sum(F1/^(k+1))/[**A3   u0 is OSSubset of OU0 by Def2java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
A33:  c to_power (k+1) > 0 by A15,POWER:34        A2,:3;
      then
1)=[c(1,**]*umF1/^k+)/[**
      to_power (k+1),0**] by COMPLFLD:7,30
        .= [**c to_power (k+1),0**]*gc;
A35:  F1/.(k+1) = F1.(k+1) by A31,PARTFUN1:def 6
       . q(k+-')(power)(1k+'1)by ,A31
        .= q.k1*(power F_Complex).(z1,k+1-'1) by NAT_D:34
        .= q.k1*(power F_Complex).(z1,k1) by NAT_D:34
        .  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
)52
)*(-(0q) 
COMPLFLD:def  
        .= q.k1*      henreconsiders asSortSymbolof ;
        .= q.k1*((    end
        .(. -.)q.1(ower F_Complex)[*,*]k1)
        .= (-q.0)*(power F_Complex).([**c,0**],k1)  existence
        isjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 77
A36:  |.q.0*(1_F_Complex-[**c to_power     x2=x1 asMSSubsetofOU0by MSUALG_2def 11;
|<|q.*(1_F_Complex*c k0*)|+|[* o_power (k+)0*java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
      *gc.| by COMPLFLD:62;
      F1 = (F1|(k+1-'1))^<*F1java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
   SumF|k1-1)</k1*)  (/k1),
RLVECT_1:41
        .= Sum(F1ajava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 31
        .= Sum(F1|k) + Sum<   .  java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 21
        .= q.0 + (-q.0)*[**;
RLVECT_1:44
        =.+-0*c0*  /k1)
        .= q.0*1_java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        .= q.0*(1_F_Complex-[**c to_power k,0**])+ [**c to_power (k+1),0**]*
gcbyA34java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
then
      |.  ;
      gc.| >= |.q.0 .| assume Z in OSSubSort;
      then
      |.q.0*(1_F_Complex-[**c  java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 53
      0**]*gc.| >= |.q.0 .| byA4: (OSConstants(OU0) (\/) A).s  meetOSSubSortAs)by SETFAM_1:;
      then
      |.q.0 .|*|.1_java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 15
      1),0**]*gc.| >= |.q.0 .| by COMPLFLD:71;
      then
  .0.*._-*to_power0*|+.*java.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 73
        java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 21
+ cto_power k1 = 1 by A15,16T:2;

A38:  1-(c to_power k  endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
A39:  c to_powerojava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 61
A40:  len |.(F1/^(k+1))*( ).) *t java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 58
*java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 40
        .= len (F1/^(k+1)) by A20,FINSEQ_3:29
         F1 A11A18,FINSEQdef1
        .= len |.F2.| by A12,A18,Def2;
      now
        let i be Element of NAT;
A41:    k+1+i-'1 = k+i+1-1 by XREAL_0:def 2
          .= k+i;
        assume i in dom |.(F1/^(k+1))*[**c to_power (k+1),0**]".|;
        then
A43:    i in Seg len |.(F1/^(k+1))*[**c to_power (klet be objectjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
 3;
        then i <= len |.F2.| by A40,FINSEQ_1:1;
        then i <= len 13
        then kthenconsider besuchthat
        then
A44 .  by,
i> 0+1 byjava.lang.StringIndexOutOfBoundsException: Range [23, 20) out of bounds for length 35
        then
A45:    i-1 >= 0;
        c to_power (i-'1) <= 1 by A15,A16
        then
A46:    c to_power (i-1) <= 1 by A45,    rng ((Den(o,OU0))|(((OSMSubSort A)# * (theS1)o))c=(java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
A47:    c to_power (k+i)   c=OSConstantsOU0 \)A (U0)(/ c ()
A48:    kend
        i in Seg len ((F1/^let AbeOSSubsetof ;
        then
A49:    i in dom ((F1/^(k+1))*[**c to_power (k+1),0**]") java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 0

A50:    set  =MSAlgebra(A, Opers(A   ofA  the
          .= F1.(k+1+i) by A11,A18,A20,A49,          .= F1.(k+1+i) by A11,A18,A20,A49,RFINSEQ:ef15
          .= q.In(k+1+i-'1,NAT)*(power java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 4
                  by  let OU1OU2  OSSubAlgebra of OU0;
          .= q.In(k+i,NAT)*(power(sq,  proof
                   by A41,GROUP_1:52
          .= q.In(k+i,NAT)*power(sq,k+i)* power([**c,0**],k+i);
A51:    len F2 hencethesisOSALG_1:;
A53:    |.(F1/^(k+1))*[**c 
          = |.((F1/^(k+1))*[**c to_power (k+1),0**]").
          .= |.((F1/^(k+1))*[**c java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 0
          
          .= |.((F1/^(k+1))/.i)*[**c to_power (  java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 22
          byA20,,: java.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35
           (k+1),0*].  COMPLFLD71
          .= |.q.In:A  by
                 power([**c,0**],k+i).|*|java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 41
    B1=  ofU2 as MSSubset of OU0by MSUALG_2d 9
          . |q.In(+,NAT)*ower(sq,k+).|
|[c0*,+i.||cto_power(+)."byCOMPLFLD:71
          .=thenOU0 =BbyPBOOLEd ;
        **].|*|A4  A A3java.lang.StringIndexOutOfBoundsException: Range [33, 34) out of bounds for length 33
          .= |.q.Inassume    carrier ;
        c to_power (k+1).|" by A47,ABSVALUE:def 1
          .= |.q.In(kend;
        to_power In(k+1,java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 6
OSSubset holdsW1 OSSubAlgebraU1& is OSSubset of W2 & for U2 be
       java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 25
          .= |.q.In(k+i,NAT)*power(sq,k+i).|* (java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
        to_power (k+1)))
          .= |.q.In(ktheoremTh30java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
          by A15,A48,POWER:29;
A54:    i in dom F2 by A40,A43,A51,FINSEQ_1:def 3;
        (q.In(k+i,    = U0aas  OSSubAlgebra of U0java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
           = q.In(k+i,NAT)*(power F_Complex).(sq,In(k+i,    Arity of S1),(a * the ResultSort of S1)#) by MSUALG_2:def
          .= O(i)
          .holdsisjava.lang.StringIndexOutOfBoundsException: Range [34, 30) out of bounds for length 37
         ((+)**to_powerk,]|= .i|
        by A46,A53,COMPLEX1=the   ofMdef;
        hence |.(F1/^(k+1))*[**c to_power (k+1),0**]".|.java.lang.StringIndexOutOfBoundsException: Range [0, 57) out of bounds for length 54
        by A54,Def2;
      end;
      then
A55:  then
      the Sorts u1 c the Sorts ofU2
      |.1_F_Complex-[**c to_power k,0**].|    proof
      0**].| by COMPLEX1:def 4,COMPLFLD assume in the carrier ofS1;
        .= |.[**1-(c to_power k1),0-0**].|
        . 1-c to_powerk)byA38ABSVALUEd;
      then |.[**c to_power (k+1),0**].|*|.gc.| >= |.q.0 .|*1 - |.q.0 .|*(1-(c
      to_power k)) by A37,XREAL_1:20;
      then (c to_power (k+1))*|.gc.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ABSVALUE:def 1;
      then
      (c Sorts of GenMSAlg = MSSubSortA
      /(c to_power k) by A39,XREAL_1:72  MSSubset of U0;
      then (c to_power  u1  |as strictMSSubAlgebraofU0;
XCMPLX_189;
      then (c to_power (k+1-k))*|.gc.| >= |.q.0 .| by A15,POWER:29;
      
A56:  c*|.gc.| >= |.q.0 .| by POWER:25;
      gc = Sum(F1/^(k+1))*[**c to_power (k+1),0**]"
        =Sum(F1/^k1)*[*to_power(+1)0*])byPOLYNOM113;
U0   U2java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 51
then..|<= Sum|F2| by ,XREAL_0:java.lang.StringIndexOutOfBoundsException: Range [49, 50) out of bounds for length 49
      then c*|.gc.| <= c*Sum|.F2.| by A15A5:Bin SubSort()by A4MSUALG_213
      hence c*Sum|.F2.| >= |.q.0 .| by A56,letbeobjectjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
    end;
    then |.qMSUALG_2def 13,ef 14;
    then
A57: qhence GenMSAlgA = U0a byMSUALG_2:ef 17;
    ex x be Element of F_Complex st x is_a_root_of p
    proof
      take z0;
        the Sortsof GenOSAlg()
      hence thesis;
    end;
    hence thesis;
  end;
   Sorts ofGM  ()by ;
A58: len p = 2;
java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 29
A59: len    (he  ofGO)s=meet OSSubSortA,)by Def11
A60: len np = len p by A58,Th57;
A61: now
      let k be Nat;
      assume
A62:  k < len np;
      per cases by A58,A60,java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 13
      
        k=0;
        hence np.k = <%np.0,1_F_Complex%>.k by Th38;
      end;
      suppose
A63:    k=1  hence thesis by A1,MSUALG_2:7;
        hence np.
          = %np.0,_F_Complex%>kby ,Th38;
      end;
    ;
en%.,_%  byTh40java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
    then
A64: np = <%np.0,1_F_Complex%> by A58,A61,Th57,ALGSEQ_1B isOSSubset of W by Def12;
    ex x be Element of F_Complex st x is_a_root_of np
    proof
take  -.0java.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
      eval(np,z0) = np.0+z0 by A64,Th47
        . 0._Complex by RLVECT_1:;
java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
    end;proof
    then np is with_roots;
    hence hesisby A58,h60;
  end;
end;

registration
  cluster F_Complex -> algebraic-closed;
  coherence by Th74;
end;

registration
  cluster algebraic-closed add-associative right_zeroed right_complementable
    Abelian commutative associative distributive java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 29
    degenerated for well-unital non empty doubleLoopStr;
  for A
  proof
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 7
    thus thesis;
  end;
end;

Messung
CHZG
8210010094

¤ Dauer der Verarbeitung: 0.120 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,055
#Domains=861,536