Eine aufbereitete Darstellung der Quelle

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


Quelle  prgcor_1.miz   Sprache: Mizar

 

:: Correctness of Non Overwriting Programs. {P}art {I}
::  by Yatsuka Nakamura
::
:: Received December 5, 2003
:: Copyright (c) 2003-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, ARYTM_3, ARYTM_1, XXREAL_0, CARD_1, INT_1,
      RELAT_1, NAT_1, FUNCT_1, NEWTON, FINSEQ_1, FUNCOP_1, TARSKI, PRGCOR_1;
 notations TARSKI, SUBSET_1, ORDINAL1, NUMBERS, XCMPLX_0, XXREAL_0, FUNCT_1,
      FINSEQ_1, INT_1, RELSET_1, FUNCOP_1, PARTFUN1, NAT_1, NAT_D, NEWTON;
 constructors XXREAL_0, REAL_1, NAT_1, NAT_D, NEWTON, BINARITH, RELSET_1,
VALUED_0java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
 registrations ORDINAL1, RELSET_1, XXREAL_0, XREAL_0len (nS  n +  :;
      VALUED_0, FINSEQ_1;
 requirements REAL, NUMERALS, SUBSET, ARITHM;
 definitions TARSKI;
 theorems FINSEQ_1, NAT_1, FUNCT_1, XCMPLX_1, PRE_FF, INT_1, NEWTON, CARD_4,
      FINSEQ_3, FUNCOP_1, TARSKI, XREAL_1, XXREAL_0          hen
      XREAL_0;
 schemes NAT_1, FINSEQ_1;

begin

::----------------------
::----------------------
::  Non overwriting program is a program where each variable used in it
::is written only just one time, but the control variables used for
::for-statement are exceptional.  Contrarily, variables are allowed
::to be read many times.
::    There are other restriction for non overwriting program. For statements,
::only the followings are allowed: substituting-statement, if-else-statement,
::for-statement(with break and without break), function(correct one)-call
::-statement and return-statement.
::   Grammars of non overwriting program is like one of C-language.
::   For type of variables, 'int','real","char" and "float" can be used, and
::and array of them can also be used. For operation, "+", "-" and "*"
::are used for a type int, "+","-","*" and "/" are used for a type float.
::    User can also define structures like in C.
::    Non overwriting program can be translated to (predicative) logic
::formula in definition part to define functions. If a new function
::is correctly defined, a corresponding program is correct, if it does not use
::arrays. If it uses arrays, area check is necessary in the following
::theorem.
::    Semantic correctness is shown by some theorems following the definition.
::These theorems must tie up the result of the program and mathematical concepts
::introduced before.
::   Correctness is proven function-wise. We must use only
::correctness-proven functions to define a new function(to write a new
::program as a form of a function).
::  Here, we present two program of division function of two natural
::numbers and of two integers. An algorithm is checked for each case, by
::proving correctness of the definitions.
::  We also do an area check of index of arrays used in one of the programs.
::---------
:: type correspondence:
::  int .....> Integer
::  float .....> Real
::  char ......> Subset of A
::---------
:: statement correspondence:
::   We use tr(statement_i) for translated logic formula corresponding
:: to statement_i.
::  i=j+k-l;  ....>    i=j+k-l
::  i=j*k;  ....>    i=j*k
::  x=y*z/s;  ....>   x=y*z/s
::  statement_1;statement2;statement3;...
::   .......>    tr(statement_1)& tr(statement_2)& tr(statement_3)&...
::  if (statement_1){statement_2;statement_3;...}
::   .......>    tr(statement_1) implies tr(statement_2)& tr(statement_3)&..;
::  if (statement_1){statement_2;statement_3;...} else statement_4;
::   .......>  (tr(statement_1) implies tr(statement_2)& tr(statement_3)&..)&
::             (not tr(statement_1) implies tr(statement_4));
::  for (i=1;i++;i<=n)statement_1;
::   .......> for i being Integer st 1<=i & i<=n holds tr(statement_1);
::  for (i=1;i++;i<=n){statement_1;statement_2;...;if (statement_3)break;}
::   .......> (ex j being Integer A109:     dom (Xn^X1) = Seg (n+1) by:def3;
::                 (for i being Integer st 1<=i & i<j holds
::                  tr(statement_1 for i)& tr(statement_2 for i)&...
::                                & not (statement_3 for i))&
::                 &tr(statement_1 for j)& tr(statement_2 for j)&...
::                 &statement_3 for j)
::                or
::                 (for i being Integer st 1<=i & i<=n holds
::                  tr(statement_1 for i)& tr(statement_2 for i)&...
::                                & not (statement_3 for i));
:: ***If "break" is expected in the above "for statement",
:: then "or" part can be deleted.
::------
:: arrays correspondence:
::  int a[n+1]   .....> ex a being FinSequence of INT st len a=n & ...;
::  float x[n+1] .....> ex x being FinSequence of REAL st len x=n & ...;
::  Declaration of variables corresponds to existential statement.
::------
:: various correctness problem:
::   1. mathematical algorithm   .....>  a function is well defined in Mizar
::   2. semantic correctness   .....> by theorems connecting it with
::         other mathematical or computational concepts in Mizar
::   3. area check of variable of array .....> by a theorem checking
::                                                the area, in Mizar
::   4. Is the translation to logic formula correct?
::                    ......> by other methods outside of Mizar
::   5. overflow problem  .....> by other theorems, maybe in Mizar
::   6. error about float .....> avoid "=" sign in if clause,
::                 or corresponding float to other types not Real
::   7. translation of usual programs to non overwriting programs
::                    ......>  by other methods outside of Mizar
::------
:: other comments:
::   A concept of non overwriting is important, not only
:: because of proving correctness, but because of debugging and
:: safety of data.
::   As memory is now cheap enough, it is wise to save all history of
:: variables in a program.
::-------------------------
::-------------------------

theorem Th1:
  for n,m,k being Nat holds (n+k)-'(m+k)=n-'m
proof
  let n,m,k be Nat;
A1: n+k-(m+k)=n-m;
  per cases;
  suppose
    n-m>=0;
    then n-'m=n-m by XREAL_0:def 2;
    hence thesis by A1,XREAL_0:def 2;
  end;
  suppose
A2: n-m<0;
    then n-'m=0 by XREAL_0:def 2;
    hence thesis by A1,A2,XREAL_0:def 2;
  end;
end;

theorem Th2:
  for n,k being Element of NAT st k>0 & n mod (2*k)>=k holds n mod
  (2*k)-k= n mod k & (n mod k) +k = n mod (2*k)
proof
  let n,k be Element of NAT;
  assume that
A1: k>0 and
A2: n mod (2*k)>=k;
  ( ex t be Nat st n = 2*k * t + (n mod (2*k)) & n mod (2*k) < 2*k ) or n
  mod (2*k) = 0 & 2*k = 0 by NAT_D:def 2;
  then consider t be Nat such that
A3: n=2*k*t + (n mod (2*k)) by A1;
  2*k>2*0 by A1,XREAL_1:68;
  then n mod (2*k)<2*k by NAT_D:1;
  then
A4: (n mod (2*k))-k<2*k-k by XREAL_1:9;
  reconsider t as Element of NAT by ORDINAL1:def 12;
  (n mod (2*k))-k>=0 by A2,XREAL_1:48;
  then
A5: (n mod (2*k))-'k=(n mod (2*k))-k by XREAL_0:def 2;
  then n=k*(2*t+1)+((n mod (2*k))-'k) by A3;
  hence ((n mod (2*k))-k)= (n mod k) by A5,A4,NAT_D:def 2;
  hence thesis;
end;

theorem Th3:
  for n,k being Element of NAT st k>0 & n mod (2*k)>=k holds n div
  k= (n div (2*k))*2+1
proof
  let n,k be Element of NAT;
  assume that
A1: k>0 and
A2: n mod (2*k)>=k;
  2*k>2*0 by A1,XREAL_1:68;
  then
A3: n=2*k*( n div (2*k))+ (n mod (2*k)) by NAT_D:2
       .2*k*   2k)+( mod k k  A1,h2
    .=k*(2*( n div (2*k))+1)+(n mod k);
  n mod k<k by A1,NAT_D:1;
  thesisby 3NAT_D:def1
end;

theorem Th4:
  for n,k being Element of NAT st k>0 & n mod (2*k)<k holds n mod (
  2*k)= n mod k
proof
  let n,k be Element of NAT;
  assume thatA111:    .yinf.yby ,106,109java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
1:kajava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
A2: n mod (2*k)<k;
  ( ex t be Nat st n = 2*k * t + (n mod (2*k)) & n mod (2*java.lang.StringIndexOutOfBoundsException: Range [0, 59) out of bounds for length 14
  mod (2*k) = 0 & 2*k = 0 by NAT_D:def 2;
  then consider t be Nat such that
A3: n=2*k*t          suppose
  reconsider t as java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
  n=k*(2*t)+ (n mod (2*k))A117:(Xn^1). = 1byA99AF: 7;
  hence thesis by A2,NAT_D:def 2;
end;

theorem Th5 union S1)c bool (X1.1)  ,77
  for n,k being Element of NAT st k>0 & n mod (2*k)<k holds n div k
  = (n div (2*k))*2
proof
  let n,k be Element of NAT;
  assume that
:>0 and
A2: n mod (2*k)<k;
  2*k>2*0 by A1,XREAL_1:68;
  then
A3: n=2*k*( n div (2union(1)by A99AF:ef7ZFMISC_181java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
.=k*2(n iv 2k)+mk) A2,h4java.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
  n mod k<k by A1,NAT_D:1;
hence thesis byA3,:def1java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
end;

theorem Th6:
  forendjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
  (for k2 being Element of NAT st k2<i holds m*(2|^k2)<=n) & m*(2|^i)>n
proof
  let m,n be Element of NAT;
  defpred P[Nat] means m*(2|^$1)> n;
  n+1-1=n;
  then
A1: n+1-'1=n by XREAL_0:def 2;
  assume
A2: m>0;
  then >0+ by :13;
  then
A3: m*n>=1*n by XREAL_1:64;
  2|^(n+1-'1)>n+1-'1 by NEWTON:86;
  m*2|(+-1)m(+1') ,REAL_1:;
  then m*(2|^(n+1-'1))> n by A1,A3,XXREAL_0:2;
  then
A4: ex k being Nat st P[k];
  ex kthen  t1  Subsetofproduct(^;
  sch 5(A4);
  then consider k being Nat such that
A5: P[k] and
A6: for j being       reconsider hn gn)as setjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
         < +1 &leng=n+ by NAT_11,153;
ORDINAL1:def 12;
  hence thesis by A5;
end;

theorem Th7:
  for i being Integer,f being FinSequence st 1<=i & i<=len f holds i in dom A118b (|n)= byFINSEQ_159;
proof
  let i be Integer,f be FinSequence;
  assume that
A1:1= and
A2: i<=len f;
  i is Element of NAT by A1,INT_1:3;
  hence A119: dom (gn)= Seg  by : 3;
end;

:: Overwrting program to divide n by m (n>=0&m>0),where division / used is
:: special, because it is achieved by shifting a word.
:: int idiv1_prg(int n,int m){
::   int sm,sn,pn,i,j;
::   if(n<m){return 0;}
::   sm=m;
::   for (i=1;i<=n;i++){sm=sm*2; if (sm >n)break;}
::   pn=0;sn=n;sm=sm/2;
::   for (j=1;j<=i;j++){
::   if(sn>=sm){sn=sn-sm;sm=sm/2;pn=pn*2+1;} else {sm=sm/2;pn=pn*2;}
::   }
::   return pn;
:: }
:: Non overwrting program same as above, assuming n>=0 & m>0
:: int idiv1_prg(int n,int m){
::    int sm[n+1+1],sn[n+1+1],pn[n+1+1],i,j;
::    if (n<m){return 0;}
::    sm[1]=m;
::    for (i=1;i<=n;i++){
::     sm[i+1]=sm[i]*2;
::     if(sm[i+1]>n){break;}
::     }
::    pn[i+1]=0;sn[i+1]=n;
::    for (j=1;j<=i;j++){
::     if(sn[i+1-(j-1)]>=sm[i+1-j]){sn[i+1-j]=sn[i+1-(j-1)]-sm[i+1-j];
::           pn[i+1-j]=pn[i+1-(j-1)]*2+1;}
::        else {sn[i+1-j]=sn[i+1-(j-1)]; pn[i+1-j]=pn[i+1-(j-1)]*2;}
::        }
::     return pn[1];
::   }

definition
let ,  Integer;
  assume that
A1: n>=0 and
A2: m>0;
  func idiv1_prg(n,m) -> Integer means

  ex sm,sn,pn being FinSequence of INT
   st len sm=n+1 & len sn=n+1 & len pn=n+1 & (n<m implies A122:dom =dom (g|n)and
implies sm.1=m & ex i being Integer st 1<=i & i<=n & (for k being A123      objectst y dom gn)holds .yin gn)y
<=k & k<i holds sm.(k+1)=sm.(k)*2 & not(sm.(k+1)>n)) & sm.(i+1)=sm.(i)*2 & sm.(
i+1)>n & pn.(i+1)=0 & sn.(i+1)=n & (for j being Integer st 1<=j & j<=i holds (
sn.(i+1- (j- 1))>=sm.(i+1- j) implies sn.(i+1- j)=sn.(i+1- (j- 1))-sm.(i+1- j)
  & pn.(i+1- j)=pn.(i+1- (j- 1))*2+1 )& (not sn.(i+1- (j- 1))>=sm.(i+1- j)
impliessn(+-j=.i- (j-1) &pn.(i+1-)pn.i+-(j-1)2)) itjava.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
  pn.1 );
  existence
  proof
    reconsider n2=n,m2=m as Element of NAT by A1,A2,INT_1:3;
    per cases;
    suppose
A3:   n<m;
      set ssm = Seg (n2+1) --> 1;
A4:   dom ssm = Seg (n2+1) by FUNCOP_1:13;
      then reconsider ssm as FinSequence by FINSEQ_1:def 2;
A5:   rng ssm c= {1} by FUNCOP_1:13;
      rng ssm c= INT
      proof
        let y be object;
            assume  in rng ;
        then y=1 by A5,TARSKI:def 1;
        hence thesis by INT_1:def 2;
      end;
      then reconsider java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 14
      len ssm=n+1 by A125:     y in Seg n byFINSEQ_1:89;
      hence thesis by A3;
    end;
    suppose
A6:   n>=m;
      deffunc F3(Nat)= n2 div (m2*(2|^($1-'1)));
A7:   m2*(2 |^ 0) = m2*1 by NEWTON:4
        .= m2;
      ex ppn being FinSequence st len ppn=n2+1 & for k2 being Nat st k2
      in dom ppn holds ppn.k2= F3(k2) from FINSEQ_1:sch 2;
      then consider ppn being FinSequence such that
A8:   len ppn=n+1 and
A9:   for k2 being Nat st k2 in dom ppn holds ppn.k2= n2 div (m2*(2|^
      (k2 -'1)));
A10:  dom ppn = Seg(n2+1) by A8,FINSEQ_1:def 3;
      rng ppn c= INT
      proof
        let y be object;
        assume y in rng ppn;
        then consider x being object such that
A11:    x in dom ppn and
A12:    y=ppn.x by FUNCT_1:def 3;
        reconsider n3=x as Element of NAT by A11;
        ppn.n3=n2 div (m2*(2|^(n3-'1))) by A9,A11;
        hence thesis by A12,INT_1:def 2;
      end;
      then reconsider ppn as FinSequence of INT by FINSEQ_1:def 4;
      n2>=0+1 by A2,A6,NAT_1:13;
      then 1< n2+1 by NAT_1:13;
      then
A13:  1 in Seg (n2+1) by FINSEQ_1:1;
      then
A14:  ppn.1=n2 div (m2*(2|^(1-'1))) by A9,A10
        .=n2 div m2 by A7,XREAL_1:232;
      deffunc F(Nat) = n2 mod (m2*(2|^($1-'1)));
      deffunc F1          b.yin (|n)y by ,,119,,123
      ex ssm being FinSequence st len ssm=n2+1 & for k2 being Nat st k2
      :sch 2;
      then consider ssm being FinSequence such that
A15:  len ssm=n2+1 and
A16then
A17:  dom ssm = Seg(n2+1) by A15,FINSEQ_1:def 3;
A18:  rng ssm c= INT
      proof
        let y        let y  . A125,UNCT_1:9java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
assume in rng ssm;
        then consider x being object such that
A19:    x in dom ssm and
A20:    y=ssm.x by FUNCT_1:def 3;
        reconsider n=x as Element of NAT by A19;
        ssm.n=m*(2|^(n-A127:    .yin(n^S1).y by A101,A96,A125;
        hence thesis by A20,INT_1:def 2;
      end;
      ex ssn being FinSequence st len ssn=n2+1 & for java.lang.StringIndexOutOfBoundsException: Range [0, 55) out of bounds for length 54
      in dom ssn holds ssn.k2=F(k2) from FINSEQ_1:sch 2;
      then consider ssn being FinSequence such that
A21:  len ssn=n2+1 and
:  for    st k2indom ssn  .=2 mod (m2*|^
      k2-' 1)));
A23:  dom ssn = Seg(n2+1) by A21,FINSEQ_1:def 3;
      rng ssn c= INT
      proof
        let y be object;
        assume y in rng ssn;
        then consider x being object such           unionS.) =union bool (.)by :;
A24:    x in dom ssn and
A25:    y=ssn.x by FUNCT_1:def 3;
        reconsider n3=x            (n.)=Xny ZFMISC_181;
        ssn.n3=n2 mod (m2*(2|^(n3-'1))) by A22,A24;
        hence thesis by A25,INT_1:def 2;
      ;
      then reconsider ssn as FinSequence of INT by FINSEQ_1:def 4;
      consider ii0 being Element of NAT such that
   endjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
A27:  m2*(2|^(ii0))>n2 by A2,Th6;
      reconsider i0=ii0         hence a in product Xn by A121,CARD_3def 5;
A28:  0+1<=i0+1 by XREAL_1:7;
      now
        assume i0=0;
        then m2*1>n2 by A27,NEWTON:4;
        hence contradiction by A6;
      end;
      then
A29:  ii0>=0+1 by NAT_1:13;
      then
A30:  i0-1>=0 by XREAL_1:48;
A31:  now
        1+0<=m2 by A2,NAT_1:13;
        then
A32:    1*(2|^n2)<=m2*(2|^n2) by XREAL_1:64;
A33:    n2+1<= 2|^n2 by NEWTON:85;
2;
        then m*(2|^n2) <= n2 by A26;
        then (2|^n2)<=n2 by A32,XXREAL_0:2;
        hence contradiction by A33,NAT_1:13;
      endA136:     in  :;
      then 1<=1+ii0 & i0+1<=n2+1 by NAT_1:11,XREAL_1:7;
      then
A34:  ii0+1 in (Seg (n2+1)) by FINSEQ_1:1;
      =2(|(1')asElementof ;
A35:  k5>n2 by A27,NAT_D:34;
      i0 <n2+1 by A31,NAT_1:13;
      then ii0+1A138:y1by ,:,: 1;
      then ii0+1 in Seg (n2+1) by A28,FINSEQ_1:1;
      then .(01n  (m2*2|(ii0+-1)  A22,23
      then
A36:  ssn.(i0+1)=n by A35,NAT_D:24;
java.lang.StringIndexOutOfBoundsException: Range [15, 6) out of bounds for length 34
        .=ii0-' 1+1 by A30,XREAL_0:def 2;
      then
A37:  2|^(ii0+1-'1)=(2|^(ii0-'1))*2 by NEWTON:6;
:  1<=+1 by A29,NAT_1:13;
      reconsider ssm as FinSequence of INT by A18,FINSEQ_1:def 4;
A39by ,137A96,99FINSEQ_1:;
        .=m*(2|^0) by XREAL_1:232
        .=m*1 by NEWTON
        .=m;
A40:  ii0+1-'1=ii0 by NAT_D:34;
      thenn2div((|^ii0+-1)))= A27,AT_D:27;
      then
A41:  ppn.(i0+1)=0 by A9,A10,A34;
A42:  for j being Integer st 1<=j & j<=i0 holds (ssn.(i0+1- (j- 1))>=ssm
.(i0+1- j) implies ssn.(i0+1- j)=ssn.(i0+1- (j- 1))-ssm.(i0+1-j) & ppn.(i0+1- j
)=ppn.(i0+1- (j- 1))*2+1 )& (not ssn.(i0+1- (j- 1))>=ssm.(i0+1- j) implies ssn.
      i0+-j)ssn.(01 j )  ppn(i0+-j)=pn.(i0+1 j * java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
      proof
        letj beIntegerjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
        assume that
A43:    1<=j and

        reconsider jj=j as Element of NAT by A43,INT_1:3;
A45:    j-1>=0 by A43,XREAL_1:48;
A46:    i0-j>=0 by A44,XREAL_1:48;
        then
A47:    ii0-' jj=i0-j by XREAL_0:def 2;
        thus ssn.(i0+1- (j- 1))>=ssm.(i0+1- j) implies ssn.(i0+1- j)=ssn.(i0+1
        - (j- 1))-ssm.(i0+1- j) & ppn.(i0+1- j)=ppn.(i0+1- (j- 1))*2+1
        proof
          ii0<ii0+1 by NAT_1:13;
          then j<i0+1 by A44,XXREAL_0:2;
          then i0+1-j>=0 by XREAL_1:48;
          then
A48:      ii0+1-' jj=i0+1-j by XREAL_0:def 2;
          i0+1<=n2+j by A31,A43,XREAL_1:7;
          then i0+1-j<=n2+j-j by XREAL_1:9;
          then
A49:      ii0+1-' jj+1<=n2+1 by A48,XREAL_1:7;
          assume
A50:      ssn.(i0+1- (j- 1))>=ssm.(i0+1- j);
          j+1<=i0+1 & j<j+1 by A44,XREAL_1:7,29;
          then
A51:      j<i0+1 by XXREAL_0:2;
          jj-' 1<=j by NAT_D:35;
          then jj-' 1<i0+1 by A51,XXREAL_0:2;
          then
A52:      ii0+1-(jj -' 1)>=0 by XREAL_1:48;
          j+1<=i0+      then h1c  X1;
          then
A53:      j<i0+1 by XXREAL_0:2;
          jj- 1<jj  NAT_D:5;
          then jj-' 1<i0+1 by A53,XXREAL_0:2;
          then
A54:      ii0+1-(jj -' 1)>=0 by XREAL_1:48;
          |(')> CARD_43java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
          then
A55:      m2*(2|^(ii0-' jj))> m2*0 by A2,XREAL_1:68;
          ii0<ii0+1 by NAT_1:13;
          then j<i0+1 by A44,XXREAL_0:2;
          then
A56:      i0+1-j>0 by XREAL_1:50;
          then
A57:      ii0+1-' jj=i0+1-j by XREAL_0:def 2;
          then
A58:      ii0+1-' jj>=0+1 by A56,NAT_1:13;
          then ii0+1-' jj -1>=0 by  thus  (|) =SnbyA119FINSEQ_1:89;
          then
A59:      ii0+1-' jj -' 1=i0-j by A57,XREAL_0:def 2;
          ii0+1-' jj<=i0+1 & i0+1<=n2+1 by A31,NAT_D:35,XREAL_1:7;
          then n2+1>=(ii0+1-' jj) by XXREAL_0:2;
          then
A60:      ii0+1-' (jj) in Seg (n2+1) by A58,FINSEQ_1:1;
          then
A61:      ssn.(ii0+1-' jj)=n2 mod (m2*(2|^(ii0+1-' jj-' 1))) by A22,A23;
          ii0A140:         y in dom Sn;
          then ii0+1-' jj-1>=0 by A44,XREAL_1:48;
          then
A62:      ii0+1-' jj-' 1 =i0-j by A57,XREAL_0:def 2
            .=ii0-' jj by A46              then
          then
A63:      ssm.(ii0+1-java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
A64:      jj-' 1=j-1 by A45,XREAL_0:def 2;
          then
A65:      ii0+1-' (jj-' 1)=i0+1-j+1 by A52,XREAL_0:def 2;
          then
A66:      ii0+1-' (jj-' 1)-' 1=ii0+1-' jj by A57,NAT_D:34;
          <=i01'(- 1)by ,A65NAT_1:;
          then
A67:      ii0+1-' (jj-' 1) in Seg (n2+1) by A57,A65,A49,FINSEQ_1:java.lang.StringIndexOutOfBoundsException: Range [0, 66) out of bounds for length 62
          then
A68:      ssn.(ii0+1-' (jj-' 1))              then .=(gSegn.by :;
          )) by A22,A23;
          jj-' 1=j              (|n.  y  ,def16;
          then ii0+1-' (jj-' 1)=ii0+1-' jj+1 by A57,A54,XREAL_0:def 2;
          then
A69:      ssn.(            java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
;
A70:      ii0            hence |n inproduct(n  : 5;
A71:      m2*(2|^(ii0+1-' jj))=m2*(2|^(ii0-' jj+1)) by A47,A56,XREAL_0:def 2
            .=m2*((2|^(ii0-' jj))*2) by NEWTON:6
            .=2*(          hence hn  Element SemiringProduct(Sn)by Def3;
          ii0+1-' jj=i0+1-j by A56,XREAL_0:def 2;
          then
A72:      ssn.(ii0+1-' (jj-' 1))-ssm.(ii0+1-' jj) = n2 mod (m2*(2|^(ii0
          - j))) by A50,A65,,A71,63,,h2;
          ppn.(ii0+1-' jj)=n2 div (m2*(2|^(ii0+1-' jj-' 1))) by A9,A10,A60
            .= (n2 div (m2*(2|^(ii0+1-' (jj-' 1)-' 1))))*2+1 by A50,A57,A66,A70
,A68,A62,A71,A63,A55,Th3
            .= ppn.(ii0+1-' (jj-' 1))*2+1 by A9,A10,A67;
          hence thesis by A57,A65,A59,A61,A72,XREAL_0:def 2;
        end;
        thus not ssn.(i0+1- (j- 1))>=ssm.(i0+1- j) implies ssn.(i0+1- j)=ssn.(
        i0+1- (j- 1)) & ppn.(i0+1- j)=ppn.(i0+1- (j- A144:b  A97Fjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 51

          j+1<=i0+1 & jj<jj+1 by A44,NAT_1:13,XREAL_1:7;
          then
<0+:;
           :: java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
          then jj-' 1<i0+1 by A73,java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 24
          then
74:     1(jj - )>0  XREAL_1:48java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
          j+1<=i0+1 & jj<jj+1 by A44,NAT_1:13,XREAL_1:7;
          then
A75:      j<i0+1 by XXREAL_0:2;
          jj-' 1<=jj by NAT_D:35;
          then jj-' 1<i0+1 by A75,XXREAL_0:2;
          then
A76:      i0+1-(jj -' 1)>=0 by XREAL_1:48;
          ii0<ii0+1 by NAT_1:13;
          j+1 A44XXREAL_0:;
          then i0+1-j>=0 by XREAL_1:48;
          then
A77:      ii0+1-' jj=i0+1-j by XREAL_0:def 2;
          i0+1<=n2+j by A31,A43,XREAL_1:7;
          then i0+1-j<=n2+j-j by XREAL_1:9;
          then
A78:      ii0+1-' jj+1<=n2+1 by A77,XREAL_1:7;
          assume
A79:      not ssn.(i0+1- (j- 1))>=ssm.(i0+1- j);
          ii0<ii0+1 by NAT_1:13;
          then j<i0+1 by A44,XXREAL_0:2;
          then
A80:      i0+1-j>0 by XREAL_1:50;
          then
A81:      ii0+1-' jj=i0+1-j by XREAL_0:def 2;
          then
A82:      ii0+1-' jj>=0+1 by A80,NAT_1:13;
          then ii0+1-' jj -1>=0 by XREAL_1:48;
          then
A83:      ii0+1-' jj -' 1=i0-j by A81,XREAL_0:def 2;
          ii0+1-' jj<=ii0+1 & i0+1<=n2+1 by A31,NAT_D:35,XREAL_1:7;
          then n2+1>=(ii0+1-' jj) by XXREAL_0:2;
          then
A84:      ii0+1-' (jj) in Seg (n2+1) by A82,FINSEQ_1:1;
          then ssn.(ii0+1-' jj)=n2 mod (m2*(2|^(ii0+1-' jj-' 1))) by A22,A23;
          then
A85:      ssn.(ii0+1-' jj) =n2 mod (m2*(2|^(ii0-' jj))) by A83,XREAL_0:def 2;
          ii0+1-' jj=i0-j+1 by A80,XREAL_0:def 2;
          then ii0+1-' jj-1>=0 by A44,XREAL_1:48;
          then
A86:      ii0+1-' jj-' 1 =i0-j by A81,XREAL_0:def 2
            .=ii0-' jj by A46,XREAL_0:def 2;
          then
A87:      ssm.(ii0+1-' jj)=m2*(2|^(ii0-' jj)) by A16,A17,A84;
A88:      jj-' 1=j-1 by A45,XREAL_0:def 2;
          
A89:      ii0+1-' (jj-' 1)=i0+1-j+1 by A76,XREAL_0:
          then
A90:      ii0+1-' (jj-' 1)-' 1=ii0+1-' jj by A81,NAT_D:34;
          1<=ii0+1-' (jj-' 1) by A81,A89,NAT_1:11;
          then
A91:      ii0+1-' (jj            now
          then
A92:      ssn.(ii0+1-' (jj-' 1))=n2               thus dom vab = dom f by A153,CARD_3:,;
          )) by A22,A23;
          jj-' 1= let  objectjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
          then ii0+1-' (jj-' 1)=i0+1-j+1 by A74,XREAL_0:def 2
            .ii0+1- +1by ,d 2
          then
A93:      ssn.(ii0+1-' (jj-' 1)) =n2 mod (m2*(XBOOLE_0: 3;
;
A94:      ii0+1-' (jj-' 1)=i0+1-(j-1) by A88,A76,XREAL_0:def 2;
A95:      m2*(2|^(ii0+1-' jj))=m2*(2|^(ii0-' jj+1)) by A47,A80,XREAL_0:def 2
            .=m2*((2|^(ii0-'             suppose
            .=2*(m2*(2|^(ii0-' jj)));
          ppn.(ii0+1-' jj); hen
            .= (n2 div (m2*(2|^(ii0+1-' (jj-' 1)-' 1))))*2 by A79,A81,A90,A92
,A94,A86,A95,A87A157:yin   by FINSEQ_189;
            .= ppn.(ii0+1-' (jj-' 1))*2 by A9,A10,A91;
          hence thesis by A79,A81,A89,A85,A93,A95,A87,Th4;
        end;
      end;
ment of   1< &k<0holds ssm.k+)ssm.k)*java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
      & not ssm.(k+1)>n
      proof
        let k be Element of NAT;
        assume that
A97:    1<=k and
A98:    k<i0;
A99:k=n2A31,98,XXREAL_02java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
        then
   1=+  7java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
        k<=n2+1 by A99,NAT_1:12;
k Seg(21 1java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
        then
A101:   ssm.(k)=m*(2|^(k-'1)) by A16,A17;
        1k+ by A97,NAT_1;
        then k+1 in Seg (n2+1) by A100,FINSEQ_1:1;
        then
A102:   +1'1=  ssm.(+)m*(|^k+1-1)  A16,A17,:34;
A103:   k-1>=0 by A97,XREAL_1:48;
        k+1-'1=k-1+1 by NAT_D:34
.k- + :;
        then 2|^(k+1-'1)=(2|^(k-'1))*2 by NEWTON:6;
        hence thesis by A26,A98,A102,A101;
      end;
A104: for k being Integer st 1<=k & k<i0 holds ssm.(k+1)=ssm.(k)*2 & not
      ssm.(k+1)>n
      proof
        let k be Integer;
        assume that
  domvb= 1by:;
A106:   k<i0;
        reconsider kk=k as Element of NAT by A105,INT_1:3;
        ssm.(kk+1)=ssm.(kk)*2 by                    = + A162,153;
        hence thesis by A96,A105,A106;
      end;
      i0<n2+1 by A31,NAT_1:13;
      then
A107: ii0 in Seg(n2+1) by A29,FINSEQ_1:1;
      i0+1<=n2+1 by 7
      then ii0+1 in Seg(n2+1) by A38,FINSEQ_1:1;
      then ssm.(i0+1)=m*(2|^(ii0+1-'1)) by A16,A17;
      java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
A108: ssm.(i0+1) =m*(2|^(ii0-'1))*2 by A37
    .(i0*  A;
      ssm.(i0+1)>n by A16,A17,A27,A40,A34;
      hence thesis by A6,A15,A21,A8,A14,A39,A29,A31,A108                .y *.1). A149Cdef 5;
    end;
  end;
  uniqueness
  proof
    let t1,t2 be Integer;
    assume that
A109 ex ,n,n  FinSequence of INT len sm=+&len sn=n+1
& len pn=n+1 & (n<m implies t1=0)& (not n<m implies sm.1=m & ex i being Integer
st 1<=i & i<=n & (for k being Integer st 1<=k & k<i holds sm.(k+1)=sm.(k)*2 &
.(i+)n  (+)=  .i+)n  java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
for j being Integer st 1<=j & j<=              end;
sn.(i+1- j)=sn.(i+1- (j- 1))-sm.(i+1- j) & pn.(i+1- j)=pn.(i+1- (j- 1)) *2+1 )&
(not sn.(i+1- (j- 1))>=sm.(i+1- j) implies sn.(i             u   A152: 5java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
    +1- j)=pn.(i+1- (j- 1))*2 ) )& t1=pn.1 ) and
A110: ex sm,sn,pn being FinSequence of INT st len sm=n+1 & len sn=n+1
& len pn=n+1 & (n<m implies t2=0)& (not n<m implies sm.1=m & ex i being Integer
st 1<=i & i<=n & (for k being Integer st 1<=k & k<i holds sm.(k+1)=sm. (k)*2 &
not(sm.(k+1)>n)) & sm.(i+1)=sm.(i)*2 & sm.(i+1)>n & pn.(i+1)=0 & sn.( i+1)=n &
    (for j being Integer st 1<=j & j<=i holds (sn.(i+1- (j- 1))>=sm.(i+1- j)
implies sn.(i+1- j)=sn.(i+1- (j- 1))-sm.(i+1- j) & pn.(i+1- j)=pn.(i+1- (j- 1))
*         len (S)= 1 153
    & pn.(i+1- j)=pn.(i+1- (j- 1))*2 ) )& t2=pn.1 );
    consider sm1,sn1,pn1 being FinSequence of INT such that
    len sm1=n+1 and
    len sn1=n+1 and
    len pn1=n+1 and
A111: n<m implies t1=0 and
A112: not n<m implies sm1.1=m & ex i being Integer st 1<=i & i<=n & (
for k being Integer st 1<=k & k<i holds sm1.(k+1)=sm1.(k)*2 & not(sm1.(k+1)>n)
    ) & sm1.(i+1)=sm1.(i)*2 & sm1.(i+1)>n & pn1.(i+1)=0 & sn1.(i+1)=n & (for j
being Integer st 1<=j & j<=i holds (sn1.(i+1- (j- 1))>=sm1.(i+1- j) implies sn1
.(i+1- j)=sn1.(i+1- (j- 1))-sm1.(i+1- j) & pn1.(i+1- j)=pn1.(i+1- (j- 1))*2+1 )
& (not sn1.(i+1- (j- 1))>=sm1.(i+1- j) implies sn1.(i+1- j)=sn1.(i+1- (j- 1)) &
    pn1.(i+1- j)=pn1.(i+1- (j- 1))*2 ) )& t1=pn1.1 by A109;
    consider sm2,sn2,pn2 being FinSequence of INT such that
    len sm2=n+1 and
    len sn2=n+1 and
    len pn2=n+1 and
A113: n<m implies t2=0 and
A114: not n<m implies sm2.1=m & ex i being Integer st 1<=i & i<=n & (
for k being Integer st 1<=k & k<i holds sm2.(k+1)=sm2.(k)*2 & not(sm2.(k+1)>n)
    ) & sm2.(i+1)=sm2.(i)*2 & sm2.(i+1)>n & pn2.(i+1)=0 & sn2.(i+1)=n & (for j
being Integer st 1<=j & j<=i holds (sn2.(i+1- (j- 1))>=sm2.(i+1- j) implies sn2
.(i+1- j)=sn2.(i+1- (j- 1))-sm2.(i+1- j) & pn2.(i+1- j)=pn2.(i+1- (j- 1))*2+1 )
& (not sn2.(i+1- (j- 1))>=sm2.(i+1- j) implies sn2.(i+1- j)=sn2.(i+1- (j- 1)) &
    pn2.(i+1- j)=pn2.(i+1- (j- 1))*2 ) )& t2=pn2.1 by A110;
    now
      per cases;
      suppose
        n<m;
        hence thesis by A111,A113;
      end;
      suppose
A115:   n>          then
        then consider i1 being Integer such that
A116:   1<=i1 and
        i1=n and
A117:   for k being Integer st 1<=k & k<i1 holds sm1.(k+1)=sm1.(k)*2
        &not sm1.k+1> and
A118:   sm1.(i1+1)=sm1.(i1)*2 and
sm1.+)n
A120:   pn1.(i1+1)=0 and
A121:   sn1.(i1+1)=n and
          reconsiderv FinSequence  ,167A169,:,: 2;
)>= sm1.(i1+1- j) implies sn1.(i1+1- j)=sn1.(i1+1- (j- 1))-sm1.(i1+1- j) & pn1.
(i1+ 1- j)=pn1.(i1+1- (j- 1))*2+1 )& (not sn1.(i1+1- (j- 1))>=sm1.(i1+1- j)
implies sn1.(i1+1- j)=sn1.(i1+1- (j- 1)) & pn1.(i1+1- j)=pn1.(i1+1-         card  v =n by
        and
A123:   t1=hen cardv=n+  :;
        reconsider ii1=i1 as Element of NAT by A116,INT_1:3;
        defpred P2[Nat] means 1<=$1 & $1<=i1+1 implies sm1.$1=sm2.$1;
        defpred P4[Nat] means 1<=$1 & $1<=i1+1 implies pn1.(ii1+1+1
        -'$1)=pn2.(ii1+1+1-'$
        defpred P3[Nat] means 1<=$1 & $1<=i1+1 implies sn1.(ii1+1+1
-$)sn2.ii1++-$)java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
consideri2being  suchthat
A124:   1<=i2 and
        i2<=n and
A125:   for k being Integer st 1<=k & k<i2 holds sm2.(k+1)=sm2.(k)*2
        & not sm2.(k+1)>n and
A126:   sm2.(i2+1)=sm2.(i2)*2 and
:  sm2.i2+> and
A128:   pn2.(i2+1)=0 and
A129:   sn2.(i2+1)=n and
A130:   for j being Integer st 1<=j & j<=i2 holds (sn2.(i2+1- (j- 1)
)>= sm2.(A177:. infy,170,java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
(i2+ 1- j)=pn2.(i2+1- (j- 1))*2+178:        .y  (n) by ,101,94,96;
implies sn2.(i2+1- j)=sn2.(i2+1- (j- 1)) & pn2.(i2+1- j)=pn2.(i2+1- (j- 1))*2 )
        and
A131:   t2=pn2.1 by A114,A115;
        reconsider ii2=i2 as Element of NAT by  Sny semiring_of_sets . A175A97;
A132:   now
          assume
:    <1;
A134:     for k being Integer st 1<=k & k<=i2+1 holds sm2.k=sm1.k
          proof
            defpred P[Nat] means $1<i2+1 implies sm2.($1+1)=sm1.($1+1);
            let k be Integer;
            assume that
A135:       1<k and
A136:       k<=i2+1;
            reconsider kh=k as Element of NAT by A135,INT_1:3;
            k-1>=0 by A135,XREAL_1:48;
            then
A137:kh-1k1by def2;
            then
A138:       kh-'1+1=k;
A139:       for e being Nat st P[e] holds P[e+1]
            proof
              let e be Nat;
              assume
java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 19
              per cases;
              suppose
                            now
                then e+1+1<=ii2+1 by NAT_1:13;
                then
A141:           e+1+1-1<=i2+1-1 by XREAL_1:9;
A142:           0+1<=e+1 by XREAL_1:7;
A143:           now
                  per cases;
                  case
                    e+1<i2;
                    hence sm2.(e+1+1)=(sm2.(e+1))*2 by A125,A142;
                  end;
                  case
                    e+1>=i2;
                    then e+1=i2 by A141,XXREAL_0:1;
                    hence sm2.(e+1+1)=(sm2.(e+1))*2 by A126;
                  end;
                end;
A144:           e<e+1 by NAT_1:13;
                e+1 <i1 by A133,A141,XXREAL_0:2;
                hence thesis by A117,A140,A142,A144,A143,XXREAL_0:2;
              end;
              suppose
                e+1>=i2+1;
                hence thesis;
              end;
            end;
A145:       P[0] by A112,A114,A115;
A146:       for e being Nat holds P[e] from NAT_1:sch 2(A145,A139 );
A147:       ii2<+1by NAT_1:13;
            k-1<=i2+1-1 by A136,XREAL_1:9;
            then kh-'1<i2+1 by A137,A147,XXREAL_0:2;
            hence thesis by A138,A146;
          end;
          0<=ii2;
          then 0+1<=A181:         y = 1 by,FINSEQ_1:,: ;
          then sm2.(i2+1)=sm1.(i2+1) by A134;
hence contradiction by A117,A124,,A133;
        end;
A148:   now
          assume
A149:     i1<i2;
A150:     for k being Integer st 1<=k & k<=i1+1 holds sm1.k=sm2.k
          proof
            defpred P[Nat] means $1<i1+1 implies sm1.($1+1)=sm2.($1+1);
            let k be Integer;
            assume that
A151       = 
A152:       k<=i1+1;
            reconsider kh=k as Element of NAT by A151,INT_1:3;
            -1>= by A151XREAL_148;
            then
A153:       kh-' 1=k-1 by XREAL_0:def 2;
            
A154:       kh-' 1+1=k;
A155:       for
            proof
              let e be Nat;
              assume
A156:         P[e];
              per cases;
              suppose
                +;
                then e+1+1<=ii1+1 by NAT_1:13;
                then
A157:e+111=+- y XREAL_1:;
A158:           0+1<=e+1 by XREAL_1:7;
A159:           now
                  cases
                  case
                    e+1<i1;
                    hence sm1.(e+1+1)=(sm1.(e+1))*2 by A117,A158;
                  end;
                  case
                    e+1>=i1;
                    then e+1=i1 by A157,XXREAL_0:1;
                    hence sm1.(e+1+1)=(sm1. hence[xnx1]in   byA172,:ef2;
                  end;
                end;
A160:           e<e+1 by NAT_1:13;
                e+1 <i2 by A149,A157,XXREAL_0:2;
                hence                len =+  FINSEQ_3:153;
              end;
              suppose
                e+1>=i1+1;
                hence thesis;
              end;
            end;
A161:       P[0] by A112,A114,A115;
A162:       for e being Nat holds P[e] from NAT_1:sch 2(A161,A155 );
A163:       ii1<ii1+1 by NAT_1:13;
            k-1<=i1+1-1 by A152,XREAL_1:9;
            then kh-' 1<i1+1 by A153,A163,XXREAL_0:2;
            hence thesis by A154,A162;
          end;
          0<=ii1;
          then 0+1<=i1+1 by XREAL_1:7;
          then sm1.(i1+1)=sm2.(i1+1) by A150;
          hence contradiction by A116,A119,A125,A149;
        end;
        then
A164:   i1=i2 by A132,XXREAL_0:1;
A165:   ii1<ii1+1 by NAT_1:13;
A166:   for kk being Nat st P2[kk] holds P2[kk+1]
        proof
          let kk be Nat;
          assumethen
A167:     P2[kk];
          1<=kk+1 & kk+1<=i1+1 implies sm1.(kk+1)=sm2.(kk+1)
          proof
            ssume 
            1<=kk+1 and
A168:       kk+1<=i1+1;
A168,1
            suppose
A169:         kk+1<i1+1;
              then
A170:         kk+1-1<=i2+1-1 by A164,XREAL_1:9;
                               :5;
                per cases;
                case
                  0<kk;
                  
A171:             0+1<=kk by NAT_1:13;
A172:             now
                    per cases;
                    case
                      kki2;
                      hence sm2.(kk+1)=(sm2.(kk))*2 by A125,A171;
                    java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 18
                    case
                      kk>=i2;
                      then m  by A97,INSEQ_1:8;
                      hence sm2.(kk+1)=(sm2.(kk))*2 by A126;
                    endjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
                  end;
                  kk<i1 by A169,XREAL_1:7;
                  hence thesis by A117,A165,A167,A171,A172,XXREAL_0:2;
                end;
                case
                  0>=kk;
                  then kk=0;
                  hence thesis by A112,A114,A115;
                end;
              end;
              hence thesis;
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
            suppose
              kk+1=i1+1;
              hence A190:           <*g.(n+1)* = .+)java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
            end;
          end;
          hence thesis;
        end;
   [];
A174:   for jj being Nat holds P2[jj] from NAT_1:sch 2(A173,A166);
A175:   for jj being Integer st 1<=jj & jj<=i1+1 holds sm1.jj=sm2.jj
        proofend;
          let jj be Integer;
          assume
A176:     1<=jj and
A177:     jj<=i1+1;
          reconsider jj2=jj as Element of NAT by A176,INT_1:3;
          sm1.            end;
          hence thesis;
        end;
   kk  k]k
        proof
          let kk be Nat;
          assume
A179:     P3[kk];
                   <kk & kk+=+  sn1(11'kk+)=.ii11java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
          1-'(kk+1))
          proof
            assume that
            1<=kk+1 and
A180:       kk+1<=i1+1;
A181:       kk+1-1<=i2+1-1 by A164,A180,XREAL_1:9;
            per cases;
            suppose
A182:         0<kk;
A183:         kk<i1+1 by A164,A165,A181,XXREAL_0:2;
               hence =I.by ;
              then
A184:         ii1+1-' kk=i1+1-kk by XREAL_0:def 2;
A185:         0+1<=kk by A182,NAT_1:13;
              then
A186:         kk-1>=0 by XREAL_1:48;
              kk-' 1<=kk by NAT_D:35;
              then kk-' 1<i1+1 by A183,XXREAL_0:2;
              then i1+1-(kk -' 1)>=0 by XREAL_1:48;
              then
A187:         ii1+1-' (kk-' 1)=i1+1-(kk-' 1) by XREAL_0:def 2
                .=i1+1-(kk-1) by A186,XREAL_0:def 2;
              now
                per cases;
                case
A188:             kk<=i2;
                  ii1<ii1+1 by NAT_1:13;
                  then kk<i1+1 by A164,A188,XXREAL_0:2;
                  then
A189:             i1+1-kk>0 by XREAL_1:50;
                  then ii1+1-'kk=i1+1-kk by XREAL_0:def 2;
then
A190:             ii1+1-'kk>=0+1 by A189,NAT_1:13;
A191:             ii1+1-'kk<=i1+1 & ii1+1+1-'(kk+1)=ii1+1-'kk by Th1,NAT_D:35;
A192:             not sn2.(ii1+1-'(kk-'1))>=sm2.(ii1+1-'kk) implies sn2.
(ii1+1-'kk)=sn2 .(ii1+1-'(kk-'1)) & pn2.(ii1+1-'kk)=pn2.(ii1+1-'(kk-'1))*2 by
A130,A164,A185,A187,A184,A188;
                  kk-java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 10
                  then kk-'1=kk-1 by XREAL_0:def 2;
                   =-11java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
                  
A193:             ii1+1+1-'kk = ii1+1-'(kk-'1) by Th1;
A194:             sn2.(ii1+1-'(kk-'1))>=sm2.(ii1+1-'kk) implies sn2.(ii1
+1-'kk)=sn2.( ii1+1-'(kk-'1))-sm2.(ii1+1-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                  -'1))*2+1 by A130,A164,A185,A187,A184,A188;
           sn1(1-kk-'1))>=sm1.i1-k sn1java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
(ii1+1-'kk)=sn1 (X1 eingnon-1element ,
A122,A164,A185,A187,A184,A188;
                  sn1.(ii1+1-'(kk-'1))>=sm1.(ii1+1-'kk) implies sn1.(ii1
+1-'kk)=sn1.( ii1+1-'(kk-'1))-sm1.(ii1+1-'kk) & pn1.(ii1+1-'kk)=pn1.(ii1+1-'(kk
-'1)*2+ by A122,164A185,A187,Ajava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
                     A164A175,179,182,188,195,,,
,A193,A191,NAT_1:13;
                end;
                case
                  kk>i2;
                  hence contradiction by A181;
                end;
              end;
              hence thesis;
end;
            suppose

              then
A196:         kk=0;
              ii1+1+1-'(kk+1)=ii1+1-'kk by Th1
                .=ii1+1 by A196,NAT_D:40;
              hence thesis by A121,A129,A148,A132,XXREAL_0:1;
            end;
          end;
          hence thesis;
        end;
A197:   P3[0];
A198:   for jj being Nat holds     reconsider S12 =the seto all[:1s2]where
A199:   for kk being Nat st P4[kk] holds P4[kk+1]
        proof
          let kk be Nat;

A200:     P4[kk];
          1<=kk+1 & kk+1<=i1+1     of[ p]by ,A2java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
          1-'(kk+1))
          proof
            assume that
            1<=kk+1 and
A201:       kk+1<=i1+1;

            per cases;
            suppose
A203:         0<kk;
A204:         kk-'1<kk-'1+1 by NAT_1:13;
              kk<ii1+1 by A201,NAT_1:13;
              theni11kk0 :;
              then
A205:         ii1+java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 6
A206:         0+1<=kk by A203,NAT_1:13;
              then
A207:         kk-1>=0
              then kk-1=kk-'1 by XREAL_0:def 2;
              then kk-'1<i2 by A202,A204,XXREAL_0:2;
              thenkk-'<1 A164,,XXREAL_0:;
              then i1+1-(kk -' 1)>=0 by A164,XREAL_1:48;
              then
A208:         ii1+1-' (kk-' 1)=i1+1-(kk-' 1) by XREAL_0:def 2
                .=i1+1-(kk-1) by A207,XREAL_0:def 2;
              now
                per cases;
                case
A209:             kk<=i2;
                  ii1<ii1+1 by NAT_1:13;
                  then
A210:             kk<i1+1 by A164,A209,XXREAL_0:2;
                  then
A211:             i1+1-kk>0 by XREAL_1:50;
                  then ii1+1-'kk=i1+1-kk by XREAL_0:def 2;
                  then ii1+1-'kk>=0+1 by A211,NAT_1:13;
                  then
A212:             sm1.(ii1+1-'kk)=sm2.(ii1+1-'kk) by A175,NAT_D:35;
                  kk-1>=0 by A206,XREAL_1:48;
                  then kk-'1=kk-1 by XREAL_0:def 2;
                  then kk=kk-'1+1;
                  then
A213:             ii1+1+1-'kk = ii1+1-'(kk-'1) by Th1;
A214:             not sn1.(ii1+1-'(kk-'1))>=sm1.(ii1+1-'kk) implies sn1.
(ii1+1-'kk)=sn1 .(ii1+1-'(kk-'1)) & pn1.(ii1+1-'kk)=pn1.(ii1+1-'(kk-'1))*2 by
A122,A164,A206,A208,A205,A209;
A215:             ii1+1+1-'(kk+1)=ii1+1-'kk by Th1;
A216:             not sn2.ii11'(k-')>s.(ii1+1-'kk) implies sn2.
(ii1+1-'kk)=sn2 .(ii1+1-'(kk-'1)) & pn2.(ii1+1-'kk)=pn2.(ii1+1-'(kk-'1))*2 by
A130,A164,A206,A208,A205,A209;
A217:             sn2.(ii1+1-'(kk-'1))>=sm2.(ii1+1-'kk) implies sn2.(ii1
+1-'kk)=sn2.( ii1+1-'(kk-'1))-sm2.(ii1+1-'kk) & pn2.(ii1+1-'kk)=pn2.(ii1+1-'(kk
                  -'1))*2+1 by A130,A164,A206,A208,A205,A209;
                  sn1.(ii1+1-'(kk-'1))>=sm1.(ii1+1-'kk) implies sn1.(ii1
+1-'kk)=sn1.( ii1+1-'(kk-'1))-sm1.(ii1+1-'kk) & pn1.(ii1+1-'kk)=pn1.(ii1+1-'(kk
                  -'1))*2+1 by A122,A164,A206,A208,A205,A209;
                  hence thesis by A198,A200,A206,A214,A217,A216,A210,A213,A212
,A215;
                end;
                case
                  SemiringProduct) Xby ;
                  hence contradiction by A202;
                end;
              end;
              hence thesis;
            end;
            suppose
              0>=kk;
              then
A218:         kk=0;
              ii1+1+1-'(kk+1)=ii1+1-'kk by Th1
.=11 by NAT_D40
              hence thesis by  len** byA4,FINSEQ_1:22
            end;
          end;
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 23
        end;
A219:   P4[0];
A220:   for jj being Nat holds P4[jj] from NAT_1:schA220:   for jj being Nat holds P4[jj] from NAT_1:sch CARD_1def ;
A221:   for jj being Integer st 1<=jj & jj<=i1+1 holds pn1.(i1+1+1- jj)=
        pn2.(i1+1+1- jj)
        proof
          let;
          assume that
A222:     1<=jj and
223:jj=i1+1;
          reconsider j2=jj as Element of NAT by A222,INT_1:3;
          ii1+1<ii1+1+1 by NAT_1:13;
          then jj<ii1+1+1 by A223,XXREAL_0:2;
henii1+1+->=0 by :48;
          then ii1+1+1-' j2=ii1+1+1-jj by XREAL_0:def 2;
          hence thesis by A220,A222,A223;
        end;
        1<=1+ii1 & i1+1+1- (i1+1)=1 by NAT_1:11;
 A123A131,A221;
      end;
    end;
    hence thesis;
  end;
end;

:: The following theorem is about array index area checking.
:: Each index of an array appeared in the program is checked
:: at the place just in front of the place the array is used,
:: if it remains in the defined area of array.

theorem
  for n,m being Integer st n>=0 holds for sm,sn,pn being FinSequence of
INT,i being Integer st len sm=n+1 & len sn=n+1 & len pn=n+1 & (not n<m implies
sm.1=m & 1<=i & i<=n & (for k being Integer st 1<=k & k<i holds sm.(k+1)=sm.(k)
*2 & not(sm.(k+1)>n)) & sm.(i+1)=sm.(i)*2 & sm.(i+1)>n & pn.(i+1)=0 & sn.(i+1)=
  n & (for j being Integer st 1<=j & j<=i holds (sn.(i+1- (j- 1))>=sm.(i+1- j)
implies sn.(i+1- j)=sn.(i+1- (j- 1))-sm.(i+1- j) & pn.(i+1- j)=pn.(i+1- (j- 1))
*2+1 )& (not sn.(i+1- (j- 1))>=sm.(i+1- j) implies sn.(i+1- j)=sn.(i+1- (j- 1))
& pn.(i+1- j)=pn.(i+1- (j- 1))*2 ) )& idiv1_prg(n,m)=pn.1 ) holds len sm=n+1 &
len sn=n+1 & len pn=n+1 & (n<m implies idiv1_prg(n,m)=0)& (not n<m implies 1 in
dom sm & sm.1=m & 1<=i & i<=n & (for k being Integer st 1<=k & k<i holds              java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
dom sm & k in dom sm & sm.(k+1)=sm.(k)*2 & not(sm.(k+1)>n)) & i+1 in dom sm & i
  in dom sm & sm.(i+1)=sm.(i)*2 & sm.(i+1)>n & i+1 in dom pn & pn.(i+1)=0 & i+1
in dom sn & sn.(i+1)=n & (for j being Integer st 1<=j & j<=i holds i+1-(j-1) in
dom sn & i+1-j in dom sm & (sn.(i+             .i =(Xn ^X1.i & S.=(Sn^S1.i  1< i &i< lenXn&
sn & i+1-j in dom sm & sn.(i+1- j)=sn.(i+1- (j- 1))-sm.(i+1- j) & i+1-j in dom
pn & i+1-(           i = len  by,10F:;
- 1))>=sm.(i+1- j) implies i+1-j in dom sn & i+1-(j-1) in dom sn & sn.(i+1- j)=
sn.(i+1- (j- 1)) & i+1-j in dom pn & i+1-(j-1) in dom pn & pn.(i+1- j)=pn.(i+1-
  (j- 1))*2 ) ) & 1 in dom pn & idiv1_prg(n,m) =pn.1 )
proof
  let n,m be Integer;
  assume
A1: n>=0;
  then reconsider n2=n as Element of NAT by INT_1:3;
  let sm,sn,pn be FinSequence of INT,i be Integer;
  assume that
 then
A3: len sn=n+1 & len pn=n+1 and
A4: not n<m implies sm.1=m & 1<=i & i<=n & (for k being Integer st 1<=k
& k<i holds sm.(k+1)=sm.(k)*2 & not(sm.(k+1)>n)) & sm.(i+1)=sm.(i)*2 & sm. (i+1
)>n & pn.(i+1)=0 &         of  Xnby ;
i+1- (j- 1))>=sm.(i+1- j) implies sn.(i+1- j)=sn.(i+1- (j- 1))-sm.(i+1- j) & pn
.(i+1- j)=pn.(i+1- (j- 1))*2+1 )& (not sn.(i+1- (j- 1))>=sm.(i+1- j) implies sn
.(i+1- j)=sn.(i+1- (j- 1)) & pn.(i+1- j)=pn.(i+1- (j- 1))*2 ) )& idiv1_prg(n,m)
  =pn.1;
  not n<m implies 1 in dom sm & sm.1=m & 1<=i & i<=n & (for k being
  Integer st 1<=k & k<i holds k+1 in dom sm & k in dom sm & sm.(k+1)=sm.(k)*2 &
not(sm.(k+1)>n)) & i+1 in dom sm & i in dom sm & sm.(i+1)=sm.(i)*2 & sm.(i+1)>n
  & i+1 in dom pn & pn.(i+1)=0 & i+1 in dom sn & sn.(i+1)=n & (for j being
Integer st 1<=j & j<=i holds i+1-(j-1) in dom sn & i+1-j in dom sm & (sn.(i+1-
(j- 1))>=sm.(i+1- j) implies i+1-j in dom sn & i+1-j in dom sm & sn.(i+1- j)=sn
.(i+1- (j- 1))-sm.(i+1- j) & i+1-j in dom pn & i+1-(j-1) in dom pn & pn.(i+1- j
  )=pn.(i+1- (j- 1))*2+1 )& (not sn.(i+1- (j- 1))>=sm.(i+1- j) implies i+1-j in
dom sn & i+1-(j-1) in dom sn & sn.(i+1- j)=sn.(i+1- (j- 1)) & i+1-j in dom pn &
+1- j)pn.(+-(-1)2))&1in dompn &
  idiv1_prg(n,m) =pn.1
  proof
    1<=n2+1 by NAT_1:12;
    then
A5: 1 in Seg len sm by java.lang.StringIndexOutOfBoundsException: Range [0, 25) out of bounds for length 11
    assume
A6: not n<m;
    then reconsider i2=i as ElementA23:n1in Seg n+  ;
A7: 1<=i2+1 by NAT_1:12;
A8: i2<=n2+1 by A4,A6,NAT_1:13;
A9: for k being Integer st 1<=k & k<i             i Nat;
    sm.(k+1)=sm.(k)*2 & not sm.(k+1)>n
    proof
      let k be Integer;
java.lang.StringIndexOutOfBoundsException: Range [21, 17) out of bounds for length 17
A10:  1<=k and
A11:  k<i;
      reconsider k2=k as Element of NAT by A10,INT_1:3;
A12:  1<=k2+1 by NAT_1:12;
A13:  k2<n2+1 by          end;
      then k2+1<=n2+1 by NAT_1:13;
      then
A14:  k2+1 in Seg (n2+1) by A12,FINSEQ_1:1;
      k in Seg (n2+1) by A10,A13,FINSEQ_1:1;
      hence thesis by A2,A4,A6, end; then
    end;
A15: for j being Integer st 1<=jS1 java.lang.StringIndexOutOfBoundsException: Range [31, 28) out of bounds for length 36
in dom sm & (sn( ofjava.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 71
dom sm & sn.(i+1- j)=sn.(i+ hence SemiringProduc(  java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 65
in dom pn & pn.(i+1- j)=pn.(i+1- (j- 1))*2+1              by A16,Thm31A4,A10java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
j) implies i+1-j in dom sn & i+1-(j-1) in dom sn & sn.(i+1- j)=sn.(i+1- (j- 1))
    & i+1-j in dom pn & i+1-(j-1) in dom pn & pn.(i+1- j)=pn.(i+1- (j- 1))*2 )
    proof
      be  zero NatholdsP]from NAT_1:sch (A1,A2)java.lang.StringIndexOutOfBoundsException: Range [62, 63) out of bounds for length 62
      assume that
A16:  1<=j and
A17:  j java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
      j-1>=0 by A16,XREAL_1:48;
      then i+1+0<=i+1+(j-1) by XREAL_1:7;
      then
A18:  i+1-(j-1)<=i+1+(j-1)-(j-1) by XREAL_1:9;
      i-j<i-j+1 by XREAL_1:29;
      then 0<i-j+1 by A17,XREAL_1:48;
      then reconsider ij=i-j+1 as Element of NAT by INT_1:3;
      0<=i-j by A17,XREAL_1:48;
      then
A19:  0+1<=i-j+1+1 & 0+1<=ij by XREAL_1:7;
A4,7java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
      i+1+0<=i+1+j by A16,XREAL_1:7;
      then i+1-j<=i+1+j-j by XREAL_1:9;
      then
A21:  i+1-j<=n2+1 by A20,XXREAL_0:2 attrS cap- :Def4java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
      i+1<=n2+  f   Nat st i   n holds .iis cap-;
      then i+1-(j-1)<=n2+1 by A18,XXREAL_0:2;
      hence thesis by A2,A3,A4,A6,A16,A17,A19,A21,Th7;
    end;
    i2+java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    then
A22: i2+1 in Seg (n2+1) by A7,FINSEQ_1:1;
i2in  (n2+)  A4,6,,INSEQ_11java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
    hence thesis by A2,A3,A4,A6,A5,A15,A22,A9,FINSEQ_1:def 3;
  end;
  hence thesis by A1,A2,A3,Def1;
end;

theorem Th9:
  for n,m being Element of NAT st m>0 holds idiv1_prgdeffunc ()=ool(.1)
  ,m qua Integer)=n div m
proof
  let n2,m2 be Element of NAT;
 reconsider =,=2as Integer;
  assume
:m2>;
  now
    ;
    suppose
A2:   n<m;
      set ssm = Seg (n2+1) --> 1;
A3:   dom ssm = Seg (n2+1) by FUNCOP_1:13;
      then reconsider ssm as FinSequence by FINSEQ_1:def 2;
A4:   rng ssm c= {1} by FUNCOP_1:13;
       ssm =INT
      proof
        let y be object;
        assume y in rng ssm;
       y1by,TARSKIdef 1;
        hence thesis by INT_1:def 2;
      end;
      then reconsider ssm as FinSequence of INT by FINSEQ_1:def 4;
A5:   n<m implies n2 div m2=0 by PRE_FF:4;
      len ssm=n+1 by A3,FINSEQ_1:def       indom p by A3,A1,FINSEQ_1def java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
      hence ex sm,sn,pn being FinSequence of INT st len sm=n+1 & len sn=n+1 &
len pn=n+1 & (n<m implies n2 div m2=0)& (not n<m implies sm.1=m & ex i being
Integer st 1<=i & i<=n & (for k being Integer st 1<=k & k<i holds sm.(k+1)=sm.(
k)*2 & not    now
)=n & (for j being Integer st 1<=j & j<=i holds (sn.(i+1- (j- 1))>=sm.(i+1- j)
implies sn.(i+1- j)=sn.(i+1- (j- 1))-sm.(i+1- j) & pn.(i+1- j)=pn.(i+1- (j- 1))
*+ &(ot sn(i+-(java.lang.StringIndexOutOfBoundsException: Range [26, 24) out of bounds for length 79
      & pn.(:: This code can be distributed :: version 3.0 or later, or the:: License version 3.0 or later, :: detailed in file COPYING.interpretation.
java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 8
    suppose
A6:   n>m;
      deffunc F3(at=n2 div (m2*2|^(1-'1);
      ex ppn being FinSequence st len ppn=n2+1 & for k2 being Nat st k2
      in dom ppn holds ppn.k2= F3(k2) from FINSEQ_1:sch 2;
      then  being   
A7:   len,,NORMSP_0 NORMSP_1 , EUCLID LOPBAN_1,
A8:   for k2 being Nat st k2 in  ppn holds ppn.k2= div (2(2^
      (2 '))java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
:   dom ppn =Segn21 by A7,FINSEQ_1:def 3;
            NDIFF_8 , java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
      proof
        letybe object;
        assume y in rng ppn;
        then consider x being object such that
:x   
A11
        reconsider n3=x as Elementreserve f,,f2for PartFunc of ST
        ppn.n3=n2 div (m2*(2|^(n3-'1))) by A8,A10;
         byA11,def 2;
      end;
     ppn  java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 27
      consider ii0 being Element of NAT such that
A12:  for k2 being Element of NAT st k2<ii0 holds m*(2|^(k2))<=n2 and
:    nd
r ii0 Integer;
      deffunc F(Nat) = n2 mod (m2*(2|^($1-'1)));
      deffunc F1(Nat) = m2*(2|^($1-'1));
A14:  0+1<=i0+1 by XREAL_1:7;
A15:  now
        1+0<=m2 by A1,NAT_1:13;
        then
A16:    1*(2|^n2)<=m2*(2|^n2) by XREAL_1:64;
A17:    n2+1<= 2|^n2 by NEWTON:85;
        assume i0>n2;
        then m*(2|^n2) <= n2 by A12;
        then (2|^n2)<=n2 by A16,XXREAL_0:2;
        hence contradiction by A17,NAT_1:13;
      end;
      then 1<=1+ii0 & i0+1<=n2+1 by NAT_1:11,XREAL_1:7;
      then
A18:  ii0+1 in (Seg (n2+1)) by FINSEQ_1:1;
A19:  ii0+1-'1=ii0 by NAT_D:34;
      then n2 div (m2*(2|^(ii0+1-'1)))=0 by A13,NAT_D:27;
      then
A20:  ppn.(i0+1)=0 by A8,A9,A18;
      n2>=0+1 by A1,A6,NAT_1:13;
      then 1< n2+1 by NAT_1:13;
      :  dom f  a in FUNCT_1def7; 
 1inSeg (1  FINSEQ_1:;

A22:  ppn.1=n2 div (m2*(2|^(1-'1))) by A8,A9
        .=n2 div (m2*(2|^(0))) by XREAL_1:232
        is  of.&S.
        .=n2 div m2;
      now
        consider besuchthat
               (,s1
 java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34

      then
=    whereis  .   
      then
 i0-=0byXREAL_1:48;
 =m2(|(+-1)as  ofNAT;
A25:           a1 in Ball(/.a,t by A1,9,A14,PARTFUN1:def 6;
      A3:s2 S1;
        .=ii0-' 1+1 by A24,XREAL_0:def 2;
      then
:2^ii0+1-1=2^ii0-1)*  NEWTON:
      ex ssnz  Point of [:X,:],
() from FINSEQ_1:sch 2       t2 Element S. suchthat
      thenconsider   FinSequencesuch 
A27proof
at  k2 in ssn  ssn.=n2mod m2*2|(
      k2-' 1)));
:   ssn  (+1 by A27,: 3;
      rng ssn c= INT
      proof
        let y be      reconsider z1 as Point of [:X,Y:];
        assume y  rng ssnjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
        : z1 =x1,   PRVECT_3:18;
   indom  
 yssn.x y ;
        =  Element ofNAT by ;
        ssn.      s <= r1  s<= by XXREAL_017;then
       hencethesisby A31INT_1d 2java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      then  
32  <+b A23:java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
      ex z  qxq]by def 2;
      in dom       thesis ;
      java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A33stDisopen&=:hecarrierofX,D:]
:fork2  stk2 indom ssm  ssm.=m(|^k2-1);
A35 dom sm =Segn+)by A33,FINSEQ_1def3;
rng  c=
      proof
        let     ex r1,r2 java.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
        java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 29
        then consider x being object such that
A36      consider rbeReal such that
A37
        reconsider n=        let zbe objectjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
        ssm.n=m*(2|^(n-'1)        A4:qx inBall,r)&qy  Ball(y,)
        hence thesis by A37,INT_1:def 2;
      end;  the set  all [:s1s2]wheres1   of S1,
      then reconsider ssm as    hence thesisby Th3;
A38:  ssm.1=m*2|^1-') by A21,A34,A35
        .=theorem Th6:
        .=m*by :4
        .=m;
     x, be Real,u be  java.lang.StringIndexOutOfBoundsException: Range [43, 38) out of bounds for length 46
.      in arrier of X
j)ppn(01 j-1)*2+1)&(ot ssn(i0- 1)>emiringProductS  capclosed
.i01-j=ssn.i0+-j- 1)&ppn.i0+- j=ppn.(01- (-1)*2 java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
      proof
        let j be Integer;
        that
A40:    1=j and
A41:    j<i0
        reconsider jj=j as Element of NAT by   end;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A43:    i0-j>=0         be Subset of [:X     becapclosed-SemiringFamily   
        then
A44:    ii0-' jj=i0-j by XREAL_0:def 2;
        hereby
         ii0<+java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 18
         <+1 byA41,:2java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 40
then i0+1-j>=0 by XREAL_1:48;
          then
A45:ii01'jji0+-j  XREAL_0:def 2;
          i0+1<=n2+j by A15,A40,XREAL_1:7;
          then i0+1j<n2+-j by XREAL_1:9;
          then
A46:ii01- jj+1<n2+1 byA45XREAL_1:7java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
          assume
    consider y1be Pointof Y,java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 11
          j+I.y] =I(y1,1      now
          then
8      <+1 XXREAL_0:;
          jj-':
          then jj-' 1<i0+1 by   or,YbeRealNormSpace,
          then
+1jj  1> by XREAL_1:;
          2|^(ii0-' jj)<>0 by CARD_4:        holds I.y,)=[,])
          then
A50:       w indom(*)iff in"domf by FUNCT_1def 7;
         Xn=Xqas-element  byA5C:def ;
          then
A51:        rng nc rngX A4F:;
          jj-' 1<=j by NAT_D:35;
          jj- 1<+1 by A51,:2;
          then
A52:    y,]inthecarrier of [Y,:] then
          ii0<ii0+1 by NAT_1:13;
          then j<i0+1 by A41,XXREAL_0:2;
          
A53:      i0+1-j>0 by java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 12
          then
A54:      ii0st is_differentiable_onV
             then
A55:      ii0+1-' jj>=0+1          S=len Sq+len **      `Vy (fI` I" )." I"
          +1-'jj 1>0by XREAL_1:48;
          then
A56:ii01'jj- 1=0jby A54,XREAL_0:def 2java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
A57:      jj-' 1=j    A3 V is open by ,        then reconsider Sn=Sq an-ementFinSequence :ef ;
          then
A58:      ii0+1            A4: J = I" & J one-o-one ontoisometric ,NDIFF_7:9;
          then
A59:ii01- (jj-' )- 1=ii0+-'jj  A54,NAT_D:34;
A60:      ii0+1-' (jj-' 1)=i0+1-(j-1) by A11     Seg (+1)by     et =fI
A61:      m2*(2|^(java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 0
            .=m2*((2|^(ii0-' jj))*2) by NEWTON:6
            .2(*(|(ii0-'jj)        now
          ii0+1-       y be Y;
- j by XXREAL_0:;
          then
A62:ii0+1'(jj)in  (n2+1 by ,FINSEQ_1:;
          then
A63:     ssn.ii0+1-jjAproof
          ii0+-' jj=i0-+1byA53,XREAL_0:def 2;
          then  A10:  xby A2,FUNCT_2:113;
          then        R_NormSpace_of_BoundedLinearOperatorsY A2,:def ;
A64:      ii0+ java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 75
            .=ii0       difff)YZ  idrngI0) A2,FUNCT_139
          then
A65:      ssm.(ii0+1Ax  byA,7,38 
8,NAT_1:11;
          then
A66      ii0+-' jj- 1 in Seg by A54,A58,A46,FINSEQ_11;
jj'1j1by ,XREAL_0def 2java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
          then ii0+1-' (jj-' 1)=i0+1-    hence thesis by A4,5java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
            .=ii0+1-' jj+1 by A53,XREAL_0:def 2;          V be  of ,
          
' (- 1)=n2 mod (m2*^ii0+-'jj+-' )) by A28
,29,66
            g|V is_continuous_onV
ii01'jj=i0+- by A53,REAL_0: 2;
          then
A68:      ssn.(ii0A68:      ssn.(ii0+1-' (jj-
          -' jj            V  Subset of Y
          ppn(ii0+1-' jj)=n2 divI  LinearOperator ofXYjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
            .= (n2 div (m2*(2|^(ii0+1-' (jj-' 1)-' 1))))*2+1 by A47,A54,A59,A60
,A67,A64,A61,A65,A50,Th3
            .= ppn.(ii0+1-' (jj-' 1))*2+1 by  theni Seg    i  Seg   by FINSEQ_3153
          hence
s.(0+-j=sn.i0+-(-1)ssm.i0+1 j) .i+1-j=
          ppn.(i0+1- (j- 1))*2+1 by A54,A58,A56,A63,A68,XREAL_0:def 2;
        end;
        thus thesis
        
          j+1<=i0+1 & jj<jj+1 by A41,NAT_1:13,XREAL_1:7;
                      he thesis by ,11Def2Def4;
A69:      j<i0+1 by XXREAL_0:2;
          jj-' 1<=j by NAT_D:35;
          then jj-' 1<i0+1            i  Nat  i inSeg 

A70:      i0+1-(jj -' 1)>=0 by XREAL_1:48;
         +1=+1&jj<j  NAT_1:,:7;
          then
A71:      j<i0+1 by XXREAL_0:2;
          jj-' 1<=jj by NAT_D:35;
          then jj-' 1<i0+1 by A71,XXREAL_0:2;
          then
A72:      i0+1-(jj -' 1)>=0 by XREAL_1A18:   .  X(+)by :,,12
          ii0<ii0+1 by NAT_1:13;
          then j<i0+1 by A41,XXREAL_0:2;
          A20:   .1 =S.(+)by FINSEQ_165A12Ajava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
          then
A73:      ii0+1-' jj      ex dbe Real
         i0+=n2j  A15,,XREAL_1:;
          then +-<n2-j  XREAL_1:9;
          then
+1-'jj1<=n2+1 by A73,XREAL_1:;
assume
A75:        :x0 in U &0<e
          ii0<ii0+1 by NAT_1:13e;
          thenA13:Ix0 =y0by A1,A3,A12,FUNCT_1:35;then
          then
A76:      i0+1-j>0 by XREAL_1:50;
          then
:     ii0+-'jj=i0+1-j  XREAL_0:ef;
          then
A78:      ii0+1-' jj>=0+1 by A76,NAT_1:13;
hen+-  -> by XREAL_1:48;
          then
A79:      ii0+1-' jj -          henceX1=.
A80:      jj-' 1=j-1 by A42,XREAL_0:def 2;
                   
A81:      ii0+1-' (jj-' 1)=i0+1-j+1 by A72,XREAL_0:def 2;
          then
A82:      ii0+1-' (jj-' 1)-' 1 =ii0+1-' jjA17 x1 =Jy1 by A3,UNCT_2:113;
A83:     +1-'(jj- 1)i0+-(j-)byA80,,XREAL_0: 2java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
A84  S1  -  java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
.m2*(2^(ii0' jj)*)by SemiringProduct1  cap-  ofproduct X1
            .=2*(m2*(2|^(ii0-' jj)));
          ii0+1-' jj<=ii0+1 & i0+1<=n2+1 by A15,NAT_D:35,XREAL_1A22 G/y0=G. by ,14PARTFUN1:defjava.lang.StringIndexOutOfBoundsException: Range [52, 53) out of bounds for length 52
          then n2+1>=(ii0+1-' jj) by XXREAL_0:2;
          then
-' (j in  (      nd
          then ssn.(ii0+1-' jj)=n2 mod            let v be VECTOR of Y;
          then
A86:      ssn.(ii0+1-'            . F/.1.(.v)-(F.x0)(J.) by :40;
          ii0+1-' jj=i0-j+1 by A76,XREAL_0:def 2;
          then
:     ii0+1- jj-'1=i0-j+11 yA43,XREAL_0:def 
            .=ii0-' jj by A43,XREAL_0:def 2;
          then
A88:      ssm.(ii0+1 end
          1<=ii0+1-' (jj-' 1) by A77,A81,NAT_1:11;
          then
A89:      ii0  for S being cap-losed-yielding SemiringFamily ofXholds
          jj-' 1=j-1 by A42,XREAL_0:def 2;
         ii0+1- ('1)ii0- jj+by ,A70,XREAL_0: 2;
          then
A90:      ssn.(ii0+1-' (jj-' 1)) =n2 mod (m2*(2|^(ii0+1-' jj+1-' 1))) by A28
,A29,A89
            .=n2 mod (m2*(2|^(ii0+1-' jj))) by NAT_D:34;
          java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
            .= (n2 div (m2*(2|^(ii0+1-' (jj-' 1)-' 1))))*2 by A75,A77,A82,A83
,A90,A87,A84,A88,Th5
            .= ppn.(ii0+1-' (jj-' 1))*2 by A8,A9,A89;
          hence thesis by A75,A77,A81,A86,A90,A84,A88,Th4;
        end;
      end;
      i0 <n2+1 by A15,NAT_1:13;
      then ii0+1<=n2+1 by NAT_1:13;
      then ii0+1 in Seg (n2+1) by A14,FINSEQ_1:1;
      then ssn.(i0+1)=n2 mod (m2*(2|^(ii0+1-'1))) by A28,A29;
      then
A91:  ssn.(i0+1)=n by A25,NAT_D:24;
      i0<n21 by A15,NAT_1:13;
      then
A92:  ii0 in Seg(n2+1) by A23,FINSEQ_1:1;
A93:  for  being Element ofNAT st 1=k & <i0 holds ssm.(+1)=ssm.(k)*2
      & not ssm.(k+1)>n
      roof
        let k be Element of NAT;
        assume that
A94:    1<=k and
A95    <i0;
A96:    k<=n2 by A15,A95,XXREAL_0:2;
        then
A97:    k+1<=n2+1 by XREAL_1:7;
        k<=n2+1 by A96,NAT_1:12;
        then k in Seg (n2+1) by A94,FINSEQ_1:1;
        n
A98:    ssm.(k hence |.G.  /y0.| <e A3N:;
        1<k+1 byby A7,NFCONT_1:;
        then k+1 in Seg (n2+    end;
        then
A99
A100:   k-1>=0 byfor
        Ube Subset of [:X,:]
          .=k-' 1+1 by A100,XREAL_0:def 2;
        2|(+-1=2^k-1)*2byNEWTON:;
        hence thesis by A12,A95,A99,A98;
      end;
A101: for        u  Point of [X,:],
      ssm.        vbePoint  [:,X]
      proof
        let k be Integer;holds
 assume
A102:   1<=k and
A103:   k<i0;
        reconsider kk=k as Element of NAT by A102,INT_1:3;
        ssm.(kk+1)=ssm.(kk)*2 by A93,A102,A103;
        hence thesis by A93,A102,A103;
      end;
,A19,A18
      i0    ssume
      then ii0+1 in Seg(n2+1) by A32,FINSEQ_1:1;
      then ssm.(i0+1)
        .m(|(')*  
        = x beholds
      hence ex sm,sn,pn being FinSequence of INT st len smproof
java.lang.StringIndexOutOfBoundsException: Range [17, 3) out of bounds for length 76
Integer st 1<=i & i<java.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 0
)* & not(sm.(k+1)>)) & sm(+1=m.i* &sm.i1)> pn.i1=  sn.i1
)=n & (for j being Integer st 1<=j & j<=i holds (sn.(i+1- (j- 1))>=sm.(i+1- j)
implies sn.(i+1- j)=sn.(i+1- (j- 1))-sm.(iA7: incarrierof ;
2 &(ot.i1-(-1)=(+1-)implies .+1-(-1)
& pn.(i+1-java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
,A23,A15,A101,A104,A20,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    end;
  ;
  hence thesis by A1,Def1;
end;

theorem Th10:
  for         hencethesis  A8FUNCT_111java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
proof
  let n,m be Integer;
  assume that
A1: n>=0 and
A2: m>0;
  reconsider n2=n,m2=m as Element of NAT by A1,A2,INT_1:3;
                      =[,x]by A2;
  hence thesis;
;

theorem Th11:
  for n,m being Integer,n2,m2 being Element of NAT holds (m=0 & n2
n&m2=m implies n div m0&n2 div 0& (>0 &m0  = & =mimpliesn
  div m =n2 div m2)& (n>=0 & m<0 & n2=n & m2= -java.lang.StringIndexOutOfBoundsException: Range [0, 48) out of bounds for length 8
 ndiv =-nm2) &m*n2 m2)> n divm =(2div
m2)-1))& (n<0 & m>0 & n2= -let y be;
=-(n2 div m2)) &(m2*(n2 div m2)<>n2 implies n diviffy dom (u  reproj2).in omfby11;
  <0 & n2= -n & proof
proof
  let  A17 y in carrierofY
  thus m=0 & n2=n & m2=m implies n div m=0 & n2 div m2=0;
  thus n>=0 & m>0 & n2=n & m2=m implies n div m =n2 div m2;
  thus n>=0 & m<0 & n2=n & m2= -m implies (m2*(n2 div m2)=n2 implies n div m =
  -(n2 div m2)) &(m2*(n2 div m2)<>n2 implies n div m:: n-classical semiring of sets
  proof
    assume that
    n>=0 and
definition
A2: n2=n and
A3: m2= -m;
    thus m2*(n2 div m2)=n2 implies n div m =-(n2 div m2)
    proof
      assume
A4:   m2*(n2 div m2)=n2;
   m2>0 by A1,A3,XREAL_1:58;
      then
A6:   n2 = m2 * (n2 div m2) + (n2 mod m2) by NAT_D:2;
      thus n div m =[\ n/m /] by INT_1:def 9
        .=[\ (-n)/(-m) /] by XCMPLX_1:191
        .=(-n2) div m2 by A2,A3,INT_1:def 9
        .= -(n2 div m2) by A4,A6,WSIERP_1:42;
    end;
    thus m2*(n2 div m2)<>n2 implies n div m =-(n2 div m2)-1
    proof
      assume
A7:   m2*(n2 div m2)<>n2;
A8:   m2>0 by A1,A3,XREAL_1:58;
      then n2 = m2 * (n2 div m2) + (n2 mod m2) by NAT_D:2;
      not  =0by A7;
      then
A9:   (-n2) div m2 +1= -(n2 div m2) by A8,WSIERP_1:41;
      n div m =[\ n/m /] by INT_1:def 9
        .=[\ (-n)/(-m) /] by XCMPLX_1:191
        .=(-n2) div m2 by A2,A3,INT_1:def 9;
      hence thesis by A9;
    end;
  end;
  thus n<0 & m>0 & n2= -n & m2=  end;
  (n2 div m2)) &(m2*(n2 div m2)<>n2 implies n div m =-(n2 div m2)-1)
  proof
    assume that
    n<0 and
A10: m>0 and
A11: n2= -n and
A12: m2=m;
    thus m2*(n2 div m2)=n2 implies n div m =-(n2 div m2)
    proof
A13:  n2 = m2 * (n2 div m2) + (n2 mod m2) by A10,A12,NAT_D:2;
      assume
A14:  m2*(n2 div m2)=n2;
      (n div m)=(-n2) div m by A11
        .=-(n2 div m2) by A12,A14,A13,WSIERP_1:42;
      hence thesis;
    end;
    thus m2*(n2 div m2)<>n2 implies n div m =-(n2 div m2)-1
    proof
      assume
A15:  m2*(n2 div m2)<>n2;
      n2 = m2 * (n2 div m2) + (n2 mod m2) by A10,A12,NAT_D:2;
      then not n2 mod m2=0 by A15;
      then (-n2) div m2 +1 = -(n2 div m2) by A10,A12,WSIERP_1:41;
      hence thesis by A11,A12;
    end;
  end;
  thus n<0 & m<0 & n2= -n & m2= -m implies n div m =n2 div m2
  proof
    assume that
    n<0 and
    m<0 and
A16: n2= -n & m2= -m;
    thus n div m = [\ n/m /] by INT_1:def 9
      .=[\ (-n)/(-m) /] by XCMPLX_1:191
      .=n2 div m2 by A16,INT_1:def 9;
  end;
end;

::
:: int idiv_prg(int n,int m){
::   int i;
::   if (m==0){return 0;}
::   if (n>=0 && m>0){return idiv1_prg(n,m);}
::   if (n>=0 && m<0){
::    i= idiv1_prg(n,-m);
::    if((-m)*i==n){return -i;} else{return -i-1;}
::   }
::   if (n<0 && m>0){
::    i= idiv1_prg(-n,m);
::    if(m*i== -n){return -i;} else{return -i-1;}
::   }
::   return idiv1_prg(-n,-m);
::   }
::
:: One time writing program
::  Same as above.

definition
  let n,m be Integer;
  func idiv_prg(n,m) -> Integer means
  :Def2:
  ex i being Integer st (m=0
implies it=0) .= [y,a]by A2;
  n>=0 & m>0) implies (n>=0 & m<0        :I(reproj1(java.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
it=-i )& ((-m(reproj1())in dom Iby :def 1; then
0  it=-i)&(m*i < -n implies it=-
  i-1 ) )& (not (n<0 & m>0) implies it=idiv1_prg(-njava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  xistence
  proof
    defpred P[Integer] means (m=A21: y in dom reproj1v & (v)y (f*I)by FUNCT_1:1;
    m>0 implies n div m= idiv1_prg(n,m)java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 0
implies $1=idiv1_prg(n,-m) & ((-m)*$1=n implies n                       =[,a by A2;
implies n div m= -$1-1 ) )& (not (n>=0 & m<0) implies (n<0 & m>0 implies $1=
idiv1_prg(-n,m) & (m*$1= -n implies n div m=-$1 )& (m*$1 <> -n implies n div m=
    -$1        then
    per cases;
    suppose
      m=0;
      hence thesis;
    end;
    suppose
A1:   <>;
      now
      

A2:       n>=0;
          now
            per cases by A1;
           java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
              m>0;
              then P[idiv1_prg(n,m)] by A2,Th10;
              hence exend;
            end;
            case
A3:           m<0;
              then reconsider n2=n,m2=-m as Element of  roof
A4:           -m>0 byA27 y dom(f *();then
              now
                per cases;
                case
A5      A29:(reproj1().in  I FUNCT_2def;
:idiv1_prg(-)ndiv(-m)byA2,,;
                  then n div  (n2 div )b A3,A5,Th11;
                  hence  ibeingInteger Pi  A3,A5,A6;
                end;
                ase
java.lang.StringIndexOutOfBoundsException: Range [4, 2) out of bounds for length 43
IbeLinearOperator of :,:,:,Y]
                  then n     fis_differentiable_on U
                   exibeing Integerst P[]by A3,,;
                end;
              end;
              hence ex i being Integer st P[i];
e;
          end;
          hence ex i being Integer st P[i];
        end;
        case
A9:       n<0;
          now
            per cases by           f be PartFunc of [:X,Y:],Z,
            case
A10:          m<0;
A11:          n div m =      fory  ofYx Point of
                .=[\ (-n)/(-m) /] by XCMPLX_1:191
                 of ;
              -m>0 by A10,XREAL_1:58;
              then P[idiv1_prg(-n,-m)] by A9,A11,Th10;
              hence ex i being Integer st P[i];
            end;
            case
A12:          m>0;
              then reconsider n2= -n,m2=m as Element of NAT by A9,INT_1:3;
              now
                per cases;
                case
A13:              (m)* :: finite product of classical semiring of sets is classical semiring of sets ::
A14:              idiv1_prg(-n,m)=(-n) div (m) by A9,A12,Th10;
                  then n div m= -(n2 div m2) by A9,A12,A13,Th11;
                  hence ex i being Integer st P[i] by A9,A12,A13,A14;
                end;
                case
A15:              (m)* idiv1_prg(-n,m)<> -n;
A16:              idiv1_prg(-n,m)=(-n) div (m) by A9,A12,Th10;
                  then n div m= -(n2 div m2)-1 by A9,A12,A15,Th11;
                  hence ex i being Integer st P[i] by A9,A12,A15,A16;
                end;
              end;
              hence ex i being Integer st P[i];
            end;
          end;
          hence ex i being Integer st P[i];
        end;
      end;
      hence thesis;
    end;
  end;
  uniqueness;
end;

theorem
  for n,m being Integer holds idiv_prg(n,m)=n div m
proof
  let n,m be Integer;
  per cases;
  suppose
A1: m=0;
    then idiv_prg(n,m)=0 by Def2;
    hence thesis by A1;
  end;
  suppose
A2: m<>0;
    now
      per cases;
      case
A3:     n>=0;
        now
          per cases by A2;
          case
A4:         m>0;
            hence idiv_prg:Y:]
              .=n div m by A3partdiff`(,u java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 41
          end;
          case
A5         m<;
                     ex x xbe of java.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27
              per cases;
              case
A6:             (-m)*(idiv1_prg(n,-m))=n;
                reconsider m2=stx1 Ball(a,1) &x2 (,r1)
                -m>0 by A5,XREAL_1:58;
                then
A7:             idiv1_prg(n,-m)=n2 div m2 by Th9;
                idiv_prg(n,m)= - (idiv1_prg(n          &g is_continuous_onBallb,r2
java.lang.StringIndexOutOfBoundsException: Range [28, 16) out of bounds for length 46
                         is_differentiable_on all(,r2
              case
A8              y Ballb,2)&z=[.,y]
                reconsiderm2= mn2 n Element NAT  A3INT_1:3java.lang.StringIndexOutOfBoundsException: Range [75, 76) out of bounds for length 75
                -m>0 by A5,XREAL_1:58;
holds `1fz)is invertible java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
:n,mn2divm2  ;
idiv_prgn,m)= - (idiv1_prg(-)1 byA3A5,A8,;
                          & rng g2 c= Ball(a,r1)
              end;
            end;
            hence thesis;
          end;
        end;
        hence thesisjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
      A3  is_differentiable_onjava.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36
      case
A10:    n<0;
        now
          per cases byjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
          case
A11:        m<0;
            then
A12:-m>  XREAL_1:java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
13:ndiv = [ n/m/]by INT_1:def 9
              .=[\ (-n)/(-m) /] by XCMPLX_1:191
              .=(-n) div (-m) by INT_1:def 9;
            idiv_prg(n,m)=idiv1_prg(-n,-m) by A10,A11,Def2
              .=(-n) div (-m) by A10,A12,Th10;
            hence    =fI
          end;
              A13: dom f1 = I" (dom f) by A9,Th8
A14:        m>0;
            now
              per cases;
              
A15A16 f1 | Z1is_continuous_on  A3,4A9,A12,h10;
reconsider m2=mn2= n Element of  by ,,INT_1:3;
 div m2 by A14,Th9;
                idiv_prg(n,m)= - (idiv1_prg(-n,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                hence thesis by A10,A14,A15,A16      :b,)cl_Ballar1)]c=Z1
              end;
              case
A17:            (m)*(idiv1_prg(-n,m))<> -n;
                reconsider m2= m,n2= -n as Element of NAT by A10,A14,INT_1:3;
         st x1 inBall(r)&x2  (ar)
                idiv_prg(n,m) & .(y,x1)c&f1(x2)= java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
                thesis A10,A14,17,,Th11
              end;& gb=a
            end;
            hence thesis;
         ;
        end;
        hence thesis;
      end;
    end;
    hence thesis;
  end;
end;

Messung
CHZG
8010010093

¤ Dauer der Verarbeitung: 0.75 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,058
#Domains=861,602