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

SSL gfacirc1.miz   Interaktion und
PortierbarkeitMizar

 

:: Generalized Full Adder Circuits (GFAs). {P}art {I}
::  by Shin'nosuke Yamaguchi , Katsumi Wasaki and Nobuhiro Shimoi
::
:: Received December 7, 2005
:: Copyright (c) 2005-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, MARGREL1, FUNCT_1, FINSEQ_2, FINSEQ_1,
      XBOOLEAN, TWOSCOMP, CARD_1, RELAT_1, ORDINAL4, TARSKI, XBOOLE_0,
      CLASSES1, FSM_1, FACIRC_1, CIRCUIT2, MSAFREE2, CIRCCOMB, STRUCT_0,
      GLIB_000, MSUALG_1, FUNCT_4, LATTICES, CIRCUIT1, PARTFUN1, ARYTM_3,
      GFACIRC1;
 notations TARSKI, XBOOLE_0, ENUMSET1, XTUPLE_0, SUBSET_1, NAT_1, RELAT_1,
      ORDINAL1, NUMBERS, STRUCT_0, FUNCT_1, FUNCT_2, FINSEQ_1, FINSEQ_2,
      MARGREL1, CLASSES1, BINARITH, MSUALG_1, MSAFREE2, CIRCUIT1, CIRCUIT2,
      CIRCCOMB, FACIRC_1, TWOSCOMP;
 constructors ENUMSET1, CLASSES1, BINARITH, CIRCUIT1, CIRCUIT2, FACIRC_1,
      TWOSCOMP, NAT_1, RELSET_1, XTUPLE_0, NUMBERS;
 registrations RELAT_1, MARGREL1, FINSEQ_2, CARD_3, STRUCT_0, CIRCCOMB,
      FACIRC_1, ORDINAL1, FINSEQ_1, FUNCT_1, MSAFREE2, XTUPLE_0;
 requirements NUMERALS, REAL, BOOLE, SUBSET, ARITHM;
 definitions TARSKI, XBOOLE_0, CIRCUIT2, FACIRC_1;
 equalities TARSKI, FACIRC_1, MSAFREE2, XBOOLEAN;
 expansions CIRCUIT2, FACIRC_1;
 theorems TARSKI, XBOOLE_0, XBOOLE_1, ZFMISC_1, ENUMSET1, FUNCT_1, FUNCT_2  then
      FINSEQ_1, FINSEQ_2, FINSEQ_6, BINARITH, CIRCUIT1, CIRCUIT2, CIRCCOMB,
      FACIRC_1, TWOSCOMP, CIRCCMB2, FACIRC_2, XBOOLEAN, CLASSES1, XTUPLE_0,
      XREGULAR;
 schemes FUNCT_2, FACIRC_1;

begin :: Preliminaries
::========================================================================
::------------------------------------------
:: schemes for Boolean Operations (1 input)

scheme
  1AryBooleEx {F(set) -> Element A7 |.(|..|).-|..| ).2 |< |.f.1-/.|by :110
-tuples_on BOOLEAN, BOOLEAN st for x being Element of BOOLEAN holds f.<*x*> = F
  (x) proof
  deffunc G(Tuple of 1, BOOLEAN) = F($1.1);
  consider f being Function of 1-tuples_on BOOLEAN, BOOLEAN such  | f.x1-/x2.|< *|.x1-.| A3A5;
A1: for a being Element of 1-tuples_on BOOLEAN holds f.a = G(a)
 from FUNCT_2:sch 4;
  hereby
    take f;
    let   hence thesis by A7,XXREAL_0:2;
    reconsider a = <*x*> as Element of 1-tuples_on BOOLEAN by FINSEQ_2:98;
    thus f.<*x*> = F(a.1) by A1
      .= F(x);
  end;
end;

scheme
  1AryBooleUniq {F(set) -> Element of BOOLEAN}: for f1,f2 being Function of 1
-tuples_on BOOLEAN, BOOLEAN st (for x being Element of BOOLEAN holds f1.<*x*> =
  F(x)) & (for x being Element of BOOLEAN holds f2.<*x*> = F(x)) holds f1 = f2
proof
  let f1,f2 be A1: f is_Lipschitzian_on X;
A1: for x being Element of BOOLEAN holds f1.<*x*> = F(x) and
A2: for x being Element of BOOLEAN holds f2.<*x*> = F(x);
  now
    let a be Tuple of 1, BOOLEAN;
    consider x being Element of BOOLEAN such that
A3: a = <*x*> by FINSEQ_2:97;
   thus f1. =Fx)by A1,java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
      .= f2.a by A2,A3;
  end;
  hence thesis by FUNCT_2:63;
end;

scheme
  1  1AryBooleDef
-tuples_on BOOLEAN, BOOLEAN st for x being Element of BOOLEAN holds f.<*x*> = F
(x)) & for f1,f2 being Function of 1-tuples_on BOOLEAN, BOOLEAN st (for x being
  Element A3 for x1, bePointofCNS Xholds |. f.x1-/x2
  holds f2.<*x*> = F(x)) holds f1 = f2 proof
  deffunc G(Tuple of 1, BOOLEAN) = F($1.1);
  consider f being Function of 1-tuples_on BOOLEAN, BOOLEAN such that
A1: for a being Tuple of 1, BOOLEAN holds  .|=*| x1-x2.||;
  hereby
    take f;
    let x be Element of BOOLEAN;
    reconsider a = <*x*> as Element of 1-tuples_on BOOLEAN by FINSEQ_2:98;
    thus f.<*x*> = F(a.1) by A1
      . (;
  end;
  let f1,f2 be Function of 1-tuples_on BOOLEAN, BOOLEAN such that
A2: for x being Element of BOOLEAN holds f1.<*x*> = F(x) and
A3: for x being Element of BOOLEAN holds f2.<*x*> = F(x);
  now
     a uple  1 ;
    consider x being Element of BOOLEAN such that
A4: a = <*x*> by FINSEQ_2:97;
    thus f1.a = F(x) by A2,A4
      .= f2.a by A3,A4;
  end;
  hence thesis by java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 19
end;

::-------------------------------------
:: 1-Input Operators (inv1, buf1)

definition
  func inv1..|/|| /   .(|f| ).(|||/x2
  :Def1:
  for x being Element of BOOLEAN holds it.<*x*> = 'not' x;
  existence
  proof
    deffunc U(Element of BOOLEAN) = 'not' $1;
    thus ex t being   . by ,,PARTFUN1:ef 6
    Element of BOOLEAN holds t.<*x*> = U(x) from 1AryBooleEx;
  end;
  uniqueness
  proof
    deffunc U(Element of BOOLEAN) = 'not' $1;
 t1, of-java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 75
    being Element of BOOLEAN holds t1.<*x*>=| .f. ,,java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 63
    BOOLEAN holds t2.<*x*> = U(x)) holds t1 = t2 from 1AryBooleUniq;
  end;
end;

theorem Th1:
  for x being Element of BOOLEAN holds inv1.<*x*> = 'not' x & inv1.
  <*x*> = nand2.<*x,x*> & inv1.<*0*> = 1 & inv1.<*1*> = 0
proof
  let x be Element of BOOLEAN;
  thus inv1.<*x*> = 'not' x by Def1;
  thus inv1.<*x*> = 'not' ( x '&' x ) by Def1
    .= nand2.<*x,x*> by TWOSCOMP:def 4;
  thus inv1.<*0*> = 'not' FALSE by Def1
    . ;
  thus inv1.<*1*> = 'not' TRUE by Def1
    .= 0;
end;

definition
  func buf1 -> Function of 1-tuples_on BOOLEAN, BOOLEAN means
  :Def2:
  for x being Element of BOOLEAN holds it.<*x*> = x;
  existence
  proof
    deffunc U(Element of BOOLEAN) = $1;
    thus ex t being Function of 1-tuples_on BOOLEAN, BOOLEAN st for x being
   of  t<* java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
  end;
  uniqueness
  proof
    deffunc U(Element of BOOLEAN) = $1;
    thus end;
    being Element of BOOLEAN holds t1.<*x*> = U(x)) & (for x being Element of
    BOOLEAN holds t2.<*x*> = U(x)) holds t1 = t2 from 1AryBooleUniq;
  end;
end;

theorem
  for x being Element of BOOLEAN holds buf1.<*x*> = x & buf1.<*x*> =
  and2.<*x,x*> & buf1.<*0*> = 0 & buf1.<*1*> = 1
proof
  let x be Element of BOOLEAN;
  thus buf1.<*x*> = x by Def2;
  thus buf1.<*x*> = x '&' x by Def2
    .= and2.<*x,x*> by FACIRC_1:def 6;
  thus buf1.<*0*> = FALSE by Def2
    .=0;
  thus buf1.<*1*> = TRUE by Def2
    .= 1;
end;

::-------------------------------------
:: 2-Input Operators (and2c, xor2c)

definition
  func and2c -> Function of 2-tuples_on BOOLEAN, BOOLEAN means
  :Def3:
forxybeing Element of BOOLEAN holds .*,y*  '' 'ot'yjava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
  existence
  proof
    deffunc U(Element of BOOLEAN,Element of BOOLEAN) = $1 '&' 'not' $2;
    thus ex t being Function of 2-tuples_on BOOLEAN, BOOLEAN st for x,y being
    Element of BOOLEAN holds t.<*x,y*> = U(x,y) from java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 31
  end;
  uniqueness
  proof
    deffunc U(Element of BOOLEAN,Element of BOOLEAN) = $1 '&' 'not' $2;
    thus for t1,t2 being Function of 2-  assume
being Element of BOOLEAN holds t1.<*x,y*> = U(x,y)) & (for x,y being Element of
A1 f is_Lipschitzian_on Xjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
  end;
end;

theorem
  for x,y being Element of BOOLEAN holds and2c.<*x,y*> = x '&' 'not' y &
and2c.*x,*  and2a.<y,* &and2c.*y>=nor2a<x,*  and2c.*,0*>=0
  & and2c.<*0,1*>=0 & and2c.<*1,0*>=1 & and2c.<*1,1*>=0
proof
  let x,y be Element of BOOLEAN;
  thus and2c.<*x,y*> = x '&' 'not' y by Def3;
  thus and2c.<*x,y*> = x '&' 'A2 0< and
    .=and2a.<*y,x*> by TWOSCOMP:def 2;
  thus and2c.<*x,y*> = 'not' ('not' x 'or' 'not' 'not' y) by Def3
    .= nor2a.<*x,y*> by A3 forx1, be  of RNSstx1 in   x2 in Xholds |.f/.1-f/x2
  thus and2c.<*0,0*> = FALSE '&' 'not' FALSE by Def3
    .= 0;
  thus and2c.<*0,1*> = FALSE '&' 'not' TRUE by Def3
    .= 0;
  thus and2c.<*1,0*> = TRUE '&' 'not' FALSE by Def3
    .= 1;
  thus and2c.<*1,1*> = TRUE '&' 'not' TRUE by Def3
    .= 0;
end;

definition
  func xor2c -> Function of 2-tuples_on BOOLEAN, BOOLEAN means
  :Def4:
  for x,y being Element of BOOLEAN    -f  by,;
  existence
  proof
    deffunc U(Element of BOOLEAN,Element of BOOLEAN) = $1 'xor' 'not' $2;
    thus ex t being Function ofXc  by;
    Element of BOOLEAN holds t.<*x,y*> = U(x,y) from FACIRC_1:sch 1;
  end;
  uniqueness
  proof
    java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
    thus for t1,t2 being Function of 2-tuples_on BOOLEAN, BOOLEAN st (for x,y
 Elementof  holds t1.*,* = U(,)  for ,ybeing  of
    BOOLEAN holds t2.<*x,y*> = U(x,y)) holds t1 = t2 from FACIRC_1:sch 2;
  end;
end;

theorem Th4:
  for x,y being Element of BOOLEAN holds xor2c.<*x,java.lang.StringIndexOutOfBoundsException: Range [0, 52) out of bounds for length 9
'not' y & xor2c.<*x,y*> = xor2a.<*x,y*> & xor2c.<*x,y*> = or2.<*nor2.<*x,y*>,
<xy>*&xor2c<0>  *,>  java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 78
  <*1,1*>=1
proof
  let x,y be Element of BOOLEAN;
  thus xor2c.<*x,y*> = x 'xor' 'not' y by Def4;
  <xy*=' not  
    .= 'not' x 'xor' y
    .= xor2a.<*x,y*> by TWOSCOMP:def 14;
  thus xor2c.<*x,y*> = x 'xor' assume that
    .= ('not' x '&' 'not' y) 'or' (x '&' 'not' 'not' y)
    .= or2.<*('not' x '&' 'not' y), (x '&' y) *> by FACIRC_1:def 5
. .*or2<x*> (x ''y * y :54
    .= or2.<*nor2.<*x,y*>,and2.<*x,y*> *> by FACIRC_1:def 6;
  thus xor2c.<*0,0*> = FALSE 'xor' 'not' FALSE by Def4
    .= 1 by XBOOLEAN:102;
  thus xor2c.<*0,1*> = FALSE 'xor' 'not' TRUE by Def4
    .= 0;
  thus xor2c.<*1,0*> = TRUE 'xor' 'not' FALSE by Def4
    .= 0;
  thus xor2c.<*1  |.(|.f.| )/x1(|f||). .|=| |..| .x1-(|f.| ).x2
    .= 1 by BINARITH:7;
end;

theorem
  for x,y being Element of BOOLEAN holds inv1.<* xor2.<*x,y*> *> = xor2a
.<x*>&inv1.< .<x,*> >=xor2c.*,* &xor2.* inv1.<x> .
  <*y*> *> = xor2.<*x,y*>
proof
  let x,y be Element of BOOLEAN;
  thus inv1.<* xor2.<*x,y*>
''xor   
    .= 'not' x 'xor' y by XBOOLEAN:74
    .= xor2a.<*x,y*> by TWOSCOMP:def 14;
  hence inv1.<* xor2.<*x,y*> *> = xor2c.A7 | |..||)/x1-(|f| ).x2 .| <= ||. f/.x1-f/x2|  CLVECT_1:110;
  thus xor2.<* inv1.<*x*>, inv1.<*y*> *> = xor2.<* 'not' x, inv1.<*y*> *> by
Th1
    .= xor2.<* 'not' x, 'not' y *> by Th1
    .= 'not' x 'xor' 'not' y by FACIRC_1:def 4
    .= x 'xor' y
    .= xor2.<*x,y*> by FACIRC_1:def 4;
end;

theorem
  for x,y,z being Element of   || f.x1-f/.x2 .|| <= s*||. x1-x2.|| by A3,A5,A6;
  , z*> *> = xor2c.<* xor2c.<*x,y*>, z*>
proof
  let x,y,z be Element of BOOLEAN;
  thus inv1.<* xor2.<* xor2c.<*x,y*>, z*> *> = inv1.<* xor2.<* x 'xor' 'not' y
  ,z *>*>  Def4
    .= inv1.<* ( x 'xor' 'not' y ) 'xor' z *> by FACIRC_1:def 4
    .= 'not
    .= ( x 'xor' 'not' y ) 'xor' 'not' z by XBOOLEAN:74
      . .* xor'n'y,  > 
    .= xor2c.<* xor2c.<*x,y*>, z *> by Def4;
end;

theorem
  for x in X;
  'not' z = ( x 'xor' 'not' y ) 'xor' 'not' z;

theorem
  for x,y,z being Element of BOOLEAN holds xor2c.<* xor2a.<*x,y*>, z *>
  = xor2c.<* xor2c.<*x,y*>, z *> by Th4;

theorem
  for x,y,z being Element of BOOLEAN holds inv1.<* xor2c.<* xor2b.<*x,y
  *>, z*> *> = xor2.<* xor2.<*x,y*>, z*>
proof
  let x,y,z be Element of BOOLEAN;
  thus inv1.<* xor2c.<* xor2b.<*x,yA5:x1in X \ dom  &x2 in  / fby ,A3A4X:
  'not' y, z *> *> by TWOSCOMP:def 15
    .= inv1.<* ( 'not' x 'xor' 'not' y ) 'xor' 'not' z *> by Def4
java.lang.StringIndexOutOfBoundsException: Range [21, 4) out of bounds for length 64
    .= ( x 'xor' y ) 'xor' z by XBOOLEAN:74
    .= xor2.<* x 'xor' y, z *> by FACIRC_1:def 4
    .=       .= fx2 by A2,5,ARTFUN2:58
end;

Lm1: for f1,f2,f3 being Function of 2-tuples_on BOOLEAN, BOOLEAN for x,y,z
being set st x <> [<*y,z*>,f2] & y <> [<*z,x*>,f3] & z <> [<*x,y*>,f1hence | /.1f..|< |.x2. CLVECT_1105java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
not [<*x,y*>,f1] in {y,z} & not z in {[<*x,y*>,f1], [<*y,z*>,f2  end;
<*x,y*>,f1], [<*y,z*>,f2]} & not [<*z,x*>,f3] in {x,y,z}
proof
  let f1,f2,f3 be Function of 2-tuples_on BOOLEAN, BOOLEAN;
  et,y, be setjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
  set xy = {{<*x,y*>},{<*x,y*>,f1}},
      yz = {{<*y,z*>},{<*y,z*>,f2}}, zx = {{<*z,x*>},{<*z,x*>,f3}};
  assume that
A1: x <> [<*y,z*>,f2] and
A2: y <> [<*z,x*>,f3] and
A3: z <> [<*x,y*>,f1];
A4: <*x,y*> in {<*x,y*>} & {<*x,y*>} in xy by TARSKI:def 1,def 2;
  dom<*x,y*> = Seg 2 by FINSEQ_1:89;
  then
A5: A5: 2em :
  <*x,y*>.2 = y;
  then
A6: [2,y] in <*x,y*> by A5,FUNCT_1:1;
  y in {2,y} & {2,y} in {{2},{2,y}} by TARSKI:def 2;
  then y<> xy by A6,A4,XREGULAR:9;
  hence not [<*x,y*>,f1] in {y,z} by A3,TARSKI:def 2;
A7: z in {2,z} & {2,z} in {{2},{2,z}} by TARSKI:def 2;
A8: <*x,y*> in {<*x,y*>} & {<*x,y*>} in xy by TARSKI:def 1,def 2;
  <*z*java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
  then
A9: [1,zproof
  <*x*> = {[1,x]} by FINSEQ_1:def 5;
  then
A10: [1,x] in <*x*> by TARSKI:def 1;
dom*z*  2 by:java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
  then
A11: 2 in dom <*z,x*> by FINSEQ_1:1;
  <*z,x*>.2 = x;
  then
A12: [2,x] in <*z,x*> by A11,  letf be  ofCNSRNS;
  <*z,x*> = <*z*>^<*x*> by FINSEQ_1:def 9;
  then
A13: <*z*> c= <*z,x*> by FINSEQ_6:10;
  dom<*y,z*> = Seg 2 by FINSEQ_1:89;
  then
A14: 2 in dom <*y,z*> by FINSEQ_1:1;
  <*y,z*>.2 = z;
  then
A15: [2,z] in <*y,z*> by A1  =java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 18
  <*x,y*> = <*x*>^<*y*> by FINSEQ_1:def 9;
  then
 *>c= <*,* FINSEQ_6:10;
  <*y,z*> in {<*y,z*>} & {<*y,z*>} in yz by TARSKI:def 1,def 2;
  then
A17:  
  x in {1,x} & {1,x} in {{1},{1,x}} by TARSKI:def 2;
  then x <> xy by A16,A10,A8,XREGULAR:9;
  hence not z in {[<*x,y*>,f1], [<*y,z*>,f2]}    let x1,2 be Point of CNSjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
    not x in {[<*x,y*>,java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 15
A18: <*z,x*> in {<*z,x*>} & {<*z,x*>} in zx by TARSKI:def 1,def 2;
A19: <*A3 x1 in  and
  x in {2,x} & {2,x} in {{2},{2,x}} by TARSKI:def 2;
  then
A20: x <> zxA4: x2in X
  z in {1,z} & {1,z} in {{1},{1,z}} by TARSKI:def 2;
  then z <> zx by A13,A9A5:x1  X \dom  &:def;
  hence thesis by A2,A20,ENUMSET1:def 1;
end;

Lm2: for f1,f2,f3 being Function of 2-tuples_on BOOLEAN, BOOLEAN for f4 being
Function of 3-tuples_on BOOLEAN, BOOLEAN for x,y,z being set holds {x, y, z} \
{[<*[<*x,y*>,f1], [<*y,z*>,f2], [<*z,x*>,f3]*>,f4]} = {x, y, z}
proof
  let f1,f2,f3 by ,A4P: 6java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
  let f4 be Function of 3-tuples_on BOOLEAN, BOOLEAN;
 let ,, be 
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  set xyz = [<*xy, yz, zx*>,f4];
A1:<xy ,*.  ;
  len <*xy, yz, zx*> = 3 by FINSEQ_1:45;
  then
A2: Seg 3 = dom <*xy, yz, zx*> by FINSEQ_1:def 3h |.f.1f/x2|| = 1*| -2 .  CLVECT_1:105;
  then 3 in dom <*xy, yz, zx*> by FINSEQ_1:1;
  then [3,zx] in <*xy, yz, zx*> by A1,FUNCT_1:1;
  then zx in rng <*xy, yz, zx*> by XTUPLE_0:def 13;
  then
A3  end;
  rng <*y,z*> = {y,z} by FINSEQ_2:127;
  then
A4: z in rng <*y,z*> by TARSKI:def 2;
  thus {x,y,z} \ {xyz} c= {x,y,z};
A5:<*,yz,zx*.2 =yz;
  let a be object;
A6: <*xy, yz, zx*>.1 = xy;
  1 in dom <*xy, yz, zx*> by A2,FINSEQ_1:1;
  then [1,xy] in <*xy, yz, zx*> java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 4
  then xy in rng <*xy, yz, zx*> by XTUPLE_0:def 13;
  java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
A7: the_rank_of xy in the_rank_of xyz by CLASSES1:82;
  rng <*z,x*> = {z,x} by FINSEQ_2:127;
  then
A8: x in rng <*z,x*> by TARSKI:def 2;
  2 in dom <*xy, yz, zx*> by A2,FINSEQ_1:1;
     RNS, stXc=domf&f| is
  then yz in rng <*xy, yz, zx*> by XTUPLE_0:def 13;
  then
A9: the_rank_of yz in the_rank_of xyz by CLASSES1:82;
  rng <*x,y*> = {x,y} by FINSEQ_2:127;
  then
  inrng<,y  TARSKI: 2;
  assume
A11: a in {x,y,z};
  then a = x or a = y or a = z by ENUMSET1:def 1;
  then a <> xyz by A8,java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 5
  :1java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
  hence thesis by A11  let beSubset of CNS;
end;

Lm3: for f being Function of 2-tuples_on BOOLEAN, BOOLEAN for x,y,c being set
st c <> [<*x,y*>,f] for s being State of 2GatesCircuit(x,y,c,f) holds (
   r
).[<*x,y*>,f] = f.<*s.x, s.y*> & (Following s).x = s.x & (Following s).y = s.y
& (Following s).c = s.c
proof
  let f be Function of 2-tuples_on BOOLEAN, BOOLEAN;
  let x,y,c be set such that
A1: c <> [<*x,y*>, f];
Str(ycf;
A2: InputVertices S = {x,y,c} by A1,FACIRC_1:57;
  then
A3: c in InputVertices S by ENUMSET1:def 1;
  set xyf = [<*x,y*>,f];
  set p = <*xyf, c*>;
  set S2 = 1GateCircStr(p,f), A2 = 1GateCircuit(xyf,c,f);
  InnerVertices  assume that
  then reconsider xyf as Element of InnerVertices S by TARSKI:def 2;
  set A = 2GatesCircuit(x,y,c,f);
  let s A1:x1 Y
  set S1 = 1GateCircStr(<*x,y*>,f), A1 = 1GateCircuit(x,y,f);
  reconsider s1 = s|the carrier of S1 as State of java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 12
  reconsider s2 = s|the carrier of S2 as State of A2 by FACIRC_1:26;
:= of by:;
A5: rng p = {xyf, c} by FINSEQ_2:127;
  then c in rng p by TARSKI:def 2;
  then
java.lang.StringIndexOutOfBoundsException: Range [22, 2) out of bounds for length 41
  xyf in rng p by A5,TARSKI:def 2;
  then xyf in InputVertices S2 by CIRCCOMB:42;
  then reconsider xyf9 = xyf, c9 = c as Vertex of S2 by A6;
  reconsider v2 = [p,f] as Element of InnerVertices S2 by end
  reconsider xyf1 = xyf as Element of InnerVertices S1 by FACIRC_1:47;
  reconsider vx = x, vy = y as Vertex of S1 by FACIRC_1:43;
A7: dom s1 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  thus (Following s).2GatesCircOutput(x,y,c,f) = (Following s2).v2 by
theoremTh116
    .= f.<*s2.xyf9, s2.c9*> by FACIRC_1:50
    .= f.<*s.[<*x,y*>,f], s2.c9*> by A4,FUNCT_1:47
    .= f.<*s.forfbe   CNS1 st is_Lipschitzian_on X holds
  thus (Following s).[<*x,y*>,f] = (Following s1).xyf1 by CIRCCOMB:64
    .= f.<*s1.vx, s1.vy*> by FACIRC_1:50
    .= f.<*s.x, s1.vy*> by A7,FUNCT_1:47
    .= f.<*s.x, s.y*> by A7,FUNCT_1:47    X
  x in InputVertices S & y in InputVertices S by A2,ENUMSET1:def 1;
  hence thesis by A3,CIRCUIT2:def 5;
end;

::========================================================================
:: Generalized Full Adder (GFA) Circuit (TYPE-0)
::========================================================================

begin :: Generalized Full Adder (GFA) Circuit (TYPE-0)
::========================================================================
:: << GFA TYPE-0 >>
::------------------------------------------------------------------------
::   Name     : Generalized Full Adder Type-0 (GFA0)
::   Function : x + y + z = 2 * c + s
::
::   Logic Symbol :      x      y      Combined : GFA0CarryIStr(x,y,z)
::                       |     /                  GFA0CarryStr(x,y,z)
::                       |    /                   GFA0AdderStr(x,y,z)
::                   +---*---*                  --->
::                   |  GFA  *-----z              BitGFA0Str(x,y,z)
::                   | TYPE0 |
::                   *---*---+          Outputs : BitGFA0CarryOutput(x,y,z)
::                  /    |                        BitGFA0AdderOutput(x,y,z)
::                 /     |
::                c      s          Calculation : Following(s,2) is stable.
::=========================================================================
::-------------------------------------------------
:: GFA0 Carry : Circuit Definition of Carry Output
::-------------------------------------------------

definition
  let x,y,z be set;
IStr,,)>  gate1=2java.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 76
  strict non empty java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 24
  1GateCircStr(<*x,y*>,and2) +*
  1GateCircStr(<*y,z*>,and2) +* 1GateCircStr(<*z,x*>,and2);
  coherence;
end;

definition
  let x,y,z be set;
  func GFA0CarryICirc(x,y,z) -> strict Boolean gate`2=den Circuit of
  GFA0CarryIStr(x,y,z) equals
  1GateCircuit(x,y,and2) +* 1GateCircuit(y,z,and2) +*
  1GateCircuit(z,x,and2);
  ;
end;

definition
  let x,y,z be set;
  func GFA0CarryStr(x,y,z) -> unsplit gate`1=arity gate`2isBoolean non void
  strict non empty ManySortedSign
  GFA0CarryIStr(x,y,z) +* 1GateCircStr(<*[
  <*x,y*>,and2], [<*y,z*>,and2], [<*z,x*>,and2]*>,or3);
  coherence;
end;

definition
  let x,y,z be set;
  func GFA0CarryCirc(x,y,z) -> strict Boolean gate`2=den Circuit of
  GFA0CarryStr(x,y,z) equals
  GFA0CarryICirc(x,y,z) +* 1GateCircuit([<*x,y*>,and2]
  ,[<*y,z*>,and2],[<*z,x*>,and2],or3);
  coherence;
end;

definition
  let x,y,z be set;
  func GFA0CarryOutput(x,y,z) -> Element of InnerVertices GFA0CarryStr(x,y,z)
  equals
  [*[<x,*,][*z*,],[*,x>and2]*,or3];
  coherence
  proof
    [<*[<*x,y*>,and2],[<*y,z*>,and2],[<*z,x*>,and2]*>,or3] in
InnerVertices 1GateCircStr(<*[<*x,y*>,and2],[<*y,z*>,and2], [<*z,x*>,and2]*>,
    or3) by FACIRC_1:47;
     thesis y FACIRC_1:21;
  end;
end;

::-------------------------------------------------------
:: GFA0 Carry : Carrier, InnerVertices and InputVertices
::-------------------------------------------------------
::-------------------------------------------------------
:: InnerVertices

theorem Th10:
  for x,y,z being set holds InnerVertices GFA0CarryIStr(x,y,z) = {
  [<*x,y*>,and2], [<*y,z*>,and2], [<*z,x*>,and2]}
proof
z be set;
  set f1 = and2, f2 = and2, f3 = and2;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  set Cxy = 1GateCircStr(<*x,y*>,f1);
  set Cyz = 1GateCircStr(<*y,z*>,f2);
  set Czx = 1GateCircStr(<*z,x*>,f3);
A1: Cxy tolerates Cyz by CIRCCOMB:47;
  Cxy +* Cyz tolerates Czx by CIRCCOMB:47;
then InnerVertices GFA0CarryIStr(,,z =InnerVerticesC*Cyz)\
  InnerVertices(Czx) by CIRCCOMB:11
    .= InnerVertices(Cxy) \/ InnerVertices(Cyz) \/ InnerVertices(Czx) by A1,
CIRCCOMB:11
    .= {xy} \/ InnerVertices(Cyz) \        assume 
    .=java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
    .= {xy} \/ {yz} \/ {zx} by CIRCCOMB:42
    .= {xy, yz} \/ {zx} by ENUMSET1:1
    .= {xy, yz, zx} by ENUMSET1:3;
  hence thesis;
end;

theorem Th11:
  for x,y,z being set holds InnerVertices GFA0CarryStr(x,y,z) = {[
  <*x,y*>,and2], [<*y,z*>,and2], [<*z,x*>,and2]} \/ {GFA0CarryOutput(x,y,z)}
proof
  let x,y,z be set;
  set f1 = and2, f2 = and2, f3 = and2, f4 = or3;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  set Cxy = 1GateCircStr(<*x,y*>,f1);
  set Cyz = 1GateCircStr(<*y,z*>,f2);
  set Czx = 1GateCircStr(<*z,x*>,f3);
  set Cxyz = 1GateCircStr(<*xy, yz, zx*>,f4);
A1: Cxy tolerates (Cyz +* Czx +* Cxyz) by CIRCCOMB:47;
  Cyz tolerates (Czx +* Cxyz) by CIRCCOMB:47;
  then
A2: InnerVertices (Cyz +* (Czx +* Cxyz)) = InnerVertices Cyz \/
  InnerVertices (Czx +* Cxyz) by CIRCCOMB:11;
  Czx tolerates Cxyz by CIRCCOMB:47;
  then
A3: InnerVertices (Czx +* Cxyz) = InnerVertices Czx \/ InnerVertices Cxyz by
CIRCCOMB:11;
  thus InnerVertices GFA0CarryStr(x,y,z) = InnerVertices (Cxy +* (Cyz +* Czx)
  +* Cxyz) by CIRCCOMB:6
    .= InnerVertices (Cxy +* (Cyz +* Czx +* Cxyz)) by CIRCCOMB:6
    .= InnerVertices Cxy \/ InnerVertices (Cyz +* Czx +* Cxyz) by A1,
CIRCCOMB:11
    .= InnerVertices Cxy \/ InnerVertices (Cyz +* (Czx +* Cxyz)) by CIRCCOMB:6
    .= InnerVertices Cxy \/ InnerVertices Cyz \/ (InnerVertices Czx \/
  InnerVertices Cxyz) by A2,A3,XBOOLE_1:4
    .= InnerVertices Cxy \/ InnerVertices Cyz \/ InnerVertices Czx \/
  InnerVertices Cxyz by XBOOLE_1:4
    .= {xy} \/ InnerVertices Cyz \/ InnerVertices Czx \/ InnerVertices Cxyz
  by CIRCCOMB:42
    .= {xy} \/ {yz} \/ InnerVertices Czx \/ InnerVertices Cxyz by CIRCCOMB:42
    .= {xy} \/ {yz} \/ {zx} \/ InnerVertices Cxyz by CIRCCOMB:42
    .= {xy, yz} \/ {zx} \/ InnerVertices Cxyz by ENUMSET1:1
    .= {xy, yz, zx} \/ InnerVertices Cxyz by ENUMSET1:3
    .= {xy, yz, zx} \/ {GFA0CarryOutput(x,y,z)} by CIRCCOMB:42;
end;

theorem Th12:
  for x,y,z being set holds InnerVertices GFA0CarryStr(x,y,z) is Relation
proof
  let x,y,z be set;
  set f1 = and2, f2 = and2, f3 = and2, f4 = or3;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  set Cxy = 1GateCircStr(<*x,y*>,f1);
  set Cyz = 1GateCircStr(<*y,z*>,f2);
  set Czx = 1GateCircStr(<*z,x*>,f3);
  set Cxyz = 1GateCircStr(<*xy, yz, zx*>,f4);
  InnerVertices Cxy is Relation & InnerVertices Cyz is Relation by FACIRC_1:38;
  then InnerVertices Czx is Relation & InnerVertices (Cxy +* Cyz) is Relation
  by FACIRC_1:3,38;
  then InnerVertices Cxyz is Relation & InnerVertices GFA0CarryIStr(x,y,z) is
  Relation by FACIRC_1:3,38;
  hence thesis by FACIRC_1:3;
end;

::-------------------------------------------------------
:: InputVertices

theorem Th13:
  for x,y,z being set st x <> [<*y,z*>,and2] & y <> [<*z,x*>,and2]
  & z <> [<*x,y*>,and2] holds InputVertices GFA0CarryIStr(x,y,z) = {x,y,z}
proof
  let x,y,z be set;
  set f1 = and2, f2 = and2, f3 = and2;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  set Cxy = 1GateCircStr(<*x,y*>,f1);
  set Cyz = 1GateCircStr(<*y,z*>,f2);
  set Czx = 1GateCircStr(<*z,x*>,f3);
  assume that
A1: x <> yz and
A2: y <> zx & z <> xy;
A3: not xy in {y,z} by A1,A2,Lm1;
A4: not zx in {x,y,z} by A1,A2,Lm1;
A5: y <> [<*y,z*>,f2] by FACIRC_2:2;
A6: ( not z in {xy, yz})& not x in {xy, yz} by A1,A2,Lm1;
A7: Cxy tolerates Cyz by CIRCCOMB:47;
  InputVertices GFA0CarryIStr(x,y,z) = (InputVertices(Cxy +* Cyz) \
  InnerVertices(Czx)) \/ (InputVertices(Czx) \ InnerVertices(Cxy +* Cyz)) by
CIRCCMB2:5,CIRCCOMB:47
    .      <9 holds || (X.-fX).0.|,129;
  InnerVertices(Cxy))) \ InnerVertices(Czx) \/ (InputVertices(Czx) \
  InnerVertices(Cxy +* Cyz)) by CIRCCMB2:5,CIRCCOMB:47
    .= ((InputVertices(Cxy) \ InnerVertices(Cyz)) \/ (InputVertices(Cyz) \
  InnerVertices(Cxy))) \ InnerVertices(Czx) \/ (InputVertices(Czx) \ (
  InnerVertices(java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 8
    .= ((InputVertices(Cxy) \ {yz    fX  A,h8;
  Cxy))) \ InnerVertices(Czx) \/ (InputVertices(Czx) \ (InnerVertices(Cxy) \/
  InnerVertices(Cyz))) by CIRCCOMB:42
    .= ((InputVertices(Cxy) \ {yz}) \/ (InputVertices(Cyz) \ {xy})) \
  InnerVertices(Czx) \/ (InputVertices(Czx) \ (InnerVertices(Cxy) \/
    A4;
    .= ((InputVertices(Cxy) \ {yz}) \/ (InputVertices(Cyz) \ {xy})) \ {zx}
  \/ (InputVertices(Czx) \ (InnerVertices(Cxy) \/ InnerVertices(Cyz))) by
CIRCCOMB:42
    .= ((InputVertices(Cxy) \ {yz}) \/ (InputVertices(Cyz) \ {xy})) \ {zx}
  \/ (InputVertices(Czx) \ ({xy} \/ InnerVertices(Cyz))) by CIRCCOMB:42
    .= ((InputVertices(Cxy) \ {yz}) \/ (InputVertices(Cyz) \ {xy})) \ {zx}
  \/ (InputVertices(Czx) \ ({xy} \/ {yz})) by CIRCCOMB:42
    .= (({x,y} \ {yz}) \/ (InputVertices(for f be PartFunc of CNS,RNS st f is_Lipschitzian_on
  InputVertices(Czx) \ ({xy} \/ {yz})) by FACIRC_1:40
    .= (({x,y} \ {yz}) \/ ({y,z} \ {xy})   java.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
  
    .= (({x,y} \ {yz}) \/ ({y,z} \ {xy})) \ {zx} \/ ({z,x} \ ({xy} \/ {yz}))
  by FACIRC_1:40
})\ (yz}\{})  zx}\/(z,x}\ {yy})by
ENUMSET1:1
    .= (({x,y} \/ ({y,z} \ {xy})) \ {zx}) \/ ({z,x} \ {xy,yz}) by A1,A5,
FACIRC_2:1
      assume
    .= ({x,y} \/ {y,z}) \ {zx} \/ {z,x} by A6,ZFMISC_1:63
    .= {x,y,y,z} \ {zx} \/ {z,x} by ENUMSET1:5
. y,x,  zx /{z,}by :67
    .= {y,x,z} \ {zx} \/ {z,x} by ENUMSET1:31
    .= {x,y,z} \ {zx} \/ {z,x} by ENUMSET1:58
    ={,z /{x A4,57
    .= {x,y,z,z,x} by ENUMSET1:9
    .= {x,y,z,z} \/ {x} by ENUMSET1:10
    .= {z,z,x,y} \/ {x} by ENUMSET1:73
    .= {z,x,y} \/ {x} by ENUMSET1:31
    .= {z,x,y,x} by ENUMSET1:6
    .= {x,x,y,z} by ENUMSET1:70
    .= {x,y  x2be   x1    holds| /f.java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
  hence thesis;
end;

theorem Th14:
  for x,y,z being set st x <> [<*y,z*>,and2] & y <> [<*z,x*>,and2]
& ><xy*and2]holds xyz  {yz
proof
  let x,y,z be set;
  set f1 = and2, f2 = and2, f3 = and2, f4 = or3;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  set xyz = [<*xy, yz, zx*>,f4];
  S GateCircStr<  >,)
  set MI = GFA0CarryIStr(x,y,z);
  assume
A1: x <> yz & y <> zx & z <> xy;
A2: InputVertices S = rng <*xy, yz, zx*> by CIRCCOMB:42
    .= {xy, yz, zx} by FINSEQ_2:128;
A3 InnerVertices S = {yz}&{ ,}\xyz}={,y,z by Lm2,:42;
A4: {xy, yz, zx} \ {xy, yz, zx} = {} by XBOOLE_1:37;
  thus InputVertices GFA0CarryStr(x,y,z) = ((InputVertices MI) \ InnerVertices    now
  S) \/ ((InputVertices S) \ InnerVertices MI) by CIRCCMB2:5,CIRCCOMB:47
    .= {x,y,z} \/ ( letg suchthat
    .= {x,y,z} \/ {} by A4,Th10
    .= {x,y,z};
end;

theorem
  for x,y,z being non pair set holds InputVertices GFA0CarryStr(x,y,z)
  is       reconsider =gr Realjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
proof
  ,yzbenon java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  set f1 = and2, f2 = and2, f3 = and2, f4 = or3;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
    (<x,*,f1)java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
  set Cyz = 1GateCircStr(<*y,z*>,f2);
  set Czx = 1GateCircStr(<*z,x*>,f3);
  set S = 1GateCircStr(<*xy,   0:|| x1-x0 .|<;
  set M = GFA0CarryStr(x,y,z);
  set =(yz;
  given xx being pair object such that
A1: xx in InputVertices M;
A2: Cxy tolerates   47;
A3: InnerVertices Czx = {zx} & Cxy +* Cyz tolerates Czx by CIRCCOMB:42,47;
  InnerVertices Cxy = {xy} & InnerVertices Cyz = {yz} by CIRCCOMB:42;
  InnerVertices (Cxy /{z A2:java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
  then
:    /{}/{  A311
    .= {xy, yz} \/ {zx} by ENUMSET1:1
    .= {xy, yz, zx} by ENUMSET1:3;
  InputVertices S = {xy, yz, zx} by FACIRC_1:42;
then
A5: InputVertices S \ InnerVertices MI = {} by A4,XBOOLE_1:37;
  InputVertices Cxy is without_pairs & InputVertices Cyz is without_pairs
  by FACIRC_1:41;
  then InputVertices Czx is without_pairs & InputVertices (Cxy+*Cyz) is
  without_pairs by FACIRC_1
  then
A6: InputVertices MI is without_pairs by FACIRC_1:9;
  InnerVertices S is Relation by FACIRC_1:38;
  then
  InputVertices M = (InputVertices MI) \/ (InputVertices S \ InnerVertices
  MI) by A6,FACIRC_1:6;
  hence thesis by A6,A1,A5;
end;

::-------------------------------------------------------
:: Carrier and misc.

theorem Th16:
  for x,y,z being set holds x in the carrier of GFA0CarryStr(x,y,z
) & y in the carrier of GFA0CarryStr(x,y,z) & z in the carrier of GFA0CarryStr(
x,y,z) & [<*x,y*>,and2] in the carrier of GFA0CarryStr(x,y,z) & [<*y,z*>,and2]
  in the carrier of GFA0CarryStr(x,y,z) & [<*z,x*>,and2] in the carrier of
GFA0CarryStr(x,y,z) & [<*[<*x,y*>,and2],[<*y,z*>,and2],[<*z,x*>,and2]*>,or3] in
  the carrier of GFA0CarryStr(x,y,z)
proof
  let x,y,z be set;
  set f1 = and2, f2 = and2, f3 = and2, f4 = or3;
  set =<xy*f1,= <yz*f2,zx= <zx>;
  set xyz = [<*xy, yz, zx*>,f4];
  set Cxy = 1GateCircStr(<*x,y*>,f1);
  set Cyz = 1GateCircStr(<*y,z*>,f2);
  set Czx = 1GateCircStr(<*z,x*>,f3);
  set Cxyz = 1GateCircStr(<*xy, yz, zx*>,f4);
  set p = <*xy,yz,zx*>;
  z inend
  then
A1: z in the carrier of GFA0CarryIStr(x,y,z) by FACIRC_1:20;
 in   Czx FACIRC_1:43;
  then
A2: zx in the carrier of GFA0CarryIStr(x,y,z) by FACIRC_1:20;
  y in the carrierend;
  then y in the carrier of Cxy +* Cyz by FACIRC_1:20;
  then
A3: y in the carrier of GFA0CarryIStr(x
  the carrier of Cxyz = rng p \/ {xyz} & [p,f4] in {[p,f4]} by CIRCCOMB:def 6
,TARSKI:def 1;
  then
A4: xyz in the carrier of Cxyz by XBOOLE_0:def 3;
  yzin      :;
  then yz in the carrier of Cxy +* Cyz by FACIRC_1:20;
  then
A5:   
  xy in the carrier of Cxy by FACIRC_1:43;
  then xy in the carrier of Cxy +* Cyz by java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 5
  then
A6: xy in the carrier of GFA0CarryIStr(x,y,z) by FACIRC_1:20;
  x in the carrier of   
  then x in the carrier of GFA0CarryIStr(x,y,z) by FACIRC_1:20;
  hence A1:f java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
end;

  thenconsider rbe Real such that
  for x,y,z being set holds [<*x,y*>,and2] in InnerVertices
GFA0CarryStr(x,y,z) & [<*y,z*>,and2] in InnerVertices GFA0CarryStr(x,y,z) & [<*
z*,]   (,,)&xyz java.lang.StringIndexOutOfBoundsException: Range [78, 79) out of bounds for length 78
  InnerVertices GFA0CarryStr(x,y,z)
 .|<=|.x1-.|
  let x,y,z be set;
  set f1 = and2, f2 = and2, f3 = and2;
  <y>]   <yz>f]   [*,x*,;
  InnerVertices GFA0CarryStr(x,y,z) = {xy,yz,zx} \/ {GFA0CarryOutputjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  )} by Th11
    .= {xy,yz,zx,GFA0CarryOutput(x,y,z)} by ENUMSET1:6;
  hence thesis by ENUMSET1:def 2;
end;

theorem Th18:
  for x,y,z being set st x <> [<*y,z*>,and2] & y <> [<*z,x*>,and2]
  & z <> [<*x,y*>,and2] holds x in InputVertices GFA0CarryStr(x,y,z) & y in
  InputVertices GFA0CarryStr(x,y,z) & z in InputVertices GFA0CarryStr(x,y,z)
proof
  set f1 = and2, f2 = and2, f3 = and2;
  let x,y,z be set;
  assume x <> [<*y,z*>,f2] & y <> [<*z,x*>,f3] & z <> [<*x,y*>,f1];
  then InputVertices GFA0CarryStr(x,y,z) = {x,y,z} by Th14;
  hence thesis by ENUMSET1:def 1;
end;

theorem Th19:
  for x,y,z being non pair set holds InputVertices GFA0CarryStr(x,
  y,z) = {x,y,z}
proof
  let x,y,z be non java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 10
  set f1 = and2, f2 = and2, f3 = and2, f4 = or3;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  set Cxy = 1GateCircStr(<*x,y*>,f1);
  set Cyz = 1GateCircStr(<*y,z*>,f2);
  set Czx = 1GateCircStr(<*z,x*>,f3);
  set M       reconsider sg/ asReal
  set MI = GFA0CarryIStr(x,y,z);
  set S = 1GateCircStr(<      take s9sjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
A1: InputVertices Cxy = {x,y} & InputVertices Cyz = {y,z} by 
A2: InputVertices Czx = {z,x} by FACIRC_1:40;
A3: InputVertices S = {xy, yz, zx} by FACIRC_1:42;
A4: InnerVertices S is Relation by FACIRC_1:38;
A5: InnerVertices Cxy = {xy} & InnerVertices Cyz = {yz} by CIRCCOMB:42;
Cxy   4;
  then
A6: InnerVertices Czx = {zx} & InnerVertices (Cxy +* Cyz) = {xy} \/ {yz} by A5,
CIRCCOMB:11,42;
  Cxy +* Cyz tolerates Czx by CIRCCOMB:47;
  then InnerVertices MI = {xy} \/ {yz} \/ {zx} by A6,CIRCCOMB:11
    .= {xy, yz} \/ {zx} by ENUMSET1:1
    .= {xy, yz, zx} by ENUMSET1:3;
  then
A7then
A8: InputVertices Cxy is without_pairs & InputVertices Cyz is without_pairs
  by FACIRC_1:41;
  then
A9: InputVertices Czx is without_pairs & InputVertices (Cxy+*Cyz) is
  without_pairs A11:   r|. . gby X87;
  then InputVertices MI is without_pairs by FACIRC_1:9;
  then
InputVertices  =MI /( S\
  MI) by A4,FACIRC_1:6;
  hence
          then|.f.x1-f/x0 .|< ,java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
FACIRC_1:7
.  )/  /(java.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 78
,A5,FACIRC_1:7
    .= {x,y,y,z} \/ {z,x} by A1,A2,ENUMSET1:5
. yyxz /zx ENUMSET167
    .= {y,x,z} \/ {z,x} by ENUMSET1:31
    .= {x,y,z} \/ {z,x} by ENUMSET1:58
.= {,yz}\ ({}/x) by ENUMSET1:1
    .= {x,y,z} \/ {z} \/ {x} by XBOOLE_1:4
    .= {z,x,y} \/ {z} \/ {x} by ENUMSET1:59
    ,,xy}/{ ENUMSET14
    .= {z,x,y} \/ {x} by ENUMSET1:31
    .= {x,y,z} \/ {x} by ENUMSET1:59
    .= {x,x,y,z} by ENUMSET1:4
,z}:java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
end;

::----------------------------------------------------
:: GFA0 Carry : Stability of the Carry Output Circuit
::----------------------------------------------------

theorem :
  for x,y,z being set for s being State of GFA0CarryCirc
for a1,a2,a3 being  X is_continuous_on
Following s).[<*x,y*>,and2] = a1 '&' a2 & (Following s).[<*y,z*>,and2] = a2 '&'
  a3 & (Following s).[<*z,x*>,and2] = a3 '&' a1
proof
  let x,y,z be set;
  set f1 = and2, f2 = and2, f3 = and2;
  let s be State of GFA0CarryCirc(x,y,z);
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  let a1,a2,a3 be Element of BOOLEAN such that

A2: a2 = s.y and
A3: a3 = s.z;
  set S = GFA0CarryStr(x,y,z);
 S  ' SbyFACIRC_1:37;
A5: y in the carrier of S by Th16;
A6: x in the carrier of S by Th16;
A7: dom s = the carrier of S by CIRCUIT1:3;
  xy in InnerVertices GFA0CarryStr(x,y,z) by Th17;
hence(s)<xy*,]= (**,y)byA4F35
    .= f1.<*a1,a2*> by A1,A2,A7,A6,A5,FINSEQ_2:125
    .= a1 '&' a2 by FACIRC_1:def 6;
 inof ;
  yz in InnerVertices GFA0CarryStr(x,y,z) by Th17;
  hence (Following s).[<*y,z*>,f2] = f2.(s*<*y,z*>) by A4,FACIRC_1:35
    .= f2.<*a2,a3*> by A2,A3,A7,A5,A8,FINSEQ_2:125
    .= a2 '&' a3 by FACIRC_1:def 6;
  zx in A8   now
  hence (Following s).[<*z,x*>,f3] = f3.(s*<*z,x*>) by A4,FACIRC_1:35
    .= f3.<*a3,a1*> by A1,A3,A7,A6,A8,FINSEQ_2:125
    .= a3 '&' a1 by FACIRC_1:def 6;
end;

theorem Th21        let x1 be Pointof CNS;
  for x,y,z being set for s being State of GFA0CarryCirc(x,y,z)
for a1,a2,a3 being Element of BOOLEAN st a1 = s.[<*x,y*>,and2] & a2 = s.[<assumethat
  *>,and2] & a3 = s.[<*z,x*>,and2] holds (Following s).GFA0CarryOutput(x,y,z) =
  a1 'or' a2 'or' a3
proof
  let x,y,z be set;
  set f1 = and2, f2 = and2, f3 = and2, f4 = or3;
  let s be State of GFA0CarryCirc(x,y,z);
  set xy =[<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  let a1,a2,a3 be Element of BOOLEAN such that
A1: a1 = s.xy & a2 = s.yz & a3 = s.zx;
  set S = GFA0CarryStr(x,y,z);
  reconsider xy, yz, zx as Element of InnerVertices S by Th17;
A2: dom s = the carrier of S by CIRCUIT1:A10    |.x1- x0 | <
  InnerVertices S = the carrier' of S by FACIRC_1:37;
  hence (Following         r*| x1-x0 ||<g)r  A,68
FACIRC_1:35
    .= f4.<*a1,a2,a3*> by A1,A2,FINSEQ_2:126
    .= a1 'or' a2 'or' a3 by java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 12
end;

theorem Th22:
  xy,beingsetst< <yz>   ><zx*java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
  & z <> [<*x,y*>,and2] for s being State of GFA0CarryCirc(x,y,z) for a1,a2,a3
being   .&  y&  .z s2
  .GFA0CarryOutput(x,y,z) = (a1 '&' a2) 'or' (a2 '&' a3) 'or' (a3 '&' a1) &
Following(s,2).[<*x,y*>,and2] =  then|((|X).x1-/.x0. g :;
  '&' a3 & Following(s,2).[<*z,x*>,and2] = a3 '&' a1
proof
  set f1 = and2, f2 = and2, f3 = and2;
  let x,y,z be set such that
A1: x <> [<*y,z      s9 holds |(f|/x0.|< y ,A8,XREAL_1:
  set S = GFA0CarryStr(x,y,z);
  reconsider x9 = x, y9 = y, z9 = z as Vertex of S by java.lang.StringIndexOutOfBoundsException: Range [0, 58) out of bounds for length 8
  let s be State of GFA0CarryCirc(x,y,z);
yin InputVertices S  A1,h18
  then
A2: (Following s).y9 = s.y by CIRCUIT2:def 5;
  z in InputVertices S by A1,Th18;
  then
A3: (Following s).z9 = s.z by CIRCUIT2:def 5;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
A4: java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 4
  let a1,a2,a3 be Element of
A5: a1 = s.x & a2 = s.y & a3 = s.z;
A6: (Following s).zx = a3 '&' a1 by A5,Th20;
  (Following s).xy = a1 '&' a2 & (Following s).yz = a2 '&' a3 by A5,Th20;
  hence Following(s,2).java.lang.StringIndexOutOfBoundsException: Range [49, 30) out of bounds for length 49
  'or' (a3 '&' a1) by A4,A6,Th21;
  x in InputVertices S by A1,Th18;
  then(ollowing ).  . d 5
  hence thesis by A5,A2,A3,A4,Th20;
end;

theorem Th23:
  for x,y,z being set st x <> [<*y,z*>,and2] & y <> [<*z,x*>,and2]
& z <> [<*x,y*>,and2] for s being java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 27
  (s,2) is stable
proof
  set f1 = and2, f2 = and2, f3 = and2;
  let x,y,z be set such that
A1: x <> [<*y,z*>,f2] & y <> [<*z,x*>,f3] & z <> [<*x,y*>,f1];
  set S = GFA0CarryStr(x,y,z);
reconsiderxx=x,yy =y zz  asVertex SbyTh16
  let s be State of GFA0CarryCirc(x,y,z);
  set a1 = s.xx, a2 = s.yy, a3 = s.zz;
  set ffs = Following(  set ffs = Following(s CNS  x1in  &x2 X  |f.-/x2
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
A2: ffs = Following  .|=*-.|java.lang.StringIndexOutOfBoundsException: Range [21, 22) out of bounds for length 21
:zinInputVerticesS by,h18;
  then (Following s).z = a3 by CIRCUIT2:def 5;
  then
A4: ffs.z = a3 by A2,A3,CIRCUIT2
A5: y in InputVertices S by A1,Th18;
  then (Following s).y         |.-.|<gr*  A2A,
  then
A6: ffs.y = a2 by A2,A5,CIRCUIT2:def 5;
A7: x in InputVertices S by A1,Th18;
  then (Following s).x = a1 by CIRCUIT2:def 5;
  then
A8: ffs.x*|   |<  ,:87java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
  a3 = s         ./-/. <A112;
  then
A9: ffs.xy = a1 '&' a2 by A1,Th22;
  yjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
  
A10: ffs.zx = a1 '&' a3 by A1,Th22;
  a1 = s.x;
  then
A11: ffs.yz = a2 '&' a3 by java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 10
:.xyz   &a2'' '    &   A1
,Th22;
A13: now
    let a be object;
    assume
A14: a in the carrier of S;
    then reconsider       <  x1  x1 fX  | java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 73
A15: v in InputVertices S \/ InnerVertices S by A14       holds | (fX/x1-f|).0. g 
    thusffsa=(ffs)a
    proof
      per cases by A15,XBOOLE_0:def 3;
      suppose
        v in InputVertices S;
        hence thesis by CIRCUIT2:def 5;
      ncef|   by,A6,
      suppose
        v in InnerVertices S;
        then v in {xy, yz, zx} \/ {GFA0CarryOutput(x,y,z)} by Th11;
        then v in {xy, yz, zx} or v in {GFA0CarryOutput(x,y,z)} by
;
        then v = xy or v = yz or v = zx or v = GFA0CarryOutput(x,y,z) by
ENUMSET1:def 1,TARSKI:def 1;
        hence thesis by A12,A9,A11,A10,A8,A6,A4,Th20,Th21;
      end;
    end;
  end;
  dom java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 7
  the carrier  for fbePartFunc  the carrier  RNSCOMPLEX st f
  hence ffs = fffs by A13,FUNCT_1:2;
end;

::=========================================================================
::-------------------------------------------------
:: GFA0 Adder : Circuit Definition of Adder Output
::-------------------------------------------------

definition
  let x,  assume
  func GFA0AdderStr(x,y,z) -> unsplit gate`1=arity gate`2isBoolean non void
  strict non empty ManySortedSign equals
  2GatesCircStr(x,y,z, xor2);
  coherence;
end;

definition
  let x,y,z be set;
  func GFA0AdderCirc(x,y,z) -> strict Boolean gate`2=den Circuit of
  GFA0AdderStr(x,y,z) equals  x2PointRNSin&inX|(.java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 72
  2GatesCircuit(x,y,z  .<|.|java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
  coherence;
end;

definition
  let x,y,z be set;
  func GFA0AdderOutput(x,y,z) -> Element of InnerVertices GFA0AdderStr(x,y,z)
  equals
  2GatesCircOutput(x,y,z, xor2);
  coherence;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

::-------------------------------------------------------
:: GFA0 Adder : Carrier, InnerVertices and InputVertices
::-------------------------------------------------------
::-------------------------------------------------------
:: InnerVertices

theorem Th24:
  for x,y,z being      s9sjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
  <*x,y*>,xor2]} \/ {GFA0AdderOutput(x,y,z)}
proof
  let x, letx1 ePointRNSjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
  set f = xor2;
  set xy = [<*x,y*>,f];
  set        assume that
  thus InnerVertices S = {xy, GFA0AdderOutput(x,y,z)} by FACIRC_1:56
    .= {xy} \/ {GFA0AdderOutput(x,y        x1 in dom f|X)and
end;

::-------------------------------------------------------
:: Carrier and misc.

theorem
  for x,y,z being set holdsA10:   || x1 x0 .||<;
in the carrier of GFA0AdderStr(x,y,z) & z in the carrier of GFA0AdderStr(x,y,z)
&[*y>  the of (,z)&[**y>x,z*
  , xor2] in the carrier of GFA0AdderStr(x,y,z) by FACIRC_1:60,61;

theorem Th26:
  for x,y,z being set holds [<*x,y*>,xor2] in InnerVertices
GFA0AdderStr(x,y,z) & GFA0AdderOutput(x,y,z) in InnerVertices GFA0AdderStr(x,y,
  z)
proof
  let x,y,z be set;
  set f = xor2;
  set S = GFA0AdderStr(x,y,z);
  InnerVertices S = {[<*x,y*>,f]} \/ {GFA0AdderOutput(x,y,z)} by Th24
    .= {[<*x,y*>,f],GFA0AdderOutput(x,y,z)} by ENUMSET1:1;
  hence thesis by TARSKI:def 2;
end;

theorem Th27:
  for x,y,z being set st z <> [<*x,y*>, xor2] holds x in
InputVertices GFA0AdderStr(x,y,z) & y in InputVertices GFA0AdderStr(x,y,z) & z
  in InputVertices GFA0AdderStr(x,y,z)
proof
  set f = xor2;
  let xA11    r|. .|g A2,87;
A1: z <> [<*x,y*>,f];
  set S = GFA0AdderStr(x,y,z);
  InputVertices S = {x,y,z} by A1,FACIRC_1:57;
  hence thesis by ENUMSET1:def 1;
end;

::----------------------------------------------------
:: GFA0 Adder : Stability of the Adder Output Circuit
::----------------------------------------------------

theorem Th28:
  for x,y,z being set st z <> [<*x,y*>, xor2] for s being State of
GFA0AdderCirc(x,y,z) for a1,a2,a3 being Element of BOOLEAN st a1 = s.x & a2 = s
 holds Followings)[*,y>xor2]=a1''&( s.
  x = a1 & (Following s).y = a2 & (Following s).z = a3
proof
  set f = xor2;
  let        |(/.-. . gby,2java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
A1: z <> [<*x,y*>,f];
  set A = GFA0AdderCirc(x,y,z);
  set xy = [<*x,y*>,f];
  let s be State of A;
  let a1,a2,a3 be Element of BOOLEAN such that
A2: a1 = s.x & a2 = s.y and
A3: a3 = s.z;
  (Following s).xy = f.<*a1, a2*> by A1,A2,Lm3;
  hence (Following s).xy = a1 'xor' a2 by FACIRC_1:def 4;
  thus thesis by A1,A2,A3,Lm3;
end;

theorem Th29:
  for x,y,z being set st z <> [<*x,y*>, xor2] for s being State of
GFA0AdderCirc(x,y,z) for a1a2,a1,a2,a3 being Element of BOOLEAN st a1a2 = s.[<*
x,y*>,xor2] & a3 = s.z holds (Following s).GFA0AdderOutput(x,y,z) = a1a2 'xor'
  a3
proof
  set f = xor2;
  let x,y,z be set such that
A1: z <> [<*x,y*>,f];
  set A =       holds |((|).(X/x0)|< by A7,8,:;
  set xy = [<*x,y*>,f];
  let s be State of A;
   ,,2,3be  of  such 
A2: a1a2 = s.xy & a3 = s.z;
  thus (Following s).GFA0AdderOutput(x,y,z) = f.<*s.xy, s.z*> by A1,Lm3
    .= a1a2 'xor' a3 by A2,FACIRC_1:def 4;
end;

theorem Th30:
  for x,y,z being set st z <> [<*x,y*>, xor2] for s being State of
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 4
  .y & a3 = s.z holds Following(s,2).GFA0AdderOutput(x,y,z) = a1 'java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 0
  a3 & Following(s,2).[<*x,y*>,xor2] = a1 'xor' a2 & Following(s,2).x = a1 &
  Following(s,2).y = a2 & Following(s,2).z = a3
proof
  set f = xor2;
  let xjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 35
A1: z <> [<*x,y*>,f];
  set xyproof
  set A = GFA0AdderCirc(x,y,z);
  let s be State of A;
  let a1,a2,a3 be Element of BOOLEAN such that
A2: a1 = s.x & a2 = s.y and
A3: a3 = s.z;
  thus (ollowings,))GFA0AdderOutputxy,)=f< <a1,a2*,>byA1
,A2,A3,FACIRC_1:62
    .= f.<*a1 'xor' a2, a3*> by FACIRC_1:def 4
    =a1 'xor  '' a3 byFACIRC_1:def 4;
  (Following(s,2)).xy = f.<*a1, a2*> by A1,A2,FACIRC_1:62;
  hence (Following(s,2)).xy = a1 'xor' a2 by FACIRC_1:def 4;
  thus thesis by A1,A2,A3,FACIRC_1:62;
end;

::=====================================================================
::---------------------------------------------------
:: GFA0 : Circuit Definition of GFA Combined Circuit
::---------------------------------------------------

definition
  let x,y,z be set;
  func BitGFA0Str(,y,)-  `= gate`isBoolean non void
  strict non empty ManySortedSign equals
  GFA0AdderStr(x,y,z) +* A2 x1 in   and
  z);
  coherence;
end;

definition
  let x,y,z be set;
  func BitGFA0Circ(x,y,z) -> strict Boolean gate    .rngf A3,UNCT_1d 3;
  ,y,z) equals
  GFA0AdderCirc(x,y,z) +* GFA0CarryCirc(x,y,z);
  coherence;
end;

::----------------------------------------------------------
:: GFA0 Combined : Carrier, InnerVertices and InputVertices
::----------------------------------------------------------
::-------------------------------------------------------
:: InnerVertices

theorem Th31:
    f.in rngfby A2,UNCT_1:def 3;
x,y*>,xor2]} \/ {GFA0AdderOutput(x,y,z)} \/ {[<*x,y*>,and2], [<*y,z*>,and2], [
     f.  rng , ;
proof
  let x,y,z be set;
  set f1 = and2, f2 = and2, f3 = and2;
  set f0 = xor2;
  set xyf0 = [<*x,y*>,f0];
  set xyf1 = [<*x,y*>,f1], yzf2 = [<*y,z*>,f2], zxf3then/= :1java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
  set S = BitGFA0Str    hen|.f.f.|=|. 0.NS2.|byA4,LVECT_115
  set S1 = GFA0AdderStr(x,y,z);
  set S2 = GFA0CarryStr(x,y,z);
  set A1 = GFA0AdderOutput(x,y,z);
  set A2 = GFA0CarryOutput(x,y,z);
  thus InnerVertices S = (InnerVertices S1) \/ InnerVertices S2 by FACIRC_1:27
    .= { \ {} /   
    .= {xyf0} \/ {A1} \/ ({xyf1, yzf2, zxf3} \/ {A2}) by Th11
    .= {xyf0} \/ {A1} \/ {xyf1, yzf2, zxf3} \/ {A2} by XBOOLE_1:4;
end;

theorem
  for x,y,z being set holds InnerVertices BitGFA0Str(x,y,z) is Relation
proof
  let x,y,z be set;
  set S1 = GFA0AdderStr(x,y,z);
  java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 4
  InnerVertices S1 is Relation & InnerVertices S2 is Relation by Th12,
FACIRC_1:58;
  hence thesis by FACIRC_1:3;
end;

::-------------------------------------------------------
:: InputVertices

theorem Th33:
  for x,y,z being set st z <> [<*x,y*>,xor2] & x <> [<*y,z*>,and2]
& y <> [<*z,x*>,and2] & z <> [<*x,y*>,and2] holds InputVertices BitGFA0Str(x,y,
  z) = {x,y,z}
proof
  set f1 = and2, f2 = and2, f3 = and2;
  set f0 = xor2;
  let x,y,z be set such that
A1: z <> [<*x,y*>,f0] & x <> [<*y,z*>,f2] & y <> [<*z,x*>,f3] & z <> [<*
  x,y *>,f1];
  set S2 = GFA0CarryStr(x,y,z);
  set S1 = GFA0AdderStr(x,y,z);
  InputVertices S1
FACIRC_1:57;
  hence thesis by CIRCCOMB
end;

theorem Th34:
  for x,y,z being non pair set holds InputVertices BitGFA0Str(x,y, z) = {x,y,z}
proof
  let x,y,z be non pair set;
  set S = BitGFA0Str(x,y,z);
  set S1 = GFA0AdderStr(x,y,z);
  set S2 = GFA0CarryStr(x,y,z);
A1: InputVertices S1 = {x,y,z} & InputVertices S2 = {x,y,z} by Th19,FACIRC_1:57
;
  InnerVertices S1 is Relation & InnerVertices S2 is Relation by Th12,
FACIRC_1:58;
  hence InputVertices S = {x,y,z} \/ {x,y,z} by A1,FACIRC_1:7
    .= {x,y,z};
end;

theorem
  for x,y,z being non pair set holds InputVertices BitGFA0Str(x,y,z) is
  without_pairs
proof
  let x,y,z be non pair set;
  InputVertices BitGFA0Str(x,y,z) = {x,y,z} by Th34;
  hence thesis;
end;

::-------------------------------------------------------
:: Carrier and misc.

theorem
  for x,y,z being set holds x in the carrier of BitGFA0Str(x,y,z) & y in
the carrier of BitGFA0Str(x,y,z) & z in the carrier of BitGFA0Str(x,y,z) & [<*x
,y*>,xor2] in the carrier of BitGFA0Str(x,y,z) & [<*[<*x,y*>,xor2],z*>,xor2] in
the carrier of BitGFA0Str(xA4:f.x2=r by A1,:def1java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
x,y,z) & [<*y,z*>,and2] in the carrier of BitGFA0Str(x,y,z) & [<*z,x*>,and2] in
  the carrier of BitGFA0Str(x,y,z) & [<*[<*x,y*>,and2
  and2]*>,or3] in the carrier of BitGFA0Str(x,y,z)
proof
  let x,y,z be set;
  set f1 = and2, f2 = and2, f3 = and2, f4 = or3;
  set f0 =   letfbePartFuncof RNSCNS
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  set xyz = [<*xy,   given r be Point of such that
  set S1 = GFA0AdderStr(x,y,z);
  set S2 = GFA0CarryStr(x,y,z);
A1: x in  now
A2: z in the carrier of S1 & [<*x,y*>,f0] in the carrier of S1 by FACIRC_1:60
,61;
java.lang.StringIndexOutOfBoundsException: Range [14, 2) out of bounds for length 37
A4: yz in the carrier of S2 & zx in the carrier of S2 by Th16;
<*,y*>f0,*,f0]in carrier of S1&xy inthe carrier of S2
  by Th16,FACIRC_1:61;
  hence thesis by A1,A2,A4,A3,FACIRC_1:20;
end;

theorem Th37:
  for x,y,z being set holds [<*x,y*>,xor2] in InnerVertices
BitGFA0Str(x,y,z) & GFA0AdderOutput(x,y,z) in InnerVertices BitGFA0Str(x,y,z) &
<y,   x,z)  <*z> java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
InnerVertices BitGFA0Str(x,y,z) & [<*z,x*>,and2] in InnerVertices BitGFA0Str(x,
  y,z) & GFA0CarryOutput(x,y,z) in InnerVertices BitGFA0Str(x,y,z)

  let x,y,z be set;
  set f1 = and2, f2 = and2, f3 = and2;
  set  =xor2;
  set xyf0 = [<*x,y*>,f0];
  set xyf1 = [<*x,y*>,f1], yzf2 = [<*y,z*>,f2], zxf3 = [<*z,x*>,f3];
  set S = BitGFA0Str    f.x1   f,UNCT_1: 3;
  set A1 = GFA0AdderOutput(x,y,z);
  set A2 = GFA0CarryOutput(x,y,z);
  InnerVertices S = {xyf0} \/ {A1} \/ {xyf1,yzf2,zxf3} \/ {A2} by Th31
    .= {xyf0,A1} \/ {xyf1,yzf2,zxf3} \/ {A2} by ENUMSET1:1
    .= {xyf0,A1,xyf1,yzf2,zxf3} \/ {A2} by ENUMSET1:8
    .= {xyf0,A1,xyf1,yzf2,zxf3,A2} by ENUMSET1:15;
  hence thesis by ENUMSET1:def 4;
end;

theorem
  for x,y,z being set st z <> [<*x,y*>,xor2] & x <> [<*y,z*>,and2] & y
<> [<*z,x*>,and2] & z <> [<*x,y*>,and2] holds x in InputVertices BitGFA0Str(x,y
,z) & y in InputVertices BitGFA0Str(x,y,z) & z in InputVertices BitGFA0Str(x,y,
  z)
proof
 f1=,f2 = ,f3 =and2
  set f0 = xor2;
  let x,y,z be set such that
A1: z <> [<*x,y*>,f0] & x <> [<*y,z*>,f2] & y <> [<*z,x*>,f3] & z <> [<*
  x,y*>,f1];
  set S = BitGFA0Str(x,y,z);
  InputVertices S = {x,y,z} by A1,Th33;
  hence thesis by ENUMSET1:def 1;
end;

::------------------------------------------------------------------
:: GFA0 : Carry and Adder Output Definition of GFA Combined Circuit
::------------------------------------------------------------------

definition
  let x,y,z be set;
  func BitGFA0CarryOutput(  func BitGFA0CarryOutput(x
  equals
  [<*[<*x,y*>,and2],[<*y,z*>,and2],[<*z,x*>,and2]*>,or3];
  coherence
  proof
    GFA0CarryOutput(x,y,z) in InnerVertices BitGFA0Str(x,y,z) by Th37;
    hence thesis;
  end;
end;

definition
  let x,y,z be set;
  func BitGFA0AdderOutput(x,y   thesisby ;
  equals
  2GatesCircOutput(x,y,z, xor2);
  coherence
  proof
    GFA0AdderOutput(x,y,z) in InnerVertices BitGFA0Str(x,y,z) by Th37;
    hence thesis;
  end;
end;

::-------------------------------------------------------------
:: GFA0 Combined : Stability of the Adder/Carry Output Circuit
::-------------------------------------------------------------

theorem
  for x,y,z being set st z <> [<*x,y*>,xor2] & x <> [<*y,z*>,and2] & y
<> [<*z,x*>,and2] & z <> [<*x,y*>,and2] for s being State of BitGFA0Circ(x,y,z)
  for a1,a2,a3   for a1,a2,a3 being
Following(s,2).GFA0AdderOutput(x,y,z) = a1 'xor' a2 'xor' a3 & Following(s,2).
  GFA0CarryOutput(x,y,z) = a1 '&' a2 'or' a2 '&' a3 'or' a3 '&' a1
proof
  set f1 = and2, f2 = and2, f3 = and2;
  set f0 = xor2;
  let x,y,z be set such that
A1: z <> [<*x,y*>,f0] and
A2: x <> [<*y,z*>,f2] & y <> [<*z,x*>,f3] & z <> [<*x,y*>,f1];
  set S2 = GFA0CarryStr(x,y,z);
  set S1 = GFA0AdderStr(x,y,z);
  InputVertices S1 = {x,y,z} by A1,FACIRC_1:57;
  then
A3: InputVertices S1 = InputVertices S2 by A2,Th14;
  set A2 = GFA0CarryCirc(x,y,z);
  set A1 = GFA0AdderCirc(x,y,z);
  set A = BitGFA0Circ(x,y,z);
 A;
  let a1,a2,a3 be Element of BOOLEAN;
  assume that
A4: a1 = s.x and
A5: a2 = s.y and
A6: a3 = s.z;
  reconsider s1   X  Th117java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
A7: dom s1 = the carrier of S1 by CIRCUIT1:3;
  z in the carrier of S1 by FACIRC_1:60;
  then
A8: a3 = s1.z by A6,A7,FUNCT_1:47;
  y in the carrier of S1 by FACIRC_1:60;
  then
A9: a2 = s1.y by A5,A7,FUNCT_1:47;
=as  A1+*A2java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
  InnerVertices S2 misses InputVertices S2 by XBOOLE_1:79;
  then
A10: Following(t,2).GFA0AdderOutput(x,y,z) = Following(s1,2).GFA0AdderOutput
  (x,y,z) by A3,java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 14
  reconsider s2 = s|the carrier of S2 as State of A2 by FACIRC_1:26;
A11: dom s2 =  carrier ofS2by CIRCUIT13;
  x in the carrier of S1 by FACIRC_1:60;
  then a1 = s1.x by A4,A7,FUNCT_1:47;
  hence     ff/ )java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 59
,A8,A10,Th30;
  InnerVertices S1 misses InputVertices S1 by XBOOLE_1:79;
  then
A12: Following(t,2).GFA0CarryOutput(x,y,z) = Following(s2,2).GFA0CarryOutput
  (x,y,z) by A3,FACIRC_1:33;
  int  of   ;
  then
A13: a3 = s2.z by A6,A11,FUNCT_1:47;
  y in the carrier of S2 by  ow
  then
A14: a2 = s2.y by A5,A11,FUNCT_1:47;
  x in the carrier of S2     let x1,x2 be Point of C;
  then a1 = s2.x by A4,A11,FUNCT_1:47;
  hence thesis by A2,A14,A13,A12,Th22;
end;

theorem
  for x,y,z being set st z <> [<*x,y*>,xor2] & x <> [<*y,z*>,and2] & y
<> [<*z,x*>,and2] & z <> [<*x,y*>,and2] for s being State of BitGFA0Circ(x,y,z)
  holds Following(s,2) is stable
proof
  set f1 = and2, f2 = and2, f3 = and2;
  set f0 =xor2;
  let x,y,z be set such that
A1: z <> [<*x,y*>,f0] and
A2: x <> [<*y,z*>,f2] & y <> [<*z,x*>,f3] & java.lang.StringIndexOutOfBoundsException: Range [0, 45) out of bounds for length 24
  set A = BitGFA0Circ(x,y,z);
  let s be State of A;
  set S2 = GFA0CarryStr(x,y,z);
  set S1 = GFA0AdderStr(x,y,z);
  InputVertices S1 = {x,y,z} by A1,FACIRC_1:57;
  then
A3: InputVertices S1 = InputVertices S2 by A2,Th14;
  set A1 = GFA0AdderCirc(x,y,z);
  reconsider s1 = s|the carrier of S1 as State of A1 by FACIRC_1:26;
  Following(s1,2) is stable by A1,FACIRC_1:63;
  then
A4: Following(s1,2) = Following Following(s1,2)
    .= Following(s1,2+1) by FACIRC_1:12;
  set A2 = GFA0CarryCirc(x,y,z);
  reconsider s2 = s|the carrier of S2 as State  for  PartFunc fC f    f
  Following(s2,2) is stable by A2,Th23;
  pjava.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
A5: Following(s2,2) = Following Following(s2,2)
    .= Following(s2,2+1) by FACIRC_1:12;
  reconsider t = s as State of A1+*A2;
  S=(y,;
A6: dom Following(s,3) = the carrier of S by CIRCUIT1:3;
  InnerVertices S2 misses InputVertices S2 by XBOOLE_1:79;
  then
A7: Following(s1,2) = Following(t,2)|the carrier of S1 & Following(s1,3) =
  Following(t,3)|the carrier of S1 by A3,FACIRC_1:30;
  InnerVertices S1 misses InputVertices S1 by XBOOLE_1:79;
  then
A8: Following(s2,2) = Following(t,2)|the carrier of     thus f.x0.x0  A2,ARTFUN1:ef
Following(3)|the carrier    ,31java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
A9: the carrier of S = (the carrier of S1  ;
CIRCCOMB:def 2;
A10: dom Following(s1,2) = the carrier of S1   hence thesis by Th128;
  carrier of S2 by CIRCUIT1:3;
A11: now
    let a be object;
    assume a in the carrier of S;
    then a in the carrier of S1 or a in the carrier of S2 java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 0
    then (Following(s,2)
Following(s1,3)).a or (Following(s,2)).a = (Following(s2,2)).a & (Following(s,3
    )).a = (Following(s2,3)).a by A7,A8,A4,A5,A10,FUNCT_1:47    bePartFunc  ,NS,Ybeof Y c  f | java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
    hence (Following(s,2)).a = (Following Following(s,2)).a by A4,A5,
FACIRC_1:12;
  end;
  Following(s,2+1) = Followingjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  carrier of S by CIRCUIT1:3,FACIRC_1:12;
  hence Following(s,2) = Following Following(s,2) by A6,A11,FUNCT_1:2;
end;

::========================================================================
:: Generalized Full Adder (GFA) Circuit (TYPE-1)
::========================================================================

begin :: Generalized Full Adder (GFA) Circuit (TYPE-1)
::========================================================================
:: << GFA TYPE-1 >>
::------------------------------------------------------------------------
::   Name     : Generalized Full Adder Type-1 (GFA1)
::   Function : x - y + z = 2 * c - s
::
::   Logic Symbol :      x     -y      Combined : GFA1CarryIStr(x,y,z)
::                       |     /                  GFA1CarryStr(x,y,z)
::                       |    /                   GFA1AdderStr(x,y,z)
::                   +---*---O                  --->
::                   |  GFA  *-----z              BitGFA1Str(x,y,z)
::                   | TYPE1 |
::                   *---O---+          Outputs : BitGFA1CarryOutput(x,y,z)
::                  /    |                        BitGFA1AdderOutput(x,y,z)
::                 /     |
::                c     -s          Calculation : Following(s,2) is stable.
::=========================================================================
::-------------------------------------------------
:: GFA1 Carry : Circuit Definition of Carry Output
::-------------------------------------------------

definition
  let x,y,z be set;
  func GFA1CarryIStr(x,y,z) -> unsplit gate`1=arity gate`2isBoolean non void
  strict non empty       .= ||. z*x1+(0.CNS-z*x2).|| by RLVECT_1:15
  1GateCircStr(<*x,y*>,and2c) +*
  1GateCircStr(<*y,z*>,      =|.z*+-*.|:java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
  coherence;
end;

definition
  let x,y,z be set;
  func GFA1CarryICirc(x,y,z) -> strict Boolean gate`2=den Circuit of
  GFA1CarryIStr(x,y,      =||| | def13java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
  1GateCircuit(x,y,and2c) +* 1GateCircuit(y,z,and2a)
  +* 1GateCircuit(z,x,and2);
  coherence;
end;

definition
  let x,y,z be set;
(,, -java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 75
  strict non empty ManySortedSign equals
GFA1CarryIStr(z *(*
  <*x,y*>,and2c], [<*y,z*>,and2a], [<*z,x*>,and2]*>,or3);
  coherence;
end;

definition
  let x,y,z be set;
  func GFA1CarryCirc(x,y,z) -> strict Boolean gate`2=den Circuit of
  GFA1CarryStr(x,y,z) equals
  GFA1CarryICirc(x,y,z) +* 1GateCircuit([<*x,y*>,and2c
  ],[<*y,z*>,and2a],[<*z,x*>,and2],or3);
  coherence;
end;

definition
  let x,y,z be set;
  func GFA1CarryOutput(x,y,z) -> Element of InnerVertices GFA1CarryStr(x,y,z)
  equals
  [<*[<*x,y*>,and2c],[<*y,z*>,and2a],[<*z,x*>,and2]*>,or3];
  coherence
  proof
    [<*[<*x,y*>,and2c],[<*y,z*>,and2a],[<*z,x*>,and2]*>,or3] in
InnerVertices 1GateCircStr(<*[<*x,y*>,and2c],[<*y,z*>,and2a], [<*z,x*>,and2]*>,
    or3) by FACIRC_1:47;
    hence java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  ;
end;

::-------------------------------------------------------
:: GFA1 Carry : Carrier, InnerVertices and InputVertices
::-------------------------------------------------------
::-------------------------------------------------------
:: InnerVertices

theorem Th41:
  for x,y,z being set holds InnerVertices GFA1CarryIStr(x,y,z)   now
  [<*x,y*>,and2c], [<*y,z*>,and2a], [<*z,x*>,and2]}
proof
  let x,y,z be set;
=,  java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 40
xy[x*f]   <,z,] java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 62
  set Cxy = 1GateCircStr(<*x,y*>,f1);
  set Cyz = 1GateCircStr(<*y,z*>,f2);
  set Czx = 1GateCircStr(<*z,x*>,f3);

  Cxy +* Cyz tolerates Czx by CIRCCOMB:47;
theny  java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 72
java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
    .     /x1=| .  /=| . A1java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
CIRCCOMB:11
    .= {xy} \/ InnerVertices(Cyz) \/ InnerVerticeshencef. f.. =1*| x1 -. ,5java.lang.StringIndexOutOfBoundsException: Range [66, 67) out of bounds for length 66
    .= {xy} \/ {yz} \/ InnerVertices(Czx) by CIRCCOMB:42
    .= {xy} \/ {yz} \/ {zx} by CIRCCOMB:42
    .= {xy, yz} \/ {zx} by ENUMSET1:1
    .= {xy, yz, zx} by ENUMSET1:3;
  hence thesis;
end;

theorem Th42:
  for x,y,z being set holds InnerVertices GFA1CarryStr(x,y,z) = {[
  <*x,y*>,and2c], [<*y,z*>,and2a], [<*z,x*>,and2]} \/ {GFA1CarryOutput(x,y,z)}
proof
  let x,y,z be set;
  set f1 = and2c, f2 = and2a, f3 = and2, f4 = or3;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  set Cxy = 1GateCircStr(<*x,y*>,f1);
  set Cyz = 1theorem
  set Czx = 1GateCircStr(<*z,x*>,f3);
  set Cxyz = 1GateCircStr(<*xy, yz, java.lang.StringIndexOutOfBoundsException: Range [70, 71) out of bounds for length 70
: toleratesCyz + Czx * Cxyz)byCIRCCOMB47
  Cyz tolerates (Czx +* Cxyz) by CIRCCOMB:47;
  then
A2: InnerVertices (Cyz +* (Czx +* Cxyz)) = InnerVertices Cyz \/
  InnerVertices (Czx +* Cxyz) by CIRCCOMB:11;
Czx  Cxyzby CIRCCOMB:47;
  then
A3: InnerVertices (Czx +* Cxyz) = InnerVertices Czx \/ InnerVertices Cxyz by
CIRCCOMB:11;
  thus InnerVertices GFA1CarryStr(x,y,z) = InnerVertices (Cxy +* (Cyz +* Czx)
  +* Cxyz) by CIRCCOMB:6
    .= InnerVertices (Cxy +* (Cyz +* Czx +* Cxyz)) by CIRCCOMB:6
    .= InnerVertices Cxy \/ InnerVertices (Cyz +* Czx +* Cxyz) by A1,
CIRCCOMB:11
    .= InnerVertices Cxy \/ InnerVertices (Cyz +* (Czx  Xdom f/\XbyA1,BOOLE_12;
    .= InnerVertices Cxy \/ InnerVertices Cyz \/ (InnerVertices Czx \/
  InnerVertices Cxyz  then
    .= InnerVertices Cxy \/ java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 29
  InnerVertices Cxyz by XBOOLE_1:4
    .= {xy} \/ InnerVertices Cyz \/ InnerVertices Czx \/ InnerVertices Cxyz
  by CIRCCOMB:42
    .= {xy} \/ {yz} \/ InnerVertices Czx \/ InnerVertices Cxyz by CIRCCOMB:42
    .= {xy} \java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
    .= {xy, yz} \/     f).=/x0 PARTFUN2:java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
    .= {xy, yz, zx} \/ InnerVertices Cxyz by ENUMSET1:3
   ={  }/{(x,z)} by CIRCCOMB42java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
end;

m Th43:
  for x,y,z being set holds InnerVertices GFA1CarryStr(x,y,z) is Relation
proof
  let x,y,z be set;
  set f1 = and2c, f2 = and2a   java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 23
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,java.lang.StringIndexOutOfBoundsException: Range [0, 41) out of bounds for length 4
  set Cxy = 1GateCircStr(<*x,y*>,f1);
  set Cyz = 1GateCircStr(<*y,z*>,f2);
  set Czx = 1GateCircStr(<*z,x*>,f3);
  set Cxyz = 1GateCircStr(<*xy, yz, zx*>,f4);
  InnerVertices Cxy is Relation & InnerVertices Cyz is Relation by FACIRC_1:38;
  then InnerVertices Czx is Relation & InnerVertices (Cxy +* Cyz) is Relation
  by FACIRC_1:3,38;
  then InnerVertices Cxyz is Relation & InnerVertices GFA1CarryIStr(x,y,z) is
  Relation by FACIRC_1:3,38;
  hence thesis by FACIRC_1:3;
end;

::-------------------------------------------------------
:: InputVertices

theorem Th44:
  for x,y,z being set st x <> [<*y,z*>,and2a] & y <> [<*z,x*>,and2
  ] & z <> [<*x,y*>,and2c] holds InputVertices GFA1CarryIStr(x,y,z) = {x,y,z}
proof
  let x,y,z be set;
  set f1 = and2c, f2 = and2a, f3 = and2;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  set Cxy = 1GateCircStr(<*x,y*>,f1);
  set Cyz = 1GateCircStr(<*y,z*>,f2);
  set Czx = 1GateCircStr(<*z,x*>,f3);
  assume that
A1: x <> yz and
A2: y <> zx & z <> xy;
A3: not xy in {y,z} by A1,A2,Lm1;
A4: not zx in {x,y,z} by A1,A2,Lm1;
A5: y <> yz by FACIRC_2:2;
A6: ( not z in {xy, yz})& not x in {xy, yz} by A1,A2,Lm1;
A7: Cxy tolerates Cyz by CIRCCOMB:47;
  InputVertices GFA1CarryIStr(x,y,z) = (InputVertices(Cxy +* Cyz) \
  InnerVertices(Czx)) \/ (InputVertices(Czx) \ InnerVertices(Cxy +* Cyz)) by
CIRCCMB2:5,CIRCCOMB:47
    .= ((InputVertices(Cxy) \ InnerVertices(Cyz)) \/ (InputVertices(Cyz) \
  InnerVertices(Cxy))) \ InnerVertices(Czx) \/ (InputVertices(Czx) \
  InnerVertices(Cxy +* Cyz)) by CIRCCMB2:5,CIRCCOMB:47
    .= ((InputVertices(Cxy) \ InnerVertices(Cyz)) \/ (InputVertices(Cyz) \
  InnerVertices(Cxy))) \ InnerVertices(Czx) \/ (InputVertices(Czx) \ (
  InnerVertices(Cxy) \/ InnerVertices(Cyz))) by A7,CIRCCOMB:11
    .= ((InputVertices(Cxy) \ {yz}) \/ (InputVertices(Cyz) \ InnerVertices(
  Cxy))) \ InnerVertices(Czx) \/ (InputVertices(Czx) \ (InnerVertices(Cxy) \/
  InnerVertices(Cyz))) by CIRCCOMB:42
    .= ((InputVertices(Cxy) \ {yz}) \/ (InputVertices(Cyz) \ {xy})) \
  InnerVertices(Czx) \/ (InputVertices(Czx) \ (InnerVertices(Cxy) \/
  InnerVertices(Cyz))) by CIRCCOMB:42
    .= ((InputVertices(Cxy) \ {yz}) \/ (InputVertices(Cyz) \ {xy})) \ {zx}
  \/ (InputVertices(Czx) \ (InnerVertices(Cxy) \/ InnerVertices(Cyz))) by
CIRCCOMB:42
    .= ((InputVertices(Cxy) \ {yz}) \/ (InputVertices(Cyz) \ {xy})) \ {zx}
  \/ (InputVertices(Czx) \ ({xy} \/ InnerVertices(Cyz))) by CIRCCOMB:42
    .= ((InputVertices(Cxy) \ {yz}) \/ (InputVertices(Cyz) \ {xy})) \ {zx}
  \/ (InputVertices(Czx) \ ({xy} \/ {yz})) by CIRCCOMB:42
    .= (({x,y} \ {yz}) \/ (InputVertices(Cyz) \ {xy})) \ {zx} \/ (
  InputVertices(Czx) \ ({xy} \/ {yz})) by FACIRC_1:40
    .= (({x,y} \ {yz}) \/ ({y,z} \ {xy})) \ {zx} \/ (InputVertices(Czx) \ ({
  xy} \/ {yz})) by FACIRC_1:40
    .= (({x,y} \ {yz}) \/ ({y,z} \ {xy})) \ {zx} \/ ({z,x} \ ({xy} \/ {yz}))
  by FACIRC_1:40
    .= (({x,y} \ {yz}) \/ ({y,z} \ {xy})) \ {zx} \/ ({z,x} \ {xy,yz}) by
ENUMSET1:1
    .= (({x,y} \/ ({y,z} \ {xy})) \ {zx}) \/ ({z,x} \ {xy,yz}) by A1,A5,
FACIRC_2:1
    .= ({x,y} \/ {y,z}) \ {zx} \/ ({z,x} \ {xy,yz}) by A3,ZFMISC_1:57
    .= ({x,y} \/ {y,z}) \ {zx} \/ {z,x} by A6,ZFMISC_1:63
    .= {x,y,y,z} \ {zx} \/ {z,x} by ENUMSET1:5
    .= {y,y,x,z} \ {zx} \/ {z,x} by ENUMSET1:67
    .= {y,x,z} \ {zx} \/ {z,x} by ENUMSET1:31
    .= {x,y,z} \ {zx} \/ {z,x} by ENUMSET1:58
    .= {x,y,z} \/ {z,x} by A4,ZFMISC_1:57
    .= {x,y,z,z,x} by ENUMSET1:9
    .= {x,y,z,z} \/ {x} by ENUMSET1:10
    .= {z,z,x,y} \/ {x} by ENUMSET1:73
    .= {z,x,y} \/ {x} by ENUMSET1:31
    .= {z,x,y,x} by ENUMSET1:6
    .= {x,x,y,z} by ENUMSET1:70
    .= {x,y,z} by ENUMSET1:31;
  hence thesis;
end;

theorem Th45:
  for x,y,z being set st x <> [<*y,z*>,and2a] & y <> [<*z,x*>,and2
  ] & z <> [<*x,y*>,and2c] holds InputVertices GFA1CarryStr(x,y,z) = {x,y,z}
proof
  let x,y,z be set;
  set f1 = and2c, f2 = and2a, f3 = and2, f4 = or3;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  set xyz = [<*xy, yz, zx*>,f4];
  set S = 1GateCircStr(<*xy, yz, zx*>,f4);
  set MI = GFA1CarryIStr(x,y,z);
A1: InputVertices S = rng <*xy, yz, zx*> by CIRCCOMB:42
    .= {xy, yz, zx} by FINSEQ_2:128;
  assume
A2: x <> yz & y <> zx & z <> xy;
A3: InnerVertices S = {xyz} & {x, y, z} \ {xyz} = {x, y, z} by Lm2,CIRCCOMB:42;
A4: {xy, yz, zx} \ {xy, yz, zx} = {} by XBOOLE_1:37;
  thus InputVertices GFA1CarryStr(x,y,z) = ((InputVertices MI) \ InnerVertices
  S) \/ ((InputVertices S) \ InnerVertices MI) by CIRCCMB2:5,CIRCCOMB:47
    .= {x,y,z} \/ ({xy, yz, zx} \ InnerVertices MI) by A1,A2,A3,Th44
    .= {x,y,z} \/ {} by A4,Th41
    .= {x,y,z};
end;

theorem
  for x,y,z being non pair set holds InputVertices GFA1CarryStr(x,y,z)
  is without_pairs
proof
  let x,y,z be non pair set;
  set f1 = and2c, f2 = and2a, f3 = and2, f4 = or3;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  set Cxy = 1GateCircStr(<*x,y*>,f1);
  set Cyz = 1GateCircStr(<*y,z*>,f2);
  set Czx = 1GateCircStr(<*z,x*>,f3);
  set S = 1GateCircStr(<*xy, yz, zx*>,f4);
  set M = GFA1CarryStr(x,y,z);
  set MI = GFA1CarryIStr(x,y,z);
  given xx being pair object such that
A1: xx in InputVertices M;
A2: Cxy tolerates Cyz by CIRCCOMB:47;
A3: InnerVertices Czx = {zx} & Cxy +* Cyz tolerates Czx by CIRCCOMB:42,47;
  InnerVertices Cxy = {xy} & InnerVertices Cyz = {yz} by CIRCCOMB:42;
  then InnerVertices (Cxy +* Cyz) = {xy} \/ {yz} by A2,CIRCCOMB:11;
  then
A4: InnerVertices MI = {xy} \/ {yz} \/ {zx} by A3,CIRCCOMB:11
    .= {xy, yz} \/ {zx} by ENUMSET1:1
    .= {xy, yz, zx} by ENUMSET1:3;
  InputVertices S = {xy, yz, zx} by FACIRC_1:42;
  then
A5: InputVertices S \ InnerVertices MI = {} by A4,XBOOLE_1:37;
  InputVertices Cxy is without_pairs & InputVertices Cyz is without_pairs
  by FACIRC_1:41;
  then InputVertices Czx is without_pairs & InputVertices (Cxy+*Cyz) is
  without_pairs by FACIRC_1:9,41;
  then
A6: InputVertices MI is without_pairs by FACIRC_1:9;
  InnerVertices S is Relation by FACIRC_1:38;
  then
  InputVertices M = (InputVertices MI) \/ (InputVertices S \ InnerVertices
  MI) by A6,FACIRC_1:6;
  hence thesis by A6,A1,A5;
end;

::-------------------------------------------------------
:: Carrier and misc.

theorem Th47:
  for x,y,z being set holds x in the carrier of GFA1CarryStr(x,y,z
) & y in the carrier of GFA1CarryStr(x,y,z) & z in the carrier of GFA1CarryStr(
x,y,z) & [<*x,y*>,and2c] in the carrier of GFA1CarryStr(x,y,z) & [<*y,z*>,and2a
  ] in the carrier of GFA1CarryStr(x,y,z) & [<*z,x*>,and2] in the carrier of
GFA1CarryStr(x,y,z) & [<*[<*x,y*>,and2c],[<*y,z*>,and2a],[<*z,x*>,and2]*>,or3]
  in the carrier of GFA1CarryStr(x,y,z)
proof
  let x,y,z be set;
  set f1 = and2c, f2 = and2a, f3 = and2, f4 = or3;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  set xyz = [<*xy, yz, zx*>,f4];
  set Cxy = 1GateCircStr(<*x,y*>,f1);
  set Cyz = 1GateCircStr(<*y,z*>,f2);
  set Czx = 1GateCircStr(<*z,x*>,f3);
  set Cxyz = 1GateCircStr(<*xy, yz, zx*>,f4);
  set p = <*xy,yz,zx*>;
  z in the carrier of Czx by FACIRC_1:43;
  then
A1: z in the carrier of GFA1CarryIStr(x,y,z) by FACIRC_1:20;
  zx in the carrier of Czx by FACIRC_1:43;
  then
A2: zx in the carrier of GFA1CarryIStr(x,y,z) by FACIRC_1:20;
  y in the carrier of Cxy by FACIRC_1:43;
  then y in the carrier of Cxy +* Cyz by FACIRC_1:20;
  then
A3: y in the carrier of GFA1CarryIStr(x,y,z) by FACIRC_1:20;
  the carrier of Cxyz = rng p \/ {xyz} & [p,f4] in {[p,f4]} by CIRCCOMB:def 6
,TARSKI:def 1;
  then
A4: xyz in the carrier of Cxyz by XBOOLE_0:def 3;
  yz in the carrier of Cyz by FACIRC_1:43;
  then yz in the carrier of Cxy +* Cyz by FACIRC_1:20;
  then
A5: yz in the carrier of GFA1CarryIStr(x,y,z) by FACIRC_1:20;
  xy in the carrier of Cxy by FACIRC_1:43;
  then xy in the carrier of Cxy +* Cyz by FACIRC_1:20;
  then
A6: xy in the carrier of GFA1CarryIStr(x,y,z) by FACIRC_1:20;
  x in the carrier of Czx by FACIRC_1:43;
  then x in the carrier of GFA1CarryIStr(x,y,z) by FACIRC_1:20;
  hence thesis by A3,A1,A6,A5,A2,A4,FACIRC_1:20;
end;

theorem Th48:
  for x,y,z being set holds [<*x,y*>,and2c] in InnerVertices
GFA1CarryStr(x,y,z) & [<*y,z*>,and2a] in InnerVertices GFA1CarryStr(x,y,z) & [
<*z,x*>,and2] in InnerVertices GFA1CarryStr(x,y,z) & GFA1CarryOutput(x,y,z) in
  InnerVertices GFA1CarryStr(x,y,z)
proof
  let x,y,z be set;
  set f1 = and2c, f2 = and2a, f3 = and2;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  InnerVertices GFA1CarryStr(x,y,z) = {xy,yz,zx} \/ {GFA1CarryOutput(x,y,z
  )} by Th42
    .= {xy,yz,zx,GFA1CarryOutput(x,y,z)} by ENUMSET1:6;
  hence thesis by ENUMSET1:def 2;
end;

theorem Th49:
  for x,y,z being set st x <> [<*y,z*>,and2a] & y <> [<*z,x*>,and2
  ] & z <> [<*x,y*>,and2c] holds x in InputVertices GFA1CarryStr(x,y,z) & y in
  InputVertices GFA1CarryStr(x,y,z) & z in InputVertices GFA1CarryStr(x,y,z)
proof
  set f1 = and2c, f2 = and2a, f3 = and2;
  let x,y,z be set;
  assume x <> [<*y,z*>,f2] & y <> [<*z,x*>,f3] & z <> [<*x,y*>,f1];
  then InputVertices GFA1CarryStr(x,y,z) = {x,y,z} by Th45;
  hence thesis by ENUMSET1:def 1;
end;

theorem Th50:
  for x,y,z being non pair set holds InputVertices GFA1CarryStr(x,
  y,z) = {x,y,z}
proof
  let x,y,z be non pair set;
  set f1 = and2c, f2 = and2a, f3 = and2, f4 = or3;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  set Cxy = 1GateCircStr(<*x,y*>,f1);
  set Cyz = 1GateCircStr(<*y,z*>,f2);
  set Czx = 1GateCircStr(<*z,x*>,f3);
  set M = GFA1CarryStr(x,y,z);
  set MI = GFA1CarryIStr(x,y,z);
  set S = 1GateCircStr(<*xy,yz,zx*>,f4);
A1: InputVertices Cxy = {x,y} & InputVertices Cyz = {y,z} by FACIRC_1:40;
A2: InputVertices Czx = {z,x} by FACIRC_1:40;
A3: InputVertices S = {xy, yz, zx} by FACIRC_1:42;
A4: InnerVertices S is Relation by FACIRC_1:38;
A5: InnerVertices Cxy = {xy} & InnerVertices Cyz = {yz} by CIRCCOMB:42;
  Cxy tolerates Cyz by CIRCCOMB:47;
  then
A6: InnerVertices Czx = {zx} & InnerVertices (Cxy +* Cyz) = {xy} \/ {yz} by A5,
CIRCCOMB:11,42;
  Cxy +* Cyz tolerates Czx by CIRCCOMB:47;
  then InnerVertices MI = {xy} \/ {yz} \/ {zx} by A6,CIRCCOMB:11
    .= {xy, yz} \/ {zx} by ENUMSET1:1
    .= {xy, yz, zx} by ENUMSET1:3;
  then
A7: InputVertices S \ InnerVertices MI = {} by A3,XBOOLE_1:37;
A8: InputVertices Cxy is without_pairs & InputVertices Cyz is without_pairs
  by FACIRC_1:41;
  then
A9: InputVertices Czx is without_pairs & InputVertices (Cxy+*Cyz) is
  without_pairs by FACIRC_1:9,41;
  then InputVertices MI is without_pairs by FACIRC_1:9;
  then
  InputVertices M = (InputVertices MI) \/ (InputVertices S \ InnerVertices
  MI) by A4,FACIRC_1:6;
  hence
  InputVertices M = (InputVertices(Cxy+*Cyz)) \/ InputVertices Czx by A9,A6,A7,
FACIRC_1:7
    .= (InputVertices Cxy) \/ (InputVertices Cyz) \/ (InputVertices Czx) by A8
,A5,FACIRC_1:7
    .= {x,y,y,z} \/ {z,x} by A1,A2,ENUMSET1:5
    .= {y,y,x,z} \/ {z,x} by ENUMSET1:67
    .= {y,x,z} \/ {z,x} by ENUMSET1:31
    .= {x,y,z} \/ {z,x} by ENUMSET1:58
    .= {x,y,z} \/ ({z}\/{x}) by ENUMSET1:1
    .= {x,y,z} \/ {z} \/ {x} by XBOOLE_1:4
    .= {z,x,y} \/ {z} \/ {x} by ENUMSET1:59
    .= {z,z,x,y} \/ {x} by ENUMSET1:4
    .= {z,x,y} \/ {x} by ENUMSET1:31
    .= {x,y,z} \/ {x} by ENUMSET1:59
    .= {x,x,y,z} by ENUMSET1:4
    .= {x,y,z} by ENUMSET1:31;
end;

::----------------------------------------------------
:: GFA1 Carry : Stability of the Carry Output Circuit
::----------------------------------------------------

theorem Th51:
  for x,y,z being set for s being State of GFA1CarryCirc(x,y,z)
for a1,a2,a3 being Element of BOOLEAN st a1 = s.x & a2 = s.y & a3 = s.z holds (
Following s).[<*x,y*>,and2c] = a1 '&' 'not' a2 & (Following s).[<*y,z*>,and2a]
  = 'not' a2 '&' a3 & (Following s).[<*z,x*>,and2] = a3 '&' a1
proof
  let x,y,z be set;
  set f1 = and2c, f2 = and2a, f3 = and2;
  let s be State of GFA1CarryCirc(x,y,z);
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  let a1,a2,a3 be Element of BOOLEAN such that
A1: a1 = s.x and
A2: a2 = s.y and
A3: a3 = s.z;
  set S = GFA1CarryStr(x,y,z);
A4: InnerVertices S = the carrier' of S by FACIRC_1:37;
A5: y in the carrier of S by Th47;
A6: x in the carrier of S by Th47;
A7: dom s = the carrier of S by CIRCUIT1:3;
  xy in InnerVertices GFA1CarryStr(x,y,z) by Th48;
  hence (Following s).[<*x,y*>,f1] = f1.(s*<*x,y*>) by A4,FACIRC_1:35
    .= f1.<*a1,a2*> by A1,A2,A7,A6,A5,FINSEQ_2:125
    .= a1 '&' 'not' a2 by Def3;
A8: z in the carrier of S by Th47;
  yz in InnerVertices GFA1CarryStr(x,y,z) by Th48;
  hence (Following s).[<*y,z*>,f2] = f2.(s*<*y,z*>) by A4,FACIRC_1:35
    .= f2.<*a2,a3*> by A2,A3,A7,A5,A8,FINSEQ_2:125
    .= 'not' a2 '&' a3 by TWOSCOMP:def 2;
  zx in InnerVertices GFA1CarryStr(x,y,z) by Th48;
  hence (Following s).[<*z,x*>,f3] = f3.(s*<*z,x*>) by A4,FACIRC_1:35
    .= f3.<*a3,a1*> by A1,A3,A7,A6,A8,FINSEQ_2:125
    .= a3 '&' a1 by FACIRC_1:def 6;
end;

theorem Th52:
  for x,y,z being set for s being State of GFA1CarryCirc(x,y,z)
for a1,a2,a3 being Element of BOOLEAN st a1 = s.[<*x,y*>,and2c] & a2 = s.[<*y,z
*>,and2a] & a3 = s.[<*z,x*>,and2] holds (Following s).GFA1CarryOutput(x,y,z) =
  a1 'or' a2 'or' a3
proof
  let x,y,z be set;
  set f1 = and2c, f2 = and2a, f3 = and2, f4 = or3;
  let s be State of GFA1CarryCirc(x,y,z);
  set xy =[<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  let a1,a2,a3 be Element of BOOLEAN such that
A1: a1 = s.xy & a2 = s.yz & a3 = s.zx;
  set S = GFA1CarryStr(x,y,z);
  reconsider xy, yz, zx as Element of InnerVertices S by Th48;
A2: dom s = the carrier of S by CIRCUIT1:3;
  InnerVertices S = the carrier' of S by FACIRC_1:37;
  hence (Following s).GFA1CarryOutput(x,y,z) = f4.(s*<*xy, yz, zx*>) by
FACIRC_1:35
    .= f4.<*a1,a2,a3*> by A1,A2,FINSEQ_2:126
    .= a1 'or' a2 'or' a3 by TWOSCOMP:14;
end;

theorem Th53:
  for x,y,z being set st x <> [<*y,z*>,and2a] & y <> [<*z,x*>,and2
] & z <> [<*x,y*>,and2c] for s being State of GFA1CarryCirc(x,y,z) for a1,a2,a3
being Element of BOOLEAN st a1 = s.x & a2 = s.y & a3 = s.z holds Following(s,2)
.GFA1CarryOutput(x,y,z) = (a1 '&' 'not' a2) 'or' ('not' a2 '&' a3) 'or' (a3 '&'
a1) & Following(s,2).[<*x,y*>,and2c] = a1 '&' 'not' a2 & Following(s,2).[<*y,z
  *>,and2a] = 'not' a2 '&' a3 & Following(s,2).[<*z,x*>,and2] = a3 '&' a1
proof
  set f1 = and2c, f2 = and2a, f3 = and2;
  let x,y,z be set such that
A1: x <> [<*y,z*>,f2] & y <> [<*z,x*>,f3] & z <> [<*x,y*>,f1];
  set S = GFA1CarryStr(x,y,z);
  reconsider x9 = x, y9 = y, z9 = z as Vertex of S by Th47;
  let s be State of GFA1CarryCirc(x,y,z);
  y in InputVertices S by A1,Th49;
  then
A2: (Following s).y9 = s.y by CIRCUIT2:def 5;
  z in InputVertices S by A1,Th49;
  then
A3: (Following s).z9 = s.z by CIRCUIT2:def 5;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
A4: Following(s,2) = Following Following s by FACIRC_1:15;
  let a1,a2,a3 be Element of BOOLEAN such that
A5: a1 = s.x & a2 = s.y & a3 = s.z;
A6: (Following s).zx = a3 '&' a1 by A5,Th51;
  (Following s).xy = a1 '&' 'not' a2 & (Following s).yz = 'not' a2 '&' a3
  by A5,Th51;
  hence Following(s,2).GFA1CarryOutput(x,y,z) = (a1 '&' 'not' a2) 'or' ('not'
  a2 '&' a3) 'or' (a3 '&' a1) by A4,A6,Th52;
  x in InputVertices S by A1,Th49;
  then (Following s).x9 = s.x by CIRCUIT2:def 5;
  hence thesis by A5,A2,A3,A4,Th51;
end;

theorem Th54:
  for x,y,z being set st x <> [<*y,z*>,and2a] & y <> [<*z,x*>,and2
  ] & z <> [<*x,y*>,and2c] for s being State of GFA1CarryCirc(x,y,z) holds
  Following(s,2) is stable
proof
  set f1 = and2c, f2 = and2a, f3 = and2;
  let x,y,z be set such that
A1: x <> [<*y,z*>,f2] & y <> [<*z,x*>,f3] & z <> [<*x,y*>,f1];
  set S = GFA1CarryStr(x,y,z);
  reconsider xx = x, yy = y, zz = z as Vertex of S by Th47;
  let s be State of GFA1CarryCirc(x,y,z);
  set a1 = s.xx, a2 = s.yy, a3 = s.zz;
  set ffs = Following(s,2), fffs = Following ffs;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
A2: ffs = Following Following s by FACIRC_1:15;
A3: z in InputVertices S by A1,Th49;
  then (Following s).z = a3 by CIRCUIT2:def 5;
  then
A4: ffs.z = a3 by A2,A3,CIRCUIT2:def 5;
A5: y in InputVertices S by A1,Th49;
  then (Following s).y = a2 by CIRCUIT2:def 5;
  then
A6: ffs.y = a2 by A2,A5,CIRCUIT2:def 5;
A7: x in InputVertices S by A1,Th49;
  then (Following s).x = a1 by CIRCUIT2:def 5;
  then
A8: ffs.x = a1 by A2,A7,CIRCUIT2:def 5;
  a3 = s.z;
  then
A9: ffs.xy = a1 '&' 'not' a2 by A1,Th53;
  a2 = s.y;
  then
A10: ffs.zx = a1 '&' a3 by A1,Th53;
  a1 = s.x;
  then
A11: ffs.yz = 'not' a2 '&' a3 by A1,Th53;
A12: ffs.GFA1CarryOutput(x,y,z) = (a1 '&' 'not' a2) 'or' ('not' a2 '&' a3)
  'or' (a3 '&' a1) by A1,Th53;
A13: now
    let a be object;
    assume
A14: a in the carrier of S;
    then reconsider v = a as Vertex of S;
A15: v in InputVertices S \/ InnerVertices S by A14,XBOOLE_1:45;
    thus ffs.a = (fffs).a
    proof
      per cases by A15,XBOOLE_0:def 3;
      suppose
        v in InputVertices S;
        hence thesis by CIRCUIT2:def 5;
      end;
      suppose
        v in InnerVertices S;
        then v in {xy, yz, zx} \/ {GFA1CarryOutput(x,y,z)} by Th42;
        then v in {xy, yz, zx} or v in {GFA1CarryOutput(x,y,z)} by
XBOOLE_0:def 3;
        then v = xy or v = yz or v = zx or v = GFA1CarryOutput(x,y,z) by
ENUMSET1:def 1,TARSKI:def 1;
        hence thesis by A12,A9,A11,A10,A8,A6,A4,Th51,Th52;
      end;
    end;
  end;
  dom Following Following(s,2) = the carrier of S & dom Following(s,2) =
  the carrier of S by CIRCUIT1:3;
  hence ffs = fffs by A13,FUNCT_1:2;
end;

::=========================================================================
::-------------------------------------------------
:: GFA1 Adder : Circuit Definition of Adder Output
::-------------------------------------------------

definition
  let x,y,z be set;
  func GFA1AdderStr(x,y,z) -> unsplit gate`1=arity gate`2isBoolean non void
  strict non empty ManySortedSign equals
  2GatesCircStr(x,y,z, xor2c);
  coherence;
end;

definition
  let x,y,z be set;
  func GFA1AdderCirc(x,y,z) -> strict Boolean gate`2=den Circuit of
  GFA1AdderStr(x,y,z) equals
  2GatesCircuit(x,y,z, xor2c);
  coherence;
end;

definition
  let x,y,z be set;
  func GFA1AdderOutput(x,y,z) -> Element of InnerVertices GFA1AdderStr(x,y,z)
  equals
  2GatesCircOutput(x,y,z, xor2c);
  coherence;
end;

::-------------------------------------------------------
:: GFA1 Adder : Carrier, InnerVertices and InputVertices
::-------------------------------------------------------
::-------------------------------------------------------
:: InnerVertices

theorem Th55:
  for x,y,z being set holds InnerVertices GFA1AdderStr(x,y,z) = {[
  <*x,y*>,xor2c]} \/ {GFA1AdderOutput(x,y,z)}
proof
  let x,y,z be set;
  set f = xor2c;
  set xy = [<*x,y*>,f];
  set S = GFA1AdderStr(x,y,z);
  thus InnerVertices S = {xy, GFA1AdderOutput(x,y,z)} by FACIRC_1:56
    .= {xy} \/ {GFA1AdderOutput(x,y,z)} by ENUMSET1:1;
end;

::-------------------------------------------------------
:: Carrier and misc.

theorem
  for x,y,z being set holds x in the carrier of GFA1AdderStr(x,y,z) & y
in the carrier of GFA1AdderStr(x,y,z) & z in the carrier of GFA1AdderStr(x,y,z)
& [<*x,y*>,xor2c] in the carrier of GFA1AdderStr(x,y,z) & [<*[<*x,y*>,xor2c], z
  *>, xor2c] in the carrier of GFA1AdderStr(x,y,z) by FACIRC_1:60,61;

theorem Th57:
  for x,y,z being set holds [<*x,y*>,xor2c] in InnerVertices
GFA1AdderStr(x,y,z) & GFA1AdderOutput(x,y,z) in InnerVertices GFA1AdderStr(x,y,
  z)
proof
  let x,y,z be set;
  set f = xor2c;
  set S = GFA1AdderStr(x,y,z);
  InnerVertices S = {[<*x,y*>,f]} \/ {GFA1AdderOutput(x,y,z)} by Th55
    .= {[<*x,y*>,f],GFA1AdderOutput(x,y,z)} by ENUMSET1:1;
  hence thesis by TARSKI:def 2;
end;

theorem Th58:
  for x,y,z being set st z <> [<*x,y*>, xor2c] holds x in
InputVertices GFA1AdderStr(x,y,z) & y in InputVertices GFA1AdderStr(x,y,z) & z
  in InputVertices GFA1AdderStr(x,y,z)
proof
  set f = xor2c;
  let x,y,z be set such that
A1: z <> [<*x,y*>,f];
  set S = GFA1AdderStr(x,y,z);
  InputVertices S = {x,y,z} by A1,FACIRC_1:57;
  hence thesis by ENUMSET1:def 1;
end;

::----------------------------------------------------
:: GFA1 Adder : Stability of the Adder Output Circuit
::----------------------------------------------------

theorem Th59:
  for x,y,z being set st z <> [<*x,y*>, xor2c] for s being State
of GFA1AdderCirc(x,y,z) for a1,a2,a3 being Element of BOOLEAN st a1 = s.x & a2
  = s.y & a3 = s.z holds (Following s).[<*x,y*>,xor2c] = a1 'xor' 'not' a2 & (
  Following s).x = a1 & (Following s).y = a2 & (Following s).z = a3
proof
  set f = xor2c;
  let x,y,z be set such that
A1: z <> [<*x,y*>,f];
  set A = GFA1AdderCirc(x,y,z);
  set xy = [<*x,y*>,f];
  let s be State of A;
  let a1,a2,a3 be Element of BOOLEAN such that
A2: a1 = s.x & a2 = s.y and
A3: a3 = s.z;
  (Following s).xy = f.<*a1, a2*> by A1,A2,Lm3;
  hence (Following s).xy = a1 'xor' 'not' a2 by Def4;
  thus thesis by A1,A2,A3,Lm3;
end;

theorem Th60:
  for x,y,z being set st z <> [<*x,y*>, xor2c] for s being State
of GFA1AdderCirc(x,y,z) for a1a2,a1,a2,a3 being Element of BOOLEAN st a1a2 = s.
  [<*x,y*>,xor2c] & a3 = s.z holds (Following s).GFA1AdderOutput(x,y,z) = a1a2
  'xor' 'not' a3
proof
  set f = xor2c;
  let x,y,z be set such that
A1: z <> [<*x,y*>,f];
  set A = GFA1AdderCirc(x,y,z);
  set xy = [<*x,y*>,f];
  let s be State of A;
  let a1a2,a1,a2,a3 be Element of BOOLEAN such that
A2: a1a2 = s.xy & a3 = s.z;
  thus (Following s).GFA1AdderOutput(x,y,z) = f.<*s.xy, s.z*> by A1,Lm3
    .= a1a2 'xor' 'not' a3 by A2,Def4;
end;

theorem Th61:
  for x,y,z being set st z <> [<*x,y*>, xor2c] for s being State
of GFA1AdderCirc(x,y,z) for a1,a2,a3 being Element of BOOLEAN st a1 = s.x & a2
  = s.y & a3 = s.z holds Following(s,2).GFA1AdderOutput(x,y,z) = a1 'xor' 'not'
  a2 'xor' 'not' a3 & Following(s,2).[<*x,y*>,xor2c] = a1 'xor' 'not' a2 &
  Following(s,2).x = a1 & Following(s,2).y = a2 & Following(s,2).z = a3
proof
  set f = xor2c;
  let x,y,z be set such that
A1: z <> [<*x,y*>,f];
  set xy = [<*x,y*>,f];
  set A = GFA1AdderCirc(x,y,z);
  let s be State of A;
  let a1,a2,a3 be Element of BOOLEAN such that
A2: a1 = s.x & a2 = s.y and
A3: a3 = s.z;
  thus (Following(s,2)).GFA1AdderOutput(x,y,z) = f.<* f.<*a1, a2*>, a3*> by A1
,A2,A3,FACIRC_1:62
    .= f.<*a1 'xor' 'not' a2, a3*> by Def4
    .= a1 'xor' 'not' a2 'xor' 'not' a3 by Def4;
  (Following(s,2)).xy = f.<*a1, a2*> by A1,A2,FACIRC_1:62;
  hence (Following(s,2)).xy = a1 'xor' 'not' a2 by Def4;
  thus thesis by A1,A2,A3,FACIRC_1:62;
end;

theorem Th62:
  for x,y,z being set st z <> [<*x,y*>, xor2c] for s being State
of GFA1AdderCirc(x,y,z) for a1,a2,a3 being Element of BOOLEAN st a1 = s.x & a2
= s.y & a3 = s.z holds Following(s,2).GFA1AdderOutput(x,y,z) = 'not' (a1 'xor'
  'not' a2 'xor' a3)
proof
  set f = xor2c;
  let x,y,z be set such that
A1: z <> [<*x,y*>,f];
  set A = GFA1AdderCirc(x,y,z);
  let s be State of A;
  let a1,a2,a3 be Element of BOOLEAN;
  assume a1 = s.x & a2 = s.y & a3 = s.z;
  hence
  (Following(s,2)).GFA1AdderOutput(x,y,z) = a1 'xor' 'not' a2 'xor' 'not'
  a3 by A1,Th61
    .= 'not' (a1 'xor' 'not' a2 'xor' a3) by XBOOLEAN:74;
end;

::=====================================================================
::---------------------------------------------------
:: GFA1 : Circuit Definition of GFA Combined Circuit
::---------------------------------------------------

definition
  let x,y,z be set;
  func BitGFA1Str(x,y,z) -> unsplit gate`1=arity gate`2isBoolean non void
  strict non empty ManySortedSign equals
  GFA1AdderStr(x,y,z) +* GFA1CarryStr(x,y,
  z);
  coherence;
end;

definition
  let x,y,z be set;
  func BitGFA1Circ(x,y,z) -> strict Boolean gate`2=den Circuit of BitGFA1Str(x
  ,y,z) equals
  GFA1AdderCirc(x,y,z) +* GFA1CarryCirc(x,y,z);
  coherence;
end;

::----------------------------------------------------------
:: GFA1 Combined : Carrier, InnerVertices and InputVertices
::----------------------------------------------------------
::-------------------------------------------------------
:: InnerVertices

theorem Th63:
  for x,y,z being set holds InnerVertices BitGFA1Str(x,y,z) = {[<*
x,y*>,xor2c]} \/ {GFA1AdderOutput(x,y,z)} \/ {[<*x,y*>,and2c], [<*y,z*>,and2a],
  [<*z,x*>,and2]} \/ {GFA1CarryOutput(x,y,z)}
proof
  let x,y,z be set;
  set f1 = and2c, f2 = and2a, f3 = and2;
  set f0 = xor2c;
  set xyf0 = [<*x,y*>,f0];
  set xyf1 = [<*x,y*>,f1], yzf2 = [<*y,z*>,f2], zxf3 = [<*z,x*>,f3];
  set S = BitGFA1Str(x,y,z);
  set S1 = GFA1AdderStr(x,y,z);
  set S2 = GFA1CarryStr(x,y,z);
  set A1 = GFA1AdderOutput(x,y,z);
  set A2 = GFA1CarryOutput(x,y,z);
  thus InnerVertices S = (InnerVertices S1) \/ InnerVertices S2 by FACIRC_1:27
    .= {xyf0} \/ {A1} \/ InnerVertices S2 by Th55
    .= {xyf0} \/ {A1} \/ ({xyf1, yzf2, zxf3} \/ {A2}) by Th42
    .= {xyf0} \/ {A1} \/ {xyf1, yzf2, zxf3} \/ {A2} by XBOOLE_1:4;
end;

theorem
  for x,y,z being set holds InnerVertices BitGFA1Str(x,y,z) is Relation
proof
  let x,y,z be set;
  set S1 = GFA1AdderStr(x,y,z);
  set S2 = GFA1CarryStr(x,y,z);
  InnerVertices S1 is Relation & InnerVertices S2 is Relation by Th43,
FACIRC_1:58;
  hence thesis by FACIRC_1:3;
end;

::-------------------------------------------------------
:: InputVertices

theorem Th65:
  for x,y,z being set st z <> [<*x,y*>,xor2c] & x <> [<*y,z*>,
  and2a] & y <> [<*z,x*>,and2] & z <> [<*x,y*>,and2c] holds InputVertices
  BitGFA1Str(x,y,z) = {x,y,z}
proof
  set f1 = and2c, f2 = and2a, f3 = and2;
  set f0 = xor2c;
  let x,y,z be set such that
A1: z <> [<*x,y*>,f0] & x <> [<*y,z*>,f2] & y <> [<*z,x*>,f3] & z <> [<*
  x,y *>,f1];
  set S2 = GFA1CarryStr(x,y,z);
  set S1 = GFA1AdderStr(x,y,z);
  InputVertices S1 = {x,y,z} & InputVertices S2 = {x,y,z} by A1,Th45,
FACIRC_1:57;
  hence thesis by CIRCCOMB:47,FACIRC_2:21;
end;

theorem Th66:
  for x,y,z being non pair set holds InputVertices BitGFA1Str(x,y, z) = {x,y,z}
proof
  let x,y,z be non pair set;
  set S = BitGFA1Str(x,y,z);
  set S1 = GFA1AdderStr(x,y,z);
  set S2 = GFA1CarryStr(x,y,z);
A1: InputVertices S1 = {x,y,z} & InputVertices S2 = {x,y,z} by Th50,FACIRC_1:57
;
  InnerVertices S1 is Relation & InnerVertices S2 is Relation by Th43,
FACIRC_1:58;
  hence InputVertices S = {x,y,z} \/ {x,y,z} by A1,FACIRC_1:7
    .= {x,y,z};
end;

theorem
  for x,y,z being non pair set holds InputVertices BitGFA1Str(x,y,z) is
  without_pairs
proof
  let x,y,z be non pair set;
  InputVertices BitGFA1Str(x,y,z) = {x,y,z} by Th66;
  hence thesis;
end;

::-------------------------------------------------------
:: Carrier and misc.

theorem
  for x,y,z being set holds x in the carrier of BitGFA1Str(x,y,z) & y in
the carrier of BitGFA1Str(x,y,z) & z in the carrier of BitGFA1Str(x,y,z) & [<*x
,y*>,xor2c] in the carrier of BitGFA1Str(x,y,z) & [<*[<*x,y*>,xor2c],z*>,xor2c]
  in the carrier of BitGFA1Str(x,y,z) & [<*x,y*>,and2c] in the carrier of
BitGFA1Str(x,y,z) & [<*y,z*>,and2a] in the carrier of BitGFA1Str(x,y,z) & [<*z,
  x*>,and2] in the carrier of BitGFA1Str(x,y,z) & [<*[<*x,y*>,and2c],[<*y,z*>,
  and2a],[<*z,x*>,and2]*>,or3] in the carrier of BitGFA1Str(x,y,z)
proof
  let x,y,z be set;
  set f1 = and2c, f2 = and2a, f3 = and2, f4 = or3;
  set f0 = xor2c;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  set xyz = [<*xy, yz, zx*>,f4];
  set S1 = GFA1AdderStr(x,y,z);
  set S2 = GFA1CarryStr(x,y,z);
A1: x in the carrier of S1 & y in the carrier of S1 by FACIRC_1:60;
A2: z in the carrier of S1 & [<*x,y*>,f0] in the carrier of S1 by FACIRC_1:60
,61;
A3: xyz in the carrier of S2 by Th47;
A4: yz in the carrier of S2 & zx in the carrier of S2 by Th47;
  [<*[<*x,y*>,f0],z*>,f0] in the carrier of S1 & xy in the carrier of S2
  by Th47,FACIRC_1:61;
  hence thesis by A1,A2,A4,A3,FACIRC_1:20;
end;

theorem Th69:
  for x,y,z being set holds [<*x,y*>,xor2c] in InnerVertices
BitGFA1Str(x,y,z) & GFA1AdderOutput(x,y,z) in InnerVertices BitGFA1Str(x,y,z) &
  [<*x,y*>,and2c] in InnerVertices BitGFA1Str(x,y,z) & [<*y,z*>,and2a] in
InnerVertices BitGFA1Str(x,y,z) & [<*z,x*>,and2] in InnerVertices BitGFA1Str(x,
  y,z) & GFA1CarryOutput(x,y,z) in InnerVertices BitGFA1Str(x,y,z)
proof
  let x,y,z be set;
  set f1 = and2c, f2 = and2a, f3 = and2;
  set f0 = xor2c;
  set xyf0 = [<*x,y*>,f0];
  set xyf1 = [<*x,y*>,f1], yzf2 = [<*y,z*>,f2], zxf3 = [<*z,x*>,f3];
  set S = BitGFA1Str(x,y,z);
  set A1 = GFA1AdderOutput(x,y,z);
  set A2 = GFA1CarryOutput(x,y,z);
  InnerVertices S = {xyf0} \/ {A1} \/ {xyf1,yzf2,zxf3} \/ {A2} by Th63
    .= {xyf0,A1} \/ {xyf1,yzf2,zxf3} \/ {A2} by ENUMSET1:1
    .= {xyf0,A1,xyf1,yzf2,zxf3} \/ {A2} by ENUMSET1:8
    .= {xyf0,A1,xyf1,yzf2,zxf3,A2} by ENUMSET1:15;
  hence thesis by ENUMSET1:def 4;
end;

theorem
  for x,y,z being set st z <> [<*x,y*>,xor2c] & x <> [<*y,z*>,and2a] & y
<> [<*z,x*>,and2] & z <> [<*x,y*>,and2c] holds x in InputVertices BitGFA1Str(x,
y,z) & y in InputVertices BitGFA1Str(x,y,z) & z in InputVertices BitGFA1Str(x,y
  ,z)
proof
  set f1 = and2c, f2 = and2a, f3 = and2;
  set f0 = xor2c;
  let x,y,z be set such that
A1: z <> [<*x,y*>,f0] & x <> [<*y,z*>,f2] & y <> [<*z,x*>,f3] & z <> [<*
  x,y*>,f1];
  set S = BitGFA1Str(x,y,z);
  InputVertices S = {x,y,z} by A1,Th65;
  hence thesis by ENUMSET1:def 1;
end;

::------------------------------------------------------------------
:: GFA1 : Carry and Adder Output Definition of GFA Combined Circuit
::------------------------------------------------------------------

definition
  let x,y,z be set;
  func BitGFA1CarryOutput(x,y,z) -> Element of InnerVertices BitGFA1Str(x,y,z)
  equals
  [<*[<*x,y*>,and2c],[<*y,z*>,and2a],[<*z,x*>,and2]*>,or3];
  coherence
  proof
    GFA1CarryOutput(x,y,z) in InnerVertices BitGFA1Str(x,y,z) by Th69;
    hence thesis;
  end;
end;

definition
  let x,y,z be set;
  func BitGFA1AdderOutput(x,y,z) -> Element of InnerVertices BitGFA1Str(x,y,z)
  equals
  2GatesCircOutput(x,y,z, xor2c);
  coherence
  proof
    GFA1AdderOutput(x,y,z) in InnerVertices BitGFA1Str(x,y,z) by Th69;
    hence thesis;
  end;
end;

::-------------------------------------------------------------
:: GFA1 Combined : Stability of the Adder/Carry Output Circuit
::-------------------------------------------------------------

theorem
  for x,y,z being set st z <> [<*x,y*>,xor2c] & x <> [<*y,z*>,and2a] & y
<> [<*z,x*>,and2] & z <> [<*x,y*>,and2c] for s being State of BitGFA1Circ(x,y,z
) for a1,a2,a3 being Element of BOOLEAN st a1 = s.x & a2 = s.y & a3 = s.z holds
  Following(s,2).GFA1AdderOutput(x,y,z) = 'not' (a1 'xor' 'not' a2 'xor' a3) &
Following(s,2).GFA1CarryOutput(x,y,z) = (a1 '&' 'not' a2) 'or' ('not' a2 '&' a3
  ) 'or' (a3 '&' a1)
proof
  set f1 = and2c, f2 = and2a, f3 = and2;
  set f0 = xor2c;
  let x,y,z be set such that
A1: z <> [<*x,y*>,f0] and
A2: x <> [<*y,z*>,f2] & y <> [<*z,x*>,f3] & z <> [<*x,y*>,f1];
  set S2 = GFA1CarryStr(x,y,z);
  set S1 = GFA1AdderStr(x,y,z);
  InputVertices S1 = {x,y,z} by A1,FACIRC_1:57;
  then
A3: InputVertices S1 = InputVertices S2 by A2,Th45;
  set A2 = GFA1CarryCirc(x,y,z);
  set A1 = GFA1AdderCirc(x,y,z);
  set A = BitGFA1Circ(x,y,z);
  let s be State of A;
  let a1,a2,a3 be Element of BOOLEAN;
  assume that
A4: a1 = s.x and
A5: a2 = s.y and
A6: a3 = s.z;
  reconsider s1 = s|the carrier of S1 as State of A1 by FACIRC_1:26;
A7: dom s1 = the carrier of S1 by CIRCUIT1:3;
  z in the carrier of S1 by FACIRC_1:60;
  then
A8: a3 = s1.z by A6,A7,FUNCT_1:47;
  y in the carrier of S1 by FACIRC_1:60;
  then
A9: a2 = s1.y by A5,A7,FUNCT_1:47;
  reconsider t = s as State of A1+*A2;
  InnerVertices S2 misses InputVertices S2 by XBOOLE_1:79;
  then
A10: Following(t,2).GFA1AdderOutput(x,y,z) = Following(s1,2).GFA1AdderOutput
  (x,y,z) by A3,FACIRC_1:32;
  reconsider s2 = s|the carrier of S2 as State of A2 by FACIRC_1:26;
A11: dom s2 = the carrier of S2 by CIRCUIT1:3;
  x in the carrier of S1 by FACIRC_1:60;
  then a1 = s1.x by A4,A7,FUNCT_1:47;
  hence Following(s,2).GFA1AdderOutput(x,y,z) = 'not' (a1 'xor' 'not' a2 'xor'
  a3) by A1,A9,A8,A10,Th62;
  InnerVertices S1 misses InputVertices S1 by XBOOLE_1:79;
  then
A12: Following(t,2).GFA1CarryOutput(x,y,z) = Following(s2,2).GFA1CarryOutput
  (x,y,z) by A3,FACIRC_1:33;
  z in the carrier of S2 by Th47;
  then
A13: a3 = s2.z by A6,A11,FUNCT_1:47;
  y in the carrier of S2 by Th47;
  then
A14: a2 = s2.y by A5,A11,FUNCT_1:47;
  x in the carrier of S2 by Th47;
  then a1 = s2.x by A4,A11,FUNCT_1:47;
  hence thesis by A2,A14,A13,A12,Th53;
end;

theorem
  for x,y,z being set st z <> [<*x,y*>,xor2c] & x <> [<*y,z*>,and2a] & y
<> [<*z,x*>,and2] & z <> [<*x,y*>,and2c] for s being State of BitGFA1Circ(x,y,z
  ) holds Following(s,2) is stable
proof
  set f1 = and2c, f2 = and2a, f3 = and2;
  set f0 = xor2c;
  let  let utions of Linear Equations
A1:: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
A2:: http://creativecommons.orgjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
setA  BitGFA1Circ(,yz;
  let s be State of A;
  set S2 = GFA1CarryStr(x,y,z);
 S1= x,z)java.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
  InputVertices S1 = {x,y,z} by A1,FACIRC_1:57;
  then ,MATRIX13 PNPROC_1 ,LAPLACEjava.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
A3: InputVertices S1 = InputVertices S2 by A2,Th45;
  set A1 =equalities XBOOLE_0, FINSEQ_1,FINSEQ_2,MATRIX_0 GROUP_4 MATRIX_3,
  reconsider s1 = s|the carrier of S1 as State of A1 by FACIRC_1:26;
        GROUP1, LAPLACE,MATRIX_0, MATRIX_3, MATRIX_4, MATRIX_5,
  then
A4: Following(s1,2) = Following Following(s1,2)
    .=      ZFMISC_1, NAT_D, PRE_POLY, MEASURE6, MATRIX_1, VALUED_1,FINSEQ_4;
  set A2 =GFA1CarryCircx,,z;
   s2 carrier ofS2  Stateof A2  :;
  (s2,)is stable byA2,Th54java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
  then
A5: Following(s2,2) = Following FollowingA3: aABlen AB by MATRIX_3:ef 5java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
. s22+12java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
A8 ij inIndices AB by MATRIXR1:;

A6 then
I S2misses InputVertices  byXBOOLE_1:java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
  then
:2 t2)|carrierofS1&s13) =
  Followingt,)the carrier ofS1 by A3,FACIRC_1:30java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53

 then1A=1_K*A;
A8:Followings2,)= Following(t,2)|the carrier of S2 & Following(s2,3) =
  Following(t,3)|the carrier of S2 by A3,FACIRC_1:31;
A9: the carrier of S = (the carrier of S1) \/ the carrier of S2 by
CIRCCOMB:def 2;
A10: dom Following(s1,2) = the carrier of S1 & dom Following(s2,2) = the
  carrier of S2 by CIRCUIT1:3;
A11: now
    let a be object;
    assume a in the carrier of S;
    then a in the carrier of S1 or a in the carrier of S2 by A9,XBOOLE_0:def 3;
    then (Following(s,2)).a = (Following(s1,2)).a & (Following(s,3)).a = (
Following(s1,3)).a or (Following(s,2)).a = (Following(s2,2)).a & (Following(s,3
    )).a = (Following(s2,3)).a by A7,A8,A4,A5,A10,FUNCT_1:47;
    hence (Following(s,2)).a = (Following Following(s,2)).a by A4,A5,
FACIRC_1:12;
  end;
  Following(s,2+1) = Following Following(s,2) & dom Following(s,2) = the
  carrier of S by CIRCUIT1:3,FACIRC_1:12;
  hence Following(s,2) = Following Following(s,2) by A6,A11,FUNCT_1:2;
end;

::========================================================================
:: Generalized Full Adder (GFA) Circuit (TYPE-2)
::========================================================================

begin :: Generalized Full Adder (GFA) Circuit (TYPE-2)
::========================================================================
:: << GFA TYPE-2 >>
::------------------------------------------------------------------------
::   Name     : Generalized Full Adder Type-2 (GFA2)
::   Function : - x + y - z = - 2 * c + s
::
::   Logic Symbol :     -x      y      Combined : GFA2CarryIStr(x,y,z)
::                       |     /                  GFA2CarryStr(x,y,z)
::                       |    /                   GFA2AdderStr(x,y,z)
::                   +---O---*                  --->
::                   |  GFA  O---- -z             BitGFA2Str(x,y,z)
::                   | TYPE2 |
::                   O---*---+          Outputs : BitGFA2CarryOutput(x,y,z)
::                  /    |                        BitGFA2AdderOutput(x,y,z)
::                 /     |
::               -c      s          Calculation : Following(s,2) is stable.
::=========================================================================
::-------------------------------------------------
:: GFA2 Carry : Circuit Definition of Carry Output
::-------------------------------------------------

definition
  reconsiderHhWwas Element of len h)tuples_on KKby A2,FINSEQ_2:;
  (xy,z - unsplitgate`=arity gate`isBooleannon void
  strict non empty ManySortedSign equals
 1GateCircStr(*x,y*>,and2a +java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  1GateCircStr(*,z*,and2c) *1GateCircStr(<*,*,nor2)java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
  coherence;
end;

definition
  let x,y,z be set;
A3:    i domf;
  xy,z)equals
  1GateCircuit(x,y,and2a) +* A5:     FSeg lenf byFINSEQ_2:;
  + 1GateCircuit(z,xnor2);
  coherence;
end;

definition
  let x,yA9:dom(a*)Seglen g&len (a*)lenf  CARD_1:def 7,FINSEQ_2:java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
  func GFA2CarryStr(x,y,z) -> unsplit gate`1=arityA12:    dom G=Seg len g by FINSEQ_2124java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
  strict non empty           .=(a*). by A10,A12,FVSUM_1
  rryIStrx,y,z + 1GateCircStr(<*
  <*x,  hence thesis y FINSEQ_2:19java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
  coherence;
end;

definition
  let x,y,z be set;
  func GFA2CarryCirc(x,y,z) -> strict Boolean  let f beFunction;
  GFA2CarryStr(x,y,z) equals
  GFA2CarryICirc(x,y,zA3:f1f*1 and
  ],[  rng (p1p2)=rng p1 \/ng p2 by FINSEQ_1:;
  coherence;
end;

definition
  let x,y,zbe set;
  func GFA2CarryOutputx,,yz -Element ofInnerVertices GFA2CarryStrxy,z)
        percases
and2a,<y,z*,nd2c,<z,*n]>,or3]

  proof
    [<*[<*x,y* thus (1f2).i =f2.n by A9A8,A13,A14,FINSEQ_1:def 7
InnerVertices 1GateCircStr(<*[*xy*>,and2a],<*y,*,and2c],[*z,x*>,nor2]*
    nor3) java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 26
     byFACIRC_1:;
  end;
endforfbe-FinSequence, st len f$  rngfc=

::-------------------------------------------------------
:: GFA2 Carry : Carrier, InnerVertices and InputVertices
::-------------------------------------------------------
::-------------------------------------------------------
:: InnerVertices

theorem Th73:
  forx,,z being set holds InnerVerticesGFA2CarryIStr(x,y,)= {
  [then

  let x,y,z be set;
   and2a,f2 =and2c,f3  nor2;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>A14  i < j
  set Cxy = 1GateCircStr(<*x,y*>,f1);
  set Cyz = 1GateCircStr(<*yz*>,f2);
  :n1 in Seg=eg n1by A5,INSEQ_1:4,def 3;
A1: A18:m9inrng fnand
  Cxy +A20:   indom fnand
  then InnerVertices   .x x byA9A20,def7
  InnerVertices(Czx) by CIRCCOMB:thenfx< f.1byA8,A11A20,A17;
    .= InnerVertices(     then
CIRCCOMB:11
    .= {xy    rngfn =Seg k by A6,10java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
    .= {xy} \/ {yz} \/ InnerVertices(Czx) by CIRCCOMB:42
    . {xy}\/{yz} \ {zx}by CIRCCOMB:2
    }\/{zx} by ENUMSET1:1
    .= {xy, yz, zx}     then
  hence thesis;
end;

theorem Th74:
sInnerVertices GFA2CarryStr(x,,z)={
  <*Th7

  let x,y,z be set;
  set f1 =   empty ;
  set A4 < and
  set Cxy = 1: dom p=Seg len p by FINSEQ_1;
  set Cyz = 1GateCircStr:p =pI by:
  A9: i=len p byA2,6FINSEQ_1:;
  set Cxyzthen not j in dom pI by A4,FINSEQ_1:1;
A1: Cxy:jiin dom q and
(zx+  java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 45
  then
A2then k+ > i+ XREAL_1:7;
  InnerVertices (Czx +* Cxyz) 
CIRCCOMB:;
  then
A3 ( +Cxyz)  InnerVertices Czx \ nnerVertices Cxyz by
CIRCCOMB:11;
  thus java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
  +* Cxyz):dom ISeg lenI FINSEQ_1def3;
    .= InnerVertices (Cxy +* (Cyz +* Czx:Seg nm)\eg c
    .= InnerVertices Cxy \/ InnerVertices (Cyz     i Seg n byA5,XBOOLE_0:def 5;
:11
    then
    .InnerVertices Cxy \/InnerVertices \/(nnerVerticesCzx\
  InnerVerticesCxyz)by A2A,XBOOLE_1:4
    .= InnerVertices Cxy  ( ShiftI)c=eg n+\n
  InnerVertices     assume x in dom   I;
    .= {xy} \/A11:k indomI by A3java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
  byCIRCCOMB:java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
    .= {1<n+by A13X2
    .= {xy} \/ {yz hence by ,XBOOLE_0:def5
    .{y, yz}\/zx /InnerVerticesby ENUMSET11
    .= {xy, yz, zx} \/ InnerVertices Cxyz by ENUMSET1:3
    . xy, yz, zx}\/{GFA2CarryOutput(x,,}by CIRCCOMB42
end

java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 13
  for x,y,z being set holds InnerVertices GFA2CarryStr(x,y,z) is Relation
proof
cj)exM beMatrix of A,width ,st (,xB) B&Segm(,x,y)=C
  et   and2a f2=and2c,f3  nor2  nor3;
  setxy  <*y*f1] yz  <*,z*>,f2], zx = [<*zx*f3]java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
  set Cxy = 1GateCircStr(<*x,y*>,f1);
  set Cyz = 1GateCircStr(:[Cx,Cy:] c= IndicesA;
  set Czx = 1GateCircStr(<*z  setw=idthA;
  set Cxyz= G(<*xy  *f)
  InnerVertices Cxyset cBx
  then InnerVertices Czx is Relation  +Cyz)is Relation
  byFACIRC_1:,
  InnerVertices  is Relation&InnerVertices GFA2CarryIStr(x,y,z)is
lationby FACIRC_1:,38java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  hencethesis by FACIRC_13
end

::-------------------------------------------------------
:: InputVertices

theorem Th76:
  for x,,beingset stx >[*,*,]&y >[*,*,
]&z >[*y*a] holds InputVertices GFA2CarryIStr(xy,)= xyz
  }
oof
 xy,z beset;
  f1 =and2a,  =and2c,f3  nor2java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
  setxy  <x,y*,1], yz =[*,z*>f2],zx=[*,*,3]
  set Cxy = 1GateCircStr(<*x[,j in[Segl, w:;
  set Cyzper casesjava.lang.StringIndexOutOfBoundsException: Range [14, 15) out of bounds for length 14
  t j in Cy by FMISC_1:java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
  ssumethat
A1: x <> yz and
A2: y <>zx &z >xy;
A3: not xy in A22: SgmByy=j by A5FUNCT_1d3
A4 not zx in x,y, by A1,,Lm1java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
       inBx byA18,FMISC_1:;
A6: ( A25:  x in omSgm Bx and
A7: Cxy tolerates Cyz byreconsider ,Element NAT A25A21;
  : 
  InnerVertices)\ (nputVertices(zx)\InnerVertices(Cxy +Cyz) by
CIRCCMB25CIRCCOMB47
    .= ((InputVertices[ij [Bx,By:/[CxCy]&Sgm Bx".=java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
  InnerVertices(Cxy))) \ InnerVertices(Czx)end
  InnerVerticesCxy *Cyz) byCIRCCMB2:,:
    SgmBx.=i 
  InnerVertices(Cxy))) B*n byA9A,A31A33,:;
  InnerVertices(Cxy) \/ InnerVertices(Cyz))) by A7,CIRCCOMB:11
    .= ((InputVertices(Cxy      thesis byA18,25A26,21,22,23A24,A19,A20A27,def 3
) InnerVerticesCzx)\/InputVertices(  InnerVerticesCxy /
  InnerVertices(Cyz))) by CIRCCOMB:42
tconsidery being object such that
  InnerVertices:Sgm Byyj by A5,FUNCT_1:def3;
  () CIRCCOMB:2
    .= ((InputVertices(Cxy) \ {yz}) take BB=*y;
          let mn such that
CIRCCOMB:42
    .=:    SgmBy.j
  /Ijava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 71
    .= ((InputVertices(Cxy) \ {yzjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 8
  \/ (InputVertices(Czx) \ ({xy} \/ {yz      thenjin Cy byZFMISC_1:;
    .= (({x:SgmCyy FUNCT_1def3;
  InputVertices(Czx) \ ({xy} \/ {yz})) by java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 25
    .= (({x      take CCC*x,)
  xy} \/ {yz})) by FACIRC_1:40
    .= (({x,         = mby A16A,A48,A50,FUNCT_1:ef 4;
  by FACIRC_1:40
    .= (({x,y} \ {yz}) \/ ({y,z} \ {xyend
ENUMSET1:1
    .= (({x,y} \/ ({y,z} \ e
FACIRC_2:1
    . {x,y}/{y,) \z /(z,}\{y,} by A3,ZFMISC_1:57
  sch2A17)
    .= {x  take
    .= {yA54:Indices A=Indices M by MATRIX_0:26;
    .= {y,x,z} \ {zx} \/A55: dom Sgm Bx=Seg bxby FINSEQ_3:;
    .= {x,y,z} \ {zx} \/ {z,x} by ENUMSET1:58
    .= {x,y,z}    <0 byA56,MATRIX_0:22;
    .= {x,y,z then
    .then
    .= {z,z,x,y}then
    .= {z,x,y} \/ {x} by ENUMSET1: then [Sgm Bx.i,Sgm By.j] in [:Bx[SgmBx.SgmByj][Bx,] by A5987;
    .= {z,x,y,. *ij java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 40
    .= {x,x,y,z=Seg cx by FINSEQ_3:40;
    .= {x,y,z}     let i, suchthat
  hence thesis;
end;

 jinSegcybyA6387;
  for x,y,z being set st x <> [<*y,z*>,and2c] & y <> [<*z,x*>,
  z<> [*,*and2a]holds x,y,z) = {x,y}
proof
  let x,y,z be set;
  set f1 = h  byMATRIX_027;
  et = <**,yz  <yz*,2], zx  <*x*>,f3]
=[*y  >,4];
  set S = 1GateCircStr(<endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
   MI x,z;
A1: InputVertices S = rng <*xy, java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 13
    .= {xy,letij suchthat
  assume
A2: dom A=Seg A byFINSEQ_1def3;
A3  S={xyz  {x , \{  x, y } byLm242;
A4: {xy, yz, zx} \ {xy, yz, zx} = {} by   then
InputVerticesGFA2CarryStr(yz)=((MI) \
  S) \/ ((InputVertices S) \ java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 20
   ={,,}\/({xy ,zx   MI A2A3,
    .= {x,y,z} \/ {} byA14:card P9=the_rank_ofSand
    .= {x,y,z};
end;

theorem
  for x,y,zP2  Sgm P.P9 
  is without_pairs
proof
  let x,y,z be non pair set;
  set f1  set Q2jQ\/j0;
  setxy =[*x,y*,f1]   [*yz*,f2] zx=[*,*>f3;
    percases;
  set Cyz = 1GateCircStrthencard =0or cardQ0 byCARD_1:27,FMISC_190java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
  set Czx = 1GateCircStr(<*z,x*>,f3);
  set S = 1GateCircStr(<*xy, yzsjava.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9
  set M = GFA2CarryStr( c domAby A16java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
      then
  given xx being pair object such that
A1 InputVerticesM;
A2: Cxy tolerates Cyz by A27 j0}c= Seg width  byA11,31;
 c=Segwidth A byA26A27XBOOLE_1:8;
 {}& java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 69
  then InnerVertices (Cxy +* Cyz) = { i in i by TARSKI:ef ;
  then
A4: InnerVertices MI = {xy} \/ {yz} \/ {zx} by A3,CIRCCOMB:11
    .= {xy, yz} \/ {zx} by ENUMSET1:1
    .= {xy, yz, zx} by ENUMSET1:3;
  InputVertices S = {y yz, zx}by FACIRC_142
  then
java.lang.StringIndexOutOfBoundsException: Range [35, 2) out of bounds for length 62
  InputVertices Cxy A40 card Q2jcard Q2+1 by CARD_2:41;
  by FACIRC_1:;
  then InputVertices Czx is without_pairs & InputVertices (Cxy+*Cyz) is
  without_pairs by FACIRC_1:9,41;
  then
A4:Sgm Q2j.y=j by A30,FUNCT_1:3;
  InnerVertices S is Relation by FACIRC_1:38;
  then
  InputVerticesM = (InputVertices MI)\/(InputVertices S \ InnerVertices
  MI) by A6,FACIRC_1:6;
  hence thesis by A6,A1,A5;
end;

::-------------------------------------------------------
:: Carrier and misc.

Th79java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
ngset holds x in the carrier ofGFA2CarryStr(x,y,z
  inthe carrier of GFA2CarryStr(,y,z)& z  the carrier of GFA2CarryStr(
x,y,z) & [<*x,y*>,      .EqSegm(,P9Q9) byA13,A20,:def ;
   inthecarrier ofGFA2CarryStrx,y,)&[*,*,]in  carrier of
GFA2CarryStr(xy,)&[*<x,*,and2a,<yz*a][*,*,]*nor3
  ]intheofjava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 41
proof
  let x,y,z be set;
  et f1 =and2a, f2  and2c,f3 =nor2,f4=nor3;
  set xy = [<*x,y*>,f1], yz = [  not Sgm Q2jkin {} byTARSKIdef 1
  set xyz = [<*xy, yz, zx*>,f4];
  set Cxy =:  Sgm Q2j.k in Q by A17;
  set Cyz = 1GateCircStr(<*y,z*>,f2);
  set Czx = 1GateCircStr(<*z,x*>,f3considerz  object such that
  setCxyz  1GateCircStr(<xy, yz zx*f4)
  =<xy,yzzx*;
  z in the carrier of Czx by FACIRC_1:43;
      . card R |> .).by A6,A59,UNCT_1:java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
y FACIRC_1:java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
  zxthen
  then
A2:zxin the carrier of GFA2CarryIStr(x,,z)by FACIRC_1:0java.lang.StringIndexOutOfBoundsException: Range [61, 62) out of bounds for length 61
  y in the carrier of Cxy by FACIRC_1:43;
  then y in the carrier of Cxy +* Cyz by FACIRC_1:20;
  then
A3: y in the carrier of GFA2CarryIStr(    then the_rank_of A >= card P2i by A,A18,A19,37,A40,A33,MATRIX13:def 4java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
  the carrier of Cxyz = rng pjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
,ARSKI::ef1java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
  then
A4: xyz in the carrier of Cxyz by XBOOLE_0:def 3;
  yz in the carrier of Cyz by FACIRC_1:=A
thenyz  thecarrier ofCxy +Cyz by FACIRC_1:20;
  hen
A5: yz in the carrier U is linearly-java.lang.StringIndexOutOfBoundsException: Range [33, 29) out of bounds for length 33
  xy in the carrier of Cxy by FACIRC_1:43;
  thenxy in the carrier of Cxy + Cyz by :;
  then
: xy inthe carrier ofGFA2CarryIStrx,y,)by FACIRC_1:;
  x in the carrier of Czx by FACIRC_1:43;
  thenA10 A=Segl byFINSEQ_1:def3java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
  hence thesis by A3,A1,A6,A5,A2,A4,FACIRC_1:20;
end;

theorem Th80:
  forx,y,z being set holds [<*x,y*>,and2a] in InnerVertices
GFA2CarryStr(x,y,z) & [<*y,z*>,and2c] in InnerVertices GFA2CarryStr(x,y,z)A13 N.=i A,FUNCT_1: 3;
<z,*nor2]in InnerVerticesGFA2CarryStr(xy,)&GFA2CarryOutput(x,,z 
  InnerVertices GFA2CarryStr(x,y,z)
proof
  let x,y,z be set;
  set f1 = and2a, f2 = and2c, f3 = nor2;
  set    A9  ,MATRIX13:;
  InnerVertices      W<=  A9byA16,ATRIX13:;
  )} by Th74
    ={yz,zx,GFA2CarryOutput(xyz} byENUMSET1:;
  hence thesis
end;

orem Th81
  A1:N cSeg width A and
nor2]&z >[*,*,]holds x I (yz  y
  inInputVertices GFA2CarryStrxyz   inInputVerticesGFA2CarryStrx,z)
proof
  set f1 = and2a, f2 = and2c, f3 = nor2;
  tx,,z be set;
  assume x <> [<*y,z*>,f2] & y <> [<*z,x*>,f3] & z <> [thenconsider ij that
  then InputVertices GFA2CarryStr(x,y,z) = {x,y,z} by Th77;
  hence thesisbyENUMSET1: 1;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

theorem Th82:
  for x,y,z         .=Col(A,j). by A2,8,A5
  y,z)       hence thesis by A7;
proof
  let x,y,z be non pair set;
  set f1 = and2a, f2 = and2c, f3 = nor2, f4 = nor3;
  set xy = [<*x,y*>,f1], yz =A10: card N>0;
  set Cxy=1GateCircStr(<*,*f)
  set Cyz  GateCircStr(<*y,z*>,f2);
  set Czx = 1GateCircStr(<*z,x*>,f3);
  set M = java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 14
  set MI = GFA2CarryIStr(x,yA15 ATwidth A by A11,MATRIX_0:54;
  set S = 1GateCircStr(<*xy,yz,zx*>,f4);
A1:let isuch that
A2:InputVertices Czx  zx}byFACIRC_140java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
A3:  S  xy,yz,zx}by FACIRC_142;
A4: InnerVertices S is Relation by FACIRC_1:38;
. the_rank_of(Segm(ASeg lenA,))by 3A10,A12,13MATRIX13:61
  Cxy tolerates Cyzby IRCCOMB:47;
  then
:InnerVertices Czx = zx}  InnerVertices (Cxy +Cyz  xy /{z}by ,
IRCCOMB:11,;
  Cxy +* Cyz tolerates Czx by CIRCCOMB:47java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 64
    .= {xy, java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 15
    .= {xy, yz, zx} by ENUMSET1:3;
  then
A7  S  InnerVertices MI={ by,XBOOLE_1:
 x in UU;
  by FACIRC_1:41;
  then
A9: InputVertices Czx is without_pairs & InputVertices (Cxy+*Cyz) is
  without_pairs by FACIRC_1:9,41;
  ;
  then
  InputVertices M = (InputVertices MI  bySTRUCT_0:ef 
  MI) by A4,FACIRC_1:6;
  hence
  java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 79
FACIRC_1:7
    ( \{}\/ua*})= LinU
,A5,FACIRC_1:7
    .= let u,v beVector of V, such that
    {y,y,x,z} \ zx} by ENUMSET1:
    .= {y,x,z} \/ {z >-1_K oru =0.V);
    .= { et UU=U\{u};
    .= {x,y,z} \/ ({z}\/{x}) by ENUMSET1:proof
    .= {x,y,z} \/ {z} \/ {x} by XBOOLE_1:4
    .= {z,x,yx=u
    .= {z,z,A6     <v
    .= {z,x,y} \/ {x} by ENUMSET1:31
    .= {x,y,z} \/ {x} by = u by RLVECT_1:def 4
    .= {x,x,y,z} by ENUMSET1:4
    .= {x,ythen
end;

::----------------------------------------------------
:: GFA2 Carry : Stability of the Carry Output Circuit
::----------------------------------------------------

theorem Th83:
   set for being State of GFA2CarryCircx,z)
for a1,a2,a3 being Element suppose
Following s).[<*x,y*>,and2a] = 'not' a1 '&' a2 & (Following s).[<*y,z
  = a2 '&' 'not' a3 & (Following s).[<*z,x*>,nor2] = 'then 0.K<> -1_-aby
proof
  let x,y,z be set;
  setA10:     .K<>a1K byVECTSP_1:;
  let s be State of GFA2CarryCirc(x,y,z);
  et xy =[<*y*,f1,yz = [*,zz*,f2,zx  <*,x*,f3]
  let a1,a2,a3 be Element of BOOLEAN such that
A1: a1 = s.x and
A2: a2 = s.y and
A3: a3=s.z;
    x,y,)
:InnerVertices  thecarrier'ofS by FACIRC_1:37;
A5: y in the carrier of S by Th79;
A6 xin the  of S byTh79;
A7: dom s = the carrier of S by CIRCUIT1:3;
  xy in InnerVerticesend;
suppose
    .= f1.<*      then x in UUby A4ZFMISC_1:6java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
    .= 'not' a1 '&' a2 by TWOSCOMP:def 2;
A8then Lin U is Subspace of Lin UU\{ua} byVECTSP_91java.lang.StringIndexOutOfBoundsException: Range [58, 59) out of bounds for length 58
  yz in InnerVertices GFA2CarryStr(x,y,z) by Th80;
  hence (Following s).[<*y,z*>,f2] = f2.(s*<*y,z*>) by A4,FACIRC_1:35
    .= f2.*a2,a3*by ,A3,A7,A5,A8,FINSEQ_2:
    . a2 & not'a3by Def3
  zx in InnerVertices GFA2CarryStr(x,y,z) by Th80;
  hence (Followingbegin :: Selected properties of the operator ^^
    .= let n,mk be Nat;
    .= 'not' a3 '&' 'not' a1 by java.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 27
end;

 Th84
  for x,y,z being set for. nbyMATRIX_0def2;
for a1,a2,a3 being Element of BOOLEAN st a1 = s.[<*x,y*>,and2a] & a2 = s.[<*y,z
*,and2c] & a3 =s.<*,x*,nor2]holds (Following s).FA2CarryOutput(xy,z) java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
  'not' (a1 'or' a2 'or' a3)
proof
  let x,y,z be set;
  set f1 = and2a, f2 = and2c, f3 = nor2, f4 = nor3;
  let s  Stateof GFA2CarryCirc(x,,)java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
  set xy =[<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*;
  let a1,a2,a3 be Element of BOOLEAN such that
A1: a1 = s.xy & a2 = s.yz & a3 = s.zx;
  set S = GFA2CarryStr(x,y,z);
  reconsider xy, yz, zx as Element of InnerVertices S by Th80;
A2: dom s = the carrier of S by CIRCUIT1:3;
  InnerVertices S = the carrier' of S by FACIRC_1:37;
  (Following s.FA2CarryOutput(x,yz)=f4.s**xy,yz zx* by
FACIRC_1:35
ejava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
    . 'ot' a1 or' a2 or'a3)by WOSCOMP:ef28;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

theorem Th85:
  forA1: le: len AB=n &dom AB=Seglen  by FINSEQ_1:def 3,MATRIX_0:ef 2;
nor2] & z <> Segn;
  a2,a3 being Element of BOOLEAN st a1 = s.java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 58
  Following(s,2).GFA2CarryOutput(xend;
  'not'    Dbe non emptyset  bebeofn,D,B nk
'java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  s,2).[<*A1: i in Seiinwidth;
proof
  set   such
  let x,y,z then widthAB=widthA+idthB byMATRIX_023
A1: xthen
  set S = GFA2CarryStr(x,y,z);
  reconsiderx9 =x y9  y z9=zas Vertex ofS byTh79
  let s be State of GFA2CarryCirc(x,y,z);
 y in  S by 1,;

:s.=.y def5java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
  z inInputVertices S by A1,Th81;
  then
A3  D benon emptyset, Abe  of m,D, BbeMatrixofn,
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx pjava.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
A4: Following(s,2) = Following Following s by FACIRC_1:15;
   a1,a2,a3 be Element ofBOOLEANsuch that
A5: a1 = s.x & a2 = s.y & A2:len=nby MATRIX_0:2java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
:.  not a3'& not byA5,
  (Following s).xy = 'not:jinnjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
  by A5,Th83;
  hence Following(s,2).GFA2CarryOutput(x,y,z) = 'not'(('not' a1 '&' a2) 'or' (
  a2 '''not'a3 or'(not'a1) byA4,A6,Th84;
  xin InputVertices S by A1,Th81;
  (java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 48
  hence thesis by A5,A2,A3,A4,Th83;
end;

theorem Th86:
  for x,y,z being set st x <> [<*y,z*>,and2c] & y <> [<*z,x*>,
  nor2] & z <> [<*x,y*>,and2a] for s being State of GFA2CarryCirc(x,y,z) holds
  Following(s,2) is stable
proof
  set f1 = and2a, f2 = and2c, f3 = nor2;
  let x,y,z be set such that
,z*,f2]&y>[*,*f] &z >[*,y*f1]
  set S = GFA2CarryStr(x,y,z);
  ,yy       of  byTh79;
  let s be State of GFA2CarryCirc(x,y,java.lang.StringIndexOutOfBoundsException: Range [10, 39) out of bounds for length 24
  set a1 = s.xx, a2 = s.yy, a3 = s.zz;
  set ffs = Following(s,2  set RA=RLine(Ai,A)java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
  [<y,*,f2], zx  [*z,x*>f3];
A2: ffs
A3: z in InputVertices S by A1,Th81;
  then (Following s).z = a3 by CIRCUIT2:def 5;
  then
A4: ffs.z java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 8
A5: y in InputVertices S by A1,Th81;
  then (Following s)y  by  5java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
  then
A6: ffs.y  a2by A2,,CIRCUIT2:ef ;
A7: x inA9:     i=j;
  then (Following s).x = a1 by CIRCUIT2:def 5;
  
A8: ffs.x = a1 by A2,A7,CIRCUIT2:def 5;
  a3 = s.z;
  then
A9: ffs.xy = 'not' a1 '&' a2 by A1,Th85;
  a2 = s.y;
  then
A10: ffs.zx = '      end;
  a1 = s.x;
java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 6
A11:ffs.z = a2 & not'a3 ;
A12: ffs.GFA2CarryOutputhence thesisby A3;
  a3) 'or' ('not' a3 '&' 'not' a1))theoremTh19:
A13: now
    ,D holds(^^B,Segn, width A)=A & Segm(A^B,Seg n,Seg (widthA+idth
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
A14: a in the carrier of S;
    then reconsider v = a as Vertex of S;
A15: v in InputVertices S \/ InnerVertices S by A14,XBOOLE_1:45 lenA= by MATRIX_0: ;
    thus ffs.a = (fffs).a
    proof
      per cases by A15,XBOOLE_0:def 3;
      suppose
        vin  S
        hence thesis by CIRCUIT2:def 5;
      
      
        v in InnerVertices S;
        thenA9:J  (idseq width A).J by FINSEQ_2:49
        then( A). 48;
XBOOLE_0:def . SegnbyMATRIX_0:def java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
        then v = xy or v = yz or v = zx or v = GFA2CarryOutput(x,y,.=ColA,J. byby A8A9,h16
ENUMSET1:def
        set w=width A+width B;
      end;
    end;
  end;
  dom Following Following(s,2) = the carrier   width A<  byNAT_1:11java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
  the carrier of S by CIRCUIT1:3;
  hence ffs = fffs by A13,FUNCT_1:2;
end;

::=========================================================================
::-------------------------------------------------
:: GFA2 Adder : Circuit Definition of Adder Output
::-------------------------------------------------

definition
  : Iin Seg n by A13,FMISC_1:;
      .Seg n by A1,MATRIX_0:def 2;
  strict non empty ManySortedSign equals
  2GatesCircStr(x,y,z, xor2c);
  coherence;
end;

definition
  let x,y,z be set;
  func
  GFA2AdderStr
  2GatesCircuit(x,y,z, xor2c);
  coherence;
end;

definition
    reconsider B9=B asMatrix of Lw BK by A1,ATRIX_0:51java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
  func java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 12
  equals
  2GatesCircOutput(x,y  end;
  coherence;
end;

::-------------------------------------------------------
:: GFA2 Adder : Carrier, InnerVertices and InputVertices
::-------------------------------------------------------
::-------------------------------------------------------
:: InnerVertices

:
  for x,y,z being set holds InnerVertices GFA2AdderStr(x,y,z) = {
  [<*x,y*>,xor2c]} \/ {GFA2AdderOutput(x,y,z)}
proof
  let x,y,z be set;
  GFA2AdderOutput(x,y,z) = GFA1AdderOutput(x,y,z);
  hence thesis by Th55;
end;

::-------------------------------------------------------
:: Carrier and misc.

theorem
  for x,y,z java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 5
in thecarrier of(,,z  zin the  of GFA2AdderStrxy,)
& [<*x,y*>,xor2c] in the carrier of GFA2AdderStr(x,y,z) & [<*[<*x,y*>,xor2c], z
  ,xor2c]in the carrier of GFA2AdderStr(x,y,z) by FACIRC_1:60,61;

theorem
  for x,y,zend;
GFA2AdderStr(x,y,z) & for A,B be Matrix of K len A=len B & width A  0holds A ^java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
  z)
proof
  let x,y,z be set;
    GFA1AdderStrxy,);
  GFA2AdderStr(x,y,z) = S1;
hencethesis Th57
endpercases

theorem
  for x,y,A5 A={;
  GFA2AdderStr(x,y,z) &  then AB={};
  InputVertices GFA2AdderStr(x,y,z)
proof
  set f = xor2c;
  let x,y,z be set such that
A1: z <> [<*x,y*>,f];
  set S1 = GFA1AdderStr(x,y,z);
  java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 27
  hence thesis by A1,Th58;
end;

::----------------------------------------------------
:: GFA2 Adder : Stability of the Adder Output Circuit
::----------------------------------------------------

theorem
  for x,y,    hence thesis  A2,Th22;
GFA2AdderCirc(x,y,z) for a1,a2,a3 being Element of BOOLEANjava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 14
  y a3 = zholds(s).<x,y*xor2c  a1'xor not' a2 java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
  Following A6 now
proof
  set:i   widthAB  Segwidth A
  let x,y,z be set such that
A1: z <> [<*x,y*>,f];
  set A1 = GFA1AdderCirc(x,y,z);
  GFA2AdderCirc(x,y,z) = A1;
  hence thesis n> by A8,A9,FINSEQ_1:1;
end;

theorem
  for x,y,z being set st z <> [<*x,y*>, xor2c] for s A13    <i &i<L
GFA2AdderCirc(x,y,z) for A15:L0.i=.K by A5,FINSEQ_257;
  x,y*>,xor2c] & a1 = s.x & a2 = s.y & a3 = s.z holds (Following s).
  GFA2AdderOutput(x,y,z) = a1a2 'xor' 'not' a3
proof
  set f = xor2c;
  let x,y,z be set such that
A1: z <> [<*x,y*>,f];
  set O1 = GFA1AdderOutput(x,y,z);
  set O2 = GFA2AdderOutput(x,y,z);
  set A1 = GFA1AdderCirc(x,y,z);
  set A2 = GFA2AdderCirc(x,y,z);
  A2 = A1 & O2 = O1;
  hence thesis by A1,Th60;
end;

theorem Th93:
  for x,y,z being set st z <> [<*x,y*>, xor2c] for s being State
of GFA2AdderCirc(x,y,z) for a1,a2,a3 being Element of BOOLEAN st a1 = s.x & a2
  = s.y & a3 = s.z holds Following(s,2).GFA2AdderOutput(x,y,z) = a1 'xor' 'not'
          then Col(B9,n.i=B9*(i,n) & [i,]in  B by ,A14,
  Following(s,2).x = a1 & Following(s,2).y = a2 & Following(s,2).z = a3
proof
  set f = xor2c;
  let x,y,z be set such that
A1:z >[*,y*f;
  set(,yz)java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
  set O2 =x,z;
  set A1 = java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 4
setA2  java.lang.StringIndexOutOfBoundsException: Range [26, 24) out of bounds for length 32
  A2= A1 & O2 = O1;
  hence thesis by A1,Th61;
end;

A1: the_rank_A =the_rank_ofA^B) and
  for x,y, beingset stz < <*y*,xor2c] fors being State
of GFA2AdderCirc(x,y,z) for a1,a2,a3 being Element s A9^B9
A3  c= dom A and
  a2 'xor' 'not' a3
proof
  set f = xor2c;
  let x,y,   then Seg A <> }by INSEQ_1def3
A1: z <> [<*x,y*>,f];
  set A = GFA2AdderCirc(x,y,z);
  let s be State
  let a1,a2,a3 be Element of BOOLEAN;
  assume a1 = s.x & a2 = s.y & a3 = s.z;
  A12: Sg (lenA. = (idseqlen A.i  FINSEQ_348
  (Following(s,2)).GFA2AdderOutput(x,y,z) = a1 'xor' 'not' a2 'xor' 'not'
  a3 by A1  cardSeg  A=A by FINSEQ_157
    . not' a1 'xor  '' not a3java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
end;

::=====================================================================
::---------------------------------------------------
:: GFA2 : Circuit Definition of GFA Combined Circuit
::---------------------------------------------------

definition
  let x,y,:jwidth  inin Seg AB byA14,FINSEQ_160;
  func BitGFA2Str(x,,z)->unsplit gate`=aritygate2isBoolean nonvoid
  strict non empty ManySortedSignequals
  GFA2AdderStr(x,y,z) +* GFA2CarryStr(x,y,
  z);
  coherence;
end;

definition
  let x,y,z be set;
  funcBitGFA2Circjava.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
, equals
  GFA2AdderCirc(x,y,z) +* GFA2CarryCirc(x,y,z);
  coherence;
end;

::----------------------------------------------------------
:: GFA2 Combined : Carrier, InnerVertices and InputVertices
::----------------------------------------------------------
::-------------------------------------------------------
:: InnerVertices

theorem Th95:
  for x,y,z being set holds InnerVertices BitGFA2Str(x,y,z) = {[
<*x,y*>,xor2c]} \/ {GFA2AdderOutput(x,y,z)} \/ {[<*x,y*>,and2a], [<*y,z*>,and2c
  ], [<*z,x*>,nor2]} \/ {GFA2CarryOutput(x,y,z)}
proof
  let x,y,z be set;
  set f1 = and2a, f2 = and2c, f3 = nor2;
  set f0 = xor2c;
  set xyf0 = [<*x,y*>,f0];
  set xyf1 = [<*x,y*>,f1], yzf2 = [<*y,z*>,f2], zxf3 = [<*z,x*>,f3];
  set S = BitGFA2Str(x,y,z);
  set S1 = GFA2AdderStr(x,y,z);
  set S2 = GFA2CarryStr(x,y,z);
  set A1 = GFA2AdderOutput(x,y,z);
  set A2 = GFA2CarryOutput(x,y,z);
  thus InnerVertices S = (InnerVertices S1) \/ InnerVertices S2 by FACIRC_1:27
    .= {xyf0} \/ {A1} \/ InnerVertices S2 by Th87
    ={xyf0  A1 /({yzf2  \ {2) by Th74
    .= {xyf0} \/ {A1} \/ {xyf1, yzf2, zxf3} \/ {A2} by XBOOLE_1:4;
end;

A32: LiA,i  width A|>0. by A4,A5
  for x,y,z being set holds InnerVertices BitGFA2Str(x,y,z) is Relation
proof
  let x,y  =Seg lenA byA20A21MATRIX13:;
  set S1 = GFA2AdderStr(x,y,z);
  ;
  java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 70
FACIRC_1:58;
  hence thesis by FACIRC_1:3;
end;

::-------------------------------------------------------
:: InputVertices

theorem Th97:
  for x,y,z being set st z <> [<*x,y*>,xor2c] & x A37: Sgm .xi by A35,FUNCT_1:def 3;
  and2c] & y <> [<*z,x*>,nor2] & z <> [<*x,y*>,and2a] holds InputVertices
(x,yz)= {x,y,zjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
proof
  set f1 = and2a, f2 = and2c, f3 = nor2;
  set f0 = xor2c;
  let x,y,z be set such that
java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 70
  
  set S2 = GFA2CarryStr(x,y,z);
  set S1  .Det A,P,Q) by MATRIX11:30;
  InputVertices S1 = {x,y, then  in dom AB\P2 byA3A5,,A29XBOOLE_0:def5;
57;
  hence thesis by CIRCCOMB:47,FACIRC_2:21;
end;

FINSEQ_, FUNCOP_1 ZF_LANG ZF_MODEL ,PBOOLE,TREES_1,
  ZF_LANG1 ,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
proof
       ,,java.lang.StringIndexOutOfBoundsException: Range [43, 43) out of bounds for length 26
setS  (x,,z)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
 setS1 (,y,
  set S2  GFA2CarryStr(x,y,z)
  b*
;
    isRelation @;
FACIRC_1:58 java.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 72
IRC_1:
.{,z}
 ,bejava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 36

theoremccet$.
 forx,yz beingjava.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 11
  without_pairs
proof
  lete
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4
  thesis
end;

::-------------------------------------------------------
:: Carrier and misc.


java.lang.StringIndexOutOfBoundsException: Range [0, 44) out of bounds for length 35
 for java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 62
y>xor2cmd asofjava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 63
  java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 73
BitGFA2Str(x,y,z)g isFunctionyielding
 >,nor2  carrierofBitGFA2Strxy,z  [<*<*,ythus  ColVec2Mx  impliesCol(1 bD&width  =
and2clen( bD)1 Th25
proof
  
   := ;
  set f0 = xor2c;
  xy = <*y*f1]yz = [*yz*,,zx=[*,*,f3;
  xyz  [*xy, yz, zx*f];
tr(x,z;
  set S2consider fbeing FunctionofA). B(). suchthat
thus F.. Fi,a java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 20
A2  inthe  of   byA3,:;
,regi
A3: xyz in the carrier of S2 by Th79;
A4: yzA6: lenMD> byFinSequencelike;
  [<*[<*x,y*>,f0]    henceex nbeing  stdom
   proof
  hence thesisby A1,A2,A4A3,FACIRC_1:20;
end

theorem Th101:
  
BitGFA2Str(  coherence  TREES_3:11;
GFA2Str( ineVec2Mxf
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 78
  A1:   y  x-reeF=,=gElemento lenf-thecarrierK 

  letn<domspr doms)n+  java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 59
  set f1 = and2a, f2 = and2c, f3  pby A3:def ;then
  then
  setxyf0  <x,*f0]
setjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 68
  S=BitGFA2Strx,java.lang.StringIndexOutOfBoundsException: Range [24, 24) out of bounds for length 13
suppose=x
  
InnerVertices S = {xyf0} \/ {A1} \/ {xyf1,yzf2,zxf3} \A1: len =len fby MATRIX_0:A8:   z = t|q;
    .= {xyf0,consider:en   java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
    A11   :;
    .= {xyf0,A1,xyf1,yzf2,zxf3,A2} by ENUMSET1:15;
  hence thesis by ENUMSET1:def 4;
endhence thesisA5: len FG=len f & wi FGlenf&width(+=widthCfCARD_1:def7,MATRIX_1def;


  for x,y,z being     hence thesis by T;
<> [<*z,    hencex-ree{  -ree(hence by ,A7
clusterfinite-ieldingDTreeyielding
  y,z)
proof
  set end;Col(,)yA8Th26
  set f0sett =     by8,,;
  x,yz  then {}by:;
java.lang.StringIndexOutOfBoundsException: Range [6, 2) out of bounds for length 19
  x,y*>,f1];
 thesis
  java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 12
hencethesisby : 1
end;

  a * ColVec2Mx f = ColVec2Mx (a*f)
:: GFA2 : Carry and Adder Output Definition of GFA Combined Circuit
::------------------------------------------------------------------

definition
  x,yz be setjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
  func BitGFA2CarryOutput:  <> wherewisof:w pn)}by
  equals
[**,*a,[<y,z*,,<*x*java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
  

    GFA2CarryOutput(x,y,z) in InnerVertices BitGFA2Str(x,y        reconsider xx  .a*by A4,
    encethesis
  end;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

definition
  t by A11;
funcBitGFA2AdderOutputxz-  java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 78
:z  **q & qin p(+;    lenL& ,ATRIX_0d ;
   XA10
  coherence
  proof
    GFA2AdderOutput(then
    hence thesis;
  end
end;.LineL,)j by java.lang.StringIndexOutOfBoundsException: Range [23, 3) out of bounds for length 45

::-------------------------------------------------------------
:: GFA2 Combined : Stability of the Adder/Carry Output Circuit
::-------------------------------------------------------------

theorem
   ,yzbeingsetst z
[<x,*,
  z) for a1,a2,a3 being Element of BOOLEAN stjava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 23
holds Following(sthen reconsider:ji  widthby A2ZFMISC_18
& java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 3
  'not:x c g
proof
       Z(j> & pi A19
  set f0 xor2cjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
  let x,y,z be set such that
A1: z <> [<*x,y*>,f0] and
A2:java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
GFA2CarryStr(x,y,z;
  set S1 = GFA2AdderStr(x,y,z);
  InputVertices coherence
  then
A3: InputVertices theoremTh6
  set =java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 32
  set A1 = GFA2AdderCirc(x,y,z);
  set considerrbeing
java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 22
    len   dom&len r< len plen 
  assume that
A4: a1 = s.x and
A5: a2 = s.y and
A6: a3 = s.z;
    |thecarrier  S1 asState ofA1 FACIRC_1:26;
java.lang.StringIndexOutOfBoundsException: Range [3, 2) out of bounds for length 45
  z in the carrier of S1 by FACIRC_1:60;
  then
8 a3=s1.by A6,7,FUNCT_147
  y inthe carrier ofS1 byFACIRC_160java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
  then
    z: inSolutions_ofABand
  A6: dom (y-tree p) = tree doms p by TREES_4:Col(X,)=   |>:lenp   TREES_338java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
  java.lang.StringIndexOutOfBoundsException: Range [18, 15) out of bounds for length 58
:X1=A
 (t,2.A1;
  (x,y,z)
  reconsider s2 = s|the carrier of S2 as State   cluster - finite-ieldingfor S-ermsX-alued Function
 doms2=the carrierof S2 by :;
  x in the carrier of S1 by FACIRC_1:60;
  then a1 = s1.x by A4,A7,FUNCT_1:47;
  hence Following(s,2).GFA2AdderOutput(x,y,z) = 'not' a1 'xor' a2 'xor' 'not'
  a3 by A1,A9,Th8
  InnerVertices S1 misses java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 32
  then
A12: Following(t    thenpbeingjava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 52
    beingnon empty constitutedDTreesset holdsXc=SubtreesX
   thejava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 33
  then
  . java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 36
  y in the carrier of S2 by Th79;
  then
java.lang.StringIndexOutOfBoundsException: Range [7, 3) out of bounds for length 36
  x in the carrier of S2 by Th79
  then a1 = s2.x by A4,A11,FUNCT_1:47;
  hence thesis by A2p
end;


  for x,y,z being set st z <> [<*x,y*>,xor2c] & x <> [<*y,z*>,and2c]    reconsider i as Element of NAT by ORDINAL1:def 12;
<> [<A4: z (x-ree p)|** byA1end
  z) holdstheorem h35
proof
  set f1 = and2a, f2 = and2chencethesisby   Solutions_ofa*
  set f0 = xor2c;
  let x,y,z be set such that
A1: z < [<*,*,f0 and
A2:A2:X=X1 |
  set A = BitGFA2Circ(
  let s be State of A;
  set S2 = GFA2CarryStr(x,y,z)  proof
  set S1 = p be FinSequence 
  InputVertices S1 = {x,y,z}  Y =X(/ java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
  then
A3: A1: a<>0.K (o(,). [,theof S-  by ,Ijava.lang.StringIndexOutOfBoundsException: Range [76, 75) out of bounds for length 78
end;
  reconsider s1 = s|the carrier of java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
  Followingletfbe ofA;
  hen
A4: Following(s1,2) = Following Following(s1,2)
    .= Following(s1,2+1) by FACIRC_1:12;
  set A2 = GFA2CarryCirc(x,y,z);
  reconsider s2   cluster - Relation-like Function-ikefor Element of TermAlg S;
  (22  stablebyA2,h86
    end;
A5:java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
    .=Followings2,+)by FACIRC_1:;
  reconsider t = s as State ofproof
  set S = BitGFA2Str(x,y,z);
A6: java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
Vertices S2misses InputVertices S2by Lm3forD be non emptyset  BbeMatrixof D st len A = len B & ;width A
  
java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 25
  Following(t,rngf c=I&dom A =Iby :def2;
A2: width A  andend;
  then
A8: Following(s2,2  forf  Function of JI holdsA*c=B*A }by ZFMISC_1:;
  Following(l I be nonj  Indicesholds A*,=*,;
A9: the carrier of S =assumehence   ATRIX_02;
CIRCCOMB:def 2;
Th37:
  carrier of S2 by CIRCUIT1:3;
A11: now
    let a beobject;
    assume a in  , bejava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 34
    then a in the     assume A2:j in domjava.lang.StringIndexOutOfBoundsException: Range [0, 25) out of bounds for length 24
    (,h Af. =Bf.jbyA1,,102;
Following(s1,3)).for Ibeing set
    )).a = (Following(s2,3A5java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
       (ollowings).=(Following Following,)abyA45
FACIRC_1:;
java.lang.StringIndexOutOfBoundsException: Range [58, 6) out of bounds for length 6
  Following(s,2+1)     now let2=*+AX2byA3A7,ATRIX_462;
  carrier of S by CIRCUIT1:3,FACIRC_1:12;
  hence Following(s,2) = Following java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
end

::========================================================================
:: Generalized Full Adder (GFA) Circuit (TYPE-3)
::========================================================================

theoremTh18
::========================================================================
:: << GFA TYPE-3 >>
::------------------------------------------------------------------------
::   Name     : Generalized Full Adder Type-3 (GFA3)
::   Function : - x - y - z = - 2 * c - s
::
::   Logic Symbol :     -x     -y      Combined : GFA3CarryIStr(x,y,z)
::                       |     /                  GFA3CarryStr(x,y,z)
::                       |    /                   GFA3AdderStr(x,y,z)
::                   +---O---O                  --->
::                   |  GFA  O---- -z             BitGFA3Str(x,y,z)
::                   | TYPE3 |
::                   O---O---+          Outputs : BitGFA3CarryOutput(x,y,z)
::                  /    |                        BitGFA3AdderOutput(x,y,z)
::                 /     |
::               -c     -s          Calculation : Following(s,2) is stable.
::=========================================================================
::-------------------------------------------------
:: GFA3 Carry : Circuit Definition of Carry Output
::-------------------------------------------------

definition
  java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
  func GFA3CarryIStrthenreconsiderLBkasjava.lang.StringIndexOutOfBoundsException: Range [31, 18) out of bounds for length 18
rict nonemptyManySortedSign equalsnow
  1GateCircStr(
  1GateCircStr(<*y,z        then LineRA  clusterone-- forFunction ofANATjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 43
  coherence;
end

definition
  let x,y,z be set;
  func GFA3CarryICircexistence
  java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 10
ateCircuit   <;
  + GateCircuitzthenLine)(A9)by16,:
  coherence;
end;

definition
  let x,y,z be set;
rryStr,)-unsplit java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 75
  strict non java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 4
  GFA3CarryIStrx,y,zlet Sset
<ywbejava.lang.StringIndexOutOfBoundsException: Range [35, 31) out of bounds for length 40
  coherence;
java.lang.StringIndexOutOfBoundsException: Range [0, 3) out of bounds for length 0

definition
  java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 19
    X be countableManySortedSetof  Sjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
  (x,  GFA3CarryStr(x,y;
  ,  end;
  ],[<*  : for s being object st sin S holds w.  F(from PBOOLEch;
  coherence
end;

definition
  let x,y,z be set;
  funcletx be object assume
  equals:card (X.) c NAT by CARD_3def14;
  [<*[<*x,y*>A4:w.x  = F()by ,A2java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
  oherence
  proof
    [<*[    thenreconsiderw asManySortedFunction
1ateCircStr<**xy*or2,*,>or2] [*x*nor2]>
    ,nor3proof
    Line(,i  Elementof assumexin w
  end;
endRRA=Line(A,a*(RA);

::-------------------------------------------------------
:: GFA3 Carry : Carrier, InnerVertices and InputVertices
::-------------------------------------------------------
::-------------------------------------------------------
:: InnerVertices

theoremTh105A,iby FVSUM_1:;
  for x,y,z beingjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
     = 1_K * Line(B9,i) by:10

  x,be;

  setxy  <xy*   Replace(RB,i,)by MATRIX11:29
  set Cxy = 1GateCircStr(<*x,y*>,f1);
     *,z>,;
  set Czx = 1GateCircStr(<*z,x*>,f3);
A1: Cxy A14:widthjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 44
47;
  then InnerVertices GFA3CarryIStr(x,y,z) = java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 7
  InnerVertices)byCIRCCOMB11
.InnerVertices(o;
CIRCCOMB:11
    .= {xy} \/ InnerVertices(Cyz) \/ InnerVertices(Czx) by CIRCCOMB:42
     xy}/y\/InnerVertices(Czx  CIRCCOMB:
    .= {xy} \/ {yz} \/ {zx} by CIRCCOMB:42
    .= {xy, yz} \/ {zx} by ENUMSET1:1hencethesis
.{ , zxby  ENUMSET1:3;
  hence thesis;
A1: XinSolutions_ofA9.& rng(x) .x

 Th106
  for x,y,z being set  g.   f.
[<*x,y*>,nor2], [<*y,z*>,nor2], [<*z,x*>,nor2]} \/ {GFA3CarryOutput(x,y,z)}

  let x,y,z be set;
  set f1 = nor2, f2 = nor2, f3 = reconsider g as ManySortedFunction B,;
  *w RA=widthA9by A7def;
   Cxy=1GateCircStr<*y*f1tjava.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
  : len  A1
  set Czx = 1GateCircStr(<*z,x*>,f3);
  setCxyz  A12: Indices RX = Indices  A5A10FINSEQ_1def3java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
 
  Cyz tolerates (Czx +* Cxyz) by A13:
  then
A2: InnerVertices (Cyz +* (Czx +* Cxyz)) = java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 36
  InnerVertices (Czx +* Cxyz) bytheorem Th24:
  Czx tolerates Cxyz by CIRCCOMB:47;
  then
A3:InnerVertices +Cxyz)=   \InnerVertices Cxyz by
CIRCCOMB:11;theorem Th25:
  (xy,)=InnerVertices Cxy+( *Czx)
  +* Cxyz) by CIRCCOMB:6
    .= InnerVerticesproof
   .InnerVertices Cxy \/InnerVertices Cyz *Czx +Cxyz)by 
CIRCCOMB:11
    let  beOperSymbol S
    .=  /java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 70
java.lang.StringIndexOutOfBoundsException: Range [20, 15) out of bounds for length 41
    .= fA1,A2 beingover S
  InnerVerticesforB1 MSSubsetA1,B2 eingMSSubset of A2
    .= {xy} \/ InnerVertices proof
  by CIRCCOMB:42
    .= {xy} \/ {yz} \/ InnerVertices Czx \/ InnerVertices Cxyz bylet B2beA20o B9java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 40
    .= {xy} \/ {yz} \/ {zx} \/ InnerVerticesnow    reconsiderCXX1pas Elementof( A9-ples_on  carrier of
    .= {xy,reconsidero =x OperSymbol of S:enColX1)widthMef;
    .= {xy, yz, zx} \/ InnerVertices Cxyz by.=o/.B1by    then *o=ineB9)p&B9*,)Bj.byMATRIX_0:def;
    LBophenceOpers)=1,java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
end;

theorem Th107:
  for x,y,z being set holds InnerVertices GFA3CarryStr(x,y,z) is Relation
proof
  let x,y,z be set;
  set f1 = nor2, f2 = nor2, f3   st the MSAlgebraofA1 = the MSAlgebra  ofA2

  set Cxy = 1GateCircStr(<*x,y*>,f1);
  set Cyz = 1let A1,A2,B be MSAlgebrathen
  set Czx = 1GateCircStr(<*z,x*>,f3);
  set Cxyz = 1GateCircStr(<*xy, yz, zx*>,f4);
  InnerVertices Cxy is Relation & InnerVertices Cyz is Relation by FACIRC_1:38;
  then InnerVertices Czx  Relation  InnerVertices Cxy +* Cyz  Relation
  by FACIRC_1:3,38;
  then InnerVertices Cxyz is Relation & InnerVertices GFA3CarryIStr(x,y,z) is
  Relation by FACIRC_1:3,. Summlt(Aijava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  hence thesis by FACIRC_1:proof
end;

::-------------------------------------------------------
:: InputVertices

theoremhence (o(#  A2
  for x,y,z being set st x <> [<*y,z* for,A2,1 )by ,A13,A19java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 53
]z > <*y beingjava.lang.StringIndexOutOfBoundsException: Range [36, 33) out of bounds for length 42
  }
proof
  lettheMSAlgebra B1 = B2;
  f1=nor2,f2 =nor2,f3 =nor2hence thesisA3,A4A5,A15;
  set xy = <*,y*,f1], yz =[<*y,z*>java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  set  GateCircStr<*,*,f1)java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
setCyz  1GateCircStr<,*;
  set Czx = 1GateCircStr(<*z,x*>,f3);
  assume that
java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 15
A2: y <> zx & z <> xy;
A3: not xy in {y
A4: not zx in  thus (9,-ieldingmeans: Def2:
   xst x in    let x be objectsuchthat
A6: ( not z in {xy, yz})& not x in {xy, yz} java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 17
  Cyz:;
  InputVertices GFA3CarryIStr(x,y,z) = (InputVertices(Cxy +* java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 41
 InnerVertices(zx)) \/ (InputVerticesCzx)\InnerVertices    assume
CIRCCMB2:5,CIRCCOMB:47
    .= ((InputVertices(Cxy) \ InnerVertices(Cyz)) \/ (InputVertices(Cyz) \
  InnerVertices(Cxy))) \ InnerVertices(Czx) \/ (java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 0
  InnerVertices(Cxy +* Cyz)) by CIRCCMB2:5,CIRCCOMB:47   nonempty trivial-ielding forManySortedSet  java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
    .= (S beingManySortedSet sch4;
  InnerVertices(Cxy))) \ InnerVertices    
  InnerVertices(Cxy) \/ InnerVertices(Cyz))) by A7,CIRCCOMB      S.x  Fx) by A1;
    .= ((InputVertices(Cxy) \ {yz}) \/ (java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 8
  Cxy))) \ InnerVertices(Czx) \/ (InputVertices(Czxjava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 21
end
    = (InputVertices()\Cyz)\{y})\
  InnerVertices java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 18
  InnerVerticesCyz)))byCIRCCOMB42
 /()\{}  {}
     thesisby ,,:java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 38
CIRCCOMB:42
    .= ((InputVertices(Cxy) \ {yz}) \/ java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 28
  \/ (InputVertices(Line(RAj),LLRB  the Sorts of A is -ielding
    .= ((InputVertices(Cxy) \letS;
  \/ (InputVertices(Czx) \ java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
     java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 49
  InputVertices(Czx) \ ({xy} \/ {yz})) by A9: len (Line(B9,i)+a*LB)=width B9 by CARD_1:def
    .({y  y:  xbeingobjectst in he of  Xx=F()

    .= (({x,y} \        thus A istrivialielding
  by FACIRC_1:40
= ({y}\{yz} \/ {yz}  xy})\{x}\/ .Line9,+*+1_)*B)by :

    .= (({x,y} \/ ({y,z} \ {xy}) . Line(,i  21
FACIRC_2:1
    .= ({x,yA13 RRB=Replace(RB,iLLRB) byMATRIX11:java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
    .= ({x,y} \/ {y,iLLRB)byFUNCT_734
    .= {x,y,y,z} \ {zx} \/ {z,x} by ENUMSET1:5
 {xb ENUMSET16
    .A:java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 52
    .= {x,y,z} \ {zx} A16 :  
    .= {x,y,z} \/ rrier of Sory nin the  ofS 
    .= {x,y,z,z,x} by ENUMSET1:9
    . x}byENUMSET1:java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
    = {z
    .= {z,x,y} \/ {x} by ENUMSET1:31
    .= {z,x,y,x} by ENUMSET1:6
    .= {x,x,y,z} by ENUMSET1:70
    .= {x,y,z} by ENUMSET1:31;
  hence
end;

theorem 
   forx,y,z setf A -> trivial-      .= Replace(Replace(A9,i,LLA),i,LLRA) b:29
nor2] & z <> [<*x,y*>,nor2] .= RLine(A9,i,Line(RA,i)-
proof
  let x,y,z be set;
  set   ,f2=nor2;
  set xy = [<*java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 14
  set xyz = [<*xy, yz, zx*>,f4];
  set B9) = S(RLine(A9i,LineA9a  java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 42
  set MI = GFA3CarryIStr(x,y,z)assumethat e`)= .(`)bydef10java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 51
A1: InputVertices S = rng <*xy, yzjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    .= {xy, yz, zx} by FINSEQ_2:128;
  assume
A2
::K  K
A4: {xyof
  thus pjava.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
        =(-.K+K)aby :
    .= {x,y,z} \/ ({xy, yz, zx    let obeOperSymbol  
    .= {x,y,z} \/ {} by A4,Th105
    .= {x,y,z};
end;

theorem
  for x,y,z being non pair set holds InputVertices GFA3CarryStr(x,yjava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 39
  is without_pairs
proof
  let x,y,z be non pair set;
  set f1 = java.lang.StringIndexOutOfBoundsException: Range [11, 15) out of bounds for length 0
    forAbeing non(,)&i dom &ine,i   java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 66
  set Cxy = 1GateCircStr(<*x,y*>,f1);
  set Cyz = 1GateCircStr(<*y,z*>,f2);
  set Czx = 1GateCircStr(<*z,x*>,f3);
  etS =      let x be object;
  set M = GFA3CarryStr(x,y,z);
    setLB,);
  given xx being pair object such that
A1: xx in InputVertices M;
A2: Cxy tolerates Cyz by CIRCCOMB:47;
l Bby java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 27
  InnerVertices  x   Cyz={zt [ikinIndices byA8ZFMISC_1:;
  then InnerVertices (Cxy +* Cyz) = {xy} \/ {yz} by A2,CIRCCOMB:11;
t
A4: InnerVertices java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 12
, yz} \ {zxletS;
    .= {xy, yz, zx} by ENUMSET1
  InputVertices S = {xy, yz, zx} by FACIRC_1:42;
  then
} java.lang.StringIndexOutOfBoundsException: Range [0, 46) out of bounds for length 4
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 73
  by FACIRC_1:41;
  then InputVertices Czxletnt beElement of n-tuples_on NAT;
  without_pairs by FACIRC_1:9,41;
  then
A6: InputVertices MI is without_pairs by FACIRC_1:9;
  InnerVertices Relation byFACIRC_1:38;
  then
   M  InputVertices  /(InputVertices  \InnerVertices
  MI) by A6proof
  hence thesisA1:rng Sgm =bymorphism A,A by MSUALG_3:;
endend;

::-------------------------------------------------------
:: Carrier and misc.

:
h A3MATRIX13
z) &java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  (x,y,z) & [<*x,y*holds(,B java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
  nor2] in the carrier of:   h = g0 &  is_epimorphismAletntn-uples_onjava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 48
of GFA3CarryStr
  nor3]   carrierofGFA3CarryStr(x,y,)
oof
  let  width SA=card Seg  A byA,MATRIX_0:23;
  set f1 = nor2, f2 = nor2, f3 = nor2, f4 = nor3;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
  set xyz = [<*xy, yz, zx*>,f4];
  set Cxy = 1GateCircStr(<*x,y*>,f1);
  set Cyz = 1GateCircStr(<*y,z*>,f2);
  set Czx = 1GateCircStr(<*z,x*>,f3);
  etjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 27
  set p = <*xy,yz,zx*>;
  z in the carrier of Czx by FACIRC_1:43;
  then
A1: z in the carrier of GFA3CarryIStr(x,y,z) by FACIRC_1:20;
  zx in the carrier A12:len A=letA - MSAlgebraover S;
  then
A2: zx in the carrier of GFA3CarryIStr(x,y,z) by FACIRC_1:20;
  y A15: [,;
  then y in the carrier of Cxy +*  S;
  then
A3 java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
  the carrier of Cxyz = rng p \/ {xyz} & [p,f4] in {[      ake ,h;
,TARSKI:def 1;
  then
A4: xyz in the carrier of Cxyz by XBOOLE_0:defjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 8
  yz in the carrier end
  then yz in the carrier of Cxy +* Cyz by FACIRC_1:20;
  then
5 in
  xy in the carrier of Cxy by FACIRC_1:43;
  then xy in the  over;
  then
:xy in:jin Segjava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 41
  x in the carrier of Czx by FACIRC_1:43;
  then x in the carrier of GFA3CarryIStr(x,y,z) by FACIRC_1:20;
hence thesisbyA3A1A652,ACIRC_10
end;    then

theorem Th112
  for x,y,z being set holds [<e2in (he Sortsof TermAlg ).
FA3CarryStr(x,,z)&[h..`=fs.g.e`&h.e  .e`)  15
<*z,x*>,nor2] in InnerVertices GFA3CarryStr(x,y,z) & GFA3CarryOutput(x,y,z) in
  theoremTh36:
proof
  let xn
  by A20: (Sgm(java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 47
  java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  InnerVerticesA beover ;
)}by
y 
cejava.lang.StringIndexOutOfBoundsException: Range [17, 14) out of bounds for length 33
end;

theoremhence thesisjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 60
  for x,yend;
nor2]&z< <*java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
  inInputVertices GFA3CarryStr,yz&z InputVertices (,
proof
  set f1 = nor2,f2 = nor2,f3 = nor2;
  let x,y,z be 
  assume x <> [<*y,z*>,f2] & y <> [<*z,x*>,f3] & z <> [<*x,y*>,f1];
  thenInputVertices GFA3CarryStr(x,,z  
  thesis : ;


 Th114java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
  for x,y,z being non pair set holds InputVertices     the_sort_of z = x & the_sort_of z = y by A1,A3,MSAFREE3 z =x &the_sort_of z = y by A1,A3,MSAFREE3:7;
  ,y,z) = {x,y,z}
proof
  let x,y,z be non pair set;
  set  cluster X,S-terms    let  java.lang.StringIndexOutOfBoundsException: Range [21, 22) out of bounds for length 20
  set xy =     FreeS,);
  set Cxy = 1GateCircStr(<*x,y*>,f1);
  set Cyz = 1GateCircStr(<*y,z*>,f2);
  set Czx = 1GateCircStr(<*z,x*>,f3);
r        FreeGenX isManySortedSubsetoftheSorts of A;
  set MI = GFA3CarryIStr(x,y,z);
  set =113:idth= AbyFINSEQ_1:57;
 InputVertices Cxy =x,y}&InputVertices   in() .= en,));
A2: InputVertices Czx = {z,x} by  java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 61
A3:InputVertices S = {xy, yz, zx} by FACIRC_1:  java.lang.StringIndexOutOfBoundsException: Range [37, 31) out of bounds for length 77
A4: InnerVertices S is Relation by FACIRC_1:38;
A5 Cyz= yz CIRCCOMB42java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
  java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0

A6: InnerVertices Czx = {zx} & InnerVertices (Cxy +* Cyz) = {xy} \/ {yz} by A5,
CIRCCOMB:  A is free_in_itselfimplies Bjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
  Cxy +* Cyz tolerates Czx by CIRCCOMB:47;
  then InnerVertices MI = {xy} \/ {yz} \/ {zx} by A6,CIRCCOMB:11
    .= {xy,java.lang.StringIndexOutOfBoundsException: Range [70, 12) out of bounds for length 70
. { yz,zx}by ENUMSET13;
  then
A7: InputVertices S \ InnerVertices MI = {} by A3,XBOOLE_1:37;
A8: InputVertices Cxy is without_pairs & InputVertices Cyz is without_pairs
  by FACIRC_1:41;
  hen
A9: InputVertices Czx is without_pairs & InputVertices (Cxy+*Cyz) is
  without_pairs FACIRC_1:,1
  then InputVertices MI is without_pairs by FACIRC_1:9;
  
  InputVertices M = (InputVertices MI) \/ (InputVertices S \ InnerVertices
  MI) by A4,FACIRC_1:6;
  
  InputVertices M = (InputVertices(Cxy+*Cyz)) \/ InputVertices Czx by A9,A6,A7,
FACIRC_1:7
    .= (InputVertices Cxy) \/ (InputVertices Cyz) \/ (java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 45
A,s
    .= {x  proof
    .= {y,y,x,z} \/ {z,x} byA27:      java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 17
    .= {A28java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 0
    .=xyz /{x}by ENUMSET158
    .= {x,y,z} \/ (MATRIX_3def 4
    .= {x,y,z} \/ {z} \/ {x} by XBOOLE_1:4
    .= {z,x,y} \/ {z} \/ {x} by ENUMSET1:59
    .= {z,z,x,y} \/ {x} by ENUMSET1:4
    .= {z,x,y} \/ {            .= B*(j,= B(,Free,) heSortsA. java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 71
    .= {x,y,z} \/ {x} by ENUMSET1:59
    .= {x,x,y,z} by ENUMSET1:4
    .= {x,y,z} by ENUMSET1:31;
end;

::----------------------------------------------------
:: GFA3 Carry : Stability of the Carry Output Circuit
::----------------------------------------------------

theorem Th115:
  for  for  stN c= etx    ofS 
for a1,a2,a3 being Element of BOOLEAN st a1 = s.x & a2 (X)java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
 Nis non empty;
  nor2] = 'not' a2 '&' 'not' a3 & (Following s).[<*z,x*>,nor2] = 'not'proof
a1
proof
  let x,y,z be set;
  set f1 = nor2, f2 = nor2, f3 = nor2;
  let s be StateA1 all_vars_including XS-ermsoverS,
  set xy = <*,y>,1,yz=[*,*f2] 
  let a1,a2,a3 be Elementproof
A1: a1 = s.x and
 =s. 
A3:a3Th1, 18
  set S  hence thesis byA1,2,;
A4: InnerVertices S = the carrier' of S java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 0
A5: y in the  by A1,BOOLE: ,def18;
A6: x in java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 5
A7: dom s = the carrier of S by CIRCUIT1:3;
  xy in InnerVertices GFA3CarryStrletx be Element of X.s;
  hence Followings.<*y*f1card   A+byjava.lang.StringIndexOutOfBoundsException: Range [37, 33) out of bounds for length 37
    .= f1.<*a1,a2*> by A1,A2,A7,A6,A5,FINSEQ_2:125
. 'ABc=olutions_of(,SegA{}Seg A)
A8: z in the carrier of S by Th111;
  yz in InnerVertices GFA3CarryStr(x,y,z) by Th112;
  .,f2=f2.*y,* byA4ACIRC_1:5
    .= f2.<*a2,a3*> by A2,A3,A7,A5,A8,dom( )
        byPRALG_23;
  zx in InnerVerticesleta beobject;
  hence (Following s).[<*z,x*>,f3] = f3.(s*<*z,x*>) by A4,FACIRC_1:35
    .= f3.<*a3,a1*> by A1,A3,A7,A6,A8,FINSEQ_2:125
    .='ot a3 & not'a1 TWOSCOMP:;
end;

theorem Th116:
  java.lang.StringIndexOutOfBoundsException: Range [56, 5) out of bounds for length 63
forA5:Line(,i) = width B |->0.K;
*>nor2 &a3 = s.[<*,*>,nor2]] holds (Following s).GFA3CarryOutput(x,y,z) =
  'not' (a1 'or' a2 'or' a3)
proof
l xx,,z be set;
   =nor2,f2   thus B =elLine()java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 76
    let xbe object such that
  set xy =[<*x,y*A1: dom Solutions_of(A,,)
    set S len A;
A1:a1= s.y&a2 =syz  a3=s.x;
  set S = GFA3CarryStr(x,y,z);
  reconsiderxy
A2: dom s       assume
  InnerVertices       (inS    thenj A /i A8X:48;
  hence (Following s).GFA3CarryOutput(x,y,z) = f4.(s*<*xy, yz, zx*>) by
FACIRC_1:35
   .= f4.<*a1,a2,a3*> by A1,A2,FINSEQ_2:126
. not'c l11  FINSEQ_1;
end;

theorem Th117:
  for x,y,z being set st x <> [<*y,z
nor2  <let S bejava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
  cluster -> disjoint_valued for ManySortedSubset ofT;
  Following(s  proof
'not' a2 '&' 'not' a3) 'or' ('not' a3 '&' let x,y be object; assume
='java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 76
  'not' a3 & Following(s,2).[<*z,x*>,nor2] = 'not' a3 '&' 'not' a1
proof
nor2 f3  java.lang.StringIndexOutOfBoundsException: Range [37, 37) out of bounds for length 4
  let x,y,z be set such  IDn=n & is FinSequence  by CARD_1d ,:48;
A1: x <> [<*y,z*>,f2] & y <> [<*z,x*>,f3] & z <> [<*x,y*>,f1]  let  existence
  setSA1:rng Pc=egn byRd 19;
  reconsider x9 = x, y9 java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
  let s be State of nin A1;
  y in InputVertices S by A1,Th113;
  then
A2: existence
  z reeMSAX = Free(S,X) by MSAFREE3:;
  then:SgmSegn&  Segjava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 37
 oflenASegwidthA *P byA2,
    endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
 (,2   Followingsby FACIRC_115;
  let a1,a2,a3 be Element of BOOLEAN such that
:a1 =s.x &a2 = s.y & a3 = s.z;
A6: (Following s).zx = 'not st G  FreeGen Xholds id   h2||G
  (Following s).xy = 'not' a1 '&'MSAFREE331
  '&' 'not' a3 by A5,Th115;
  hence Following(s,2).GFA3CarryOutput(x,y,z) = 'not'(('not' a1 '&' 'not' end.A*by 6java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
  'or' ('not' a2 'let abe Elementof A0;
   in dom of&ajava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 68
  then (Following s).x9   
  hence thesis(hence Solutions_of,)(*PbyA684h42


theorem Th118:
      t sti(dom )\ngIDnP widthA|0.&
  nor2henceLine,=width  - .by A3,A1137;
  Following(s,2) is stable
proof
  set f1 = nor2, f2 = nor2, f3 = nor2;
  let x,y,z be set such that
A1  < <*z*,f2]&y >[<*java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 8
  set S = GFA3CarryStr(,y,z);
  reconsider xx = x
  let s be State of GFA3CarryCirc(x,y,z);
  set a1 = s.xx, a2 = s.yy, a3 = s.zz;
  setffs  Followings,,fffs =Following ffs;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
A2: ffs = Following Following s by FACIRC_1:15;
A3: zinInputVertices S by A1,Th113;
  then (Following s).z = a3 by CIRCUIT2:def 5;
  then
A4: ffs.z = a3 by A2,A3,CIRCUIT2:def 5;
A5: y in InputVertices S by A1,Th113;
  then  .=a2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 then
A6: ffs.y = a2 by A2,A5,CIRCUIT2:def 5;
A7: x in InputVertices S by A1,Th113;
  then (Following s).x = a1 by CIRCUIT2:def 5;
  then
A8: ffs.x = a1 by A2,A7,CIRCUIT2:def 5;
  a3 = s.z;
  thenend;
A9: ffs.xy = 'not' a1 '&' 'not' a2 by A1,Th117;
  a2 =A7: SN=m-nby tbeingElementof holds  of,
  thenf
A10: ffs.zx = 'not' a1     consider s being object suchthat
  a1 = s.x;
  then
A11:      :Seg m'n),N]=ndices &[:Seg (-n,]= ;
A12: ffs.GFA3CarryOutput(x,y,java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 11
  a2 '&' 'not' a3) 'or' ('not' a3 '&' 'not' a1)) by A1,      hence
A13: now
    let a be object;
    assume
A14: a  setSA=egm,Seg n,SN)
    then reconsider v = a as Vertex of S;
15 v InputVerticesS\ InnerVertices Sby A14XBOOLE_1:45;
    thusffsa = (fffs).a
    proof
      per cases by A15,XBOOLE_0:def 3;
      suppose
        v in  hen
        hence      tis   byMSAFREE3:;
      endtheorem Th43:
      suppose
        v in InnerVertices S;
MATRIX_0:4def6java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
        then v in {xythen SAT=SA java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 64
XBOOLE_0:def 3;
        then v=xy or:mn,:/:eg(n,  Seg(n,SN  java.lang.StringIndexOutOfBoundsException: Range [74, 72) out of bounds for length 75
ENUMSET1:def 
        hence thesis by   card Seg('=-in tSorts FreeSX);
      end;
   t being Element of A2

 domFollowing Following(slettbeof A
  the    defpred P[A16: Segm(V,Seg(mn,N   and
  hence ffs = fffs by A13,FUNCT_1:2;
end;

::=========================================================================
::---------------  then
:: GFA3 Adder :Circuit Definition of Adder Output
::-------------------------------------------------

definition
   let x,,zz be set;
  func GFA3AdderStr(x,y,z) -> unsplit gate`1=arity gate`2isBoolean non void
   non  ManySortedSign equals
   2GatesCircStrGatesCircStr(,yz xor2);
  coherence;
end;

definition
  let      *a>is FinSequence NAT A5,FINSEQ_1:; then
   (x,0:;
        econsider a as Element of NAT by  then len (A*M)=n by A12,A19,MATRIX_3:def 4;
  2GatesCircuit(A6:len p len +1  FINSEQ_1:22;
  java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 12
end;

definition
  let x,y,z be set;
  func GFA3AdderOutput(x,y,z) -> Element of InnerVertices GFA3AdderStr(x,y,z)
  equals
  2GatesCircOutput(x,y,z, xor2);
  coherence;
end;A9    then

::-------------------------------A28:J in Seg l  A25,<*in tq&om tq  treedomsarg&**< }
:: GFA3 Adder : Carrier, InnerVertices and InputVertices
::------------------------per cases by A18,A28;
:A:a = <*>1 . n           st    -)&ol,) jj)
:: InnerVertices

theorem Th119:
  for x,y,z being set holds InnerVertices GFA3AdderStr(x,y,z) = {
[*y*,xor2}\/GFA3AdderOutputx,,z}
proof
  let x,y,z be set;
AdderOutput(java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
   ar = by:3;
end;

::-------------------------------------------------------
:: Carrier and misc.

theorem
  tp (Sorts  )
in the carrier of GFA3AdderStr(x,y,z) & z in the carrier of GFA3AdderStr(x,y,z)
& [<A43P]  NAT_1: (,;
  , xor2] in the carrier of GFA3AdderStr(x,y,z) by FACIRC_1:60,61;

theorem
  FreeGen    java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 33
  (x,y,A45     V=Indices & java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 60
proof
  let ,y, be set;
  (x,y,z);
  GFA3AdderStr(x,y,z) = S0;
  hence thesis by Th26;
end;

            per cases by A49,XBOOLE_0:def 5;
  for X.java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
  GFA3AdderStr(x,y,z) & y in InputVerticesA52 x   N
  InputVertices GFA3AdderStr(x,y,z)
proof
  let x,y,z be set such that
A1: z <> [<*x,y*>,xor2];
  set S0 = A4:   root-tree [vs]in (FreeGen X)              Sgm Segn)I, x java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 74
  GFA3AdderStr(x,y def java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
  hence thesis by A1,Th27;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

olds [[o,hecarrier  ]ree ]
: GFA3 Adder  Stability  java.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 31
::----------------------------------------------------

theorem
java.lang.StringIndexOutOfBoundsException: Range [19, 2) out of bounds for length 66
      [t of-ee   theSorts A.r
.y & a3 = s.z holds (Following s).[<*x,y*>,xor2] = a1 '
xor' a2 & (Following s).
  x = a1 & (Following s).y = a2 &      p SubtreeSeq of Sym(o,X  :def;then
proof
  set f = xor2;
  let x,y,z be set such that
A1: z <> [<*x,y*>,f];
  set A0 = GFA0AdderCircpis Element of X) qua nonempty   INSTALG1:;then
  set A3 =GFA3AdderCirc(,y,z)java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  A3 = A0;
  hence thesis by A1,Th28;
;

theorem
  for x,y,z being set st z <>  by A9, then
GFA3AdderCirc(x,y,z) for a1a2,a1,a2,a3 being Element of BOOLEAN st a1a2 = s.[<*
  x,y*>,xor2] & a1 = s.x & a2 = s.y & a3 = sA12:Args(o,GenMSAlg G)=
xy,z) = a1a2 '
xor' a3
proofLineVjj)(gm .x)=V*jj, .x)byA39,,A57,
  set f = xor2;
  let x,y,z be set such that
A1: z <> [<*x,y*>,f];
  set O0 = GFA0AdderOutput(x,y,z);
  set O3 = GFA3AdderOutput(x,y,z);
  set A0 =            end;
  set A3 = GFA3AdderCirc(x,y,z);
    end;
  hencey :ef ;
end;

theorem Th125:
   x,y, being set  z >[*xy* xor2]  s  State
 (x,,z)for a1a        he_arity_of .  rngrng  o    o =
 =sy &a3  s.holds Following(s,2).GFA3AdderOutput   the_arity_of o).   of ;
'
&(<*y,=a1 '&,2)x =a1
  &Following,A17,:13
proof
hence .in(theSorts GenMSAlg )he_arity_of)
  let x,y      end then
A1: z <,ARD_39
   O0 =GFA0AdderOutput(x
  set      java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 59
  set A0 =GFA0AdderCirc,y,)java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
(;
  A3 = A0 & O3 = O0;
  hence          = -A*I,Sgm SN.jj) byA121A7A10,def 13;then
;

theoremA24:   R(,GenMSAlg G  the Sorts   G. o java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
for,z setstz< N.,,,java.lang.StringIndexOutOfBoundsException: Range [42, 40) out of bounds for length 8
of GFA3AdderCirc(x,y,z) for a1,a2,a3 being Element of BOOLEAN st a1 = s.x & a2
= s.y         *)=Line()*V) A25,,:
  '
xor' 'not' a2 'xor' 'not        hencethe SortsGenMSAlgGc=Sorts      java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
proof
  set f = xor2;
  let x,y,z be set such that
A1: ztheSortsof is oftheSortsofFreeSX
  set A = GFA3AdderCirc(the Sorts of A).s c= (the Sorts of Free(S,X)).s
  sy of( S);
  let a1,a2,a3 be Element of BOOLEAN;
  assume a1 = s.x & a2 = s.y & a3 = s.z;
  hence (Following(s,2)      ence the of  hence java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 34
,Th125
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
end;

:=======h TA  f=h|java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
::---------------------------------------------------
:GFA3:CircuitDefinitionNcSeg  
::---------------------------------A1:G=FreeGenX;

definition
  let x,y,z be set;
  funcxyz) ->unsplitgate`arity gate` mmby FINSEQ_1;
  strict non empty ManySortedSign equals
  GFA3AdderStr(x,y,z) +* GFA3CarryStr(x,y,
  z);
  coherence take k = \Sl  N\, ]by
end;

definition
 ,be
funcx,,)- Booleangate`=Circuit of BitGFA3Strx
  yz equals
   s being  of ,t being  of A2s holds
  ;
end;

:--------------------
 Combined  ,nnerVertices InputVertices
::---------------------------------A14:[.s $
::-------------------------------------------------------
:: InnerVertices
       beSortSymbol of S;
theorem Th127:
  for x,y,z being set holds InnerVertices BitGFA3Str(      for , st[, Indices(:,l:/,Seg] Xi)
<*x,y*>,xor2]} \/ {GFA3AdderOutput(x,y,z)} \/ {[<*x,y*>,nor2], [<*y,z*>,nor2]
  , [<*z,x*>,nor2]} \/Sorts  A. =18   yA3A11,MATRIX_0;
proof
  let x,y,z be       root-tree [v-tree[v,s] in FreeSort(X, r) by MSAFREE:def  root-tree [v,s] in FreeSort(X, r) by MSAFREE:def 11
  set f1 = nor2, f2 = nor2, f3 =A20java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 64
  set f0 A7 ndices=: ,Seglby,A6A
 f(X)sroot- v, (.)- v,s
  set A23:A8:   (f.srootree[] idX).ot-ree [s
  set java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 28
  ;
  set S2 = GFA3CarryStr(x,y,z);
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 52
  A26: i java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 25
  thus InnerVertices S = (java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 12
    .= {xyf0} \/ {A1} \/ InnerVertices S2 by java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 12
} \    enLinem  lenCol()m y A18Adef7java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 60
    .= {xyf0} \/ {A1} \/ A:DenOpo
end;

theorem
  for x,y,z being set holds InnerVertices BitGFA3Str(x,y,z) is Relation
d(of*java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 64
  let x,y,z beA39:[,I _arity_ofo.=oi&p0. ininrngp
  set S1 = GFA3AdderStr(x,y,z);
 tjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 29
 S1 isRelation &InnerVertices S2 is  by A45:xin dom N
FACIRC_1:58;
  hence        Sgm
end;

::--------------:reconsidersxjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 42
:InputVertices

theorem Th129:
  for x,y,z being set st z <> [<*x,y*>,xor2] & x <> [<*y,z*>,
     t  of, Th42then
  A25:   f.s.t = t by A24;
proof
  set f1 = nor2, f2 = nor2, f3 = nor2;
  set f0 =      
  that
A1: z <> [<*x,y*>,f0] & xhence thesisby A25FUNCT_1:ef ;
  x,y *>,f1];
  S2= GFA3CarryStrI SN)by A5,,1ATRIX_0:7
set = GFA3AdderStr(x,y,z);
  InputVertices S1 = {x,y,z} & InputVertices java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 6
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
  hence thesis by CIRCCOMB:47,FACIRC_2:21;


Th130
  for x,y,z being non pair set holds InputVertices BitGFA3Str(x,y ,z) = {x,y,z}
proof
  let x,y: X,j.Sgm:   (*.=(..  (.)=(Sorts Free,).&
  set S = BitGFA3Str(x,y,z);
  set S1 = GFA3AdderStr(x,y,z);
  set S2 =       .= B*(I,J) by B(,)by A16,,A36MATRIX13def1;
A1: InputVertices     Ai).Sgm     Line(A,i).(Sgm Ns he Sortsof ,X).
FACIRC_1:57;
  InnerVertices S1 is Relation & InnerVertices S2 is Relation by Th107,
FACIRC_1:58;
  hence InputVertices S = {x,y,z} \/ {x,y,z} by A1,FACIRC_1:7
    .= {x,y,z then      .B*,)
end;

theorem
  for x,y,z being non pair set holds InputVertices java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 36
  without_pairs
proof
letemTh51:
BitGFA3Str=x}java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 53
  ;
end;

::----------------------------------------  proof
:: Carrier and misc.

theorem
  for x,y,z being set holds x inreconsider f0 = as  S)  MSAFREE3;
the carrier of BitGFA3Str(x,y,z) & z in the       
,y*>,xor2] in the carrier of BitGFA3Str(x,y,z) & [<*[<*x,y*>,xor2], byMSUALG_25
 carrier of BitGFA3Str(x,,z  <x*,      
(x,y,z) & [<*y,z*>,nor2] in the carrier of 1java.lang.StringIndexOutOfBoundsException: Range [68, 69) out of bounds for length 68
ins  ;
>*,   (,,z
proof
,ybe
  set f1 = nor2, f2 = nor2, f3 = nor2roottree[,]inFreeSortX ) byMSAFREEdef
  set f0 = xor2;
  set xy = [<*x,y*>,f1], yz = [<*y,z*>,f2], zx = [<*z,x*>,f3];
set xyz  [<xy,yz,zx*,]
set S1 =GFA3AdderStr(x,y,);
  set S2 by,,: 1=java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 69
: thejava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 67
A2: then  x objectsuchthat
,61;

A4: yz in the carrier of S2 & zx in the carrier java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 44
  [<*[<*x,y*>,f0],z*>,f0] in the carrier of A9:DenOpo )p=o.   )
  by Th111,FACIRC_1:61A15        ofo (S)  A21
  hence thesis by A1,A2,A4,A3,               - 0.=(i byA1,A3A,41


theorem Th133:
for,y, being setholds [*,*>xor2]in A18:       s = the_result_sort_of o by A13,A16,MSATERMjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 61
BitGFA3Str(x,y,z) & GFA3AdderOutput(x,y,z) in InnerVertices BitGFA3Str(x,y,z) A:pArgsoA  (,Ap=DenoFreeSX)pbyA15D;
           q=p  A15,;
InnerVertices BitGFA3Str(x,y,z) & [<*21        q=   f0p0)=domjava.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 73
  ,y          (theofA*java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 68
proof
  let x,y,z be set;
            )=(o.&.inrngp
  set f0 = xor2;
  set xyf0 =[*,>]
  set xyf1 = [<*x,y*>,f1], yzf2 = [<*y,z*>
 x,)
=java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 34
s A2(,zjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
  InnerVertices S = {xyf0} \/ {let A be Matrix of n,k,K, B be Matrix,,;
    .= {xyf0,A1} \/ {xyf1,yzf2,zxf3} \/ {A2} by ENUMSET1:1
,xyf1,yzf2,}\/{2A1:width Ak&widthB=byMATRIX_0:;
    .= {xyf0,A1,xyf1,yzf2,zxf3,A2} by ENUMSET1:15;
  hence thesis by ENUMSET1:def 4;
endjava.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4

theorem
   ,ybeingz><y*    <z>n]  
><zx,  ><,*,r2  java.lang.StringIndexOutOfBoundsException: Range [76, 75) out of bounds for length 77
,y,z) & y in InputVertices BitGFA3Str(xjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
  y,z)          f0..:he SortsSX)is ManySortedSubset    java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
proof
t    =nor2  java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
  set f0 = xor2;
  let x,y,z be set such that
A1: z <> [<     x be object;
  ,*,]java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
set =BitGFA3Str(,zjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  InputVertices S = {x,y,z} by A1,Th129;
  hence thesis by 
nd

::--------------------------   A = t1 ''A5 width =  =by ,,:3;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
:----------------------------------

definition
   x,, be set;
  funcBitGFA3CarryOutput(x,z - 
  equals
  *<,,,<z>or2,*x,]>nor3]
  coherence

rVerticesBitGFA3Str(yz  ;
     ;
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 6
end;

definition
let x,y, be setjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
  func (x,,)- Elementof BitGFA3Str(x,z
  equals
  2GatesCircOutput(x,y,z, xor2);
  coherence
  proof
x     B0K,;
    hence thesis;
  end;
end;

::-----------------------------------------:: fori  [,] in Indices B    assume A4:t1 [thecarrierof ]
: : Stability     hbeofS ;
:------------------------------

theorem
      s=the_arity_of)nas S
<> [<*z,x*>,nor2] &       A8F102;
 z)for a1,2,3  Element ofBOOLEANsta1  s. &a2 =s.    s.
  holds Following(       A8A9,:6
'xor' 'not' a3) & Following    then
''  or'  & not  or ('a3' not')
proof
  set f1    
 java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 16
  let x,y,z be set such that
A1: z <> [<*x,y*>,f0] and
A2: x <> [<*y,z*>,f2] & y <> [<*z,x*
  set S2 = GFA3CarryStr(x,y,z);
  set S1 = GFA3AdderStr(x,java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 6
  InputVertices S1 = {x  Matrix of n(,9(,(),F(Matrix of n()m9()K(,at,at,ElementK)-
  then
A3: InputVertices S1 = InputVerticeszerofinite Subset of NAT st N c=Seg (
  set A2 = GFA3CarryCirc(x,y,z);
  set A1=GFA3AdderCirc(,,;
setjava.lang.StringIndexOutOfBoundsException: Range [5, 0) out of bounds for length 0
 A;
 Element ;
  java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 13
A4: a1 = s.x and
A5: a2 = s.y and
A6   .z
reconsider  thecarrierS1asofby 26java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
A7: dom s1    BbeTnonoverS
  z in the carrier of S1 by FACIRC_1:60;
  then
A8: a3 = .zby A6,7,UNCT_1:7;
  y in the carrier of S1 by FACIRC_1:60;
  then
A9: a2 = s1.y by A5,A7java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    letA  java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
    SortSymbolSholds
  then
A10: Following(t,2).GFA3AdderOutput(  proof
  (x,y,z) by A3,FACIRC_1:32;
  reconsider s2 = s|the     consider f being ManySortedSet of S such that
:s2 =the  ofS2 CIRCUIT13;
x the carrier  S1by FACIRC_1:60;
  then a1 = s1.x by A4,A7,FUNCT_1:47;
  hence Following(s,2).     reconsiders=xasSortSymbolS
  'xor' 'not' a3) by A1,A9,A8,A10,Th126;
  InnerVertices S1 misses       ex e being Element of (Equations.st   &A| eby A2java.lang.StringIndexOutOfBoundsException: Range [68, 69) out of bounds for length 68
  then
A12: Following(t,2).java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 11
  take A9=)B9=)java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
zinthe ofo)
  then
A13 OperSymbolS)be        endjava.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
  y in the carrier of S2 by Th111;         t=[,  of S(]-reepjava.lang.StringIndexOutOfBoundsException: Range [46, 47) out of bounds for length 46
exij ij Indices ilen f&j=n1&A9*(i,)>.K(;
1,47java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
   byTh111;
  then a1 = s2.x by A4,A11,FUNCT_1:47;
  hence thesis by A2,A14,A13,A12,Th117;
end;

theorem
  for x,y,z being set st z <> [<*x,y*>,xor2] & x n ,25java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
<>           t<n> =x *          then
  z) holds Following(s,2) is lets SortSymbolofA48            A9=ndicesAA byMATRIX_0:26;
proof
  set f1 = nor2, f2 = nor2, f3 =   set f1 = nor2, f2 = nor2, f3 = nor2and
  set f0 = xor2;
  let x,y,z be set such that
:>[*y>f0 
, <[x,  z>[x>]

 sStateA
=(xyz;
  set S1A33:[,]by ,;
  InputVertices S1 = {x,y,z} by A1,FACIRC_1:57proof
  then
A3: InputVertices S1 = InputVertices S2 by A2,Th109;
java.lang.StringIndexOutOfBoundsException: Range [24, 2) out of bounds for length 32
  reconsider s1 
(casesby A63,NAT_1:;
  
A4: Following(s1,2) = Following Following(s1,2)
    .= Following(s1          
  set  then  W  set such that
  reconsiders2=s|he carrier of S2 as State of A2 by FACIRC_1:6java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
  Following(2,2)is stable by A2,Th118;
  then
A5: Following(s2,2)           considera objectsuch                  java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
    .= Following(s2,2+1) by FACIRC_1:12;                by ,64;
  java.lang.StringIndexOutOfBoundsException: Range [35, 33) out of bounds for length 38
set  BitGFA3StrxL=A9lenf1;
A6: dom Following(s,3) = the carrier of S by CIRCUIT1:3;
  InnerVertices S2 misses InputVertices S2 by XBOOLE_1:79;

A7: Following(s1,2) = Following(t,2)|the        assume Sym(o1,X()-reejava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
Following,the carrier of  byA3,FACIRC_1:0java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
  InnerVertices S1 misses InputVertices S1 by XBOOLE_1:79;
  then
A8: A99: st1 inunionY;
t,)|he carrier of S2 by A3,FACIRC_1:;
:thecarrierof &y g.byA,ef3
CIRCCOMB:def 2;
A10: dom Following(s1,2) = the carrier of S1 java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
  carrier of S2 by CIRCUIT1:3;
A11: now
    let a be object;
    assume a in the carrier of S;
then  thecarrier  S1or92object st xin S              
    then (Following(s,2)).a = (Following(s1,2)).              
(3.or,).=(Following22) (sjava.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
    )).a = (Following(s2,3)domf = S()-erms X(java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
     
FACIRC_12
 ofS)() A98A99
  Following(s,2+1) = Following Following(s,2) & dom Following(s,2reconsiderh as Element ofrF by thesisby ;
  carrier of S by CIRCUIT1:3,FACIRC_1:12;
  hence Following(s,2) = Following Following(sA121     jstj102 3
java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 10

Messung
CHZG
8110010093

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.167Angebot  (Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-11-24) ¤

*Eine klare Vorstellung vom Zielzustand