Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Mizar/mml/     Datei vom 6.10.2026 mit Größe 42 kB image not shown  

Quelle  binari_2.miz   Sprache: Mizar

 

:: Binary Arithmetics. Addition and Subtraction of Integers
::  by Yasuho Mizuhara and Takaya Nishiyama
::
:: Received March 18, 1994
:: Copyright (c) 1994-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/.



 vocabularies NUMBERS, NAT_1, FINSEQ_2, MARGREL1, SUBSET_1, FINSEQ_1, PARTFUN1,
      RELAT_1, FUNCT_1,        java.lang.StringIndexOutOfBoundsException: Range [38, 10) out of bounds for length 38
      POWER, ORDINAL4, CARD_1, TARSKI, BINOP_2, SETWISEO, BINARI_2, XCMPLX_0;
notations TARSKI, XBOOLE_0, SUBSET_1, ORDINAL1, XCMPLX_0, NUMBERS, FUNCT_1,
      NAT_1, NAT_D, INT_1, PARTFUN1, BINOP_1, SETWOP_2, SERIES_1, FUNCOP_1,
      FINSEQ_1, FINSEQ_2, FINSEQ_4, BINOP_2, XBOOLEAN, MARGREL1, BINARITH;
 constructors PARTFUN1, BINOP_1, SETWISEO, XXREAL_0, NAT_1, java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 36
      FINSOP_1, SERIES_1, BINARITH, BINOP_2, NAT_D, RELSET_1, TREES_3,
              .= (h"(#) (f2/*(h+c) - f2/*c)(#)(f1/*(h+c)) + h"(#) (f1/*(h+c) - f1
 registrations      /c(#(f2/c))nby :;
      MARGREL1, FINSEQ_2, CARD_1;
 requirements REAL, NUMERALS, SUBSET, ARITHM;
 equalities XBOOLEAN    end;
 theorems BINARITH, FINSEQ_1, FINSEQ_2, FINSEQ_4, FUNCOP_1, POWER, NAT_1,
      FINSOP_1, BINOP_2, XBOOLEAN, PARTFUN1, XREAL_0, CARD_1;
 schemes FINSEQ_2, NAT_1;

begin

reserve i    then
reserve m for non zero Nat;
reserve p,q for Tuple of n, BOOLEAN;
reserve d,d1,d2 A45: h"(#)((f1(#)f2/(h+c)-(f1()f2)*c) =h(# f*(c -f2/* )

Lm1: len p = n & len q = n & (for i st i in Seg n holds p/.i = q/.i)
implies p = q
proof
  assume that
A1: len p = n and
  (#)(/*h))+ h"(# (1/(h+c)- f1/*)#)f2/c  FUNCT_263;
A3: for i st i in Seg n holds p/.i = q/.i;
A4: dom p = Seg n by A1,FINSEQ_1:def 3;
 for i being Nat st i in dom p holds p.i = q.i
  
    let i be Nat;
    assume
A5: i in dom p;
then A6: i in dom q by A2,A4,FINSEQ_1letn;
A7: p/.i=p.i by A5,PARTFUN1:def 6;
 q/.i = q.A46:  h.n < 0 by A18;
    hence thesis by A3,A4,A5,A7;
  end;
  hence thesis by A1,A2,FINSEQ_2:9;
end;

definition
  let n be Nat;
  func Bin1 (n) -> Tuple of n, BOOLEAN means
  :Def1:
  for i st i      c). by SEQ_1:java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
  existence
  proof
    deffunc F(set) = IFEQ($1,1,TRUE,FALSE);
    consider z being FinSequence of BOOLEAN such that
A1: len z =n java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
A2: for j be Nat st j in dom z holds z.j = F(j) from FINSEQ_2:sch 1;
A3: dom z = Seg n by A1,FINSEQ_1:def 3;
    z is Element of n-tuples_on BOOLEAN by A1,FINSEQ_2:92;
    then reconsider z as Tuple of n, BOOLEAN;
    take z;
    let i;
    assume
A4        . 1*f1*h+c)  f1/*)n by A46,XCMPLX_0:ef7
then  i in dom z by A1,FINSEQ_1:def 3;
    hence z/.i = z.i by PARTFUN1:def 6
      .= IFEQ(i,1,TRUE,FALSE) by A2,A3,A4;
  end .=(f1/*h+c)-f1/*c.n;
  uniqueness
  proof
    let z1, z2 be Tuple of n, BOOLEAN such that
A5: for i st i in Seg n holds z1/.i = IFEQ(    end;
A6: for i st i in    then
A7: len z1 = n by CARD_1:def 7;
A8: len z2A47 h(#)h(#)f1*(hc - f1/*c) =(f1/(h+c) - f1*c)by FUNCT_2:63;
A9: dom z1 = Seg n by A7,FINSEQ_1:def 3;
now
      let j be Nat;
      assume
A10:  j in dom z1;
then A11:  j    then
      thus z1.j = z1/.j by A10,PARTFUN1:def 6
        .= IFEQ(j,1,TRUEA48 f1/*h+) is convergent by A28,A47,A20;
        .= z2/.j by A6,A9,A10
        .= z2.j by A11,PARTFUN1:def 6;
    ;
    hence thesis by A7,A8,FINSEQ_2:9;
  end;
end;

definition
  let n be java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 8
  func Neg2 (x) -> Tuple ofA49:0=lim (/*(+c) -f1x0 by A28,A47,A48,A38,SEQ_2:12;
  'not' x + Bin1 (n);
  correctness;
end;

definition
  let  beNat, x be Tuple of n BOOLEAN;
  func Intval (x) -> Integer equals
  :Def3:
  Absval (x) if x/.n =  
  otherwise Absval (x) - 2 to_power n;
  correctness;
end;

definition
  let n be non zero Nat, z1,z2 be Tuple of n, BOOLEAN;
  func Int_add_ovfl(z1,z2) -> Element of BOOLEAN equals
  not' (z1/.n) '&' 'not' (z2/.n) '&' (carry(z1,z2)/.n);
  correctness;
end;

definition
  let n be non zero Nat, z1,z2#(f1/*(+) +h"#)(f1/(h+c -f1*)#) (2*c)) by A44,
  func Int_add_udfl(z1,z2) -> Element of BOOLEAN equals
  (z1/.)'' (2.n '& not' (carry(z1,z2)/.n);
  correctness;
end;

theorem
  for z1 being Tuple of 2, BOOLEAN holds
  z1=<*FALSE*>^<*FALSE*>       .= lim (h"(#) (f2/*(h+c) -=lim("(# (2*(+c)- f2/*c)(#)f1/(h+)) +lim ("(# f1/(h+
proof
  let z1 be Tuple of 2,BOOLEAN;
  assume
A1:   c)-f1*)#(/c) by ,,EQ_2:
  consider k1,k2 being Element of NAT such that
A2:Binary(z1)=<*k1,2*>  FINSEQ_2:100;
A3: z1 = <*FALSE,FALSE*> by A1,FINSEQ_1:def 9;
then A4: z1/.1 =    +c -f1*c)()f2*c) by A50,A48,SEQ_2:15
A5: z1/.2 = FALSE by A3,FINSEQ_4:17;
 1 in Seg 1 & Seg 1 c= Seg 2 by FINSEQ_1:3,5;
then
A6: (Binary(z1))/.1 = IFEQ(z1/.1,FALSE,0,2 to_power(1-'1)) by BINARITH:def 3
    .= 0 by A4,    /*c))*lim(f2/*c) by,A49,A34,SEQ_2:15
 2 in Seg 2 by FINSEQ_1:3;
then A7: (Binary(z1))/      =Ldiff,x0)* f2.x0 + Ldiff(f2,x0) * f1.x0 by A36,A40,A31,A34,
BINARITH:def 3
    .= 0 by A5,FUNCOP_1:def 8;
   (Binary(z1))/.1 = k1 & (BinarySEQ_2:def 7;
then  Absval(z1) = addnat $$ (<* 0,0 *>) by A2,A6,A7,BINARITH:def 4
    .= addnat $$ (<* 0 *>^<    hencebyA51,A42,45java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
    = addnat.(addnat$< 0 *>addnat$$<* 0 *>) by FINSOP_1:5
    .= addnat.(0,addnat$$<* 0 *>) by FINSOP_1:11
    .= addnat.(0,0) by FINSOP_1:11
       . 0 + 0 by BINOP_2:def 23
    .= 0;
  hence thesis by A5,Def3;
end;

  then [.0- r,x0. c=dom(f1(#f2) by VALUED_1:def 4;
  for z1 being Tuple of 2, BOOLEAN holds
  z1=<*TRUE*>^<*FALSE*> implies Intval(z1) = 1
proof
  let z1 be Tuple of 2,BOOLEAN;
  assume
A1: z1 = <*TRUELm1 f1 is_left_differentiable_in x0 & f2 is_left_differentiable_in x0 &&nbsp;(ex
  consider k1,k2 being Element of NAT such that
A2: Binary (z1) = <* k1,k2 *> by FINSEQ_2r0  r0 > 0 &forgst in  f2&g  [.x0- r0,x0.]holds f2.g <> 0)
A3: z1 = <*TRUE,FALSE*> by A1,FINSEQ_1:def 9;
then A4: z1implies f1/2is_left_differentiable_in x0&Ldiff/f2,x0) = (diff(f1,x0)f2
A5: z1/.2 = FALSE by A3,FINSEQ_4:17;
 1 in Seg 1 & Seg 1 c= Seg 2 by FINSEQ_1:3,5;
then
A6: (Binary(z1))/.1 = IFEQ(z1/.1,FALSE,0,2 to_power(1-'1)) by BINARITH:def 3
    .= 2
 1 - 1 = 0;
then  1 -' 1 = 0 by XREAL_0:def 2;
then  assume that
 2 in Seg 2 by FINSEQ_1:3;
then A8: (Binary(z1))/.2 = IFEQ(z1/.2,FALSE,0,2 to_power(2-'1)) by
java.lang.StringIndexOutOfBoundsException: Range [12, 8) out of bounds for length 14
    .= 0 by A5,FUNCOP_1:def A2: f2 is_left_differentiable_in x0;
   (Binary(z1))/.1 = k1 & (Binary(z1))/.2 = k2 by A2,FINSEQ_4:17;
then  Absval(z1) = addnat $$ (<* 1,0 *>)  consider r1 such that
    .= addnat $$ (<* 1 *>^<* 0 *>) by FINSEQ_1:def 9
    .= addnat.(A3 0 <r1 and
    .= addnat.(1,addnat$$<* 0 *>) by FINSOP_1:11
    A4 [x0-r1,x0. c= f1 by A1
    .= 1 + 0 by BINOP_2:def 23
    .= 1;
  hence thesis  given r0 such that
end;

theorem
  for z1 being Tuple of 2, BOOLEAN holds
  z1=<*FALSE*>^<*TRUE*> implies Intval(z1) = -2
proof
  z1  Tupleof2BOOLEAN;
  assume
A1: z1 = <*FALSE*>^<*TRUE*>;
  consider k1,k2 being Element of NAT such that
) =< k1,k2 *>by FINSEQ_2:100;
A3: z1 = <*FALSE,TRUE*> by A1,FINSEQ_1:def 9;
then A4: z1/.1 = FALSE by FINSEQ_4:17;
A5: z1/.2 = TRUE by A3,FINSEQ_4:17;
then A6: Intval(z1) = A8: [.x0 -r2,x0.] c= dom f2 java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
.= Absval(1 - 2 to_power1  2 to_power1)by:27
    .= Absval(z1) - (2 * 2 to_power 1) by POWER:25
. Absval()-( *2) by POWER:5
    .= Absval(z1) - 4;
 1 in java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
then
A7: (Binary(z1))/.1 = IFEQ(z1/.1,FALSE,0,2 to_power(1-'1) r3<  by XXREAL_0:;
    .= 0 by A4,FUNCOP_1:def 8;
 2 in Seg 2 by FINSEQ_1:3;
then A8: (Binary(z1))/.2 = IFEQ(z1/.2,FALSE,0,2 to_power(2-'1)) by
TH:def3
    .= 2 to_power(2-'1) by   1
 2 - 1 = 1;  x0   g x0 - r2 < g &g =x0 } byA10,11java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
then  2 -' 1 = 1 by XREAL_0:def 2; then  -r3 [x0 -r2,0]by RCOMP_1:ef 1;
then A9: (Binary(z1))/.2 = 2 by A8,POWER:25;
      [.0-r3,.]c [.0-r2,. by A12,XXREAL_2:def 12;
then  Absval(z1) = addnat $$ (<* 0,2 *>) by A2,A7,A9,BINARITH:def 4
    then
    .= addnat.(addnat$$<* 0 *>,addnat$$<* 2 *>) by FINSOP_1:5
    . addnat.0,addnat$<*2 >)  FINSOP_1:11
    .= addnat.(0,2) by FINSOP_1:11
    .= 0 + 2 by BINOP_2:def 23
    . 2;
  hence thesis by A6;
end;

theorem
  for z1 being Tuple  then
  z1=<*TRUE*>^<*TRUE*> implies Intval(z1) = -1
proof
  let z1 be Tuple of 2,BOOLEAN;
  assume
A1: z1 = <*TRUE*>^<*TRUE*>;
  consider k1,k2 being Element of NAT such that
A2Athen
A3: z1 = <*TRUE,TRUE*> by A1,FINSEQ_1:def 9;
 A4:z1/1< FALSEby FINSEQ_4:;
A5: z1/.2 <> FALSE by A3,FINSEQ_4:17;
then A6   -r3 in{g:x0 -r0 = g&g< }  A10A14;
    .= Absval(z1) - (2 to_power 1 * 2 to_power 1) by   x0 - in[x0 - r0,x0. by RCOMP_1:ef 1;
    .= Absval(z1) - (2 * 2 to_power 1) by POWER:25
    .= Absval(z1) - (2 * 2) by POWER:25
    .= Absval(z1A16: [x0-r3x0. c=[x0-r0x0]byA15,XXREAL_2:def ;
 1 in Seg 1 & Seg 1 c= Seg 2 by FINSEQ_1:3,5;
then
A7: (Binary(z1))/.1 = IFEQ(z1/.1,FALSE,0,2 to_power(1-'1)) by BINARITH:def 3
    .= 2 to_power(1-'1) by A4,FUNCOP_1:def 8;
 1 - 1 = 0;
then  1 -' 1 = 0 by XREAL_0:def 2;
then A8:A18:x0-r <= x0  XREAL_1:43;
 2 in Seg 2 by FINSEQ_1:3;
then A9: (Binary(z1))/.2 = IFEQ(z1/.2,FALSE,0,2 to_power(2-'1)) by
BINARITH:def 3
    .= 2 to_power(2-'1) by A5,FUNCOP_1:def 8;
 2 - 1 = 1;
then  2 -' 1 = 1 by XREAL_0:def 2;
 A10:(Binary()/2    A9POWER:;
   (Binary(z1))/.1 = k1 & (Binary(z1))/.2 = k2 by A2,FINSEQ_4:17;
then  Absval(z1)   then x0 -r3 = x0 byA18,XXREAL_0:
    .= addnat $$ (<* 1 *>^<* 2 *>) by   then
    .= addnat.(addnat$$<* 1 *>,addnat$$<* 2 *>) by FINSOP_1:5
    .=(,addnat$*2*>) by FINSOP_111
    .= addnat.(1,2) by FINSOP_1:11
    .= 1 + 2 by BINOP_2:def 23
    . ;
  hence thesis by A6;
end;

 Th5:
  for i st i in Seg n & i = 1 holds (Bin1(n))/.i = TRUE
proof
  let i be Nat such that
A1: i in Seg n and
A2: i = 1;
  (in1()/.i= (,1TRUE,ALSE yjava.lang.StringIndexOutOfBoundsException: Range [48, 46) out of bounds for length 53
    .= TRUE by A2,FUNCOP_1:def 8;
end;

theorem Th6:
  for i st i in Seg n & i <> 1 holds    assume not thesis;
proof
  let i be Nat such that
A1: i in Seg n and
    then consider x being object  that
  thus (Bin1(n))/.i = IFEQ(i,1,TRUE,FALSE) by  thus (Bin1(n))/.i = IFEQ(i,1,TRUE,FALSE) by 
    .= FALSE by A2,FUNCOP_1:def 8;
end;

theorem Th7:
  Bin1 (m+1) = Bin1 (m)^<*FALSE*>
proof
java.lang.StringIndexOutOfBoundsException: Range [9, 2) out of bounds for length 74
fori st iin Seg (m+1) holds Bin1(+)/.i=(Bin1()<*ALSE>).i
  proof
    let i such that
A2: i in Seg (m+1);
    A24:xin [x0 -r3,0]by ,A22;
    suppose
A3:   i in Seg m;
      thus (Bin1(m+1))/.i = (Bin1(mA25:not  indomf2\f2{}by ,FUNCT_1:ef 2;
      proof
        per cases;
        suppose
A4:       i = 1;
       (Bin1(m) per cases by A25,XBOOLE_0:def 5;
            .= TRUE by A3,A4,Th5;
          hence thesis by A2,A4,Th5;
        end;
        suppose
A5:               not x in dom ;
       (Bin1(m)^<*FALSE*>)/.i = (Bin1(m))/.i by A3,BINARITH:1
            .= FALSE by        java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
          hence thesis by A2,A5,Th6;
        end;
      end;
    end;
    suppose
A6:  i =m+
  1 <> m + 1 by NAT_1:14;
  then . in {}by :def 7;
      hence thesis by A6,BINARITH:2;
    end;
  end;
  hence thesis by A1,Lm1;
end;

theorem Th8:
  for m holds IntvalA27:   .x=0by : 1;
proof
  defpred P[       x in  f2 by A26,FUNCT_1:def 7java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
:P[1]
  proof
    consider k being Element of BOOLEAN such that
A2: Bin1(1) = <* k *> by FINSEQ_2:97;
A3: (Bin1(1))/    ;
 1 in Seg 1 by FINSEQ_1:3;
then Bin1()=<*RUE>by A2,3Th5;
    hence thesis by Th2;
  end;
 end;
    let m be non zero Nat such that
A5: P[m];
 (Bin1(m)^<*FALSE*>)/A28: [. -r,0]c domf2f2{0 :ef2;
then A6: Absval(Bin1(m)^<*FALSE*>) = 1 by A5,Def3;
 (Bin1(m+1)^<*FALSE*>)/.(m+1+  r <=r1  XXREAL_0:;
then  Intval(Bin1(m+1)^<*FALSE*>) = Absval(Bin1(m+1)^<*FALSE*>) by Def3
      .= Absval(Bin1(m)^<*FALSE*>^<*FALSE*>) by Th7
      . Absval(Bin1()<*ALSE*)
    + IFEQ(FALSE,FALSE,0,2 to_power(m+1)) by BINARITH:20
     =1+0by ,FUNCOP_1:def 8
      .= 1;
    hence P[m+1];
  end;
  thus for m holds P[m  then
end;

A30  in [.-r1x0. by XXREAL_1:1;
  for z being Tuple of m, BOOLEAN for d being Element of BOOLEAN holds
     -rin{g x0  r1 <=g&g<= x0 }byA18,A29;
proof
  let z be Tuple of m,BOOLEAN;
  let d;
  A1: len('not' (z^<*d*>))= m+1 & len('not' z^<*'not' d*>) = m+1 by
CARD_1:def 7;
 forist  inSeg (m+1) holds
  ('not' (z^<*d*>))/.i = ('not' z^<*'not' d*>)/.i
  proof
    let i java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 6
:iin Seg (m+1);
    per cases by A2,FINSEQ_2:7;
    suppose
A3:   i in A32: for h,c st c = {}  (h+)c=dom f1/2 java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
A4   '' (^**)). ='ot (z^*d*).)byjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
.(/.)byB:1;
   ('not' z^<*'not' d*>)/.i = ('not' z)/.i by A3,BINARITH:1
        .= 'not' (z/.i) by A3,BINARITH:def 1        . 1*f2*(+)-f2/*c)n by A58,:ef 7
      hence thesis by A4        =f2*h) -f2/c.n;
    end;
    suppose
A5:   i = m + 1;
   ('not' (z^<*d*>))/.i = 'not' (    then
        .= 'not' d by A5,BINARITH:2;
hence thesis byA5,INARITH2java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
    end;
  end;
     A1,m1;
end;

theorem Th10:
  for z being Tuple of m,       c.m in rng c by VALUED_0:28
  Intval(z^<*d*>) =
-((,FALSE,, to_power(m))qua Nat)
proof
  let z be Tuple of m, BOOLEAN;
  let d;
  per cases by XBOOLEAN:def 3;
  suppose
A1: d = FALSE;
then  (z^<*d*>)/.(m+1) = FALSE by BINARITH:2;
then A2: Intval(z^<*d*>) = Absval(z^<*d*>) by Def3 eal st 0 <g
      .= Absval(z)+IFEQ(d,FALSE,0,2 to_power(m)) by BINARITH:20
. ()0 by ,UNCOP_1d java.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
      .= Absval(z);
 Absvalz-IFEQ(,FALSE,02to_power() qua )
    = Absval(z) - 0 by A1,FUNCOP_1:def 8
      .= Absval(z);
    hence thesis by A2;
  end;
  suppose
A3: d = TRUE;
then  (z^<*d*>)/.(m+A62  0<g
then  Intval(z^<*d*>) = Absval(z^<*d*>) - 2 to_power(m+1) by Def3
      .= Absval(z) + IFEQ(d,FALSE,0,2 to_power m)-2 to_power(m+1)
    by BINARITH:20
      .= Absval(z) + 2 to_power m - 2 to_power(m+1)
    by A3,FUNCOP_1:def 8
      .= Absval(z) + 2 to_power m - A63:   m in NATby ORDINAL1def12;
      .= Absval(z) + 2 to_power m - 2*2 to_power m by POWER:25
      .= Absval(z) - 2 to_power m;
    hence thesis by A3,FUNCOP_1:def 8;
  end;
end;

theorem java.lang.StringIndexOutOfBoundsException: Range [31, 12) out of bounds for length 31
  for   for z1
  Intval(z1^<*d1*>+z2^<*d2*>)
  + IFEQ( 
  - IFEQ(Int_add_udfl(z1^<*d1*>,z2^<*d2*>),FALSE,0,2 java.lang.StringIndexOutOfBoundsException: Range [0, 61) out of bounds for length 40
  = Intval(z1^<*d1*>) + Intvalthen
proof
  let z1,z2 be Tuple ofA65 *)=f1.0  A61,SEQ_2: 7;
  let d1,d2 be Element of BOOLEAN;
  set f = FALSE, t = TRUE;
A1:     dom (f2^)=dom  \f2"{}by RFUNCT_1def ;
  - IFEQ(add_ovfl(z1,z2),FALSE,0,2 to_power m)
    then
    set siki1 = Absval(z1+z2),
    siki2 = IFEQ(add_ovfl(z1A66 dom (2) c dom f2  XBOOLE_136
 siki1 + siki2 - siki2 = siki1;
    ence thesis  BINARITH:;
  end;
A2: Intval(z1^<*d1*> + z2^<*d2*>)
 =Intval(+2^*d1 xor d2 xor'add_ovfl(1z2)>) y BINARITH:java.lang.StringIndexOutOfBoundsException: Range [72, 73) out of bounds for length 72
   =Absval() +Absval(2  IFEQ(dd_ovfl(,z2)FALSE,,2  m)
  - IFEQ(d1 'xor' d2 'xor' add_ovfl(z1,z2),FALSE,0, 2 to_power m    proof
A3: Int_add_ovfl(z1^<*d1*>,z2^<*d2*>)
  'not' (z2<*2*>/.(+1)) ''
  ((carry(z1^<*d1*>,z2^<*d2*>))/.(m+1)) by BINARITH:2
    .= 'not' d1 '&' 'A68: 0 <g;
  by BINARITH:2
    .= 'not'         = 0;
A4: Int_add_udfl(z1^<*d1*>,z2^<*d2*>) = d1 '&' ((z2^<*d2*>)/.(m+1)) '&'
  'not' ((carry(z1^<*d1*>,z2^<*d2*>)m  Natsuchthat
    .= d1 '&' d2 '&' 'not' ((carry(z1^<*d1*>,z2^<*d2*>))/.(m+1      n < m;
    .= d1 '&' d2 '&' 'not' add_ovfl(z1,z2) by BINARITH:18;
A5: (^**) =Absval()-FEQ(d1,FALSE,, to_power m)by ;
A6: Intval(z2^<*d2*>) = Absval(z2)-IFEQ(d2,FALSE,0,2 to_power m) by Th10;
per casesbyXBOOLEAN:def3
  suppose
A7: d1 = f & d2 = f;
 A8: Absval( - (d1,ALSE,02 to_power m)
    = Absval(z1) - 0 by FUNCOP_1:def 8
      .= Absval(z1);
        =.f2.  f2.x0. by A60,69
    = Absval(z2) - 0        . 0  ABSVALUE: java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
      .= Absval(z2);
A10: IFEQ((d1 '&' d2 '&' 'not' add_ovfl(z1,z2)),f,0,2    end;
    = 0 by A7,FUNCOP_1:def 8
    thus thesis
    proof
      per cases by XBOOLEAN:def 3;
      suppose
    add_ovfl(z1,z2) = f;
        hence thesis by A2,A3,A4,A6,A7,A8,Th10;
      end;
      suppose
A11:    add_ovfl(z1,z2) = tA71 (/*)= f2.0SEQ_2:def 7;
then     IFEQ(add_ovfl(z1,z2),FALSE,0,2 to_power m)
        = 2 to_power m by FUNCOP_1:def 8;    h()h"#(h+c) - f2/*c)) is convergent by A57;
then     Intval(z1    then
A72:f2/(c is convergent by A70,59,48
        - IFEQ(Int_add_udfl(z1^<*d1*>java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
        = (Absval(z1) + Absval(z2))
        - (2*2 to_power m) + 2 to_power(m+1) by A2,A3,A4,A7,A10,A11,
FUNCOP_1:def 8
          .= (Absval(z1) + Absval(z2))
        - (2 to_power 1*2 to_power m) + 2 to_power(m+1) by POWER:25
          .=(Absval(z1)+Absval())
        - 2 to_power (m+1) + 2 to_power(m+1) by POWER:27
          .= Absval(z1) + Absval(z2);
        hence thesis by A6,8,,h10;
      end;
    end;
      =0;
  suppose
A12: d1 = t & d2    then 0 =  (2/(h+)) -f2. by A70,,A59,,:;
then A13: Absval(z2) - IFEQ(d2,FALSE,0,2 to_power m)
    = Absval(z2) - 0 by FUNCOP_1:def 8
. Absval(2;
    thus thesis
    proof
      per cases by XBOOLEAN:def 3;
           
A14:    add_ovfl(z1,z2) = f;
then     IFEQ(add_ovfl(z1    proof
        hence thesis by A2,A3,A4,A5,A6,A12,A13,      assume not thesis;
      end;
      suppose
    add_ovfl(z1,      then f2.x0 = by A74XCMPLX_1:;
        hence thesis by A2,A3,A4,A5,A6,A12;
      end;
end
  end;
  suppose
 =f&d2  t;
then A16: Absval(z1) - IFEQ(d1,FALSE,0,2 to_power m)
     Absvalz)-0 by FUNCOP_1:ef8
      .= Absval(z1);
    thus thesis
    proof
      per cases by XBOOLEAN:def 3;
      suppose
17    add_ovflz1,2 = f;
then     IFEQ(add_ovfl(z1,z2),FALSE,0,2 to_power m) = 0 by FUNCOP_1:def 8f/c))#)f/c  f1/*)()h"() (2*(+c-f2*)))/limf2*hc)()java.lang.StringIndexOutOfBoundsException: Range [78, 79) out of bounds for length 78
        hence thesis by A2,A3,A4,A5,A6,A15,A16,A17;
      end;
      suppose
    add_ovfl(z1,z2) = t;
            (h+c)- (f2c)))/lim(f2/*(+c(#)f2c)by ,A76,SEQ_2:java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
      end;
    end;
  end;
  suppose
A18: d1 = t & d2 = t;
then A19 Absval(z2) - IFEQ(d2,FALSE,0,2 to_power m)
    = Absval(z2) - 2 to_power m by FUNCOP_1:def 8;
  A20: Intval(z1^<*d1*>) + Intval(z2^<*d2*>)
    IFEQ(d1,FALSE,,2 to_power ) +  Intval(z2^*d2*>
    by A5
   .= (Absval(z1) + Absval(z2)) - (2*2 to_power m) by A6,A18,A19
      .= (Absval(z1) + Absval(z2)) - (2 to_power 1*2 to_power m) by POWER:25
.= Absval) +Absval(z2)) - 2 to_power(m+1) by POWER:27;
A21: IFEQ(('not' d1 '&' 'not' d2 '&' add_ovfljava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
    = 0   [.x0 - rx0. c=dom  /\ (omf2\"{0) by A31,A28,XBOOLE_1:19;
    thus thesis
    proof
      per cases by XBOOLEAN:def 3;
      suppose
A22:    add_ovfl(z1,z2) = f;
then     IFEQ(add_ovfl(z1,z2),FALSE,0,2 to_power m) = 0 by FUNCOP_1:def 8;
        hence thesis by A2,A3,A4,A18,A20,A21,A22,FUNCOP_1:def 8;
      end;
      suppose
A23:    add_ovfl(z1,z2) = t;
then     IFEQ(add_ovfl(z1,z2),FALSE,0,2 to_power m)
        = 2 to_power m by FUNCOP_1:def 8;
then     Intval(z1^<*d1*>+z2^<*d2*>)
        + IFEQ(Int_add_ovfl(z1^<*d1*>,z2^<*d2*>),FALSE,0,2 to_power(m+1))
        - IFEQ(Int_add_udfl(z1^<*d1*>,z2^<*d2*>),FALSE,0,2 to_power(m+1))
        = (Absval(z1) + Absval(z2)  .x0-r1,x0.] c= dom f2 and
          .= (Absval(z1) + Absval(z2)) - (2 to_power 1*2 to_power m)
        by POWER:25
          .= (Absval(z1) + Absval(z2)) - 2 to_power(m+1) by POWER:27;
        hence thesis by A20;
      end;
    end;
  end;
end;

theorem Th12:
  for z1,z2 being Tuple of m,gin f2and
  Intval(z1^<*d1*>+z2^<*d2*>)A6:g [.,x0.;
  - IFEQ(Int_add_ovfl(z1^<*d1*>,z2^<*d2*>),FALSE,0,2 java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 28
  + IFEQ(Int_add_udfl(z1^<*d1*>,z2^<*d2*>),FALSE,0,2 to_power(m+1))
proof
  let z1,z2 be Tuple of m,BOOLEAN;
  let d1,d2;
  set A = Intval(z1^<*d1*>+z2^<*d2*>),
  B = IFEQ(Int_add_ovfl(z1^<*d1*>,z2^<*d2*>),FALSE,0,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  (z1^<*d1*,^**),ALSE,, to_power(m+),
  D = Intval(z1^<*d1*>) + Intval(z2^<*d2*>);
 A + B - C = D by Th11;
hesis;
end;

theorem Th13:
  for  forxbeing   m  holds
  Absval('not
proof
  defpred P[Nat] means forassume
  Absval('not' x) = - Absval(x) + 2 to_power $1 - 1;
A1: P[1]
  proof
      then  r2such
    per cases by BINARITH:14;
    suppose
A2:   x = <*FALSE*>;
then A3:   x/.1 = FALSE by FINSEQ_4:16;
      consider k being Element of BOOLEAN such that
:'' x  * k * by FINSEQ_2:97;
A5:   ('not' x)/.1 = k by A4,FINSEQ_4:16;
   1 in  by FINSEQ_1:3;
then A6:   ('not' x)/.1 = 'not' FALSE by A3,BINARITH:def 1
        .= TRUE;
   - Absval(x) + 2 to_power 1 - 1 = -  then
        .= 0 + 2 - 1 by POWER:25
        .= 1;
      hence thesis by A4,A5,A6,BINARITH:16;
    endr3< r2  XXREAL_017
    suppose
A7:   x = <* then
then A8:  x/.1 = TRUE by FINSEQ_4:16;
      consider k being Element of  suchthat
A9:  'not' x = <* k *> by FINSEQ_2:97;
:;
  1 in Seg 1 by FINSEQ_1:3;
then A11:  ('not' x)/.1 = 'not' TRUE   
        .= FALSE;
  - AbsvalA9 x0 in [x0 - r2,0]by XXREAL_1:1;
        .= - 1 + 2 - 1 by POWER:25
        .= 0;
      hence thesis by A9,A10,A11,BINARITH:15;
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8

A12: now
    let m;
    assume
A13: P[m];
 now
      let x be Tuple of m+1, BOOLEAN;
      consider t being (Element of m-tuples_on BOOLEAN),
d being Element of BOOLEAN such that
A14:  x = t^<*d*> by FINSEQ_2:117;
A15:  Absval('not' x) = Absval('not' t^<*'not' d*>) by A14,Th9
        .= Absval('not' t) + IFEQ('not' d,FALSE,0,2 to_power m) by BINARITHr3 < r0 by XXREAL_0:17;
        .= - Absval(t) + 2 to_power m - 1
      + IFEQ('not' d,FALSE,0,2 to_power m) by A13;
A16: -Absval(x)+2to_powerm+) -1
      = - (Absval(t) + IFEQ(d,FALSE,0,2 to_power m))
      + 2 to_power(m+1) - 1 by A14,BINARITH:  then  -  < x0  A7,XREAL_0:2;
      thus Absval('  
      proof
        per cases by XBOOLEAN:A12 x0 in .x0  r0,.] by XXREAL_1:1;
        suppose
A17:      d = FALSE;
          then A18:  x0-r3 in {g x0 - r0 < g  g =x0}by A7,A11;
('not' x) = - Absval(t) + 2 to_power m - 1 + 2 to_power m
          A15,FUNCOP_1:ef8
            .= - Absval(t) + 2*2 to_power m - 1
            .= - Absval(t) + 2 to_power 1*2 to_power m -  hen
            .= - Absval(t) + 2 to_power(m+1) - 1 by POWER:27;
()+2to_power(m+) -1
          = -(Absval(t) + 0) + 2 to_power(m+1) - 1 by A16,A17,FUNCOP_1:def 8
           . -Absval(t) +2 to_power(m+) -1
          hence thesis by A18;
          proof
        suppose
A19:      d = TRUE;
then A20:      Absval('not' x)
          = - Absval(t) + 2 not x in dom f \ f"{0} by A162;
            .= - Absval(t) + 2 to_power m -     
      - Absval(x) + 2 to_power(m+1) - 1
          = -(Absval(t) + 2 to_power m) + 2 to_power(m+1) - 1
          by A16,      suppose
            .= - Absval(t) - 2 to_power m + 2 to_power not indomfjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
          by POWER:27
            .= - Absval(t) - 2 to_power m + 2*2 to_power m - 1
          by java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 13
            .= - AbsvalA18:xjava.lang.StringIndexOutOfBoundsException: Range [12, 10) out of bounds for length 19
          hence thesis by A20;
        endjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
      end;
    end;
    hence P[m+1];
  end;
  A19:    f. =0by TARSKIdef 1;
end;

theorem Th14:
   xin  fby A18,UNCT_1 7;
  Neg2(z^<*d*>) = Neg2(z)^<*'not' d 'xor' java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
proof
  let z be Tuple       ;
  let d;
'not' z^*'not' d*> + Bin1(m+1) by Th9
    .= 'not' z^<*'not' d*> + Bin1(m)^<*FALSE*> by Th7
    .= ('not' z + Bin1    d;
  z,Bin1(m))*> by BINARITH:19
    .= A20: x0 in[x0-r3,x0.]by ,XXREAL_1;
end;

theorem Th15:
   Tuple of , BOOLEAN for d being Elementof BOOLEAN holds
  Intval(Neg2(z^<*d*>))
  +IFEQ(('ot' (z^<*>Bin1(m+1),FALSE,0, to_powerm+1)java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
  =- Intval(z^<*d*>)
proof
  let z be Tuple of m, BOOLEAN;
  let d;
  set OV =   *c))=-Ldiff(f,x0)/(f.x0)^2
  2 to_power(m+1)),
  UD = IFEQ(Int_add_udfl('not' z^<*'not' d*>,Bin1(m)^<*FALSE*>)  proof
  2 to_power(m+1));
A1: Int_add_udfllet h,;
  = (('not' z^<*'not' d*>)/.(m+1)) '&' FALSE '&' 'not'    assume that
  z^<*'not' d*>,Bin1(m)^<*FALSE*>))A22 rng (+)c dom (f)
    .= FALSE;
A2: Intval(A23:fornbeing Nat  holds .n  ;
  + IFEQ(Int_add_ovfl('not' (z^<*d*>),Bin1(m+1)A24:for holds c. =x0
 ''^<*not * +(+1)
  + IFEQ(Int_add_ovfl('not' (z^<*d*        by A21,TARSKI:defjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
  2 to_power(m+1)) by Th9
   . Intval(not'z<'' * + in1m1)
  + IFEQ(Int_add_ovfl('not' z^<*'not' d*>,Bin1(m+1)),FALSE,0,
  2 to_power(m+1)) by Th9
    .= Intval('not' z^<*'not' d*> + Bin1(m)^<*FALSE*>)
   IFEQ(Int_add_ovfl('notm+),FALSE,,
  2 to_power(m+1)) by Th7
    . Intval(not'z<*not )<*ALSE> + OVby Th7
    .= Intval('not' z^<*'not'
  d*) Bin1m)<*)-OV +UD+ OV  Th12
    .= (Intval('not' z^<*'not' d*>) + 1) - OV + UD + OV by Th8
 d*> +  UD)-(V -OV)
    .= Intval('not' z^<*'not' d*>) + 1 + 0 by A1,java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 8
.=Absval(not'z -IFEQ(not F,0,  m)+1 byTh10
    .= (- Absval(z) + 2 to_power m) - 1
-(not ,FALSE02to_power m)+ 1 by Th13
    .= - Absval(z) + 2 to_power m - IFEQ('not' d,FALSE,0,2 to_power m);
: -Intval(^<d> = - Absval)-IFEQ(,ALSE,, to_power ) by 
    .= - Absval(z) + IFEQ(d,FALSE,0,2 to_power m);
      rng c =dom f\f"0java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24

A4: d = FALSE;
then  Intval(Neg2(z^<*d*>))
    + IFEQ(Int_add_ovfl('not' (z^<*d*>),Bin1(m+1)),FALSE,0, 2 to_power(m+1))
    = - Absval(z) + 2 to_power m - 2 to_power m by A2,FUNCOP_1:def 8
      .= - Absval(z) + 0;
    hence thesis by A3,A4,FUNCOP_1:def 
  end;
  suppose
A5: d = TRUE;
then  Intval(Neg2(A33  h. >0 byA23java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
+ (Int_add_ovfl(not'(^**)Bin1(+1),FALSE,0, 2 to_power(m+1)
    = (- Absval(z) + 2 to_power m) - 0 by A2,FUNCOP_1:def 8
      .  Absvalz  2 to_power m;
    hence thesis by A3,A5,FUNCOP_1:def 8;
  end;
end;

theorem
  for m for z being Tuple of m, BOOLEAN for d being Element of BOOLEAN holds
    Neg2. .n * (hn"*f/(h+)-f*c).  VALUED_1:10
proof
  defpred P[non zero Nat] means         .= 1*(f/*(h+c) - f/*c).n by,XCMPLX_0: java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
for d being Element of BOOLEAN holdsNeg2(Neg2(^<d>) = z^<**>
A1: P[1]
  proof
    let z be Tuple of 1, BOOLEAN;
    let d be Element of BOOLEAN;
    set NZD = 'notA h#("#(*hc)-f*)  (f*hc)-f/c)by FUNCT_2:63;
    set DPI
    set B1 = (Bin1(1))/.1;
A2: 1 in Seg 1 by FINSEQ_1:3;
A3' FALSE'' add_ovfl('not'z,(1)
    = 'not' d 'xor' ((NZ1 '&' B1) 'or'
    (NZ1 '&' ((carry('not' z,Bin1(1)))/.1)) 'or'
    (B1 '&' ((carry('not' z,Bin1(1)))/.1))) by BINARITH:def 6
     . '' ((Z1''B1 'or N & FALSE) 'r'
    (B1 '&' ((carry('not' z,Bin1(1)))/.1))) by        =(/*h+).;
      .= 'not' d 'xor' ((NZ1 '&' B1) 'or'
FALSE ''( &'FALSE)) y :java.lang.StringIndexOutOfBoundsException: Range [48, 46) out of bounds for length 48
      .= 'not' d 'xor' (TRUE '&' NZ1) by A2,Th5
. not  '''ot (/1) by 2,:ef 1;
A4: 'not'      (f^ =dom \ f"  RFUNCT_1:def 2;
    = 'not' NZD 'xor' (((('not' ('not' z + Bin1(1)))/.1) '&' B1) 'or'
    ((('not' ('not' z + Bin1(1)))/.1) '&'
    ((carry('not' ('not' z + Bin1(1)),Bin1(1)))/.1)) 'or'
    A:for g  Realst0 < g
      .= 'not' NZD 'xor'
    (((ex n beingNat st for being  st n <m holds |(/*)
    ((('not' ('not' z + Bin1.-f.x0. <g
    (((Bin1(1))/.1) '&' ((carry('not' ('not' z + Bin1(1)),Bin1(1)))/.1)))
    by BINARITH:def 2
      . 'not'NZD 'or
    (((('not' ('not' z + Bin1(1)))/.1) '&' ((Bin1(A40:0<gjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
    FALSE 'or' (B1 '&' FALSE)) by BINARITH:def 2
      .=
    'not' NZD 'xor' (TRUE '&' (('not' ('not' z + Bin1(1)))/.1)) by A2,Th5
      .= 'not' NZD 'xor' 'not' ((('not' z + Bin1(1)))/.1) by A2,java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 35
      .= 'not' NZD 'xor' 'not' ((('not' z |(/*c. -f.|= ..c.)-f.x0|byA31,,:108
    'xor' ((carry('not' z,Bin1(1)))/.1)) by A2,BINARITH:def 5
      .= 'not' NZD '        =|..0-f.|by ,41
    'xor' FALSE) by BINARITH:def 2
      .= 'not' NZD         =0by ABSVALUEdef ;
      .= 'not' NZD 'xor' 'not' (z/.1) by A2,BINARITH:def 1;
A5: Neg2(Neg2(z^<*d*>)) =
    'not' ('not' z^<*'not' d*> + Bin1(1 + 1)) + java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 8
      .= 'not' ('not' z^<*'not' d*> + Bin1(1)^<*FALSE*>) + Bin1(A42d 6;
      .= 'not' (('not' z + Bin1(1))
    ^<*'not' d 'xor' FALSE 'xor' add_ovflA43:lim(f/*c  .0 by ,EQ_2: ;
    + Bin1(1 + 1) by BINARITH:19
(1))<*'not'NZD>+Bin11+1  A3,Th9
      .= 'not' ('not' z + Bin1(1))^<*'not' NZD*> + Bin1(1)^<*FALSE*> by Th7
      .= ('not' ('not' z + A44: f/*(h+c) is convergent by A42,A34,A37;
    by A4,BINARITH:19;
then:(eg2Neg2z<**>)/.1
    = ('not' ('not' z + Bin1(1))+ Bin1(1))/.1 by A2,BINARITH:1
     . (n'('not' z  Bin1(1)/1 xor'(Bin11).) 'xor'
    ((carry('not' ('not' z + Bin1(1)),      . java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
. ((n '' z+Bin11)/1) 'or ((1)/.)'or'FALSE
    by BINARITH:def 2
      .= (('not' ('not    then
      .= 'not' 'not' ((('A45: lim(f/*(h+c) (#) (f/*c=f.0)2byA42,A43,44SEQ_2:;
      .= (('not' z)/.1) 'xor'46 lim(f/(hc) () (/*))< 0
    z,Bin1(1)))proof
      .= NZ1 'xor' ((Bin1(1))/.1) 'xor'assume not thesisjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
      .= NZ1 'xor' TRUE by A2,Th5
      .= 'not' 'not' (z/.1) by A2,BINARITH:def 1
      . z/1
    reconsider p = d, q = z/.1 as boolean object;
A7: (Neg2(Neg2(z^<*d*>)))/.2 =
    ('not' d 'or' 'not' 'not' (z/.1)) '&' ('not' 'not' d
    'or' 'not' (z/.1)) 'xor' 'not' (z/.1) by A5,BINARITH:2
      . ('not'p'or' )'&' p 'or'(not p 'or' q) ''
    'not' q 'xor' 'not' (z/.1) by XBOOLEAN:8
      .or p ''q or' ('not' q '&' ('ot p or )
    'xor' 'not' (z/.1) by XBOOLEAN:8
      .=( & 'ot'd)'or'( & z.) or'
    (('not' (z/.1) '&' 'not' d) 'or' ('not' (z/.1) '&'
    (z/.1))) 'xor' 'not' (z/.1) by XBOOLEAN:8
      .= FALSE 'or' (        . (").n ((^)/(h+c).n - ((^/c.n)by RFUNCT_21
    (('not' (z/.1. h) (f*h)".  (f)*c). A22RFUNCT_2
    (z/.1))) 'xor' 'not' (z/.1) by XBOOLEAN        = h".n* ((/*h))).n -(f*)).)by A31,FUNCT_21
      .=         .= (").n* (((f/*(+c))n" -((/c)".n by VALUED_1:10
    'xor' 'not' (z/.1) by XBOOLEAN:138
      .= (('not' d 'or' 'not' (z/.1)) '&' ('not' (z/.1) '&' ((z/.1) 'or' d)))
(/1 '& 'ot' d)) &''not''not'(z/.)
      .= (('not' d 'or' 'not' (z/.1)) '&' (('not' (z/.1) '&' (z15
    ('not' (z/.1) '&' d))) 'or' ((DPI 'or' ('not' (z/.1) '&' 'not' d)) '&'
    'ot' 'ot (/1))by XBOOLEAN8
      .= (('not' d 'or' 'not' (z/.1)) '&' (FALSE 'or' ('not'
    (z/.1) '&' d))) 'or' (((d '&'         .= (h").n* ((1*(f/c.n)- 1*(f/(h+c)).)/((/*h+c).n*(f/c.n
    'not' 'not' (z/.1)) by XBOOLEAN:138
      .= ((('not' (z/.1) '&' d)      ) by A47,XCMPLX_1:130
    (z/.1) '&' d) '&' 'not' (z/.1)))
    'or' ((DPI 'or' ('not' (z/.1) '&' 'not' d)) '&'        .= (h".n*(((/*h+c).n  (/*c).)/(f*(h+))#(f/c).) by
    'not' 'not' (z/.1)) by XBOOLEAN:8
      .= (('not' (z/.1) '&' (d '&' 'not' d)) 'or' (('not'
z.1))
    'or' ((DPI 'or' ('not' (z/.1) '&' 'not' d)) '&' 'not' 'not' (z/.1))
      .= RFUNCT_2:1
    (z/.1) '&' d) '&' 'not' (z/.1)))
    'or' ((DPI 'or' ('not' (z .=(h")n(-((/(h+c) - (f/*c).)((/*(h+c))#)f/c)).)) by
    'not' 'not' (z/.1)) by XBOOLEAN:138
      .= (d '&' ('not' (z/.1) '&' 'not' (z/.1)))
    'or' ((DPI 'or' ('not' (z/.1) '&' 'not' d)) '&' 'not' 'not' (z/.1))
      .= (d '&' 'not' (z/.1)) 'or' (((z/.1) '&' ((z/.1) '&' d)) 'or'
    ((z/.1) '&' ('not' (z/.1) '&' 'not' d))) by XBOOLEAN:8
      . (d '' 'not' z.1)'or'((z.1 '' (/.)'' d 'r
    ((z/.1) '&' ('not' (z/.1) '&' 'not' d)))
      .=(d '''ot' (z/1))
    'or' (((z/.1) '&' d) 'or' ((z/.1) '&' 'not' (z/.1) '&' 'not' d))
      .= (d '&' 'not' (z/.1)) 'or' (((z/XCMPLX_1:74
    by XBOOLEAN:138
      .= d '&' ('not'         = -( (h" () ((f*(h+) -(f*)).))/(f*))#)f/*).n
      .= TRUE '&' d by XBOOLEAN:102
      .= d;
    consider k1,k2 being Element of BOOLEAN such that
:Neg2Neg2z<d*))=<,*byFINSEQ_2100java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
    A9: (Neg2(Neg2(z^<*d*>)))/.1 = k1 & (Neg2(Neg2(z^<*d*>)))/.2 = k2 by A8,
INSEQ_4:17;
    consider k being Element of BOOLEAN such that
A10: z = <*k*> by FINSEQ_2:97;
 Neg2(Neg2z^<d>))= < k, * by A6,A7,8,A9,:16java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
    hence thesis by A10,FINSEQ_1:deff/c))/((f/(h+c)(#(/*c))nby
  end;
A11:now
    let m;
    assume
A12: Pm]java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
 now
      let z be Tuple of m+1, BOOLEAN;
      let d be Element of BOOLEAN        .= (-("()(f/(h+c) -(f*c)))"(f/*h+c)(#)f/*c)))nby
      consider t being (Element of m-tuples_on java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 9
       end;
A13:  z = t^<*k*> by FINSEQ_2:117;
      set A = add_ovfl('not' t,Bin1(m)), B = add_ovfl('A48: h(#)((f^/*h+c)- (^)/c =(-("#)(f/*h+))- (/*)))/"((f
  Neg2(Neg2(t^<*k*    /(h+c))# (f*c)) by FUNCT_2:63;
      = Neg2(Neg2(t)^<*'not' k 'xor' add_ovfl('not' t,Bin1(m))*>)A49:f*(h+ (#) (f/c is convergent by A42,A44;
        .= Neg2(Neg2(t))^<*'not    then
      t,Bin1(m))) 'xor' add_ovfl('not' Neg2(t),Bin1(m))*> by Th14;
then A14:(Neg2(eg2(t^*k*>))/(+1)
      = 'not' ('not' k 'xor' add_ovfl('not' t,Bin1(m))) 'xor'
      add_ovfl('not' Neg2(t),Bin1(m)) by BINARITH:2;
15  (t^<**).(m+)=k  BINARITH:2;
      reconsider p = k, q = A as boolean object;
  ''(not'k'xor'A 'xor B
      = (p '&' ('not' p 'or' 'not' q) 'or' ('not' p 'or' 'not'
      q) '&' q) 'xor' B by XBOOLEAN:8
.=( '''ot A o'A'& ('ot'k 'or' 'not'
      A)) 'xor' B by XBOOLEAN:11
        .= (A 'xor' k) 'xor' B by XBOOLEAN:11
        .= k 'xor' (A 'xor' B) by XBOOLEAN:73;
then A16:  k 'xor' (java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 6
' (k xor A 'or ))
      = (k 'xor' k) 'xor' (A 'xor' B) by XBOOLEAN:73
        .= FALSE 'xor' (A 'xor' B) by XBOOLEAN:138
        .= 
A18:  k 'xor' (k 'xor' FALSE) = FALSE by XBOOLEAN:138;
A19:  A 'xor' (A 'xor' B) = (A 'xor' A) 'xor' B by XBOOLEAN:73
        = FALSE 'xor'Bby XBOOLEAN:
        .= B;
A20:  m + 1 in Seg(m+1)   is_left_differentiable_i x0 & Ldiff(f,x0) = = -Ldiff(f,x0)/(f.x0)^2
A21:  add_ovfl('not' z,Bin1(m+1))
      = add_ovfl('not' t^<*'not' k*>,Bin1(m+1)) by A13,Th9
        .= add_ovfl('not' t^<*'not' k*>,Bin1(m)^<*FALSE*>) by Th7
        .= ((('not' t^<*'not' k*>)/.(m+1)) '&'
      ((Bin1(m)^<*FALSE*A2: f.x0 < 0;
          suchthat
      (((Bin1(m)^<*FALSE*>)/.(m+1))3:r1>0 
((carry('not' t^<*'not' k*>,Bin1(m)^<*FALSE*>))/.(m+1))) by BINARITH:def 6
        .= ((('not' t^<*'not' k*>)/.(m+1)) '&' FALSE) 'or'
<*'ot' k*>).(+1)) '&
      ((carry('not' t^<*'not' k*>,Bin1(m)^<*FALSE*>))/.(m+1))) 'or'
      (((Bin1(m)^<*FALSE*>)/.(m+1)) '&'
      ((carry('java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 12
. FALSE'r (('not't<*not'k>)/(m+) '' (carry('not' t^<*'not'
      k*>,Bin1(m)^<*FALSE*>))/.(m+1))) 'or' (FALSE '&' ((carry('not' t^<*'not'
      k*>,Bin1(m)^<*FALSE*>))/.(m+1))) by BINARITH:2
        . 'ot'k''
      ((carry('not' t^<*'not' k*>,Bin1(m)^<*FALSE*>))/.
        .= 'not' k '&' A by BINARITH:18;
A22:  add_ovfl('not' (Neg2(z)),Bin1(m+1))
      = add_ovfl     . > 0 by A4A5;
        .= ((('not' (Neg2(z)))/.(m+1)) '&' ((Bin1(m)^<*FALSE*>  end;
      ((('not' (Neg2(z)))/.(m+1)) '&'
      ((carry('not' (Neg2(z)  hence thesis by A1,m2java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
      (((Bin1(m)^<*FALSE*>)/.(m+1)) '&'
      ((carry('notjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        .= ((('not' (Neg2theorem Th15:
      ((('not' (Neg2(z)))/.(m+1)) '&'
      ((carry('not' (Neg2(z)),java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 24
      (((Bin1(m)^<*FALSE*>)/.(m+1)) '&'
  f is_right_differentiable_in x0 &Rdiff(f,x0) = g1 iff (ex r st
        .= FALSE 'or' ((('not' (Neg2(z)))/.(m+1)) '&'
      ((carry('not' (Neg2(z)),Bin1(m)^<*FALSE*>))/.(m+1))) 'or'
      (FALSE '&' ((carry('not' (Neg2(z)),Bin1(m)^<*FALSE*>for  being Nat holds h.n > 0)
      by BINARITH:2
.=(''(n't<'ot (+1)).(m+1) ''
      ((carry('not' ('not' (t^<*k*>) + Bin1(m+1)java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
      by A13,Th9
        .= (('not' ('not'  thus  is_right_differentiable_inx0 & Rdiff(,x0  g1 implies(x r st r>0
((carry('not&[x0x0+r. = domf & forh,c st rngc  x &rng (+)c dom  java.lang.StringIndexOutOfBoundsException: Range [72, 73) out of bounds for length 72
      by Th9
        .= (('not' ('not' t^<*'not' k*> + Bin1(m)^<*holds h.n > 0) holds h"(#)(f/*(h+c) - f/*c) is convergent("#(/(+)
      (  -f/*c) =g1by Def6;
      (m+1)) by Th7
        .= (('not' ('not' t^<*'not' k*> + Bin1(m)^<*FALSE*>))/.(m+1)) '&'
     (carry(not' (not't<'not'k* +Bin1()<FALSE*>),
      Bin1(m)^<*FALSE*>))/.(m+1)) by Th7
        = 'ot' (()^*FALSE*>).(m+)) ''
      ((carry('not' ('not' t^<*'not' k*> + Bin1(m)^<*FALSE*>),
      Bin1(m)^<*FALSE*>))/   (for n being  holds h. > 0)
.= 'not' ((('not' t^<*'holds h"#(/*h+) -f/*) is convergent  lim ("(#)f*hc)-f/c) 
not't<'not'k*,in1m)^<FALSE*)).(+)))''
      ((carry('not' ('not' t^<*'not' k*> + Bin1(m)^<*FALSE*>),
      Bin1(m)^<*FALSE*>))/ for  being  holds h.  0
        .= 'not' ('not' k 'xor'         ies h"#)/*h+c) -f*c)is  by A2java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
(carry(not' t^*not'k>Bin1(m)<FALSE*)/(+)) '&'
      ((carry('not' ('not' t^<*'not'= domf &
      Bin1(m)^<*FALSE*>))/.   for  being Natholds h. >0)
        .= 'not' ('not' k 'xor' FALSE   mplieslim (h"#(/*h+)-f/*)  g1 by A2;
      ((carry('not' t^<*'not'    thesis by A3,Def6;
      ((carry('not' ('not' t^<*'not' k*> + Bin1(m)^<*FALSE*>),
      Bin1(m)^<*FALSE*>))/.(m+1)) by BINARITH:2
        .= 'not' ('not' k 'xor' FALSE 'xor' add_ovfl('nottheorem
      ((carry('not' ('not' t^<*' 1is_right_differentiable_inx0 &  is_right_differentiable_inx0
      Bin1(m)^<*FALSE*>)  implies f1f2is_right_differentiable_in x0&Rdiff(f1+,) = Rdiff(f1,)java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
        .= 'not' ('not' k 'xor' java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
      ((carry('not' (('not' t + Bin1(m))
    ^*'ot'k ''FALSE 'or add_ovfl('ot't,in1(m))*)
      Bin1(m)^<*FALSE*>))/.(m+1)) by java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 37
        .= 'consider r2 suchjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
      ((carry(('not'A3:r2 and
      ^<*'not' ('not' k 'xor' FALSE 'xorA4:[x0,r2]c= f2 by A2;
      Bin1(m)^<*FALSE*>))/.(m+1)) by Th9
        .= (('not' k 'or' 'not' A) '&' (k 'or' 'not' 'not'
      A)) '&' A by A16,A17,A18,A19,BINARITH:18
.= (not  'r'''A) &'( ''(k '' A)
        .= A '&' ('not' A 'or' 'not' k) by XBOOLEAN:6
        .= A '&' 'not' k by XBOOLEAN:11;
      set C = 'not' k '&' A;
      reconsiderp = d q=C booleanobjectjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
  'not'd 'xor'C 'xor' C
      = ((p '&' ('not' p 'or' 'not' q)) 'or' (('not' p 'or' 'not'
q '& q))'xor'Cby XBOOLEAN:8
        .= ((d '&' 'not' C) 'or' (C '&' ('not' d 'or' 'not'
C)) 'xor'XBOOLEAN:11
        .= C 'xor' d 'xor' C by XBOOLEAN:11
        .= d java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 6
  =d'xor'FALSE by XBOOLEAN:138
        .= d;
      thus Neg2(Neg2(z^<*d*>))
      1by XXREAL_0:17;
        .= Neg2(Neg2(z))^<*'not' ('not' d 'xor' add_ovfl('not'
      z,Bin1(m+1))) 'xor' add_ovfl('not' Neg2(z),Bin1(m+1))*> by Th14
        . ^<d> by A12,A13,A21,A22,A23java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
    end;
    hence P[m+1];
  end;
  thus for m holds P[m] from NAT_1:sch 10(A1,A11);
end;

definition
  let n be non zero Nat, x, y be Tuple of n,  x0<=x0 + r1 by A12,A8,XXREAL_0:2;
  func x - y -> Tuple of n, BOOLEAN means
  :ef6
  for i st i in Seg n holds
  it/.i = (x/.i) 'xor' ((Neg2(y))/.i) 'xor' ((carry(x,Neg2(y)))/.i);
    then [.x0,x0+r] c dom f1 by A6;
  proof
deffunc(java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
'xor'(carry(x,(y)))/$)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
    consider z being FinSequence of BOOLEAN such that
    nand
A2: for j be Nat st j in dom z holds z.j = F(j) (for  being Nat holds hn >
A3:holds h"#(f1+f2)*hc)-(1f2/*)is convergent  ("#(f1+java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
z   n-uples_onBOOLEANby ,INSEQ_292;
    then reconsider z as Tuple of n, BOOLEAN;
    take z;
    let i;
    assume
A4  inSeg n;
then  i in dom z by A1,FINSEQ_1:def 3;
    assume that
      .= (x/.A17:rng ={0 and
  end;
  A18  (+c) c= dom (f1f2)and
  proof
java.lang.StringIndexOutOfBoundsException: Range [27, 4) out of bounds for length 47
 i st i in Seg n holds
    z1/.i = (x/.i) 'xor' ((Neg2(y))/.i) 'xor' ((carry(x,Neg2(y)))/.i) and
A6: for i st i in Seg n holds
    z2/.i = (x/.i) 'xor' ((Neg2(y let ;
A7: len z1 = n by CARD_1:def 7;
A8: len z2 = n by CARD_1:def 7;
A9: dom z1 = Seg n by A7,java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 11
 now
      let j be Nat;
      assume
A10:  j in dom z1;
  Seg n = java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 12
then A11:  j in dom z2 A23:x =x0by A17,ARSKIdef 1;
      thus z1.j = z1/.j by A10,PARTFUN1:def 6
        .= (x/.j) 'xor' ((Neg2(y))/.j) 'xor' ((carry(x,Neg2(y)))/.j) by A5,A9
,A10
         .jby ,A9,10
        .= z2.j by A11,PARTFUN1:def 6;
    end;
    hence thesis by A7,A8,FINSEQ_2:9;
  end;
end;

theorem Th17:
  for x,y being Tuple of m, BOOLEAN holds x - y = x + Neg2(y)
proof
  xy  Tupleof m,BOOLEAN;
 for i st i in Seg m holds (x - y)/.i
  = (x/.i) 'xor' ((Neg2(y))/.i) 'xor' ((        .= (f1/*(h+).+(/(+). +((1/.+ (-f2/*c))n) by
  hence thesis by BINARITH:def 5;
end;

theorem
  for z1,z2 being Tuple of m, BOOLEAN for d1,d2 being Element of BOOLEAN holds
  z1^<*d1*> - z2^<*d2*>
  =*.)
  z2,
java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 5
  z  Tuple of m,BOOLEAN;
  let d1,d2;
  thus z1^<*d1 . ((1+f2)/*h+)-(f1+2)*c)n A22,FUNCT_2:;
    .= z1^<*d1*> + Neg2(z2)^<*'not' d2 'xor' add_ovfl('not'
  z2,Bin1(m))*> by Th14
    .= (z1 + Neg2(z2))
  ^<*d1 'xor' ('not' d2 'xor' add_ovfl('not' A24:f1/(h+)f1/* + (2/(c) - f2/*c)=(f1+2/( -(+2)/*c by
  add_ovfl(z1,Neg2(z2))*> by BINARITHFUNCT_2:3
    .= (z1 + Neg2(z2))
  ^<*d1 'xor' 'not' d2 'xor' add_ovfl('not' z2,Bin1(m)) 'xor'
  add_ovfl(z1,java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 8
"#)f2*(+) -f2/c) isconvergentby ,17,19,25;

theorem
  for z1,z2 being Tuple of m, BOOLEAN for d1,d2 being Element of BOOLEAN holds
  Intval(z1^<*d1*>-z2^<*d2*>)
  + IFEQ(Int_add_ovfl(z1^<*d1*>,Neg2(z2^<*d2*>)),FALSE,0,2 to_power(m+1))
   (z1^*d1*,Neg2(2^*2*),,, to_power(+1)java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
IFEQ(Int_add_ovfl(not'(^*d2*)Bin1(m+1)),FALSE,0,2 to_power(m+1))
  = Intval(z1^<*d1*>) - Intval(z2^<*d2*>)
proof
  let z1,z2 be Tuple of m, OOLEAN;
  let d1,d2;
  set V1 = IFEQ(nt_add_ovflz1^<d1*>Neg2(z2^<d2*>)FALSE,0,
  2 to_power(m+1)),
  UD1 = IFEQ(
  2 to_power(m+),
  OV2 = IFEQ(Int_add_ovfl('not' (z2^<*d2*>),Bin1(m+1)),FALSE,0,
  java.lang.StringIndexOutOfBoundsException: Range [11, 3) out of bounds for length 19
  ,Bin1(m))*>
  thus Intval(z1^<*d1*>-z2^<*d2*>) + OV1 - UD1 + OV2
  = Intval(z1^<*d1*>+Neg2(z2^<*d2*>)) + OV1 - UD1 + OV2 by Th17
    .= Intval(z1^<*d1*>+NEG) + OV1 - 
    .= Intval(z1^<*d1*>+NEG)
  +   hence  by A15A16Th15java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    .= Intval(z1^<*d1*>+NEG)
  + IFEQ(nt_add_ovfl(z1^<*d1*>,NEG),FALSE,0,2 to_power(m+1))
  - IFEQ(Int_add_udfl(z1^<*d1*>,NEG),FALSE,0,2 to_power(m+1)) + OV2 by Th14
    .= Intval(z1^<*d1*>) + Intval(NEG) + OV2 by Th11
    .= Intval(z1^<*d1*>) + (Intval(NEG) + OV2)
    pro
    .= Intval(z1^<*d1*>) + (- Intval(z2^<*d2*>)) by Th15
    .= Intval(z1^<*d1*>) - Intval(z2^<*d2*>);
end;

Messung
CHZG
8110010093

¤ Dauer der Verarbeitung: 0.9 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*Bot Zugriff