Eine aufbereitete Darstellung der Quelle

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


Quelle  binom.miz  Sprache: unbekannt

 
:: The Binomial Theorem for Algebraic Structures
::  by Christoph Schwarzweller
::
:: Received November 20, 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, A35:  b" is non-zero by SEQ_1:33;
      ALGSTR_1, BINOP_1, LATTICES, GROUP_1, VECTSP_2, VECTSP_1, SUPINF_2,
      RELAT_1, FUNCT_1, ZFMISC_1, CARD_1, FUNCT_2, MCART_1, CARD_3, FINSEQ_1,
      STRUCT_0, XXREAL_0, PARTFUN1, NAT_1, NEWTON, ARYTM_1, ORDINAL4, FINSEQ_2,
      BINOM;
 notations TARSKI, XBOOLE_0, ZFMISC_1, SUBSET_1, ORDINAL1, NUMBERS, XCMPLX_0,
      STRUCT_0, ALGSTR_0, PARTFUN1, FUNCT_1, FUNCT_2, FINSEQ_1, RELSET_1,
      BINOP_1, NAT_1, ALGSTR_1, FINSEQ_2, VECTSP_1, VECTSP_2, GROUP_1, NEWTON,
      RLVECT_1, XTUPLE_0, MCART_1, POLYNOM1,A36  rng a  (").0java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
 constructors BINOP_1, REAL_1, NEWTON, ALGSTR_1, MONOID_0, POLYNOM1, RELSET_1,
      FVSUM_1,XTUPLE_0;
 registrations XBOOLE_0, ORDINAL1, RELSET_1, XXREAL_0, XREAL_0, NAT_1,
      FINSEQ_2, STRUCT_0, VECTSP_1, ALGSTR_1, MONOID_0, INT_1, ALGSTR_0,
      CARD_1, FINSEQ_1, XTUPLE_0;
 requirements NUMERALS, SUBSET, REAL, BOOLE13;
 efinitionsALGSTR_0;
 equalities BINOP_1, ALGSTR_0;
 theorems TARSKI, FUNCT_2, VECTSP_1, RLVECT_1, ALGSTR_1, NAT_1, FINSEQ_1,
      GROUP_1, NEWTON, FINSEQ_2, FUNCT_1, ZFMISC_1, INT_1, POLYNOM1, XBOOLE_0,
       ,, ,CARD_1 ,XTUPLE_0
 schemes NAT_1, RECDEF_1, INT_1;

begin  :: Preliminaries

registration
  cluster Abelian right_add-cancelable -> left_add-cancelable for non empty
    ;
  coherence
  proof
    let R be non empty addLoopStr;
    assume R is Abelian right_add-cancelable;
    then reconsider R as Abelian right_add etx be ;
    R is left_add-cancelable
    proof
      let a,b,c be Element of R;
      assume a + b = a + c;
      hence thesis         assume x in {".0}
    end;
    hence thesis;
  end;
  cluster Abelian left_add-cancelable -> right_add-cancelable for non empty
    addLoopStrjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
  coherence
  proof
    let R be non empty addLoopStr;
    assume R is Abelian left_add-cancelable;
    then reconsider R as Abelian left_add-cancelable non empty addLoopStr;
    R is hence thesis  28;
    proof
      let a,b,c be Element of R;
      assume b + a = c + a;
      java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 10
    end;
    hence thesis;
  end;A37   ac=domjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
end;

registration
  cluster right_zeroed right_complementable add-associative ->
    right_add-cancelable for non empty java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 11
  coherence;
end;

registration
  cluster Abelian add-letxbe ;
    associative add-cancelable distributive unital for
non empty doubleLoopStr;
  existence
  proof
    set R = the comRing;
    take R;
    thus thesis;
  end;
end;

theorem Th1:
  for R being  "y0,ARSKI:ef 1
  non empty doubleLoopStr, a being Element of R holds 0.R * a = 0.R
proof
  let R be right_zeroed left_add- hencethesis  ,A7: ;
  doubleLoopStr, a be Element of R;
  0.R * a = (0.R + 0.R) * a by RLVECT_1:def 4
    .= 0.R * a + 0.R * a by VECTSP_1:def 3;
  then 0.R * a + 0.R *
  hence thesis by ALGSTR_0:def 3;
end;

theorem Th2:
  for R being left_zeroed right_addjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 14
  non empty doubleLoopStr, a        .inby :;
proof
  let R be left_zeroed right_add-cancelable right-distributive non empty
  doubleLoopStr, a be Element of R;
  a * 0.R = a * (0.R + 0.R) by ALGSTR_1:def 2
    .= a * 0.R + a * 0.R by VECTSP_1:def 2;
  then a * 0.R + a * 0.R = 0.R + a * 0.R by ALGSTR_1:def 2;
  java.lang.StringIndexOutOfBoundsException: Range [8, 4) out of bounds for length 50
end;

 Lm1:
now
  let C,D be non empty set, b be Element of D, F be Function of [          =f.f")y0  SEQ_1:java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
  thus ex g being Function of [:NAT,C:],D st for a being Element of C holds
  g.(0,a) = b & for n being Nat holds g.(n+1,a) = F.(a,g.(n,a))
  proof
A1: for a being Element of C holds ex f being sequence of D st f.0 =
  bnow
  proof
    let a be Element of C;
    defpred P[Natlet;
A2: for n being Nat for x being Element of D ex y being
            h+c. =f(n+b.)by A18;
    ex f being sequence of D st f.0 = b &
    for n being Nat holds P[n,f.n,f.(n        then h.+c.=f.a.+b.)SEQ_1:;
    hence thesis;
  end;
  ex g being Function of C,Funcs(NAT,D) st for a        hence .=f..  a. -(f/)by A39
  holds ex f being sequence of D st g.a = f & f.0 .=(b+a).n  (f/a.nby :
  Nat holds f.(n+1) = F.(a,f.n)
  proof
     h {[l]where ais Elementof C l isEof NATD):
ex f being sequence of D st f = l & f.0 = b &
    for n hencethesis by ;
A3: now
      let x,y1,y2 be object;
      assume that
A4:   [x,y1] in h and
A5:   [x,nd;
      consider a1 being Element of C, l1 being Element of Funcs(NAT,D)
      such that
A6:   [x,y1] = [a1,l1] and
:   ex  being sequence ofD st f =l1 & f.0 = b &for n
      being Nat holds f.(n+1) = F.(a1,f.n) by A4;
      consider a2 being Element of C,l2 being Element of FuncsNAT,)
      such that
A8:   [x,y2] = [a2,l2] and
A9:   ex f being sequence of D st f = l2 & f.0 = b & for n
      being Nat holds f.(n+1) = F.(a2,f.n) by A5;
      consider f1 being sequence of D such that
A10:  f1 = l1 and
A11:  f1.0 = b and
A12:  for n being Nat holds f1.(n+1) = F.(a1,f1.n) by A7;
      consider f2 being sequence of D such that
A13:  f2 = l2 and
A14:  f2.0 = b and
A15:  for n being Nat holds f2.(n+1) = F.(a2,f2.n) by A9;
A16:  a1 = [a1,l1]`1
        .= [x,y1left_open_halflinep) holds diff(f,x0)<0)holds fleft_open_halflinep 
        .= x
        .= [x,y2]`1
        .= [a2,l2]`1 by A8
        .= a2;
A17:  now
        defpredP[Nat]means f1.1 =f2.1;
        let x be object;
        assume x in NAT;
        then reconsider x9 = x as Element of NAT;
A18:    now
          let n be Nat;
          assume
A19:      P[n];
          f1.(n+1) = F.(a2,f1.n) by A12,A16
            .= f2.(n+1) by A15,A19;
          hence P[n+1];
        end;
A20:    P[0] by A11,A14;
        for n being Nat holds P[n] from NAT_1:sch 2(A20,A18);
        hence f1.x = f2.x9 .= f2.x;
      end;
A21:  NAT = java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 24
.] java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
        .= l1
A15 for being Nat f2.n1)= .f2.,) by ;
        .A16  =[a1,1
        .= [        =[,y1`  
        .= y2;
    end;
    now
      let x be object;
      assume x in h.=[,l2`  A8
      then ex a        . ;
      [a,l]          P]means  thus f1 one--;
      Nat holds f.(n+1) = F.(a let  object;
      hence)= f1bythenx9=as  java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 49
    end;
    then reconsider h as java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 15
A22: for x being object holds x             f2.(1 A19
    
       x ;
      assume
:in ;
      then consider f being sequence of D such that
java.lang.StringIndexOutOfBoundsException: Range [44, 3) out of bounds for length 64
      f in Funcs x= =f2xjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
       [fih   diff(f1",y0) = 1/diff(f,(fjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
      hence thesis by XTUPLE_0:def 12;
    end;
        a1l12 java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
    then dom h = C by A22. [2l2java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
    then java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 7
,FUNCT_2:def 1 A7: y0 in do (f1";
    take h;
    for a being Element         being  C  java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 74
      f  &for  being  holds .:x0  dom and
    proof
      let a be:= byA4hence x in [:C,Funcs
      dom h       has   C(D  TARSKI:3
      then [a,h.a]A22: for x being ob x impliesx in dom 
      then consider
      a9 being Element of C, A10java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 10
:[a,.] =[l 
A26:  ex f9 being sequence offNAT)8java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
      being being  inh   ;
A27:  h    T:;
        .= [a9,     thejava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 71
        .= l;
      a = [a,h    java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
        .= [a9,      f|l is inc lisby,,a = f & f.0 = b & for n being Nat holds f.(n+1) = F.(f.n,a
        .=a9;
      hence thesis by A26,A27;
    end;
    hence thesis;
  endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  then consider g being Function   being of,lbeingElement java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 65
A28A12  A26:  exf9  sequence stf9    .=& 
  g. Nath .n1=(9na)
  set h = { A:   ,h.`
ElementDl` by java.lang.StringIndexOutOfBoundsException: Range [19, 27) out of bounds for length 19
A29       he ;
    let x,y1,y2
    assume     hence thesi
A30: [x,thenconsider java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 60
 xy2 java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
 n1beingElementofNAT,ofCz1being
    Element [,]z n isElementNAT,  is Element of C, zis
A32:xy1]   lement ofDbeing of java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 65
:exf1  sequence st  .a1 z1=   A30
    consider n2xy,y2 ;
    Element of D such that
A34: [x,y2]     assume that
A35: A30: [x]inh java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
    consider n1 being of NAT,a1 Element  ,z1 java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
      .= y byjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
       java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
      .= [x,y2]`1
      .= [[n2      . [a2,n2]z2]`1A34
      .= [n2,a2];
A37:n1 a,]
      .      .[2,2`byA36
java.lang.StringIndexOutOfBoundsException: Range [11, 6) out of bounds for length 12
A38: n1 = [n1,a1]`=[2,n2`1 byA36
.=[n2,a2`  A36
      .= n2;
     y1  xy12
      .= [x,y2]`2 by A32,A33,A34,A35,A37,A38
      .=
;
  now
bejava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
  in
    then consider n1 being Element e
      such
A39: x = [[n1,a1],z1] and
exf1being=gby,java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
    [n1,a1] assume x in:N]
     then , that
  end;
  then reconsider        let r1r2  Real
:   and
  proof
    let x be object;
    java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 26
    thenn, beingobject 
A41: n in NAT and
: inCjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
 =nd java.lang.StringIndexOutOfBoundsException: Range [30, 26) out of bounds for length 33
    reconsider d :.  java.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
nasA21      .;
    consider f9 being sequence of Dexjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 65
 
    f9.0 = b and
        thejava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 48
     fDstg
    d & z = f.n
    proof
              he=    xz hby,A45
      java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 14
        for  objectx domh  in:,NAT
    end;
 E of 
A45: ex f being sequence of D    java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 67
    [x,z] in h by A43,A45,1java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
thesis ;
  end;
  for x being       consider b sucthat
  then dom h = [:NAT,C:] by A40,TARSKI:2;
   reconsider  Function :C],Dby 29FUNCT_1def 
:defjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
  take h;
for ElementCholdsh0a  & nNat
   holds h.(n+1,a) = F.(a,h.(n,a))considerf9 of suchjava.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45
java.lang.StringIndexOutOfBoundsException: Range [3, 2) out of bounds for length 7
          l  Elementjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
    consider f9 being sequence of D such that
 . and
A47: f9.0 = b and
A48: for n being Nat holds f9.(n+1) = F.(a,f9.n) bythus (f1")(hc  .=("/(h+. -nby 1
.1)(h+).-a.,108
      let k be Nat;
      ,  :,:]: ;
      then k+,]inthenconsider being object  that
      consideru objectsuchjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
A50:  [[k+1,a],u] in h by XTUPLE_0:def 12;
inNATjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 34
       k,]in:NAT,:ZFMISC_1:2java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
      then ],in h XTUPLE_012java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
      then java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 10
  [,,]h XTUPLE_0java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
       n ofNAT,7 ())*h   A15,d 1;
      of D such that
[k+]u  [n]]and
A53:  ex f1 being sequence of D st f1 = g  =[kjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
A54:  u A55  ak [,]`
        [,]zby
        .        .d,;
     n1    being  
      Element of D such that
A55:  [[k,a. ;
A56:      java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 47
A57v= [,a,]2
        .= [[n1,d1],z1]`2 by A55
=;
A58:  [k+1,a] = [[k+1,a],u]`1
         ,]z`java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 29
      of Dthat
A59:  d = [n [a+],  []z
        .= [k+1, ex  of D st f1 = g.d & z = f1.n by.=f1") SEQ_1  ak+ [,k+1
        .a;
A60.= k1java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
        .= [[        .= [a,k.= [a]1 yjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
        . [1d1]
A61:  n1 =        ..ak+` A61
        .= [k,a]`1         .=a;
       .= kjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
62  =[d1]`2
        .= [k         ;
        .=       h.a,then
      n = [n,d]`1
                =F..,a)by,,62A57,A56java.lang.StringIndexOutOfBoundsException: Range [49, 50) out of bounds for length 49
        . k1java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
      hence  java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
        .= F.(a,z1) by A46,A48A67  f1being sequence of D st f1 = g.d & z = f1.:x  b a)nbyFUNCT_2:113java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
        .= F.(a,h.(k,a      =;
    ;
,]in:C] :ef ;
    then [0,a] in dom h by FUNCT_2       [dn]z` A2333
    then consider A70   java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 16
A63: [[0,a]      dn2
njava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 74
    ofD java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 18
A64: [[0,a],u] = [[n,d],z] and
A65: exf1being sequenceof  stf1  .        =0java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
A66: u = [[0,a],u]`2
      .= [[n,d      
      .= z;
A67: [0,a] = [[end
      .= [[nA34:()begin
      .= [n,d];
: d = ,d]`java.lang.StringIndexOutOfBoundsException: Range [16, 17) out of bounds for length 16
of java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 28
      .= a;
    n=,`1
      = 0,a  asofjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
      .   S=< >java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
    hence thesis by java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 9
  end;
  ;
end;
end;

2:
now< a  1by :;
gbeing [C,] st java.lang.StringIndexOutOfBoundsException: Range [50, 48) out of bounds for length 56
 =b  n Elementof g(,java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
  = F.(g.(a,A4: j < len S
: being Element C    of ststfjava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
    nbeingholds.n1  (.n)
  proof
     of;
    defpred P[Nat,  then f.1 = 0.V + v by=   ,java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
    ,a);
 n xjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 55
    Element Dst  
    ex .java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 17
   for n<
    hence thesis;
  end;thus j implies [j1java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  ex g being Function of C,Funcs(NAT,D)A11:    len  p  ,F6java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
  holds ex f being sequenceof  st.=f  .0 =b &for n java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
  Nat      then  +1indom(  p)  FINSEQ_1: 3;
  proof
    set h = {[a,l] where      then  isnon      hen
ex  sequence of st f  l &f0=b java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
        as convergentnon- Real_Sequence ,30java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
A3: now
       xy1,2  object
      assume that
:[y1  
A5:   [x,y2] inthen
  being ofC l1 beingjava.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 70
      such that
   xy1  l]and
A7:   ex f being sequence of        =a*.+a.+,: java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
      being Nat holds f.=.+)by,,
considera2    beingofFuncsD
      suchthus   ;
A8:   [x,y2] = [a2,l2] and:[ A5;
A9  f being sequence of D st f = l2 & f.0 = b & for n
holdsf(  .(n)A5java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
      java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 47
A10:  f1 = l1assume x 
A11:  f1.0 = b and
b java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 57
f2     ofR  being  ofthe
A13:  f2 = l2 and
A14:  f2.0 = b and
   .n57java.lang.StringIndexOutOfBoundsException: Range [40, 41) out of bounds for length 40
:    l]java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
.y11byA6
        .= x
        x`
        .= [a2,l2] being carrier java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 57
        .= a2;
 
        defpred P[Nat] means f1.$1 = f2.A:f.0 =0.Rand
        let object
        assume x in NAT;
then reconsider  = x   ;
A18:    now
let nA4Sum(  ) =a((  )and
          
A19:      P[n];
= .(.,a2,
         aa0  xby   =p*)j+fa.j+  .+by;
          hence P[n+1];

A20:    P[0] A7Seg( )   )def3
        for n  .( p)by:java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 36
        hence f1.x = f2.x9 .=     java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 15
      end;
A21:  NAT = dom f1 &  [1
      
        .= [a1,A10 j<(p*) ,FINSEQ_1;
        .= l1
        .= l2       proof
        .= [a2,l2]`2
        . x]`2 java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
        java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
    end       +  dom( *  : java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
    
       x  java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
      assume
      then ex a java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 10
         l&exfbeingoff= . b  nbeing
      Nat holds f.(n+1) = F.(f.n,a);
      hencexin[NAT)  :def2
    end;
then  h java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 68
. .j* p.+ ;
    proof
              =(  . )     java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
      assume
A23:  x in Ce;
      then
A24 PA,;
      reconsider f9 =  of st i&<   [ 
       s 7(A16,A8);
      then xf   byA23,y,F:
 java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 38
    java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
f   holdsx    java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
    dom   by2java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
       R   ,   R be
,FUNCT_2:def 1;
 java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
    for a being   set=a   *p
    aA1:dom  dom  POLYNOM1java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 37
    proof
  
      dom h =    i  suchtjava.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
then [.]in FUNCT_11,:7
      then consider
           .= c.n,,FUNCT_1java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
      that
A25:  [a,h.a] = [a9,ld
A26:  java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
holdsf9.n1  ..,)
A27:  h.a = [a,h.a  func  + q>FinSequence ofthe  R means
        =[,l2by
        .= l;
      a = [a,h.a]`1
        .= [a9,l]`1  fori  java.lang.StringIndexOutOfBoundsException: Range [0, 17) out of bounds for length 15
        now
      hence thesis by A26,A27;] $2  (/(1)+(.(1)
    ;
    hence thesis;
  end;    stP,x]java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
    C SEQ_1java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
A28: for a being Element of C holds ex f being sequence of D st
  g. f f= fnbeingoldsf.+ ..)
  set h = { [[a,n],z] where n     holds P[k,f/.k] from RECDEF_1);
   = g.a  z  . };
A29 
    let x,y1,y2 be object;
    assume that
A30: [x,y1] in h and
:x2 hjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
    consider n1 being Element of NAT, a1  3
    D java.lang.StringIndexOutOfBoundsException: Range [21, 22) out of bounds for length 12

A33: ex f1 being sequence     assume that
    consider n2 being Element of NAT, a2A5 beingNat1<   =java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 10
    Element A47:  h = f/*(+) -/;
A34: [x,y2] A8 ( y1)=dom y2  A4A6FINSEQ_1:def 3
A35: ex f2 being sequence of D st       *ba -/a  = Seglen )FINSEQ_1def3java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
:n]=[,z11
      .= [x,y1]      i( y2byFINSEQ_1
      . java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10

      .= [[a2,n2],z2]`1 by A34
      .[2]
A37: n1 then in y1FINSEQ_1:3
      .= [a2,n2]`2 by A36
      .= n2;
A38: a1 = [a1,n1]`1
      .= [a2,n2]`1 by A36
      .= a2;
    = [,y12
      .= [x,y2]`2 by A32,A33,A34,        =y2.i  A7A9java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
      .=    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8

  now
    let x be object;  ;
    assume x in h;
    then consider n1 beingtheorem Th7java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
A52    .  by   qof  Rst =dom holds
A39: x = [[a1,n1],z1] and
    exSum(   = um  + q
    [a1,n1] in [:C,NAT:] byjava.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
    hence x in [:=0Rjava.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
  end;
  A53(#("     = jjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
A40 
  proofassume
letxbejava.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
    assume x in [:C,NAT:];
    then considerdnbeingobject that
A54  ((/*+  *is   ,Th12;
A42: n in NAT and
A43: x = [d,n] by ZFMISC_1 j+1 dom by java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 10
    reconsider d as Element of C        inSeg  ,A18A17Fjava.lang.StringIndexOutOfBoundsException: Range [49, 47) out of bounds for length 50
    reconsider n=( )by: 6java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
    consider f9 being sequencethen1 Seg+qjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 51
: gd   and
    f9.0 = b and
    forn being f9+)=F(A54,55,:2
    ex z being Element of D st ex f being sequence of D st f = g.
    d & z = f.n
    proof
      take. (fp.j+.j  p( +  +q/ +)  A,,Def1
      take f9;
t A44
    end;
    then consider=fp. p.j1)+(q.  q/(+ ))by,exN   y0  cdom (" y,,,:;
A45: ex f being sequence of D st f = g.d & z(j +    hence by A10;
[z]   A43A45;
    hence thesis by XTUPLE_0:def 12;
  end;
forx  object x  domjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 6
 h  :,NAT:  TARSKI;
  then reconsider h as Function of    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
 1java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
java.lang.StringIndexOutOfBoundsException: Range [8, 2) out of bounds for length 9
  for a being Element of thusSumpq  .  A9:
holdsh.,+  .(.n,)
  proof
    let a be Element of C;
    f9 java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 45
A46: g.a = f9 and
A47: f9.0 = b and
A48R      an-R
A49: now
      let k be Element of NAT;
      [a  java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
:
      then considerfor Rbeingjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 62
A50:  [[a,k+1],u] in h by XTUPLE_0:def 12;
 [, java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
      then [ak  dom hby : 1;
       that
A51:  [[a,k],v] in h by XTUPLE_0:def 12;
      consider n1 being Element of NAT, d1 being Element of C, z1 being
      Element of D such that
A52:  [[a,k],v] = [[d1,n1],z1] and
A53:    right_open_halfline(p)holds0  diff(fx0)or for x0 stx0 in
A54:  v = [[a,k],v]`2
        .= [[d1,n1]right_open_halfline() holds fx)<0 holdsf|ight_open_halflinep)is
        .= z1;
,k  [,k,v]1
        .= [[d1,n1],z1]`1 by A52
        .= [d1,n1];
A56  n1 = [d1,n1]`
        .= [a,k]`2 by A55
        .= k;
      consider f2 being sequence of D such that
A57    g.and
A58:  z1 = f2.n1 by A53;
      consider n being Element of NAT, d being Element of C, z being Element
      of D such that
A59:proof
A60:  ex f1 being sequence of D st f1 = g.d & z = f1.n by A50;
A61:  [a,k+1] = [[a,k+1],u]`1
        .= [[d,n],z]`1   set l = right_open_half l=right_open_halflinep)
        .= [d,n];
A62:  n = [d,n]`2
        .= [a,k+1]`2 by A61
        .= k+1;
=[d1,n1`1
        .= [a,k]`1 by A55
        .= a;
A64:  d = [d,n]`1
        .= [a,k+1]`1 by A61
        .= a;
      u = [[a,k+1],u]`2
        .= [[d,n],z]`2 by A59
        .=  ll = domfand
      hence h.(a,k+1) = f9.n by A46,A50,A60,A64,FUNCT_1:1
        .= F.(f2.n1,a) by A46,A48,A62,A57,A56,A63
        . F.h.k)a ,,FUNCT_11;
    end;
    [a,0] in [:C,NAT:] by ZFMISC_1:def 2;
    then [a,0] in dom h by FUNCT_2:def 1;
    then consider u being object such that
A65: [[a,0],u] in h by XTUPLE_0:def 12;
    n  Element ofNAT, beingElementof C, z Element
    of D such that
A66: [[a,0],u] = [[d,n],z] and
A67: ex f1 being sequence of D st f1 = g.d & zset f1=|java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
A68: u = [[a,0],u]`2
      .= [[d,n],z]`2 by A66
      .= z;
[a,]=[[,]u]1
      .= [[d,n],z]`1 by A66
      .= [d,n];
A70: d = [d,n]`1
      .= [a,0 = f1 by33;
      .= a;
    n = [d,n]`2
      .= [a,0]`2 by A69
      . ;
    hence thesis by A46,A47,A65,A67,A68,A70,A49,FUNCT_1:1;
  end;
  hence thesis;
end;
end;

begin  ::  On Finite Sequences

theorem Th3:
for L left_zeroedempty, abeingElement
  of L holds Sum <* a *> = a
proof
  let V be left_zeroed non empty addLoopStr, v be Element   diff("y0) =1diff,().)
  reconsider a = v as Element of V;
   S =< v >java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
  consider f being sequence of  the carrier of V such that
A1: Sum(S) = f.( assume
A2: f.0 = 0.V & for j being Nat for v being Element of V st j
  < len S & v = S.(j + 1) holds f.(j + 1) = f.j + v by RLVECT_1:def 12;
A3: len <* a *> = 1 by FINSEQ_1:39;
  0 < 1;
  then consider j being ElementA8:x0 in dom f1 and
A4: j < len S;
A5: S.(j + 1) = S.(0 + 1) by A3,A9 y0= .x0  A4,3;
    .= v;
  j = 0 by A3,A4,NAT_1:14;
henf 0. +v  A2A5
    .= a by ALGSTR_1:def 2;
  hence thesis by A1,FINSEQ_1:39;
end;

theorem
    left_zeroed-java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 69
empty doubleLoopStr, a being Element of R, p being FinSequence of theproof
  of R holds Sum(a * p) = a * Sum p
proof
  let R be left_zeroed right_add-cancelable right-distributive non empty
  doubleLoopStr, a be Element of Rf java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 64
    beingsequencethe of Rsuchthat
A1: Sum p = f.(len p) and
A2: f.0 = 0.R and
A3: for j being Nat, v being Element of R st j < len p & v =
  p.(j + 1) holds f.(j + 1) = f.j + v by RLVECT_1:def 12;
  consider fa being sequence of the carrier of R  y0 indom(f1)|)by ,A7:;
A4: Sum(a * p) = fa.(len(a * p)) and
A5: fa.0 = 0.R and
: for j being Nat, v being ElementofR st   len(  p)&
  v = (a * p).(j + 1) holds fa.(j + 1) = fa.j + v by RLVECT_1:def 12;
  defpred P[Nat] means a * f.$1 = fa.$1;
A7: Seg(len(a * p)) = dom(a * p) by FINSEQ_1:def 3
    .= dom p by POLYNOM1:def 1
    .= Seg(len p) by FINSEQ_1:def 3;
A8: now
    let j be Element of NAT;
    assume that
    0 A13:f1 is_continuous_in y0 by A4,RELAT_1:68;
A9: j < len p;
    thus P[j] implies P[j+1]
    proof
A10:  0 + 1 <= j + 1 by XREAL_1:6;
A11:  j < len(a * p) by A7,A9,FINSEQ_1:6;
      then j + 1 <= len(a * p) by       reconsider fy = f").y0 as Element of REAL  XREAL_0:def 1;
      thenunitalempty,
     j n dom *p)   FINSEQ_1def3java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
      then
A12thesis
      j + 1 <;
      then         hence r1  f.java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
      then
A13:  j + 1 in dom p by FINSEQ_1:def 3;
      
A14:  p/.(j   a^(+m)= (^n) * (a|^m)
      assume P[j];
      hence fa.(j+1) = a *   let R be unital associativnon  multMagma, abe Element
        .  n be ;
        .= a * (f.j + p/.(j + 1)) by VECTSP_1:def 2
        .= a      end;
    end;
  end;
A15: P[0] by A2      consider  ;
A16: for i being Elementjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
  INT_1:sch 7(A15,A8);
  thus Sum(a * p) = fa.(len p) by A4,A7,FINSEQ_1:6
    .= a * Sum p by A1,A16;
end;

java.lang.StringIndexOutOfBoundsException: Range [11, 7) out of bounds for length 12
  for R being right_zeroed left_add-power|n+)(n*  (^ GROUP_1 7
. |  m+n 
  carrier of
proof
  let R be right_zeroed left_add  endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  doubleLoopStr. R. ) java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 43
  consider f being sequence of [0;
A1: Sum p = f.(len p) and
:.  .and
A3: for j being Nat, v being Element of R st j <    thesis
  p.(j + 1) holds f.(j + 1  
  consider fa being sequence of      end;definition
A4: Sum(p * a) = fa.(len(p * a)) and
A5:a  .and
A6: for j being Nat, v being Element of   means
v=(p*a)( +  a  of it.,) =0R&
  defpred P[Nat] means f.$1 * a = fa.$1;   for n being Nat holds it.(n+1,a) = a + it.(n,a);
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
    . p by: 2
    .Seg( p) by    considergbeing  of :ATD, such 
 now
    let j be Element of NAT;
    assume 
    < jand
A9: j < len p;
    thus P[j] implies P[j+1]
    
A10:j <len( *a     P[]means   a being  R  .$a  g.1,;
      then
A11:  j + 1 <= len(p * a)  a Elementof holds g(,) 0. &
A12:  0 + 1 <= j + 1 by     for n being Nat holds g.+1a)=  +g.n,a)
      then  j+ Seglen(*a)yFINSEQ_1:java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
      then j + 1           =.n1,)by A3
      
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
+ 1inSeg           A23A33java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
      then
A14:j  in end
      then
A15:  p/   end;
      assume f.j * a = fa.j;
java.lang.StringIndexOutOfBoundsException: Range [27, 11) out of bounds for length 63
        .= f.j * a + p/.(j + 1) * a by A14,POLYNOM1:def 2
        .= (f.j + p/.(j + 1)) * a by VECTSP_1:def 3
        .= f.(j+1      then f1)y0 indom f/\ lby RELAT_161java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
    end;
  end;
A16: P[0] by A2,A5,Th1;
A17: for i being Element        = g(u,v by A7
  INT_1:ch7A16,A8)java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
   domf= [NAT,he carrier  R:  dom         cn =f1. by A9A14,TARSKIdef1;
    .= Sum p * a by A1,A17;
end;


  for R being commutative nonend;
  p being A37:  0 < diff((".0) byfunc-mult-(R Functionof[t carrier RAT,carrier
proof
  let R be commutative non empty multMagma      now  abeingElementof   (,0=. n being
FinSequenceofthecarrierofR;
  set pa = p*a, ap = a*p;
A1: dom pa = dom p 
A2: dom ap = dom p by java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 7
  
    let i be Nat such that
A3: i in dom pa;
    pai  /   byA1,A3,: 2
    .= ap/.i by A1,A3,POLYNOM1:def    Elementof holds.a,+)=( addFo ).g.ana  Lm2;
  end;
  takeg;
end;

definition

  letR be  empty addLoopStr pqbe FinSequence the carrier of R;
func   theof R
  :Def1:
  dom it = dom p &
  for i being Nat st 1 <        h  f,Function :  of,::thecarrierofR;
  existence
  proof
       isnon  Element  g(+ g(an+java.lang.StringIndexOutOfBoundsException: Range [49, 50) out of bounds for length 49
A1:       thenthen      n be Nat;
    st      assume
    A16;
A2: domjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    holds P[k,f/.k] from RECDEF_1:sch 17A41:b"   Elementof NAT  ORDINAL1:ef;
    take f;
A3: len f = len p by         f.a+1)  f(,)+a byA13
     .= g.a,)+ a  A16
         by A2,A3,FINSEQ_1:1;
               xrnga;
  end;
  uniqueness
  proof
    let y1,beFinSequence carrier;
    assume that
A4: dom y1 = dom p and
A5: for i being Nat st 1 <=
A6: dom y2 = dom p and
A7: for i being Nat st 1 <= i & i <= len y2 holds      end;
A8: SegA43:rng ac=dom 
      .= Seg(len y2) by FINSEQ_1:def 3;
    then
A9: len y1 = len y2 by FINSEQ_1:6;
    now
       x be object;
      assume
A10:  1 <= i & i <= len y1;
      then i in Seg (len y2) by A8,FINSEQ_1:1;
      then
A11:  i in dom y2 by FINSEQ_1:def 3;
      i in Seg (len y1) by A10,FINSEQ_1:1;
           theniin dom y1  FINSEQ_1:def 3;
      hence y1.i = y1/.i by PARTFUN1:def 6
        .= p/.i + q/.i by A5,A10
        .= y2/i by A7,A9,A10
        .= y2.i by A11,PARTFUN1:def 6;
    end;
    java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 37
  end;
end;

theorem Th7:
  for R being Abelian right_zeroed add-associative non empty
addLoopStr,p,q beingFinSequenceof the carrier of   domp= omq holds
  Sum(p + q) = Sum p + Sum q
proof
  let R be Abelian right_zeroed add-associative non empty addLoopStr, p,q be
  FinSequence of the carrier of R;
  consider fp being sequence of the carrier of R such that
A1: Sum p = fp.(len p) and
A2: fp.0 = 0.R and
A3: for j being Nat, v being Element of R st j < len p & v =
  p.(j + 1) holds fp.(j + 1) = fp.j + v by RLVECT_1:def 12;
  consider fq being sequence of the carrier of R such that
A4: Sum q = fq.(len q) and
A5: fq.0 = 0.R and
A6: for j being Nat, v being Element of R st j < len q & v =
  q.(j + 1) holds fq.(j + 1) = fq.j + v by RLVECT_1:def 12;
  assume dom p = dom q;
  then
A7: Seg(len p) = dom q by FINSEQ_1:def 3
    .= Seg(len q) by FINSEQ_1:def 3;
  then
A8: len q = len p by FINSEQ_1:6;
  consider fa being sequence of the carrier of        then h. +c.n=f.an +b.)by SEQ_1:7;
A9 Sum(+q)= fa.len(+q  .)-f*.by A46
A10: fa.0 = 0.R and
11  j being          =f( +a)n -/)n by SEQ_1:java.lang.StringIndexOutOfBoundsException: Range [48, 49) out of bounds for length 48
  =(+q.   encePk+java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
  defpred P[Nat] means fp.$1 + fq.$1 = fa.$1;
12:Seg(lenf/(b+) -f/a)n by RFUNCT_2:;
    .= dom(p+q) by Def1
    .= Seg(len(p+q)) by FINSEQ_1:def 3;
  then
A13: len(p+q) = len p by FINSEQ_1:6;
A14: now
    let j be Element of NAT;
    assume that
    0 <= j and
A15: j < len p;
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 10

      assume
A16:  P[j];
A17:  0 + 1 <= j + 1 byA47:h=theoremTh17:
A18:  j + 1 <= len p by A15,  for R being left_zeroed right_zeroed add-associative non empty
      j   inSeg lenp by A17  addLoopStr a Element R,n  Element   holds  *  =a*n
      then j + 1 in dom p by FINSEQ_1:def 3;
      then
A19:  p/.java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      j + 1 in Seg len q by A7,A18,  defpred P[Nat] means $1 * a = a * $1
      then j + 1 in dom q by     let  beNat
   
A20:  q/.(j + 1) = q.(j + 1) by PARTFUN1:def 6 assume
  = (p) byA13A15NAT_11
      then j + 1 in    k+)*a=k *  +1  by 
      then j + 1 in dom(p+q) by .         java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
      thenjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
      then fa. . a*by;
        .= (fp.j + fq.j) + (p/.(j + 1) + q/.(j + 1)) by A16,A21,A17,Def1
.=fp.+(.+(/.
            beingNat P[  : A3A1)
        .= (fp.j +   hencethesis;
         .(+ +(q  .j +)byA3,A15java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
        . fp.j1)java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
      hence thesis;
    end;
  end;
A22:[0]by ,,A1010RLVECT_1def java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
A23: for i being Element of NAT st   RAbelian empty,a  of,n  of
  INT_1:sch 7(A22,A14);
thus( +q  fa. p by A12A9F:java.lang.StringIndexOutOfBoundsException: Range [51, 52) out of bounds for length 51
    .= Sum p + Sum q by    let k Nat;
end;

ersin Rings

definition
  let R be     ( ) a     
 |n-of
  power(R)  end
  coherence;
end;

theorem Th8
  for R being unital non empty multMagma,  then
  holds|^ =1R& a|1 =a
proof
  let R be unital non empty multMagma, a be Element of R;
thus a^0 =1_Rby :def 7;
  0 + 1 = 1;
  then power(R).(a,end;
    R * by GROUP_1 7
    .= a by GROUP_1:def 4;
   . h.  (".f1.a. +bn) -(1)/c.n)by A23,,
end;

theorem
  FUNCT_1:7
  a,b being Element of R, n being Nat holds
  a*b)|n =a|)*(|n)
proof
  let R be unital associative commutative non empty multMagma, a,b be
  Element of R, n betheorem:
 defpred [] means()(a b$)= a^ *^$
A1: now
    let m           .=h. *a.+ add- left- nonempty ,a, Element
reconsider= asElementofNATby: 12java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
    assume P  let R  left_zeroed right_zeroedleft_add-cancelable add.. (" ((*ba  /))) A473
    then
   ().a *b,1) =powerR.amm)*()(mm) *      ;
GROUP_1:def 7
      .= ((power(R).(a,mm) * power(R).    (kk1)*a  b  a+ a)  bbyDef3
. (().(,m *a)* power().(,))*  lim("#(/*+a -f*)=diff(,f1).) by ,,A35,Th12java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
java.lang.StringIndexOutOfBoundsException: Range [39, 6) out of bounds for length 71
      .= (a|^(m+1)) * (power(R).(b,mm) * b) by GROUP_1:def 7
      .= (a|^(m+1)) * (b|     Pk+];
    hence P[m+1];
  end;
  power(R).(a * b,0  (0 * a)b =.   by
    .=    .= 0 by Th1
. (R).(0  1_by GROUP_1def7
    .= power(R).(a,0) * power(R).(b,0) by GROUP_1:def 7;
  then
A2:P[]
  for m being Nat holds P[m] from NAT_1:sch 2(A2,A1);

end;

Lm3:
  for R being unital associative non     hence thesis by A10,h12;end
  a being Element oftheorem Th20:
  a|(nm=(|n * (a^m)
proof
e nonempty multMagma a be Element   then for y0 holds y0 in dom (f1") implies f1" is_differentiable_in
  n,m be Element of NAT;
defpredP[  power(R).,n+$1 =power(R)  hence f1"is_differentiable_on dom f1)by A3,A4,FDIFF_1:9;
A1: now
    let m be Nat;
    assume
A2: P[m];
    reconsider mm=m as Element of NAT by ORDINAL1:def 12;
    power(R).(a,n+(m+1)) = power(R).(a,(n+m)+1)
      .= (power(R).(a,n) * java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 21
      .= power(R).(a,n) * (power(R).(a,mm) * a) by GROUP_1:def 3
      .= power(R).(a,n) * a|^(m+1) by GROUP_1:def 7;
    hence P[m+1];
  end;
  power(R).(a,n + 0) = power(R).(a,n) * 1_R by GROUP_1:def 4
    .= java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
  then
A3: P[0];
  for m being Nat holds   for f be one-to-one PartFunc of REAL,EALst .,g.[c=dom f  java.lang.StringIndexOutOfBoundsException: Range [67, 68) out of bounds for length 67
  hence thesis;
end;

theorem Th10:
  for R being unital associative non empty multMagma,
of R, n,m being Nat holds
  a|^(n+m) = (a|^n) * (a|^m)
proof
  let R be unital associative non empty multMagma, aright_add-cancelable
nmbe Nat;
  reconsider n1 = n
  f].,g.[  efpred PPNat means *$ )=( a *$;
  hence thesis;
end;

theorem
  for R being unital associative non empty multMagma, a being Element
  of R, n,m being Nat holds (a|^n)|^m = a|^(n * m)
proof
  let R be   set l = ].p,g.;
  Nat;
  defpred P[Nat] means power(R).(a|^n,$1) = power(R)  assume that
A1: now
    let be Nat;
    assume P[m];
    then power(R).(a|^A1:f       k  Nat;
      .A a*kk    Th16java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
      end;
    hence P[m+1];
  end;
  power(R).(a|^n,0) = 1_R by GROUP_1:def A4:dom f1) =rng f1by
    .= power(R).(a,n * 0) by GROUP_1:_1sch 2A3A)java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
 
:P[]
  for k being Nat holds P[k] from NAT_1:sch 2(A2,A1);
   forRbeing  right_zeroedadd-ssociative
add nonempty b  of,

begin :: On Natural Products in Rings


  let R be non empty addLoopStr;
  java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
  R means
::
  for a being Element of R holds it.(0,a) = 0.R &
for  Nat.n1a  a  it(,)java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
  existence
  proof
set = carrier  R;
    consider g being Function of [:NAT,D:],D such that
A1: for a    . a *( *b) by Th20;
    for n being Nat holds g.(n+1,a) = (the addF of R).(a,g.(n,end;
    begin:
    thus thesis by A1;
  end;
  uniqueness
  proof
let,ab java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 64
    :Def7
A2Alenit +1&fori, being  st  in dom  & m =i - &ln - java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
    for nbeing Natholds f.(     for n being Nat holds f.(n
    defpred P[Nat] means for a being Element of R holds f.($1,a) = g.($1,a);
    assume
A3:for a being Elementof Rholds g.0a)=.R &
     g.(n+,java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
A4: now
      let n be Nat;
      assume
A5java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
      now
of R;
         reconsider nn=n as Element of NAT by ORDINAL1:def 12;
        thus f.(n+1,a) = a + f.(nn,a) by A2

 A3;
      end;
      hence P[n+1];
    end;
A6:                  hence;
    end;
      let a be Element of R;
      thus f.(0,a) = 0.R by A2
        .=g(0,) A3;
    end;
A7: for n being Nat     P[,p.]from RECDEF_1:sch 17A1;
A8: now
     letxbe object;
      assume x in [:NAT,the carrier
then consideru being  object such 
A9:   u in NAT and
A10:  v in the carrier of R and
:x=[,v] by ZFMISC_1def2java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
      reconsider   ElementofRby A10;
      reconsider    m holds f.i= (n choosem a|l *b|m
      thus    assume that
A6: len g=n +1and
        .= g.x by A11;
    end;
A7 for i,, being       then (f1")|rng f1is_continuous_in y0 by A12,:def 2java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
FUNCT_2:def 1;
    hence thesis by A8,FUNCT_1:2;
  endset a  seq_const (")y0;
  func Nat-mult-right(R) -> Function of [:the carrier of R,NAT:],the carrier
  of R means
  :Def4
for beingElement  R holds it.,) =0. &  n java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
  Element of NAT holds it.(a,n+1) = it.(a,n) + a;
java.lang.StringIndexOutOfBoundsException: Range [25, 2) out of bounds for length 11
  proof
unction of [the carrier of R      then
    such that
A12: for a being Element of R holds g.(a,0) = 0.R & for n being
    Element of NAT holds g.(a,n+1) = (the
    take g;
    thus thesis by  end;
;
  
  proof
    let f,g be Function of [:java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 30
    assume
:forabeing  of  holds f.(a,0) = 0.R & for n being          =(f1).f(a.+b.)  .by java.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
    of holdsfa+= f., +java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
    defpred P          =an +bn    + ==n+  XREAL_16;
    assume
A14: for a being Element of R holds g.(a,NSEQ_1:
    Element of NAT holds g.(a,n+1) = g.(a,n) + a;
A15: now
      let n be Nat;
      
[n]
      now
        let a be Element of R;
        nnn as of  ORDINAL1def;
        thus f.(a,n+1) = f.(a,nn) + a by A13
          .= g.(a,nn) + a by A16
           g.(,1 ;
      end;
    P[[+1java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
    end;
A17: P[0]
    proof
     let a  Element ofR
      thus f.(a,0) = 0.R by A13
        .= g.(a,0) by A14;
    end;
A18: for n being Nat holds P[n] from NAT_1:sch 2(A17,A15);
A19:  let Rbe right_zeroedunital nonemptydoubleLoopStr a,  Element of Rjava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
      let x be object;
     xin :hecarrierof RN::]
      then consider v,u being object such that
 the  of java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
A21:  u in NAT and
A22:  (ab) n)= +by ;
      reconsider v   then
       u as Element of NAT by A21;
      thus f.x = A30lim  FUNCT_263;
. .v)A18
        .= g.x by A31:rng b+a  domf
    end;
    dom      proof
by FUNCT_2def java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
    hence thesis by A19,FUNCT_1:2;
  end;
end;

definition
  let R be non empty addLoopStr, a be Element of R, n be Nat;
  java.lang.StringIndexOutOfBoundsException: Range [26, 6) out of bounds for length 35
  (Nat-mult-left(R)).(n,a);
  
  func a * n -> Element of R equals
  (     =n +11by Def7
  java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 12
end;

theorem
  for R being non empty addLoopStr, a being Element of R holds 0 * a    set  =F1;
0 &a*0  0.by,ef4;

theoremTh13:
  for R being right_zeroed non empty
  of R 1*a a
proof
  let  assume  java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 28
  thus 1 * a = (Nat-mult-left(RA8    st = i i <thenex     an by:;
    .= a + (Nat-mult-left(R)).(0,a) by Def3
    .= a + 0.R by Def3
.   : java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
end;

theorem Th14:
  for R being left_zeroed non empty addLoopStr, a being Element
  of R holds         then x x =(f1".0 by TARSKI:def1;
proof
  let R be left_zeroed non empty addLoopStr, a be Element of R;       thena.  x by SEQ_1:;
 thusa*1=(-mult-(R)).(,+)
 by Def4
    .= 0.R + a by java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 10
    .= aby ALGSTR_1defjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
end;

     /ijava.lang.StringIndexOutOfBoundsException: Range [21, 22) out of bounds for length 21
  for R being assume x in rng a;
a being Element of R, n,m being A15   inn11  ,FINSEQ_11;
     holds (n + m) * a = n * a + m * a

  let R be left_zeroed add-associative non empty addLoopStr, a be Element of
  R,,mbe ;
  defpred P[Nat] means ($1 + m) * a = $1 * A18  i =len(+F2 byA7,,Def7;
A1: now
 Nat;
     reconsider kk=k as Element of NAT by ORDINAL1:def 12;
                  hence  by 4java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
: [k]java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    (k+1 + m) * a = (k+m + 1) * a
      =a+(km*a by Def3
      .= a + (kk * a +                 netn
. a + k*a)+m*abyRLVECT_1:def 3
      .= (kk+1) * a + m * a by Def3;
then
  end;
* a = 0.R + m * a by ALGSTR_1        .   cby2;
    .= 0 * a + m * a by Def3;
  then
A3: P[0];
  java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 53
  hence thesis;
end;

 :
  for R being right_zeroed add-associative non empty addLoopStr,
beingElement  ,n, beingElement NATholdsa*( 24jlen (,,bIn_Power ) by ,;
  
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  let R be right_zeroed add-associative non empty addLoopStr, a be Element
   R,n, be Element ofNAT;
  defpred P[Nat] means a * (n + $1) = a * n + a * $          = |n*b  ,A27POLYNOM1:ef2
A1: now
    let  be Nat;
    assume
:[
            then  dom F by A9,A21,FINSEQ_1:1;
    a * (n + (k+1)) = a * ((n+kk) + 1) .= (a * n + a * kk)         F.= F.i by PARTFUN1def java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
      .=h+. ( n
      . proof
    hence P[k+1];
  end;
  a * (n + 0) = a * n + 0.R by RLVECT_1:def 4
    .=  n +  by Def4
  then
A31         in  cbyVALUED_0:;
  for m Natjava.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 12
;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

theorem Th17:
_zeroedaddnonempty
  addLoopStr, a being Element of R, n being Element of NAT holds n * a = a * n
proof
  let R be left_zeroed right_zeroed add-associative non empty addLoopStr, a
   Elementof ,n   ofNAT;
  defpred P[Nat] means $1 * a = a * $1;
A1:now
    let k be Nat;
     kkkas Element of NATby ORDINAL1def 12;
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 10
A2thenjava.lang.StringIndexOutOfBoundsException: Range [27, 23) out of bounds for length 63
    (kk + 1) * a =         1 = j byA,,NAT_113
.=k *+a  Th13
      .= a * k + a * 1 by A2,Th14
      . a *kk + 1  Th16;
     [k+;
  end;
  0 * a = 0.R by Def3
     .=   by Def4java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
  then
A3: P[0];
            =(h" ()(b""):jin ((,)In_Powern) )by A3,A36FINSEQ_1:ef 3
   r2=<0R>((a,)In_Power n*b). by A17,PARTFUN1def 6java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
end;

theorem
  for R being Abelian non empty addLoopStr           (ab)In_Power n) * )jby ,:def java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
  being Element of NAT holds n * a = a * n
proof
  let R be Abelian non empty addLoopStr, a be Element of R, n be Element of
  "#((f1"/(h+c -(")*)=("#) (f/*(b+) -f         reconsider l1=n-1asE of by INT_1:;
   $1 *a  a *1;
A1: now
     Nat;
    reconsider kk= asElement of NAT by ORDINAL1:def 12;
    assume Pk];
    then (kk + 1) * a = a + a * k by Def3
.  *(k   by;
    P[k+;
  end;
 0 =0.  
    .= a * 0 by Def4;
  then
A2: P         .i  /. A55limb#(/+a f*) diff(,")y0  ,,35Th12
  for n being Nat holds P[n. F1/ +x*b  A9,A40
  hence.(  )* a|1* |)*+*b by A43Def7
end;

 java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
  Rbeing  right_zeroed-cancelable
add-associative left-distributive non empty doubleLoopStr, a,b being Element
of,n   of  holds n * *b  *(* )
proof
  let R be left_zeroed right_zeroed left_add-cancelable add-associative
leftend;
  of NAT;
  defpred P[Nat] means ($1 * a        m2)*a|l)by GROUP_1def
A1: now
    let k be          =b|m2+1(n  m+1)    for being  holdsy0in dom f1" implies f1java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
assume
A2:   |)byjava.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35
    reconsider kk=k as Element
    ((kk+1) * a) * b = (a + k * a) * b by Def3
      .= a * b + k *  by 19
      .= 1 * (a * b) + k * (a * b) by java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
      .= A50 in((,)In_Power n) *a A47def 3
    hence P[k+1];
  end;
   . ((a,b n) *. by d7
    .= 0.R by Th1
    .= 0 * (a * b) by Def3;
  then
A3: P[0];
  for n being Nat holds P[n] from NAT_1:sch 2(A3,A1);
  thesis;
end;

java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 13
  for R being left_zeroed right_zeroed right_add-java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 38
distributivenon ,beingElementofR,
  n being Element of NAT holds b * (n *=(ab)(+1.byA45,
proof
  let R be left_zeroed right_zeroed add-associative right_add-cancelable
  distributive non empty doubleLoopStr, a,b be Element of R, n be Element of
  NAT;
  defpred P[Nat] means b * ($1 * a) = (b * a) * $1;
A1: now
    let k be Nat;
    reconsider kk=k as Element of NAT by ORDINAL1:def 12;
    assume
A2: P[k];
    b * ((kk+1)* a) = b * (a + k * a) by Def3
      .= b * a + (b * a) * k by A2,VECTSP_1:def 2
      .= (b * a) * 1 + (b * a) * k by Th14
      .= (b * a) * (kk + 1) by Th16;
    hence P[k+1];
  end;
  b * (0 * a) = b * 0.R by Def3
    .= 0.R by Th2
    .= (b * a) * 0 by Def4;
  then
A3: P[0];
  for n being Nat holds P[n] from NAT_1:sch 2(A3,A1);
  hence thesis;
end;

theorem Th21:
  for R being left_zeroed right_zeroed add-associative
add-cancelable distributive non empty doubleLoopStr, a,b being Element of R,
  n being Element of NAT holds (a * n) * b = a * (n * b)
proof
  let R be left_zeroed right_zeroed distributive add-cancelable
add-associative non empty doubleLoopStr, a,b be Element of R, n be Element of
  NAT;
  thus (a * n) * b = (n * a) * b by  i n{} /{kwhere kis  of :< &k<n1+} \/{ n++};
    .= n * (a * b) by Th19
    .= (a * b) * n by Th17
    =a *(n*b) by Th20;
end;

begin  ::  The Binomial Theorem

java.lang.StringIndexOutOfBoundsException: Range [49, 10) out of bounds for length 10
  let R be unital non empty doubleLoopStr, a,b be java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 8
  func (a,    then
   Def7:
  len it = n. (ab) n  a + (,b) java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 66
  holds it/.i = (n choose m) * a=Sum((b)n)*a)  Sum(ab) In_Powern)*b by Th5
  xistence
  proof
java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 55
     m  1 -  = -m 2 = ( m  |  b|^m;
A1: for k being Nat st k in Seg(n+1) ex y being Element of R st P[k,y]
    proof
      let k be Nat;
      assume
A2:   k in Seg(n+1);
      then k >= 1 by FINSEQ_1:1;
      then reconsider m1 = k-1 as Element of NAT by      = Sum(((b)java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 55
      k <= n+1 by A2. .R+Sum(b java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 49
      then k-1<=n+1-1 by XREAL_1:9;
      then reconsider l1 = n-m1 as Element of NAT by INT_1:5;
      z  n m1)*a|l1  b|m1  Element of Rjava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
      take z;
      thus thesis;
    end;
    p being ofthe ofR java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 62
A3: dom p = Seg(n+1) & for k being Nat st k in Seg(len (,)java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 50
    holds P[k,p/.k] from RECDEF_1:sch 17(A1);
    take p;
    thus thesis by A3,FINSEQ_1:def 3;
  end;
  uniqueness
  proof
    let f,g be FinSequence of the carrier of R;
    assume that
A4: len f = n + 1 and
A5: for i,l,m being Nat st i in dom f & m = i - 1 & l = n -
    m holds f/.i = (n choose m) * a|^l * b|^m;
    assume that
A6: len g = n + 1 and
A7: for i,l,m being Nat st i in dom g & m = i - 1 & l = n
    - m holds g/.i = (n choose m) * a|^l * b|^m;
    for i being Nat st 1 <= i & i <= len f holds f.i = g.i
    proof
      let i be Nat;
      assume that
A8:   1 <= i and
A9:   i <= len f;
      reconsider m = i-1 as Element of NAT by A8,INT_1:5;
      i-1<=n+1-1 by A4,A9,XREAL_1:9;
      then reconsider l = n-m as Element of NAT by INT_1:5;
A10:  i in Seg (n+1) by A4,A8,A9,FINSEQ_1:1;
      then
A11:  i in dom f by A4,FINSEQ_1:def 3;
A12:  i in dom g by A6,A10,FINSEQ_1:def 3;
      hence g.i = g/.i by PARTFUN1:def 6
        .= (n choose m) * a|^l * b|^m by A7,A12
        .= f/.i by A5,A11
        .= f.i by A11,PARTFUN1:def 6;
    end;
    hence f = g by A4,A6,FINSEQ_1:14;
  end;
end;

theorem Th22:
  for R being right_zeroed unital non empty doubleLoopStr, a,b
  being Element of R holds (a,b) In_Power 0 = <*1_R*>
proof
  let R be right_zeroed unital non empty doubleLoopStr, a,b being Element of
  R;
  set p = (a,b) In_Power 0;
A1: len p = 0 + 1 by Def7
    .= 1;
  then
A2: dom p = {1} by FINSEQ_1:2,def 3;
  then
A3: 1 in dom p by TARSKI:def 1;
  then consider i being Element of NAT such that
A4: i in dom p;
A5: i = 1 by A2,A4,TARSKI:def 1;
  then reconsider m = i - 1 as Element of NAT by INT_1:5;
  reconsider l = 0 - m as Element of NAT by A5;
  p.1 = p/.1 by A3,PARTFUN1:def 6
    .= (0 choose m) * a|^l * b|^m by A3,A5,Def7
    .= 1 * a|^l * b|^m by A5,NEWTON:19
    .= 1 * a|^0 * 1_R by A5,Th8
    .= 1 * 1_R * 1_R by Th8
    .= 1_R * 1_R by Th13
    .= 1_R by GROUP_1:def 4;
  hence thesis by A1,FINSEQ_1:40;
end;

theorem Th23:
  for R being right_zeroed unital non empty doubleLoopStr, a,b
  being Element of R, n being Nat holds ((a,b) In_Power n).1 = a|^n
proof
  reconsider m = 1 - 1 as Element of NAT by NEWTON:19;
  let R be right_zeroed unital non empty doubleLoopStr, a,b be Element of R,
  n be Nat;
  reconsider l = n - m as Nat;
  len((a,b) In_Power n) = n + 1 by Def7;
  then
A1: dom(((a,b) In_Power n)) = Seg(n + 1) by FINSEQ_1:def 3;
  0 + 1 <= n + 1 by XREAL_1:6;
  then
A2: 1 in dom(((a,b) In_Power n)) by A1,FINSEQ_1:1;
  hence ((a,b) In_Power n).1 = ((a,b) In_Power n)/.1 by PARTFUN1:def 6
    .= (n choose 0) * a|^l * b|^m by A2,Def7
    .= 1 * a|^n * b|^0 by NEWTON:19
    .= a|^n * b|^0 by Th13
    .= a|^n * 1_R by Th8
    .= a|^n by GROUP_1:def 4;
end;

theorem Th24:
  for R being right_zeroed unital non empty doubleLoopStr, a,b
being Element of R, n being Nat holds ((a,b) In_Power n).(n+1) = b|^ n
proof
  let R be right_zeroed unital non empty doubleLoopStr, a,b be Element of R,
  n be Nat;
  reconsider m = n + 1 - 1 as Nat;
  reconsider l = n - m as Element of NAT by INT_1:5;
  len((a,b) In_Power n) = n + 1 by Def7;
  then
A1: dom((a,b) In_Power n) = Seg(n + 1) by FINSEQ_1:def 3;
  then
A2: l = 0 & n + 1 in dom((a,b) In_Power n) by FINSEQ_1:4;
  thus ((a,b) In_Power n).(n+1) = ((a,b) In_Power n)/.(n+1) by A1,FINSEQ_1:4
,PARTFUN1:def 6
    .= (n choose n) * a|^0 * b|^n by A2,Def7
    .= 1 * a|^0 * b|^n by NEWTON:21
    .= 1 * 1_R * b|^n by Th8
    .= 1_R * b|^n by Th13
    .= b|^n by GROUP_1:def 4;
end;

::$N Binomial Theorem
::$L https://en.wikipedia.org/wiki/Binomial_theorem Binomial Theorem
theorem
  for R being Abelian add-associative left_zeroed right_zeroed
  commutative associative add-cancelable distributive unital non empty
doubleLoopStr, a,b being Element of R, n being Element of NAT holds (a+b)|^n =
  Sum((a,b) In_Power n)
proof
  let R be add-associative left_zeroed right_zeroed distributive associative
  Abelian add-cancelable commutative unital non empty doubleLoopStr, a,b be
  Element of R, n be Element of NAT;
  defpred P[Nat] means (a+b)|^$1 = Sum((a,b) In_Power $1);
A1: for n being Nat st P[n] holds P[n+1]
  proof
    let n be Nat;
    set G1 = (((a,b) In_Power n) * a)^<*0.R*>;
    set G2 = <*0.R*>^(((a,b) In_Power n) * b);
A2: Seg(len(((a,b) In_Power n) * a)) = dom(((a,b) In_Power n) * a) by
FINSEQ_1:def 3
      .= dom((a,b) In_Power n) by POLYNOM1:def 2
      .= Seg(len((a,b) In_Power n)) by FINSEQ_1:def 3;
    len G1 = len(((a,b) In_Power n) * a) + len<*0.R*> by FINSEQ_1:22
      .= len(((a,b) In_Power n) * a) + 1 by FINSEQ_1:40
      .= len((a,b) In_Power n) + 1 by A2,FINSEQ_1:6
      .= n + 1 + 1 by Def7;
    then reconsider
    F1 = G1 as Element of (n+1+1)-tuples_on the carrier of R by FINSEQ_2:92;
A3: Seg(len(((a,b) In_Power n) * b)) = dom(((a,b) In_Power n) * b) by
FINSEQ_1:def 3
      .= dom((a,b) In_Power n) by POLYNOM1:def 2
      .= Seg(len((a,b) In_Power n)) by FINSEQ_1:def 3;
    len G2 = len(((a,b) In_Power n) * b) + len<*0.R*> by FINSEQ_1:22
      .= len(((a,b) In_Power n) * b) + 1 by FINSEQ_1:40
      .= len((a,b) In_Power n) + 1 by A3,FINSEQ_1:6
      .= n + 1 + 1 by Def7;
    then reconsider
    F2 = G2 as Element of (n+1+1)-tuples_on the carrier of R by FINSEQ_2:92;
A4: len F1 = n+1+1 by CARD_1:def 7;
    set F = F1 + F2;
A5: len F2 = n+1+1 by CARD_1:def 7;
A6: Seg(len F) = dom F by FINSEQ_1:def 3
      .= dom F1 by Def1
      .= Seg(len F1) by FINSEQ_1:def 3;
    then
A7: len F = n + 1 + 1 by A4,FINSEQ_1:6;
A8: for i being Nat st 1 <= i & i <= len((a,b) In_Power (n+1)) holds F.i
    = ((a,b) In_Power (n+1)).i
    proof
      let i be Nat;
      assume that
A9:   1 <= i and
A10:  i <= len((a,b) In_Power (n+1));
A11:  len((a,b) In_Power (n+1)) = n+1+1 by Def7;
      then
A12:  dom((a,b) In_Power (n+1)) = Seg(n+1+1) by FINSEQ_1:def 3;
      then
A13:  i in dom((a,b) In_Power (n+1)) by A9,A10,A11,FINSEQ_1:1;
      reconsider j = i - 1 as Element of NAT by A9,INT_1:5;
      set x = ((a,b) In_Power n)/.j;
      set r1 = F1/.i;
      set r2 = F2/.i;
      set r = ((a,b) In_Power n)/.i;
A14:  i = j+1;
A15:  i in Seg(n+1+1) by A9,A10,A11,FINSEQ_1:1;
      then
A16:  i in dom F1 by A4,FINSEQ_1:def 3;
A17:  i in dom F2 by A5,A15,FINSEQ_1:def 3;
A18:  i <= len(F1+F2) by A7,A10,Def7;
A19:  i in {n+1+1} implies F.i = ((a,b) In_Power (n+1)).i
      proof
        assume
A20:    i in {n+1+1};
        then
A21:    i = n+1+1 by TARSKI:def 1;
        n+1 = len ((a,b) In_Power n) by Def7
          .= len(((a,b) In_Power n) * a) by A2,FINSEQ_1:6;
        then
A22:    r1 = ((((a,b) In_Power n)*a)^<*0.R*>). (len(((a,b) In_Power n)*a)
        +1) by A16,A21,PARTFUN1:def 6
          .= 0.R by FINSEQ_1:42;
A23:    j = n+1+1-1 by A20,TARSKI:def 1
          .= n+1;
        n+1 in Seg (n+1) by FINSEQ_1:4;
        then
A24:    j in Seg len (((a,b) In_Power n)) by A23,Def7;
        then
A25:    j in dom (((a,b) In_Power n) * b) by A3,FINSEQ_1:def 3;
A26:    j in dom ((a,b) In_Power n) by A24,FINSEQ_1:def 3;
        then
A27:    x = ((a,b) In_Power n).(n+1) by A23,PARTFUN1:def 6
          .= b|^n by Th24;
A28:    r2 = (<*0.R*>^(((a,b) In_Power n) * b)).(1+(n+1)) by A17,A21,
PARTFUN1:def 6
          .= (<*0.R*>^(((a,b) In_Power n) * b)).(len <*0.R*> + j) by A23,
FINSEQ_1:39
          .= (((a,b) In_Power n) * b).j by A25,FINSEQ_1:def 7
          .= (((a,b) In_Power n) * b)/.j by A25,PARTFUN1:def 6
          .= b|^n * b by A26,A27,POLYNOM1:def 2
          .= b|^(n+1) by GROUP_1:def 7;
        dom F = Seg(n+1+1) by A4,A6,FINSEQ_1:def 3;
        then i in dom F by A9,A21,FINSEQ_1:1;
        hence F.i = F/.i by PARTFUN1:def 6
          .= 0.R + r2 by A9,A18,A22,Def1
          .= b|^(n+1) by A28,ALGSTR_1:def 2
          .= ((a,b) In_Power (n+1)).i by A21,Th24;
      end;
A29:  i in dom F by A4,A6,A15,FINSEQ_1:def 3;
A30:  i in {k where k is Element of NAT: k>1 & k<n+1+1} implies F.i = ((a
      ,b) In_Power (n+1)).i
      proof
        assume i in {k where k is Element of NAT: 1 < k & k < n+1+1};
        then
A31:    ex k being Element of NAT st k = i & 1 < k & k < n+1+1;
        then reconsider m1 = i-1 as Element of NAT by INT_1:5;
A32:    i <= n+1 by A31,NAT_1:13;
        then i in Seg (n+1) by A31,FINSEQ_1:1;
        then
A33:    i in Seg len ((a,b) In_Power n) by Def7;
        then
A34:    i in dom ((a,b) In_Power n) by FINSEQ_1:def 3;
        1 <= j by A14,A31,NAT_1:13;
        then reconsider m2 = j - 1 as Element of NAT by INT_1:5;
A35:    j <= n+1 by A14,A31,XREAL_1:6;
        then j-1<=n+1-1 by XREAL_1:9;
        then reconsider l2 = n-m2 as Element of NAT by INT_1:5;
        1 <= j by A14,A31,NAT_1:13;
        then j in Seg (n+1) by A35,FINSEQ_1:1;
        then
A36:    j in Seg len ((a,b) In_Power n) by Def7;
        then
A37:    j in dom ((a,b) In_Power n) by FINSEQ_1:def 3;
A38:    j in dom (((a,b) In_Power n) * b) by A3,A36,FINSEQ_1:def 3;
A39:    j in dom (((a,b) In_Power n) * b) by A3,A36,FINSEQ_1:def 3;
        r2=(<*0.R*>^(((a,b) In_Power n)*b)).i by A17,PARTFUN1:def 6;
        then
A40:    r2 = (<*0.R*>^(((a,b) In_Power n) * b)).(len <*0.R*> +j) by A14,
FINSEQ_1:40
          .= (((a,b) In_Power n) * b).j by A39,FINSEQ_1:def 7
          .= (((a,b) In_Power n) * b)/.j by A38,PARTFUN1:def 6
          .= x * b by A37,POLYNOM1:def 2;
        i-1 <= n+1-1 by A32,XREAL_1:9;
        then reconsider l1 = n - m1 as Element of NAT by INT_1:5;
A41:    l1+1 = n+1-(m2+1);
A42:    i in dom (((a,b) In_Power n) * a) by A2,A33,FINSEQ_1:def 3;
        r1=((((a,b) In_Power n)*a)^<*0.R*>).i by A16,PARTFUN1:def 6;
        then
A43:    r1 = (((a,b) In_Power n) * a).i by A42,FINSEQ_1:def 7
          .= (((a,b) In_Power n) * a)/.i by A42,PARTFUN1:def 6
          .= r * a by A34,POLYNOM1:def 2;
        thus F.i = F/.i by A29,PARTFUN1:def 6
          .= F1/.i + x * b by A9,A18,A40,Def1
          .= ((n choose m1) * a|^l1 * b|^m1) * a + x * b by A34,A43,Def7
          .= (a|^l1 * (n choose m1) * b|^m1) * a + x * b by Th17
          .= a * (a|^l1 *((n choose m1) * b|^m1)) + x * b by Th21
          .= a * a|^l1 *((n choose m1) * b|^m1) + x * b by GROUP_1:def 3
          .= a|^(l1+1) * ((n choose m1) * b|^m1) + x * b by GROUP_1:def 7
          .= a|^(l1+1) * ((n choose m1) * b|^m1) + b|^m2 * ((n choose m2) *
        a|^l2) * b by A37,Def7
          .= a|^(l1+1) * ((n choose m1) * b|^m1) + (b|^m2 * b) * ((n choose
        m2) * a|^l2) by GROUP_1:def 3
          .= a|^(l1+1) * ((n choose (m2+1)) * b|^(m2+1)) + b|^(m2+1) * ((n
        choose m2) * a|^l2) by GROUP_1:def 7
          .= (b|^(m2+1) * a|^(l1+1)) * (n choose (m2+1)) + b|^(m2+1) * ((n
        choose m2) * a|^l2) by Th20
          .= b|^(m2+1) * ((n choose (m2+1)) * a|^(l1+1)) + b|^(m2+1) * ((n
        choose m2) * a|^l2) by Th20
          .= b|^(m2+1) * (a|^(l1+1) * (n choose (m2+1))) + b|^(m2+1) * ((n
        choose m2) * a|^l2) by Th17
          .= ((a|^(l1+1) * (n choose (m2+1))) + ((n choose m2) * a|^l2)) * b
        |^(m2+1) by VECTSP_1:def 7
          .= (((n choose (m2+1)) * a|^(l1+1)) + ((n choose m2) * a|^(l1+1)))
        * b|^(m2+1) by Th17
          .= ((n choose (m2+1)) + (n choose m2)) * a|^(l1+1) * b|^(m2+1) by
Th15
          .= ((n+1) choose (m2+1)) * a|^(l1+1) * b|^(m2+1) by NEWTON:22
          .= ((a,b) In_Power (n+1))/.i by A13,A41,Def7
          .= ((a,b) In_Power (n+1)).i by A13,PARTFUN1:def 6;
      end;
A44:  i in {1} implies F.i = ((a,b) In_Power (n+1)).i
      proof
        assume i in {1};
        then
A45:    i = 1 by TARSKI:def 1;
        then
A46:    r2 = (<*0.R*>^(((a,b) In_Power n) * b)).1 by A17,PARTFUN1:def 6
          .= 0.R by FINSEQ_1:41;
        n+1 >= 0+1 by XREAL_1:6;
        then 1 in Seg (n+1) by FINSEQ_1:1;
        then
A47:    1 in Seg len(((a,b) In_Power n)) by Def7;
        then
A48:    1 in dom ((a,b) In_Power n) by FINSEQ_1:def 3;
        then
A49:    r = ((a,b) In_Power n).i by A45,PARTFUN1:def 6;
A50:    1 in dom (((a,b) In_Power n) * a) by A2,A47,FINSEQ_1:def 3;
A51:    r1 = ((((a,b) In_Power n) * a)^<*0.R*>).1 by A16,A45,PARTFUN1:def 6
          .= (((a,b) In_Power n) * a).1 by A50,FINSEQ_1:def 7
          .= (((a,b) In_Power n) * a)/.1 by A50,PARTFUN1:def 6
          .= (((a,b) In_Power n)/.1) * a by A48,POLYNOM1:def 2
          .= a|^n * a by A45,A49,Th23
          .= a|^(n+1) by GROUP_1:def 7;
        thus F.i = F/.i by A29,PARTFUN1:def 6
          .= r1 + F2/.i by A9,A18,Def1
          .= a|^(n+1) by A51,A46,RLVECT_1:def 4
          .= ((a,b) In_Power (n+1)).i by A45,Th23;
      end;
      now
        assume
        i in {1} \/ {k where k is Element of NAT: 1<k & k<n+1+1} \/ { n+1+1};
        then i in {1} \/ {k where k is Element of NAT: 1<k & k<n+1+1} or i in
        {n+1+1} by XBOOLE_0:def 3;
        hence thesis by A44,A19,A30,XBOOLE_0:def 3;
      end;
      hence thesis by A12,A13,NAT_1:12,NEWTON:1;
    end;
    assume P[n];
    then
A52: (a+b)|^(n+1) = Sum((a,b) In_Power n) * (a + b) by GROUP_1:def 7
      .= Sum((a,b) In_Power n) * a + Sum ((a,b) In_Power n) * b by
VECTSP_1:def 2
      .= Sum(((a,b) In_Power n) * a) + Sum((a,b) In_Power n) * b by Th5
      .= Sum(((a,b) In_Power n) * a) + Sum(((a,b) In_Power n) * b)by Th5;
A53: Sum F1 = Sum(((a,b) In_Power n) * a) + Sum<*0.R*> by RLVECT_1:41
      .= Sum(((a,b) In_Power n) * a) + 0.R by Th3
      .= Sum(((a,b) In_Power n) * a) by RLVECT_1:def 4;
A54: Sum F2 = Sum<*0.R*> + Sum(((a,b) In_Power n) * b) by RLVECT_1:41
      .= 0.R + Sum(((a,b) In_Power n) * b) by Th3
      .= Sum(((a,b) In_Power n) * b) by ALGSTR_1:def 2;
    dom F1 = Seg(len F1) by FINSEQ_1:def 3
      .= dom F2 by A4,A5,FINSEQ_1:def 3;
    then
A55: Sum(G1+G2) = Sum(((a,b) In_Power n) * a) + Sum (((a,b) In_Power n ) *
    b) by A53,A54,Th7;
    len ((a,b) In_Power (n+1)) = len F by A7,Def7;
    hence thesis by A52,A55,A8,FINSEQ_1:14;
  end;
  (a+b)|^0 = 1_R by Th8
    .= Sum <*1_R*> by Th3
    .= Sum((a,b) In_Power 0) by Th22;
  then
A56: P[0];
  for n being Nat holds P[n] from NAT_1:sch 2(A56,A1);
  hence thesis;
end;

theorem
  for C,D be non empty set, b be Element of D, F be Function of [:C,D:],D
  ex g being Function of [:NAT,C:],D st for a being Element of C holds
  g.(0,a) = b & for n being Nat holds g.(n+1,a) = F.(a,g.(n,a))
  by Lm1;

theorem
  for C,D be non empty set, b be Element of D, F be Function of [:D,C:],D
  ex g being Function of [:C,NAT:],D st for a being Element of C holds
  g.(a,0) = b & for n being Element of NAT holds g.(a,n+1) = F.(g.(a,n),a)
  by Lm2;

Messung
CHZG
8110010093

[zur Elbe Produktseite wechseln0.33QuellennavigatorsAnalyse erneut starten2026-11-24]

                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,085
#Domains=862,351