Eine aufbereitete Darstellung der Quelle

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


Quelle  ftacell1.miz   Sprache: Mizar

 

:: Stability of the 4-2 Binary Addition Circuit Cells. Part {I}
::  by Katsumi Wasaki
::
:: Received August 28, 2008
:: Copyright (c) 2008-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

 ::                 *---O---+                    q[i] <= GFA1AdderOutput
      LATTICES, CIRCUIT1, MSAFREE2, FINSEQ_1, TWOSCOMP, PARTFUN1::                /    |                        p[i+1] <= GFA1CarryOutputf|  1(12)# (/)*.) A1
      MCART_1, FACIRC_1, SUBSET_1, FSM_1, MARGREL1, FUNCT_1, CIRCUIT2,
      XBOOLEAN, ARYTM_3,::     p^{+}[i+1]   q^{-}[i]
notations TARSKI, XBOOLE_0, ENUMSET1, XTUPLE_0, SUBSET_1, NAT_1, MCART_1,
      RELAT_1, STRUCT_0, FUNCT_1, PARTFUN1, FINSEQ_1::
      MSUALG_1, MSAFREE2, CIRCUIT1, CIRCUIT2, CIRCCOMB, FACIRC_1, TWOSCOMP,
      GFACIRC1;
 constructors ENUMSET1, BINARITH, CIRCUIT1, ::   Calculation Stability : Following(s,2+2) is stable.
      NAT_1,GFACIRC1, RELSET_1, XTUPLE_0, NUMBERS;
 registrations RELAT_1, MARGREL1, CARD_3, CIRCCOMB, FACIRC_1, ORDINAL1,
      FINSEQ_1, FUNCT_1, XTUPLE_0;
 requirements::=========================================================================
 equalities     hence thesis byA1;
 theorems XBOOLE_0, XBOOLE_1, ZFMISC_1, ENUMSET1, FUNCT_1, FINSEQ_2, CIRCUIT1,
      CIRCUIT2, CIRCCOMB, FACIRC_1, ::---------------------------------------------------------------

begin :: 1. Stability of 4-2 Binary Addition Circuit Cell (TYPE-0)
::========================================================================
:: [4-2 Binary Addition Cell_i : TYPE-0]
::
::   Cell Module Symbol :
::
::                 a+ b+ c+ d+            Input : a+,b+,c+,d+ (non pair set)
::                 |  |  |  |                     cin+ (pair)
::               +-*--*--*--*-+    cin+
::               |            |   /
::            +--* FTA TYPE-0 *--+        Output : p+,q+,cout+ (pair)
::           /   |            |
::        cout+  +---*----*---+
::                   |    |
::                   p+   q+
::
::   Composition : Cascade by Adder Output together with two GFA TYPE-0
::   Function    : p[i+1] + q[i] + Intermediate_Carry_out
::                 = a[i] + b[i] + c[i] + d[i] + Intermediate_Carry_in
::
::                 a^{+}[i]  b^{+}[i]
::                     |     /
::                     |    /
::                 +---*---*
::                 |  GFA  *---- c^{+}[i]  Circuit Composition :
::                 | TYPE0 |                    BitGFA0Str(a+,b+,c+)
::                 *---*---+                    BitGFA0Str(A1,cin,d+)
::                /    |      cin[i]           --->
::               /   A1|     /                  FTA0Str(a+,b+,c+,d+,cin)
::      cout[i+1]      |    /
::                 +---*---*               Intermediate Addition and Carry:
::                 |  GFA  *---- d^{+}[i]       A1 <= GFA0AdderOutput
::                 | TYPE0 |                    cout[i+1] <= GFA0CarryOutput
::                 *---*---+                    q[i] <= GFA0AdderOutput
::                /    |                        p[i+1] <= GFA0CarryOutput
::               /     |
::     p^{+}[i+1]   q^{+}[i]
::
::   Calculation Stability : Following(s,2+2) is stable.
::
::=========================================================================
::---------------------------------------------------------------
:: 1-1. Circuit Definition for Intermediate Addition and Carry Circuit (TYPE-0)
::---------------------------------------------------------------
:: Def. Combined Circuit Structure of 1-bit FTA TYPE-0

definition
  let ap,bp,cp,dp,cin be set;
 (,,,,cin -unsplit `1= 2A17 x in Z by A10,FDIFF_1:ef 7 then
  void strict non empty ManySortedSign equals
  BitGFA0Str(ap,bp,cp) +* BitGFA0Str(
  GFA0AdderOutput(ap,bp,cp),cin,dp);
  coherence;
end;

definition
  let ap,bp,cp,dp,cin be set;
  func BitFTA0Circ(ap,bp,cp,dp,cin) -> strict Boolean gate`2=den Circuit of
  BitFTA0Str(ap,     =.  A11,A17;
  BitGFA0Circ(  BitGFA2Str(am,bp,cm) +* BitGFA1Str(
  GFA0AdderOutput(ap,bp,cp),cin,dp);
  coherence;
end;

::-----------------------------------------------
:: 1-2. Properties of 1-bit FTA Circuit Structure (TYPE-0)
::-----------------------------------------------
:: InnerVertices and InputVertices of 1-bit FTA Circuit Structure (FTA0)

theorem Th1:
  for ap,bp,cp,dp,cin being set holds java.lang.StringIndexOutOfBoundsException: Range [0, 51) out of bounds for length 36
  bp,cp,dp,cin) = {[<*ap,bp*>,
  and2], [<*bp,cp*>,and2], [<*cp,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
:: 3-2. Properties of 1-bit FTA Structure and Circuit (TYPE-2)
),cin,dp)} \/ {[<*GFA0AdderOutput(ap,bp,cp),cin::f.x=1 / (sqrt(1-x^2)*arccos.x)
dp,GFA0AdderOutput(ap,bp,cp)*>,and2], GFA0CarryOutput(GFA0AdderOutput(ap,bp,cp)
  ,cin,dp)}
proof
  let ap,:: InnerVertices and InputVertices of 1-bit FTA Circuit Structure (FTA2)
  set S = BitFTA0Str(ap,bp,cp,dp,cin);
  set S1 = BitGFA0Str(ap,bp,cp);
  set A1 = GFA0AdderOutput(ap,bp,cp);
  set C1 = GFA0CarryOutput(ap,bp,cp);
  set S2 = BitGFA0Str(A1,cin,dp);
  set A2 = GFA0AdderOutput(A1,cin,dp);
  set C2 = GFA0CarryOutput(A1,java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 7
  set apbp0 = [<*ap,bp*>, xor2];
  set apbp = [<*ap,bp*>, and2];
  set bpcp = [<*bp,cp*>, and2];
  set cpap = [  forambpcm,dpcin being set holds InnerVertices BitFTA2Str(am,
  set A1cin0 = [<*A1,cin*>,xor2];
  set A1cin = [*A1,cin*>and2];
  set cindp = [<*cin,dp*>,and2];
  set dpA1 = [<*dp,A1*>, and2];
  S1 tolerates S2 by CIRCCOMB:47;
  hence InnerVertices S = (InnerVertices S1) \/ (InnerVertices S2) by
CIRCCOMB:11
    .= ({apbp0} \/ {A1}    .= ({apbp0} \/ {A1}  (narccos  =dom &
  by:31
    .= ({apbp0,A1} \/ {apbp,bpcp,cpap} \/ {C1}) and2a] <bp,cm*>,] [< f(((#R 1))f1-#Z))#arccos)  implies
NUMSET1:java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    .= ({apbp0,,)cindp}\ (,A)(ln A-(ln*)(lower_bound A)
XBOOLE_1:4
    .= ({apbp0,A1} \/ {apbp,bpcp,cpap,C1}) \/ (InnerVertices S2) by ENUMSET1:6
    .= ({apbp0,A1} \/ {apbp,bpcp,cpap,C1}) \/ ({A1cin0} \/ {A2} \/ {A1cin,
  cindp,dpA1 \/{C2})byGFACIRC1:31
    .= ({apbp0,A1} \/ {apbp,bpcp,cpapjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  dpA1} \/ {C2}) by ENUMSET1:1
    .= ({apbp0,A1} \/ {apbp,bpcp,cpap,C1}) \/ ({A1cin0,A2} \/ ({A1cin,cindp,
  dpA1} \/ {C2}))  assume
    .= ({apbp0,A1} \/ {apbp,bpcp,cpap,C1}) \/ ({A1cin0,A2} \/ {A1cin,cindp,
 C})by ENUMSET1:6
    .= {apbp0,A1} A1 c Z &Z= ] -1,1 .[  & forx  in 
  ,C2} by XBOOLE_1:4;
end;

theorem
    bp,cm)c,dp)
  dp,cin) is Relation
proof
  let ap,bp,cp,dp,cin beproof
  set S1 = BitGFA0Str(ap,bp,cp);
  set A1 = GFA0AdderOutput(ap,bp,cp);
  set S2 = BitGFA0Str(A1,cin,dp);
  InnerVertices S1 is Relation & InnerVertices S2 is Relation by GFACIRC1:32;
  hence thesis by FACIRC_1:3;
end;

Lm1: for x,y,z being set for p being  let am,bp,cm,dp,cin be set;
and2]
proof

  let x,y,z be set, p be set;

  set  = GFA0AdderOutput(x,y,z);
  A1`2 = xor2;
  then [p,and2  setS=BitFTA2Str(am,bp,cm,dp,cin);
  hence thesis;

end;

Lm2: for ap,bp,cp being non pair set for x,y,z being set holds InputVertices
tr(apbpcp misses InnerVertices BitGFA0Str(x,y,)
proof
  let ap,bp,cp be   f=(( #R(1/))*f1-#Z2))#arccos)^
  let xy,zbeset
  set S1 = BitGFA0Str(ap,bp,cp);
  InputVertices S1 is without_pairs by GFACIRC1:35;
  by:5GFACIRC1:;
end;

theorem Th3:
  for ap,bp,cp,dp being non pair set for cin being set st cin <> [
<*dp,(p,bpcp)>,nd2]& not cin  InnerVertices (ap
  ,bp,cp) holds InputVertices BitFTA0Str(ap,bp,cp,dpA2: c=domgby A1,set A2 = GFA1AdderOutput,,dp;
proof
  let ap,bp,cp,dp be non pair set;
  let cin be set;
  set S = BitFTA0Str(ap,bp,cp,dp,cin);
  set S1 = BitGFA0Str(ap,bp,cp);
set A1 =GFA0AdderOutput(ap,bp,cp);
  set C1 = GFA0CarryOutput(ap,bp,cp);
  set S2 = BitGFA0Str(A1,cin,dp);
  set apbp0 = [<*ap,bp*>, xor2];
  set apbp = [<*ap,bp*>, and2];
  set bpcp = [<*bp,cp*>, and2];
  set   set ambp = [<*am,*>, xor2c]
  set cindp = [<*java.lang.StringIndexOutOfBoundsException: Range [32, 21) out of bounds for length 32
  set dpA1 = [<*dp,A1*>, and2];
  assume that
A1: cin<dpA1 and
A2: not cin in InnerVertices S1;
A3: not dp in   set A1cin =[<*1,in*>and2c]java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
  A1 in   set cindp = [*cin,p*,and2a]java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
  then
A4: {A1}   dpA1=[<*dp,A1*>,and2 ]java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
A5: InnerVertices S1 = {apbp0} \/ {A1} \/ {apbp,bpcp,cpap} \/ {C1} by
GFACIRC1:31
    .= {apbp0,A1} \/ {apbp,bpcp,cpap} \/ {C1} by ENUMSET1:1
    .= {apbp0,A1} \/ ({apbp,bpcp,cpap} \/ {C1}) by XBOOLE_1:4
    .= {A1,apbp0} \/ {apbp,bpcp,cpap,C1} by ENUMSET1:6
    ,apbp0,apbp,bpcp,cpap,}byENUMSET1:;
  then
A6: {A1,cin,dp} \ InnerVertices S1 = ({A1} \/ {cin,dp}) \ {A1,apbp0,apbp,
  bpcp,cpap,C1} by ENUMSET1:2
    .= ({A1} \ {A1,apbp0,apbp,bpcp,cpap, hence InnerVertices S = InnerVertices S1) \/ (InnerVertices S2) by
  bpcp,cpap,C1}) by XBOOLE_1:42
    .= ({cin} \/ {dp}) \ {A1,java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 11
    .=(cin}\{A1,bpcpcpap,1) \ ({ \ {java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
  ,cpap,C1}) by XBOOLE_1:42
.= (cin} /(dp}\{1apbp0,,bpcp,,})by A2,A5ZFMISC_1:59
    .= ({cin}) \/ ({dp}) by A3,ZFMISC_1:59
    .= {cin,dp} by ENUMSET1:1;
A7: A1 <> cindp by Lm1java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
  InnerVertices S2 misses InputVertices S1 &NUMSET1:java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
;
  hence InputVertices (S) = (    .= ({ambp0,A1} \/ ({ambp,bpcm,cmam/{1}))\/(S2) by
  InnerVertices S1) by FACIRC_1:4
    .= XBOOLE_14
    .= ({ap,bp,cp}) \/ ({A1,cin,dp} \ InnerVertices S1) by A1,A7,GFACIRC1:33
    .= {ap,bp,cp,dp,cin} by A6,ENUMSET1:9;
end;

:: The Element of Carriers, InnerVertices and InputVertices (FTA0)

theorem    =(ambp0,} \ ambp,,cmam,)\/(A1cin0 /{}\/{1cin
  for ap,bp,cp,dp,cin being set holds ap in the carrier of
itFTA0Str(pbp,cp,dp)&bpincarrier  a,,cpdp,in
  & cp in the carrier a*cos.x/sin.x-f1.x/(sinxsin.f1/sin)xbyA14dpcin) 
BitFTA0Str(ap,bp,cp,dp,cin) & cin in
  & [<*ap,bp*>,xor2] in the carrier of java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 29
GFA0AdderOutput(ap,bp,cp) in the  .=a*cos.x/sin.x-(a*x+b)/(sin.x)^2 by A1;
,bp*>   =BitGFA2Strambp,m)
the carrier of BitFTA0Str(ap,bp,cp,dp,cin) & [<*cp,ap*>,and2] in     h   ;
  BitFTA0Str(ap,bp,cp,dp,cin) & GFA0CarryOutput(ap,bp,cp) in the carrier of
) &[*apejava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
carrier of BitFTA0Str(ap,  S1 &InnerVerticesS2Relationjava.lang.StringIndexOutOfBoundsException: Range [62, 58) out of bounds for length 58
cp);
ap,bp,cp),cin*>,and2] holds ((f1(#)cot)`|Z).x=f
*>,and2] in the carrier of BitFTA0Str(ap,bp,cp,dp,cin) & [<*dp,GFA0AdderOutput  thesis  3;
  ap,bp,cp)*>,and2] in the carrier of BitFTA0Str(ap,bp,cp,dp,cin) &
GFA0CarryOutput(java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 4
        letjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
proof
  java.lang.StringIndexOutOfBoundsException: Range [42, 4) out of bounds for length 77
  set S1 = BitGFA0Str(ap,bp,cp);
  set A1 = GFA0AdderOutput(ap,bp,cp);
  set C1 = GFA0CarryOutput(ap
  set S2(A1,cin,);
  set A2 = GFA0AdderOutput(A1,cin,dp);
  set C2 = GFA0CarryOutput(A1,cin,dp)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  set apbp0 = [<*ap, let,zbe ,pset;
  set apbp = [<*ap,bp*>, and2];
  set bpcp = [<*bp,cp*>, and2];
  set cpap = [<*cp,ap*>, and2];
  set A1cin0 = [<*A1,cin*>,xor2];
     ((f1()java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 0
  set cindp = [<*cin,dp*>,and2];
  set  set =GFA2AdderOutput(,yz)
A1  .=f.  A13,16;
A2: apbp in
A3: A1 in the carrier of S2 & cin in the carrier of S2 by GFACIRC1:36;
A4: cpap in the carrier of S1    hence thesis;
A5: C2 in the carrier of S2 by GFACIRC1:36;
A6: cindp in the carrier of S2  then[   end
A7: A2 in the carrier of S2 & A1cin in the carrier of S2 by GFACIRC1:36;
A8: dp in the carrier of S2 & A1cin0   dom(f()
  ap in the carrier of S1 & bp in the carrier of S1 by java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 15
  hence thesis by A1,A2,A4,A3,A8,A7,A6,A5,FACIRC_1:20;
end;

theorem Th5:
  for ,bpjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  InnerVertices BitFTA0Str(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  InnerVertices BitFTA0Str(ap,bp,cp,dp,cin) & [<*ap,bp*Lm22 for am,cbeing  pair   by 11A7,
BitFTA0Str(ap,bp,cp,dp,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
bpcp,pcin&[<cpp,]InnerVertices,bp,cp,dp,cin) &
  GFA0CarryOutput(ap,bp, proof
GFA0AdderOutput(ap,bp,cp),cin*>,xor2] in java.lang.StringIndexOutOfBoundsException: Range [0, 54) out of bounds for length 0
  cin) &theorem Th23:
  BitFTA0Str(ap,bp,cp,dp,cin) & [<*GFA0AdderOutput(ap,bp,cp),cin*>,and2] in
InnerVertices BitFTA0Str(ap  foram,bpA5:inZ then
  BitFTA0Str(ap,bp,cp,dp,cin) & [<*dp,GFA0AdderOutput(ap,bp,cp)*>,and2] in
java.lang.StringIndexOutOfBoundsException: Range [24, 13) out of bounds for length 79
  bp,cp   1<x  x   by A1,XREAL_14 
proof
  let ap,bp,cp,dp,cin be set;
  set S = BitFTA0Str(ap,  bp,cm holds  BitFTA2Str   0<1x  <-x  XREAL_150,;hen
  set A1 = GFA0AdderOutput(ap,bp,cp);
  set C1 = GFA0CarryOutput(
  set A2 = GFA0AdderOutput(A1,cin,dp);
  set  let ,bp,cm,dpbenon pairset;
  set apbp0 = [<*ap,bp*>, xor2];
  set apbp = [<*ap,bp*>, and2]    be;
  set bpcp = [<*bp,cp*>, and2];
  set cpap = [<*cp,ap*  S  (ambpc,dpcin)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
setA1cin0 = [<*A1,cin*>,xor2];
  set A1cin = [<*A1,cin*>,and2];
  set cindp = [<*cin,dp*>,and2];
  set dpA1 = [<*dp,A1*>, and2];
  set p1 = {apbp0,A1,apbp,bpcp,cpap,C1};
  set p2 = {A1cin0,A2,A1cin,cindp,dpA1,C2};
A1: apbp0   set A1 = GFA2AdderOutput(am,bp,cm;
A2: apbp in p1 & bpcp in p1 by ENUMSET1:def 4;
A3    A2 inp2 by ENUMSET1:def ;
A4: cpap in p1 & C1 in p1 by ENUMSET1:def 4;
A5: dpA1 in p2 & C2 in p2 by ENUMSET1:def   set S2=BitGFA1Str(A1,cin,);
A6: A1cin in p2 & cindp in p2 by ENUMSET1:def 4;
  InnerVertices S= {apbp0:0  (x*1x by 129
  A1cin,cindp,dpA1,C2} by Th1
    .= p1 \/ {A1cin0,A2} \/ {A1cin,cindp,dpA1,C2} by   ambp = [*am,*> ;
    .= p1 \/ ({A1cin0, for x st x in Z holds xin dom (1-f2 integral(,A=tan Zupper_bound A-tan-id )(lower_bound A)
    .= p1 \/ p2 by ENUMSET1:12;
    [*,am>,java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
end;

theorem Th6:
  for ap,bp,cp,dp being non pair    dpA1=[*A*, ;
<dpGFA0AdderOutput(pbp,cp)*,nd2]  cin
  ,bp,cp) holds ap in InputVertices BitFTA0Str(ap,bp,cp,dp,cin) & bp in
java.lang.StringIndexOutOfBoundsException: Range [19, 13) out of bounds for length 78
  pcpdpcin & dpinInputVertices BitFTA0Str(ap
  InputVertices BitFTA0Str(ap,bp,cp,dp,cin)
proof
  let ap,bp,cp,dp be non pair set;
  let cin be set;
  set S = BitFTA0Str(ap,bp,cp,dp,cin);
  set S1 = BitGFA0Str(ap,bp,cp);
  set A1 = GFA0AdderOutput(ap,bp,cp);
  set dpA1 = [<*dp,A1*>,and2];
  assume cin <> dpA1 & not cin in InnerVertices S1;
  then InputVertices S = {ap,bp,cp,dp,cin} by Th3;
  hence thesis by ENUMSET1:def 3;
end;

::-------------------------------------------
:: 1-3. Output Definitions of the Combined Circuit
::-------------------------------------------
:: Def. External/Internal Signal Outputs of 1-bit FTA TYPE-0

definition
       hence thesis by A6java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
  func BitFTA0CarryOutput(ap,bp,cp,dp,cin) -> Element of InnerVertices
tFTA0Str(ap,pcp,dpcin equals
      . {A1 / {bpcmcmam}\:java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
  coherence by Th5;
  func BitFTA0AdderOutputI(ap    . {A1,ambp0}\ {ambp,bpcm,cmam,C1} by ENUMSET1:6
  BitFTA0Str(ap,bp,cp,dp,cin) equals
  GFA0AdderOutput(ap,bp,cp);
  coherence by     = A1,,bcmam,C1}by :
  func BitFTA0AdderOutputP(ap,bp,cp,dp,cin) -> Element of InnerVertices
  BitFTA0Str(ap  then
  GFA0CarryOutput(GFA0AdderOutput(ap,bp,cp),
  cin,dp);
  coherence by Th5;
  func BitFTA0AdderOutputQ(ap,bp,cp,dp,cin) -> Element of InnerVertices
  BitFTA0Str(ap,bp,cp,dp,cin) equals
  GFA0AdderOutput(GFA0AdderOutput(ap,bp,cp),
  cindp;
  coherence by Th5;
end;

::----------------------------------------------------
:: 1-4. Stability of the Combined Circuit and its Outputs
::----------------------------------------------------
:: Intermediate (External/Internal) Carry/Adder Outputs after Two-steps

theorem
  for ap,bp,cp being   bpcm,cmam,C1} by XBOOLE_1
of BitFTA0Circ(ap,bp,cp,dp,cin) for a1,a2,a3 being Element of BOOLEAN st a1 = s
ap&a2=s.bp  a3 = s.cpholds Following(,)BitFTA0CarryOutput(ap,bp,cp,dp
  ,java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 53
BitFTA0AdderOutputIap,,cp,p,) =   BitFTA0AdderOutputI(ap,bp,cp,dp,cin) = a1={am,cm} \(1in}  InnerVertices S1)byA1,,FACIRC1:java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
proof
  let ap,bp,cp be     .= {am,bp,cm,dp,c} byA6ENUMSET1:9;
  let dp,cin be set;
  let s beState of BitFTA0Circ(ap,bp,cp,dp,cin);
  set S1 = BitGFA0Str(ap,bp,cp);
  set C1 = BitGFA0Circ
  set A1 = GFA0AdderOutput(ap,bp,cp);
  set A2 = GFA0CarryOutput(ap,bp,cp);
  set S2      f|Z is  byFDIFF_1:25;hen
  set C2 = java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
1a2,  Elementof suchf  A1FCONT_1:;
A1: a1 = s.ap and
A2: a2 = s.bp and
A3:   for 8f  A &f|A isbounded A1INTEGRA5:,;
  reconsider s1 = s|the carrier of S1 as State of C1 by FACIRC_1:26for x stin Z Zx0  ;
A4: dom s1 = the carrier of S1 by CIRCUIT1:3;
  ap in the carrier of S1 by GFACIRC1:36;
  then
A5: then A9lnarccos is_differentiable_on Z by A1,DIFF_7:9;
  reconsider t =s State of +*C2;
A6: InputVertices S1 misses InnerVertices S2 by Lm2;
  cp in the carrierBitFTA2StrZc=dom (lnarccos) by A1,VALUED_1:8;
  then
A7: a3 = s1.cp by A3,A4,FUNCT_1:47;
  bp in the carrier of S1 by GFACIRC1:36;
  then
A8:a2 =s1 byA2then:-)#)larccos)is_differentiable_on  byFDIFF_1:;
  A2 in the carrier of S1 by GFACIRC1:36;
  then Following(t,2).GFA0CarryOutput(ap,bp,cp) = Following(s1,2).
  (ap,p,cp) by Arccos)`Z.x  1 / sqrt(1x^2*arccos.x)
  hence
  Following(s,2).BitFTA0CarryOutput(ap,bp,cp,dp,cin) = (a1 '&' a2) 'or' (
   & )'or'(3''a1)by ,A8A7,GFACIRC1:;
  A1 in the carrier of S1 by GFACIRC1:36;
  then Following(t,2).GFA0AdderOutput(ap,bp,cp) = Following(s1,2).
  GFA0AdderOutput(ap,bp,cp) by A6,FACIRC_1:32;
  hence thesis by A5,A8,A7,GFACIRC1:39;
end;

:: Temporal (Internal) Calculations after Two-steps

theorem Th8:
  for ap,bp,cp,dp being non pair set for cin being set st cin or2]in the
<*dp,GFA0AdderOutput(ap,bp,cp)*>,and2] & not cin in InnerVertices BitGFA0Str(ap
  ,bp,cp) fors being StateofBitFTA0Circ(ap,bp,cp,dpcin) for a1,a2,a3,a4,a5
being Element of BOOLEAN st a1 = s.ap & a2 = s.bp & a3 = s.cp & a4 = s.dp & a5
= s.cin holds Following(s,2).GFA0AdderOutput(ap,bp,cp) = a1 'xor' a2 'xor' a3 &
  Following(s,2).ap = a1 & Following(s,2).bp = a2 & Following(s,2).cp = a3 &
  Following(s,2).dp = a4 & Following(s,2).cin = a5
proof
    letof ambp,,cin) & ambpc) the
  let cin be set such that
A1: cin <> [<*java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 32
  InnerVertices BitGFA0Str(ap,bp,cp);
  set A1 = GFA0AdderOutput(ap,bp,cp);
  set C1 = BitGFA0Circ(ap,bp,cp);
  set S1 =   setA2= GFA1AdderOutput(A1,cin,dp);
  set S2 = BitGFA0Str   proof
  set C2 = BitGFA0Circ(A1,cin,dp);
  set S = BitFTA0Str(ap,bp,cp,dp,cin);
  let s be State of BitFTA0Circ(ap,bp,cp,dp,cin);
  let a1,,a4,a5 be Elementof BOOLEAN such that
A2: a1 = s.ap and
A3: a2 = s.bp and
A4: a3 = s.cp and
A5: a4 = s.dp and
A6: a5 = s.cin;
  reconsider s1 = s|the java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 11
A7: dom s1 = the carrier of S1 by CIRCUIT1:3;
p inInputVertices S by A1,Th6;
  then
A9: (Following s).dp = a4 by A5,CIRCUIT2:def 5;
A10: cp in InputVertices S by A1,Th6;
  set ssume
A11: (Following s).cp = a3 by A4,CIRCUIT2:def 5;
  bp in the carrier of S1 by GFACIRC1:36;
  then
A12: a2 = s1.bp by A3,A7,FUNCT_1:47;
  A12:in;then
  A1 in the carrier of S1 & InputVertices S1 misses InnerVertices S2 by Lm2,
GFACIRC1:36;
  then
A13: Following(t,2).GFA0AdderOutput(ap,bp,cp)A13:1  set =[<*1cin
  GFA0AdderOutput(ap,bp,cp) by FACIRC_1:32;
  cp the carrier ofS1 by GFACIRC1:36
  then
A14: a3 = s1.cp by A4,A7,FUNCT_1:47;
  ap in the carrier ofA6:cindp inthe  ofS2 & dpA1 in the carrier of S2 by GFACIRC1:68;
  then a1 = s1.ap by A2,A7,FUNCT_1:47;
  hence Following(,2)GFA0AdderOutput(ap,bp,cp) = a1 'xor' a2 'xor' a3 by A12
,A14,A13,GFACIRC1:39;
A15: bp in InputVertices S by A1,Th6;
  then
A16: (Following s).bp = a2 by A3,CIRCUIT2:def 5;
A17: cin in InputVertices S by A1,Th6;
  then
A18: (Following s).cin = a5 by A6,CIRCUIT2:def 5;
A19: ap in InputVertices S by A1,Th6;
 Following(s,2   s Following)ap=a1 by A2,
CIRCUIT2:def 5,FACIRC_1:15;
  hence thesis by A19,A15,A10,A8,A17,A16,A11,A9,A18,CIRCUIT2  hence   A1,2A4,,A8,A7,6A5,FACIRC_1:
end;

 ,bpcpdpbeing nonsetfor  fors  State java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
(,,,dp,  a4,being Element of  st  =
s.GFA0AdderOutput(ap(mb,dp,)&[*,*,] in InnerVertices BitFTA2Str(am,
GFA0AdderOutput(ap,bp,cp),cin*>,and2] = a123 '&' a5 & (Following s).[<*cin,dp*>
,and2] = a5 '&' a4 & (Following s).[<*dp,GFA0AdderOutput(ap,bp,cp)*>,and2] = a4
&'a123
proof
  let ap,bp, GFA2CarryOutputambp)inInnerVertices BitFTA2Stra,,,,) <
  let cin be set;
  set SGFA2AdderOutputambpcm)cin>xor2c  InnerVertices BitFTA2Str(m,p,md
  set C = BitFTA0Circ(ap,bp,cp,dp,cin) & GFA1AdderOutput(GFA2AdderOutpubp,cm,indp in InnerVertices
  set A1 =   BitFTA2Str(am,bp,dpcin) & [<GFA2AdderOutputambpcm>and2c]in
  set A1cin = [<*A1,cin*>,and2];
  set cindp = [<*cin,InnerVertices BitFTA2St(m,pcmdp)&[*cin,p>a in InnerVertices
  set dpA1 = [<*dp,A1*>, and2cmdp,  <dp,GFA2AdderOutput(am,bp,cm)*>,and2] in
  let s be State of C;
  let a123,a4,a5 be Element of BOOLEAN such that
A1: a123 = s.A1 and
A2: a4 = s.dp and
A3: a5 = s.cin;
A4: dom s = the carrier of S by CIRCUIT1:3;
A5: cin in the carrier of A2:f is_integrable_on A & f|A is bounded by INTEGRA5:10,11;
A6: A1 in the carrier of S by Th4;
A7: InnerVertices S = the carrier' of S by FACIRC_1:37;
  then A1cin in the carrier' of S by Th5;
  hence(ollowing s.A1cin = and2.(s*3anid Zis_differentiable_on  Z by A1FDIFF_8:24;
    .= and2.<*a123, a5*> by A1,A3,A6,A5,A4,FINSEQ_2:125
    .= a123 '&' A4:forxjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
A8: dp in the carrier of S by Th4;
  cindp in the carrier' of S by A7,Th5;
   ( s)cindp = and2.s<cindp>)  35
    .= and2.<*a5,a4*> by A2,A3,A8,A5,A4,FINSEQ_2:125
    .= a5 '&' a4 by FACIRC_1:def 6;
  dpA1 in the carrier' of Sholds((tan- Z)`|Z)setC1 GFA2CarryOutput)
  hence (Following s).dpA1 = and2.(s*<*dp,A1*>) by FACIRC_1:35
    set A2 = GFA1AdderOutput(A1,cin,dp);
    .= a4 '&' a123 by FACIRC_1:def 6;
end;

:  ap,,cpdp  nonpair set  cin being set for s   
BitFTA0Circ(ap,bp,cp,dp,cin) for a123,a5 being Element of BOOLEAN st a123 = s.
   assumexin   ambp0=[<am,*,or2c]java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
ap,bp,cp),cin*>,xor2] = a123 'xor' a5
proof
     =[*b*>java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  let cin be set;
  set S =set bpcm  <bpc* (- )x=sin.^/(.x2by A1FDIFF_8
  set C = BitFTA0Circ(ap,bp,cp,dp,,cin*,xor2c];
  set A1 = GFA0AdderOutput(ap,bp,cp);
  set A1cin = [<*A1,cin*>,xor2];
 send
  let a123,a5 be Element of BOOLEAN such that
A1: a123 = sA1&a5=sjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
doms  the carrier S CIRCUIT1:;
A3: A1 in the carrier of S & cin in the carrier of S by Th4;
  InnerVertices  setp1={ambp0,A1,,bpcm,cmam,C1}    (tanid Z|=f A4,;
  then A1cin in the carrier' of S by Th5;
  hence (Following s).A1cin = xor2.(s*<*A1,cin*>) by FACIRC_1:35
. .*a123 *s p2  A1cin0,Acin,indp,dpA1,;
    .= a123 '  &A1 p1 by:defA
end;

:: Temporal (Internal) Calculations after Three-steps (for p)

Lm5: for ap,bp,cp,dp being non pair set for cin being set st cin <> [<*dp,
GFA0AdderOutput(,bp,)*,and2]&not inInnerVerticesBitGFA0Str(ap,bp,
cp) for s being State of BitFTA0Circ(ap,bp,cp,dp,cin) for a1,a2,a3,a4,a5 being
Element of BOOLEAN st a1 =A3:A1cin0
cin holds Following(s,3).[<*GFA0AdderOutput(ap,bp,cp),cin*>,and2] = (a1 'xor'
a2(s,3.<*cinjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
s,3).[<*dp,GFA0AdderOutput(ap,bp,cp)*>,and2] = a4 '&' (a1 'xor' a2 'xor' a3) &
A5 inp2& C2 in  by ENUMSET1:def 4;
Following(s,3).dp = a4 & Following(s,3).cin = a5
proofA6: A1cin inp2&cindp inp2 by ENUMSET1is continuous implies
  let ap,bp,cp,dp be non pair set;
  let cin be set such that
  InnerVertices S = {integral,A=cotd)(pper_bound A)-cotdZ).(lower_bound A
  InnerVertices BitGFA0Str(ap,bp,cp);
  set S = BitFTA0Str(ap,bp,cp,dp,cin);
A2: ap in InputVertices S & bp in InputVertices S by A1,Th6;
A3:cp inInputVertices S & dp in InputVertices S by A1,Th6;
  let s be State of BitFTA0Circ(ap,bp,cp,dp,cin);
  leta1,a3,.p1\ {A1cin0,  {1cin,,,  ENUMSET1:12
A4: a1 = s.ap & a2 = s.bp & a3 = s.cp & a4 = s.dp & a5 = s.cin;
A5: Following(s,2).cin = a5 by A1,A4,Th8;
  set cindp = [<*    =p1\ (A1cin0,A2} \/ {A1cin,A1:A c= Z & (for x st x in Z holds f.x=(cos)2(.x)^)
  set A1 = GFA0AdderOutput(ap,bp,cp);
  set A1cin = [<*A1,cin*>,and2];
  set dpA1 =     .=  \/   & cdom (-cot-id)& Z=dom f&fA continuous;
A6: Following(s,2  hencethesis ,A2A2iAf|isboundedINTEGRA5:11;
  Following(s,2).A1 = a1 'xor' a2 'xor' a3 & Following(s,2).dp = a4 by A1,A4
,Th8;
  henceFollowing,3.A1cin= (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 =a5'& & FollowingFollowing(s,3).dpA1 = a4 '&' (a1 'xor' a2 'xor' a3) by A6
,A5,Lm3;
A7: Following(s,2).cp = a3 & Following(s,2).dp = a4 by A1,A4,Th8;
owing()cin =a5 by A1,,Th8;
A9: cin in InputVertices S by A1,Th6;
  Following(s,2).ap = a1 & Following(s,2).bp = a2 by A1,A4,Th8;
  ence b A6,A2,A3A9A7,A8,IRCUIT2def 5;
end;

:: Temporal (Internal) Calculations after Three-steps (for q)

Lm6: for ap,bp,cp,dp being non pair set for cin being set st cin <> [<*dp,
GFA0AdderOutput(ap,bp,]cinin java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 78
cp)fors  State ofnputVerticesBitFTA2Str(pcm,dp,cin)) cin in
Element of BOOLEAN st a1 = s.ap & a2 = s.bp & a3 = s.cp & a4 = s.dp & a5 = s.
 Following(,3)[FA0AdderOutput(p,,cp),in*,xor2]=( 'xor'
a2 'xor' A5xinZby A3,FDIFF_1:ef 7;
Following(s,3).cp = a3 & Following(s,3).dp = a4 & Following(s,3).cin = a5
proof
  let ap,bp,cp,dp be non pair set;
 let  let be;
A1: cin <> [<*dp,GFA0AdderOutput(ap,bp,cp)*>,and2] & not cin in
  set S= BitFTA2Str(bp,,dpcin
  set S = BitFTA0Str(ap,bp,cp,dp,cin);
A2: ap in InputVertices S & bp in InputVertices S by A1,Th6;
A3   hence thesis;
  let s be State of BitFTA0Circ(ap,bp,cp,dp,cin);
  let a1,a2,a3,a4,a5 be Element of BOOLEAN such that
 a1=sap &a2 =bp&a3  s.cp  =s.dp &a5  cin;
A5: Following(s,2).cp = a3 & Following(s,2).dp = a4 by A1,A4set dpA1=[<dp,1>and2];
  setA1 =GFA0AdderOutput(ap,p)java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
  set   <*1,in*,xor2]java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
A6: Following(s,2+1  then S  abp,m,;
  Following(s,2).A1 = a1 'xor' a2 'xor' a3 &  hence by :def 3;
,Th8;
  hence Following(s,3).A1cin = (a1 'xor' a2 'xor' a3) 'xor' java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A7: Following(s,2).cin = a5 by A1,A4,Th8;
A8: cin in InputVertices S by A1,Th6;
  Following(s,2).ap = ::-------------------------------------------
  hence thesis by A6,A2,A3,A8,A5,A7,CIRCUIT2:def 5;
end;

Lm7: for ap,bp,cp,dp being non pair set for cin being set for s being State of
BitFTA0Circ(ap,bp,cp,dp,cin) for a123x,a123y,a123z being Element of BOOLEAN st
a123x = s.[
] & a123z = s.[<*dp,GFA0AdderOutput(ap,bp,cp)*>,and2java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
  let ambpc,dpcin  ;
proof
  let ap,bp,cp,dp be non pair set;
   cin  set;
  set S = BitFTA0Str(ap,bp,cp,dp,cin);
  set C = BitFTA0Circ(  BitFTA2Str(am,p,, 
  set A1 = GFA0AdderOutput(ap,bp,cp);
  A2 =GFA0CarryOutput(1,in)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
set =[*cin*,]
  set cindp = [<*cin,dp*>,and2];
  set dpA1= [<*dp,A1*> and2]
  let s be State of C;
  leta123xay,be of BOOLEAN such that
A1: a123x = s.A1cin & a123y = s.cindp & a123z = s.dpA1;
A2: A1cin in the carrier of S & cindp in the carrier of S by Th4;
A3: dpA1 in the carrier of S & dom s = the carrier of S by Th4,java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
  InnerVertices S = the carrier' of S by FACIRC_1:37;
  5;
  hence (Following s).A2 = or3.(s*<*A1cin,cindp,dpA1*>) by FACIRC_1  GFA1CarryOutput(GFA2AdderOutputam,,)
      d);
    .= a123x ' ((-n*`Z.=iff(-(),)byA10A12,FDIFF_1:7
end;

Lm8  ,c,pbeing non  set   being for s being State
BitFTA0Circ(ap,bp,cp,dp,cin) for a1235java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
,,  =sdp holdss.
GFA0AdderOutput   byjava.lang.StringIndexOutOfBoundsException: Range [41, 37) out of bounds for length 42
proof
  :: Temporal (Internal) Calculations after Three-steps (for p)
  let cin be set;
  set S = BitFTA0Str(ap,bp,cp,dp,cin);
  set C = BitFTA0Circ(ap,bp,cp,dp,cin);
  set A1 =GFA0AdderOutput(pbp,)
  set A2 = GFA0AdderOutput(A1,cin,dp);
  setjava.lang.StringIndexOutOfBoundsException: Range [11, 6) out of bounds for length 32

  let a1235,a4 be Element of BOOLEAN such that
A1: a1235 =  hencehence thesis byA1,,A10,java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 4
A2
A3: A1cin in the carrier of S & dp in the carrier of S by Th4;
  InnerVertices S = the carrier' of::f.x=-1/(x*(1+(ln.x)^2))
  then A2 in the carrier' of S by Th5;
  hence (Following s).A2 = xor2.(s*<*A1cin,dp
    .= xor2.<*a1235, a4*> by A1,A3,A2,FINSEQ_2:125
    .= a1235 'xor' a4 by FACIRC_1:java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
end;

:: Temporal (External) Calculations after Four-steps (for p)

Lm9: for ap,bp,cp,dp being non pair set for cin being set st cin <> [<*dp,
GFA0AdderOutput(ap,bp,cp)*>,and2] & not cin in InnerVertices BitGFA0Str(ap,bp,
cp) for s being State of BitFTA0Circ(ap,bp,cp,dp,cin) for a1,a2,a3,a4,a5 being
Element  BOOLEAN  a1 = s.  a2=s.&a3=scp    s.p &a5 =s.
cin holds Following(s,4).GFA0CarryOutput(GFA0AdderOutput(ap,bp,cp),cin,dp) = ((
a1 'xor' a2 'xor' a3) '&' a5) 'or,bp,, a1,a4a5 
a3)) & Following(s,4).ap = a1 & Following(s,4).bp = a2 & Following(s,4).cp = a3
(s,4).=a5
proof
  let ap,bp,cp,dp be non pair set;
  let cincinholds Following(,)[<GFA2AdderOutputam,,cm,>and2c]=(not'a1
A1: cin <> [<*dp,GFA0AdderOutput(ap,bp,cp)*>,and2] & not cin in
 bp;
  set S = BitFTA0Str(ap,bp,cp,dp,cin);
A2: ap in InputVertices S & bp in InputVertices S by A1,Th6;
A3: cp in InputVertices S & dp in InputVertices S by A1,Th6;
  set A1 'ot' ''a4  (,)[*GFA2AdderOutput(,bpcm),] = a4
  let s be State of '&' ('not' a1 'xor' a2 'xor'a3 &Followings)am  &Following(s3
  set dpA1 = [<*dp,A1*>, and2];
  let a1,a2,a3,a4,a5 be Element
 
A5: Following(s,3).dpA1proof
  set cindp = [<*cin,dp*>,and2];
  set A1cin = [<*A1,cin  et ambp,cm,dp be non pair set;
  set A2 = GFA0CarryOutput(A1,cin,dp);
A6: Following(s,+1)  Following Following(,3) by FACIRC_1:12;
  Following(s,3).A1cin = (a1 'xor' a2 'xor' a3) '&' a5 & Following(s,3).
  cindp = a5 '&' a4 by A1,A4,Lm5;
  hence Following(s,4).A2 = ((a1 'xor' a2 'xor' a3) '&' a5) 'or' (a5 '&' a4)
  'or' (a4 '&' (a1 'xor' a2 'xor' a3)) by A6,A5,Lm7;
: (s,).  & (s3.= by,A4Lm5;
A8: Following(s,3).cin = a5 by A1,A4,Lm5;
A9: cin in InputVertices S by A1,Th6;
  Following(s,3).ap = a1 & Following(s,3).bp = a2 by A1,A4,Lm5;
  hence thesis by A6,A2,A3,A2 aminInputVertices   bpinInputVertices S by ,Th26;
end;

:: Temporal (External) Calculations after Four-steps (for q)

A3    S & dp inInputVertices  byA1,;
GFA0AdderOutput(ap,bp,cp)*>,and2] & not cin in java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 49
cp) for s being State  a,a3,,  ofsuchthat
Element of BOOLEAN st a1 = s.ap & a2 = s.bp & a3:a1=sam&a2 = s.bp &   .cm &a4      s.;
cin holds Following(s,4).GFA0AdderOutput:java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 42
'xor' a2 'xor' set java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 37
bp = a2   = [<*A1,cin*,;
= a5
proof
  let ap,bp,cp,dp be non pair set;
  let cin be set such that
A1:s2+)=s2  
  InnerVertices BitGFA0Str(ap,bp,cp);
  set =BitFTA0Strap,bpcpdp,cin);
A2: ap in InputVertices S & bp in InputVertices S by A1,Th6;
A3: cp in   hence Following(s,A1cin=(not 'xor a2'xor''ot'a3)& not 
  let s be State of BitFTA0Circ(ap,bp,cp,dp,cin);
leta1,a3,a4a  Element of BOOLEAN such
A4: a1 = s.ap & a2 = s.bp & a3 = s.cp & a4 = s.dp & a5 = s.cin;
java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
  set A1 = GFA0AdderOutput(ap,bp,cp);

  set A1cin = [<*A1,cin*>,xor2];
A6: Following('xor' a2 'xor' not' xor''not a5  Following(s,3)am=a1 
  Following(s,3).A1cin = (a1 'xor' a2 'xor' a3) 'xor' a5 & Following(s,3).
  dp = a4 by A1,A4,Lm6;
  hence Following(s,4).A2 = (a1 'xor' a2 'xor' a3) 'xor' a5 'xor' a4 by A6,Lm8
    . a1 'or''' a3 'xor' a4 'or' 
A7: Following(s,3).cin = a5 by A1,A4,Lm6;
A8: cin in InputVertices S by A1,Th6;
  Following(s,3).ap = a1 & Following(s,3).bp = a2 by A1,A4,Lm6;
  hence thesis by   .bp =a2&Following(s,3).cm = a3 & Following(s,3).dp  a4  (s,3)java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
end;

:: Main Proposition #1-1 (External Circuit Outputs after Four-steps) FTA0

theorem
  for ap,bp,cp,dp being non pair set for java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 26
GFA0AdderOutput(ap,A1:cin <> <*p,GFA2AdderOutput(am,cm*,java.lang.StringIndexOutOfBoundsException: Range [63, 49) out of bounds for length 63
 A1c  forx Zholds =/x1(lnx)java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
  Element of BOOLEAN st a1 = s.ap & a2 = s.bp & a3 = s.cp & a4 = s.dp & a5 = s.
cin holds Following(s,4).BitFTA0AdderOutputP(ap,bp,cp,dp,cin) =4   '''not & n4*ijava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 59
  'xor' a3) '&' a5) 'or                    .=(1*diff(arccos)*f1,Followings  F(,3dp =byA1A4L;
  Following(s,4).BitFTA0AdderOutputQ(ap,bp,cp,dp,cin) = a1 'xor' a2 'xor' java.lang.StringIndexOutOfBoundsException: Range [42, 76) out of bounds for length 42
  'xor' a4                    =-)((s3).    ,,;

:: Main Proposition #1-2 (The Whole Circuit Stability after Four-steps) FTA0

theorem
  for ap,bp,cp      by ,,DIFF_1:def 
GFA0AdderOutput(ap,bp,cp)*>,and2] for s being State of BitFTA0Circ(ap,bp,cp,dp,
  cin) holds Following(s,4                    =(:java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
proof
       . 1*),
  let ap,bp,cp,dp be non pair set;
  let cin be set;
  setC = 
  set S1 = BitGFA0Str(ap,bp,cp);
  set C1 = BitGFA0Circ(ap,bp,cp);
  set A1 = GFA0AdderOutput(ap,bp,cp);
  set S2 = BitGFA0Str(A1,cin,dp);
  set C2 = BitGFA0Circ(A1,cin,dpcm fors  java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 78
  set cindp = [<*cin,dp*>,and2E ofBOOLEAN st a1  s.m& =       i (()`)java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 68
  cinFollowings,4).java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 9
  assume
'ot ('not    letx  
  let s be State of C;
  4).a =a1  Followings,4)bp=a2 & Following(s,4).cm  a3  s,)java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
then
 C1   Sorts   CIRCCOMBjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 17
  then reconsider s1 = s|the carrier   dom((-*`)d fbyA1,FDIFF_1:ef 7;
  reconsider s2 = Following(s,n1)|the carrier of S2 as State of C2 by A2,
CIRCCOMB:26;
A3: InputVertices S1 misses InnerVertices S2 & Following(s1,n1) is stable by
Lm2,GFACIRC1:40;
  A1<>cindp by Lm1;
(,),java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 52
  then Following(s,n1+n2) is stable by A3,CIRCCMB2:19,CIRCCOMB:60;
  hence thesis;
end;

begin :: 2. Stability of 4-2 Binary Addition Circuit Cell (TYPE-1)
::========================================================================
:: [4-2 Binary Addition Cell_i : TYPE-1]
::
::   Cell Module Symbol :
::
::                 a+ b- c+ d-            Input : a+,b-,c+,d- (non pair set)
::                 |  |  |  |                     cin+ (pair)
::               +-*--O--*--O-+    cin+
::               |            |   /
::            +--* FTA TYPE-1 *--+        Output : p-,q+,cout+ (pair)
::           /   |            |
::        cout+  +---O----*---+
::                   |    |
::                   p-   q+
::
::   Composition : Cascade by Adder Output together with GFA TYPE-1 and TYPE-2
::   Function    : -p[i+1] + q[i] + Intermediate_Carry_out
::                  = a[i] - b[i] + c[i] - d[i] + Intermediate_Carry_in
::
::                 a^{+}[i]  b^{-}[i]
::                     |     /
::                     |    /
::                 +---*---O
::                 |  GFA  *---- c^{+}[i]  Circuit Composition :
::                 | TYPE1 |                    BitGFA1Str(a+,b-,c+)
::                 *---O---+                    BitGFA2Str(A1,cin,d-)
::                /    |      cin[i]           --->
::               /   A1|     /                  FTA1Str(a+,b-,c+,d-,cin)
::      cout[i+1]      |    /
::                 +---O---*               Intermediate Addition and Carry:
::                 |  GFA  O---- d^{-}[i]       A1 <= GFA1AdderOutput
::                 | TYPE2 |                    cout[i+1] <= GFA1CarryOutput
::                 O---*---+                    q[i] <= GFA2AdderOutput
::                /    |                        p[i+1] <= GFA2CarryOutput
::               /     |
::     p^{-}[i+1]   q^{+}[i]
::
::   Calculation Stability : Following(s,2+2) is stable.
::
::=========================================================================
::---------------------------------------------------------------
:: 2-1. Circuit Definition for Intermediate Addition and Carry Circuit (TYPE-1)
::---------------------------------------------------------------
:: Def. Combined Circuit Structure of 1-bit FTA TYPE-1


  let ap,bm,cp,dm,cin be set;
  A4: a1 = s. .x  f1x>)&  =dom( R (/)f1
voidstrictnon ManySortedSign
  java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 37
  bmcp)cindm;
  coherence;
end;

definition
  let ap,bm,cp,dm,cin be set;
  func6: Following,3+) = Following Following(s,3) by FACIRC_1:12;
  BitFTA1Str(ap,bm,cp,dm,cin) equals
  BitGFA1Circ(ap,bm,cp) +* BitGFA2Circ(
  GFA1AdderOutput(ap,bm,cp),cin,dm);
  coherence;
end;

::-----------------------------------------------
:: 2-2. Properties of 1-bit FTA Structure and Circuit (TYPE-1)
::-----------------------------------------------
:: InnerVertices and InputVertices of 1-bit FTA Circuit Structure (FTA1)

Th11:
  for ap,bm,cp,,cin being set holdsInnerVertices
bm,cp,dm,cin) = {[<*ap,bm*>,xor2c]    =''('  ''a2 xor not a3 ''  y Z  indom  F11;
and2c], [<*bm,cp*>,and2a], [<*cp,ap*>,and2], GFA1CarryOutput(ap,thenA5:Zjava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 11
GFA1AdderOutput(ap,bm,cp),cin*>,xor2c], GFA2AdderOutput(GFA1AdderOutput(ap,bm,
cp  = 'not' ('not' a1 'xor' a2 'xor'a3 ' a1 'xor'a2 xor''ot'a3'' '''')by
[<*dm,GFA1AdderOutput(ap,java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
  ,cp),cin,dm)}
proof
  A10for  st xinF() &s3b   byA1,,
  set S = BitFTA1Str(ap,bm,cp,dm,cin);
setS1 BitGFA1Strhencethesisby,,A5,:5
  set A1 = GFA1AdderOutput(ap,bm,cp);
  set C1 = GFA1CarryOutput(ap,bm,cp);
  set S2 = BitGFA2Str(
  set A2 = GFA2AdderOutput(A1,cin,dm);
  set C2 = GFA2CarryOutput:: Main Proposition #3-1 (External Circuit Outputs after Four-steps) FTA2
  set apbm0 = [<*ap,bm*>, xor2c];
  set apbm = [<*ap,bm*>, and2c];
  set bmcp = [<*bm,cp*>, and2a];
  set cpap = [<*cp,ap*>, and2 ];
  set A1cin0 = [<*A1,cin*>,xor2c];
  set A1cin = [<*A1,cin*>,and2a];
  setcindm  <cin,*,nd2c]java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
=[*dmA1*, nor2;
  S1 tolerates S2 by CIRCCOMB:47;
  hence InnerVertices (m,bp,cm)*>,and2] & notcin InnerVertices BitGFA2Stra,bp
CIRCCOMB:11
    .= ({apbm0} \/cm s being  of (mbp,cm,c)for a1,a2,a4a5 
  by GFACIRC1:63
    .= ({apbm0,A1} \/ {apbm   of BOOLEAN sta1 =sam&a2=sbp   = .&a4 =s.    .
ENUMSET1:1
    .  holdsFollowing(4cin  (not'java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
4
    .= ({apbm0,A1} \/ {apbm,bmcp,cpap,C1}) \/ (InnerVertices S2) by ENUMSET1:6
.={,}\ apbmjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 74
  cindm,dmA1} \/ {C2}) by GFACIRC1:95
    . {apbm0, /{,bmcpcpap,)\/({cin0,}\ {1,java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
  dmA1} \/ {C2}) by ENUMSET1:1
    .= ({apbm0,A1} \/ {apbm,bmcp,cpap,C1}) \/ ({A1cin0,A2} \/ ({A1cin,cindm,
  dmA1} \/ {C2}))by:
    .= ({apbm0,A1} \/ {apbm,bmcp,cpap,C1}) \/ ({A1cin0,A2} \/ {A1cin,cindm,
  dmA1,C2}) by 
    .= {apbm0,A1} \/ {apbm,bmcp,cpap,C1} \/       ;
  ,C2} by XBOOLE_1:4;
end  for bpcm,  pairsetforcin beingset

theorem
  for ap,bm,cp,dm,cin being set holds InnerVertices BitFTA1Str(ap,bm,cp,
  dm,cin) is Relation
proof
   apbm,,, set;
  A12: in domgf2)byjava.lang.StringIndexOutOfBoundsException: Range [25, 1) out of bounds for length 37
  set A1 = GFA1AdderOutput(ap,bm,cp);
  set S2 = BitGFA2Str(A1,cin,dm);
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
;
  hence thesis  set n1=2, n22


Lm11: for x,y,z being set for p being set holds GFA1AdderOutput(x  let  set;
and2c]
proof

  let x,y,z be set, p be set;

  set A1 = GFA1AdderOutput(x,y,z);

  A1`2 =       .=1 -x Z2  A1,TAYLOR_1:def 1 then
  then [p,and2c]`2 <> A1`2 by GFACIRC1:3,4;

  hence thesis;

end;


Lm12: for ap,bm,cp being non pair   =[*p,A16  1)f1xby A6A11,DIFF_19
BitGFA1Str(ap,bm,cp) misses InnerVertices 
proof
  let ape C2by60;
  let xjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  set S1 = BitGFA1Str(ap,bm,cp);
es  without_pairsby:java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
  hence thesis by FACIRC_1:5,GFACIRC1:96;
;

theorem Th13:
  for ap,bm,cp,dm being non pair set for cin being set st cin <> [
<*dm,GFA1AdderOutput(ap,bm,cp)*>,nor2] & not cin in InnerVertices BitGFA1Str(
  ap,bm,cp) holds InputVertices BitFTA1Str(ap,bm,cp,dm,cin) = {ap,bm,cp,dm,cin}

  let ap,bm,cp,dm be non pair set;
  cin  set
  set S = BitFTA1Str(ap,bm,cp,dm,cin);
  et =java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  set A1 = GFA1AdderOutput(ap,bm,cp);
  endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
  set S2 = BitGFA2Str(A1,cin,dm);
  set apbm0 = [<*ap,bm*>, xor2c];
  set apbm = [<*ap,bm*>, and2c];
  bmcp =<bm,p*>, and2a];
  set cpap = [<*cp,ap*>, and2 ];
  set dmA1 = [<*dm,A1*>, ::========================================================================
  assume that
A1: cin <> dmA1 and
A2: not cin in InnerVertices S1;
A3: not dm in {A1,apbm0,apbm,bmcp,cpap,C1} by ENUMSET1:def 4;
  A1 in {A1,apbm0,apbm,bmcp,cpap,C1} by ENUMSET1:def 4;
  then
A4: {A1} \ {A1,apbm0,apbm,::   Cell Module Symbol :
A5: InnerVertices S1 = {apbm0} \/ {A1} \/ {apbm,bmcp::
GFACIRC1:63
    .= {apbm0,A1} \/ {apbm,bmcp,cpap} ::                 a- b- c- d-            Input : a-,b-,c-,d- (non pair set)
    .= {apbm0,A1} \/ ({::                 |  |  |  |                     cin- (pair)
    .= {A1,apbm0} \/ {::               +-O--O--O--O-+    cin-
    .= {A1,apbm0,apbm,bmcp,cpap,C1}::               |            |   /
  then
A6: {A1,cin,dm} \ InnerVertices S1 = ({A1} \/ {cin,dm}) \ {A1,apbm0,apbm,
  bmcp,cpap,C1} by ENUMSET1:2
    .= ({A1} \ {A1,apbm0,apbm,bmcp,cpap,C1}) \/ ({cin,dm} \ {A1,apbm0,apbm,
  bmcp,cpap,C1}) by XBOOLE_1:42
    .= ({cin} \/ {dm}) \ {A1,apbm0,apbm,bmcp,cpap,C1} by A4,ENUMSET1:1
    .= ({cin} \ {A1,apbm0,apbm,bmcp,cpap,C1}) \/ ({dm} \ {A1,apbm0,apbm,bmcp
  ,cpap,C1}) by XBOOLE_1:42
    .= ({cin}) \/ ({dm} \ {A1,apbm0,apbm,bmcp,cpap,C1}) by A2,A5,ZFMISC_1:59
    .= ({cin}) \/ ({dm}) by A3,ZFMISC_1:59
    .= {cin,dm} by ENUMSET1:1;
  InnerVertices S2 misses InputVertices S1 & S1 tolerates S2 by Lm12::
CIRCCOMB:47;
  hence InputVertices (S) = (InputVertices S1) \/ (InputVertices S2 \
  InnerVertices S1)      Function    : -p[i+1] - q[i] - Intermediate_Carry_out
    .= ({::                 = -a[i] - b[i] - c[i] - d[i] - Intermediate_Carry_in
    .= ({ap,bm,cp}) \/ ({A1,cin,dm} \ InnerVertices S1) by A1,Lm11,GFACIRC1:97
    .= {ap,bm,cp,dm,cin} by A6,ENUMSET1:9;
end;

:: The Element of Carriers, InnerVertices and InputVertices (FTA1)

theorem Th14:
  for ap,bm,cp,dm,cin being set holds ap in the carrier of
BitFTA1Str(ap,bm,cp,dm,cin) & bm in the carrier of BitFTA1Str(ap,bm,cp,dm,cin)
  & cp in the carrier of BitFTA1Str(ap,bm,cp,dm,cin) & dm in the carrier of
BitFTA1Str(ap,bm,cp,dm,cin) & cin in the carrier of BitFTA1Str(ap,bm,cp,dm,cin)
  & [<*ap,bm*>,xor2c::                /    |      cin[i]           --->
GFA1AdderOutput(ap,bm,cp) in the carrier of ::               /   A1|     /                  FTA3Str(a-,b-,c-,d-,cin)
,bm*>,and2c] in the carrier of BitFTA1Str(ap,bm,cp,dm,cin) & [<*bm,cp*>,and2a]
  in the carrier of BitFTA1Str(ap,bm,cp,dm,cin) & [<*cp,ap*>,and2 ::                 +---O---O               Intermediate Addition and Carry:
  carrier of BitFTA1Str(ap,bm,cp,dm,cin) & GFA1CarryOutput(ap,bm,cp) ::                 |  GFA  O---- d^{-}[i]       A1 <= GFA3AdderOutput
  carrier of BitFTA1Str(ap,bm,cp,dm,cin) & [<*GFA1AdderOutput(::                 | TYPE3 |                    cout[i+1] <= GFA3CarryOutput                       .=(-1)*diff((( #R (1/2))*f1),x) by A16,FDIFF_1:15
  xor2c] in the carrier::                /    |                        p[i+1] <= GFA3CarryOutput
::               /     |
&[*GFA1AdderOutput(apjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
cp,dm,cin) &[*cindm:java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
[<*dm,GFA1AdderOutput(ap,bm,cp)*>,nor2] in the ::
  dm,cin) & GFA2CarryOutput::=========================================================================
  BitFTA1Str(ap,bm,cp,dm,)
proof
  let ap,bm .(-)(12*(java.lang.StringIndexOutOfBoundsException: Range [24, 1) out of bounds for length 79
  set S1 =         by A1,A5,A8,A11:2
  set A1 = GFA1AdderOutput(ap,bm,cp);
  set C1 = GFA1CarryOutput(ap,bm,cp);
  set S2 = BitGFA2Str(A1,cin,dm);
  etA2  (A1,cin,let ammcm,,cin be;
  set C2 = GFA2CarryOutput(A1,cin,dm);
  set apbm0 = [<*ap,bm*>, xor2c];
  setapbm=[*p,bm*,;
  set bmcp = [<*bm,cp*>, and2a];
  set cpap = [<*cp,ap*>, and2 ];
  et hencethesis
  set A1cin = [<*A1,cin*>,and2a];
   <dm>and2c;
  set dmA1 = [<*dm,A1*>, nor2;
A1: cp in the carrier of S1 & apbm0 in the carrier of S1 by GFACIRC1:68;
A2: apbm in the carrier of S1 & java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 31
  inthe carrier  S2 & cin in the java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 10
am,bmcmdm,cin be
BitFTA3Circ(ambm,m,dm,cin -strictgate
A6: cindm in the carrier of S2 & dmA1 in the carrier of S2 by java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 36
A7:A2     S2&A1cin the carrier 
A8: dm in the carrier of S2 & A1cin0 in the carrier of S2 by GFACIRC1:100;
  ap inassume x in  ((( 
  hence thesis by A1,A2,A4,A3,A8,A7,A6,A5,FACIRC_1java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 0
end;

theorem Th15:
  for ap,bm,cp,dm,cin being set holds [<*ap,bm*>,xor2c] in.f.by,A18;
  InnerVertices ::-----------------------------------------------
InnerVertices BitFTA1Str(ap,bm,cp,dm,cin) & [<*ap,bm*:: InnerVertices and InputVertices of 1-bit FTA Circuit Structure (FTA3)
BitFTA1Str(ap,java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
bm,cp,   ;
& GFA1CarryOutput(ap,bm,cp) in InnerVertices BitFTA1Str(ap,bm,cp,dm,cin) &    ,bmdm Bam,
GFA1AdderOutput(ap,bm,cp),cin*>,xor2c] in InnerVertices BitFTA1Str(ap,bm,cp,dm,
utputFA1AdderOutputbm,cp,in inInnerVertices
  BitFTA1Str(ap,bm,cp,dm,cin) & [<*GFA1AdderOutput(ap,bm,cp),cin*>,and2a] in
InnerVertices BitFTA1Str(ap,bm,cp,dm,cin) & [<*cinnor2,[<bm,  ((#(/2)| fbyjava.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 51
  BitFTA1Str(  ,A7INTEGRA5:;
InnerVertices BitFTA1Str(ap,bm,cp,dm,cin) & GFA2CarryOutput(GFA1AdderOutput(ap,
  bm,cp),cin,dm) in InnerVertices BitFTA1Str(ap,bm,cp,dm,cin)
proof
  let ap,bm,cp,dm,cin be set;
  set S = BitFTA1Str(ap,bm,cp,dm,cin);
   ,m,cin,dm)}
  set C1 = GFA1CarryOutput(approof
  set A2 = GFA2AdderOutput(A1java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
  OutputA1java.lang.StringIndexOutOfBoundsException: Range [29, 0) out of bounds for length 0
  set apbm0 = [<*ap,bm*>,xor2c]
  java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
  set bmcp = [<*bm,cp*>, and2a];
  set cpap = [<*cp,ap*>, and2 ];
  set A1cin0 Ac Z  gf1-2 &#2&=GFA3CarryOutputm,mmjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
A=c,java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
  set cindm = [<*cin,dm*>,and2c];
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 31
  set p1set <A1cin>xor2 ;
setp2 ={A1cin0,A2,A1cin,cindm,dmA1C2;
A1: apbm0   set A1cin = [<*A1,cin*>,nor2];
A2: apbm in p1 & bmcp in p1 by ENUMSET1:def 4;
A3:A1cin0in p2 &   setcindm=<**,;
A4: cpap in p1 & C1 in p1 by ENUMSET1:def 4;
A5: dmA1 in p2 & C2 in p2 by ENUMSET1:def 4;
A6: A1cin in p2 & cindm  S1 tolerates S2 by CIRCCOMB:47;
InnerVertices S = {apbm0,A1} \/ {apbm,bmcp,cpap,C1} \/ {A1cin0,A2} \/ {
  A1cin,cindm,dmA1,C2} by Th11
    .=A2 / A1cinf1x=^2 & g.x 0)
    .= p1 \/ ({A1cin0,A2} \/ {A1cin,cindm,dmA1,C2}) by XBOOLE_1:4
    .p \p2 by 2
  hence thesis by A1,A2,A4,A3,A6,A5,XBOOLE_0:def 3;


theorem Th16:
  for ap,bm,cp,dm A3for x stx   holds 1     ambm0,1} \/ {ambmbmcmcmam} \ {C1)\ (nnerVerticesS2 
<*dm,GFA1AdderOutput(ap,bm,cp)*E1
  ap,bm,cp) holds ap in InputVertices BitFTA1Str(ap,bm,A4:  (A1 /{,,java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 78
  bm,cp,dm,cin) & dm in  .= ({ambm0,}\{mbm,cmam,} /(A1cin0 /{2} /{,
  InputVertices BitFTA1Str(ap,bm,cp,dm,cin)
proof
  let ap,bm,cp,dm be non pair set;
  let cin be set;
  set S = BitFTA1Str . {A1} / abcmam,1} /(A1cin0A2}\ A1cincindm,
set BitGFA1Strap,m);
  set A1 = GFA1AdderOutput(ap,bm,cp);
  set dmA1 = [<*dm,A1*>,nor2];
  assume cin <> dmA1XBOOLE_1:4
  then InputVertices S = {ap,bm,cp,dm,cin} by Th13;
  hence thesis by ENUMSET1:def 3;
nd

::-------------------------------------------
:: 2-3. Output Definitions of the Combined Circuit
::-------------------------------------------
:: Def. External/Internal Signal Outputs of 1-bit FTA TYPE-1

definition
   ap,bm,cp,,cin be set;
  func BitFTA1CarryOutput(ap,bm,cp,dm,cin) -> Element of InnerVertices
  BitFTA1Str(ap,bm,cp,dm,cin) equals
  GFA1CarryOutput(ap,bm,cp);
  coherence by Th15;
  func BitFTA1AdderOutputI(ap,bm,cp,dm,cin) -> Element of InnerVertices
  BitFTA1Str(ap,bm,cp,dm,cin) equals
  GFA1AdderOutput(ap,bm,cp);
  coherence by Th15;
  func BitFTA1AdderOutputP(ap,bm,cp,dm,cin) -> Element of InnerVertices
  BitFTA1Str(ap,bm,cp,dm,cin) equals
  GFA2CarryOutput(GFA1AdderOutput(ap,bm,cp),
  cin,dm);
  byTh15;
  func BitFTA1AdderOutputQ(ap,bm,cp,dm,cin) -> Element;
  BitFTA1Str(ap,bm,cp,dm,cin) equals
  GFA2AdderOutput(GFA1AdderOutput(ap,bm,cp),
  cin,dm);
  coherence by Th15;
end;

::-----------------------------------
:: 2-4. Stability of the Combined Circuit and its Outputs
::-----------------------------------
:: Intermediate (External/Internal) Carry/Adder Outputs after Two-steps

theorem
  for ap,bm,cp being non pair set for dm,cin being set for s being State
of BitFTA1Circ(ap,bm,cp,dm,cin) for a1,a2,a3 being Element of BOOLEAN st a1 = s
.p&a2=s.&a3 =s.  Following(,.BitFTA1CarryOutput(p,m,d
,cin) = (a1 '&' 'not' a2) 'or  et  = BitGFA3Str(,m,cm)
  ,2).   =GFA3AdderOutput(am,bm,;
proof
  let ap,bm,cp be non pair set;
  let dm,cin be set;
  let s be State of BitFTA1Circ(ap,bm,cp,dm,cin);
  set S1 = BitGFA1Str(ap,bm,cp);
  set C1 = BitGFA1Circ(ap,bm,cp);
  set A1 = GFA1AdderOutput(ap,bm,cp);
  set A2 = GFA1CarryOutput(ap,bm,cp);
  set S2 = BitGFA2Str(A1,cin,dm);
  set C2 = BitGFA2Circ(A1,cin,dm);
   ofBOOLEAN that
A1: a1 = s.ap and
A2: a2 = s.bm and
A3: a3 = s.cp;
  reconsider s1 = s|the carrier of S1 as State of C1 by FACIRC_126
A4: dom s1 = the carrier of S1 by CIRCUIT1:3;
  ap in the carrier of S1 by GFACIRC1:68;
  then
A5: a1 = s1.ap by A1,A4,FUNCT_1:47;
  reconsider t = s as State of C1Lm31:for xyz beingset   set  (,z > p,
A6: InputVertices S1 misses InnerVertices S2 by Lm12;
  cp in the carrier of by GFACIRC1:68java.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
  then
A7: a3 = s1.cp by A3,A4,FUNCT_1:47;
  bm in   let x,y,z set,b setjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
  then
A8: a2 = s1.bm by A2,A4,FUNCT_1:47;
 the carrierof S1by 68;
  then Following(t,2).GFA1CarryOutput(ap,bm,cp) = java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 40
  GFA1CarryOutput(ap,bm,cp) by A6,FACIRC_1:32;
  hence Following(,2).BitFTA1CarryOutput(ap,bm,cp,dm,cin) = ('''not'a2)
  'or' ('not' a2 '&' a3) 'or' (a3 '&' a1) by A5,A8,A7,GFACIRC1:71;
  A1 in the carrier of S1 by GFACIRC1:68;
  then Following(t,2).GFA1AdderOutput(ap,bm,cp) = Following(s1,2).
  GFA1AdderOutput(ap,bm,cp) by A6,FACIRC_1:32;
  hence thesis by A5,A8,A7,GFACIRC1:71;
end;

:: Temporal (Internal) Calculations after Two-steps

theorem Th18:
   ap,cp,dm being non pairset   beingset st cin > [
<*dm,GFA1AdderOutput(ap,bm,cp)*>,nor2] & not cin in InnerVertices BitGFA1Str(
ap,bm,then: Z&
being   then [p,nor2` <A1` 
= s.cin holds Following(s,2).GFA1AdderOutput(ap for ;
a2 'xor' a3) & Following(s,2).ap = a1 java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
  .cp = a3 &java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
proof
  let ap,bm,cp,dm be non pair set;
  let Lm32  bmcmbeing non pair  java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
:cin< <,ap,bm,*,&not 
  InnerVertices BitGFA1Str(ap,bm,cp);
  set A1 = java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 5
  set C1 = BitGFA1Circ(ap,bm  let,cmbe non pairset
  set S1 = BitGFA1Str(ap,bm,cp);
  set S2 = BitGFA2Str(A1,cin,dm);
  set C2 = BitGFA2Circ(A1,cin,dm);
 S =BitFTA1Str(   <*,nor2]
  let s be State of BitFTA1Circ(ap,bm,cp,dm,cin);
  let a1,a2,a3,a4,a5 be Element.et=<,dm*,;
A2: a1 = s.ap and
: . 
A4: a3 = s.cp and
A5: a4 = s.dm and
6:a5  cin;
  reconsider s1 = s|the carrier of             .=(-1)*((1/2)*((g.x) #R (21.x)
A7: dom s1 = the carrier of S1 by CIRCUIT1:3;
java.lang.StringIndexOutOfBoundsException: Range [19, 2) out of bounds for length 37
  then
A9: (Following  A1ambm0,,,,}.-)(*()#1-(2-*)java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58

  then
A11: (Following s).cp = a3 by A4,CIRCUIT2:def 5 A1  {, =(^x Z2 R-/2 byA14;
  bm in the carrier of S1 by GFACIRC1:68;
  then
A12: a2 = s1.bm by A3,A7,FUNCT_1:47;
  reconsider t = s as State of C1+*C2;
  in carrierof
GFACIRC1:68;
  then
2.
  GFA1AdderOutput(ap,bm,cp) by .= {A1,ambm0} \/ {ambm,bmcm,cmam,C1
  cp in the carrier of S1 by GFACIRC1:68;
  
A14:a3  s1. by java.lang.StringIndexOutOfBoundsException: Range [21, 21) out of bounds for length 6
  ap in the carrier ofbmcm,java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 29
  then={}\{1,mbm0,ambm,mcm,C1} \ {dm}\{ambm0ambm,
  hence Following(s,2).GFA1AdderOutput(ap,bm,cp) = 'not' (a1 'xor' 'not' a2
  'or a3)by    assume x in dom xin (-R12))`Zjava.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45
A15:    =(cin}\ dm)\{1ambm0,ambmbmcm,E:java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
  hen
A16: (Following s).bm = a2 by A3,CIRCUIT2:def   C1)  (-# /)*`Z.=*^2 Z2)#(  java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
:  S  Th16
  then
A18: (   .=f.x by A1,;.({}\ {),:59
A19: ap in InputVertices S by A1,Th16;
  then Following(s,2) = Following Following s & (Following sA7  encethesisjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 16
def 5,15
  hence thesis by A19,A15,A10,A8,A17,A16CIRCCOMB:java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
end;

Lm13:  InnerVertices   FACIRC_1:4
of BitFTA1Circ(ap,bm,cp,dm,cin) for a123,a4,a5 being Element of BOOLEAN st a123
= s.GFA1AdderOutput(ap,bm,cp) & a4 = s.dm & a5 = s.cin holds (    .= ({am,bm,cm}) \/ (InputVertices S2 \ InnerVertices S1) by GFACIRC1:130
GFA1AdderOutput(ap,bm,cp),cin*>,and2a] = 'not' a123 '&' a5 & (Following s).[<*
cin,m*>,]  a5'' 'not' a4 & (Following s).[<*dm,GFA1AdderOutput(ap,bm,
cp)*,nor2] =not  & n 
java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
  let ap,bm,cp,
  let cin be set;
  set S = BitFTA1Str(ap,bm,cp,dm,cin);
  set C = BitFTA1Circ(ap,bm,cp,dm,cin);
  set A1 =
  set A1cin = [<*A1,cin*>,and2a]theorem Th34:
  set cindm = [<*cin,dm*>,and2c];
  set dmA1 = [<*dm,A1*>, nor2];
    beof;
  let a123,a4,a5 be Element of BOOLEAN such that
A1: a123 = s.A1 and
A2: a4 = s.dm and
A3: a5 = s.cin;
A4: dom s = the carrier of S by CIRCUIT1:3;
A5: cin in the carrier of S by Th14;
A6: A1 in the carrier of S by Th14;
A7: InnerVertices(,,,,)& cin inthecarrierof(bmcm,,)
  then A1cin in the carrier' of S by Th15;
  hence (Following s).A1cin = and2a.(s*<   <*,*,]in  java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 68
. < >A1A3A6,,java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
    .= 'not' a123 '&' a5 by TWOSCOMP:def 2;
A8:dm carrier of S Th14;
  cindm in the carrier' of S by A7,Th15;
  hence (Following s).cindm = and2c.(s*<*cin,dm*>) by FACIRC_1:35
    .= and2c.<*a5,a4*> by A2,A3,A8,A5,A4,FINSEQ_2:125
   =a5'''ot'a4 GFACIRC1def3;
  dmA1 in   carrier of (am,m,,cin &<GFA3AdderOutputambm,,in>
  hence (Following s).dmA1 = nor2.(s*<*dm,A1*>) by FACIRC_1:35
    . .*,a123*> by A1,A2,A6,A8,A4,FINSEQ_2:125
    .= 'not' a4 '&' 'not' a123 by TWOSCOMP:54;
end;

Lm14: for ap,bm,cp,dm being non pair set for cin being set for s being State
of BitFTA1Circ(ap,bm,cp,dm,cin) for a123,a5 being Element of BOOLEAN st a123 =
.apbm,)&a5=scin holds(s.<GFA1AdderOutput
(ap,bm,cp),cin*>,xor2c] = a123 'xor' 'not' a5
proof
  let ap,bm,cp,dm be non pair set;
letcinbe ;
  set S = BitFTA1Str(ap,bm,cp,dm,cin);
  set C = BitFTA1Circ(ap,bm,cp,dm,cin);
  [*GFA3AdderOutput(,,cm*,   carrier of BitFTA3Str(am,bm,cm,
  set A1cin = [<*A1,cin*>,xor2c];
  let s be State of C;
  let a123,a5   (am,bm,cm,,cin
A1: a123 = s.A1 & a5 = s.cin;
A2: dom s = the carrier of S by CIRCUIT1:3;
A3: A1 in the carrier of S & cin in the carrier of S by Th14;
  InnerVertices S = the carrier' of S by FACIRC_1:37;
  then A1cin in the carrier' of S by Th15;
  hence (Following s).A1cin = xor2c.(s*<*A1,cin*>) by FACIRC_1:35
    . <* *  ,,,java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 50
    .= a123 'xor's   A1cin,dm;
end;

:: Temporal (Internal) Calculations after Three-steps (for p)

Lm15: for ap,bm,cp,dm being non pair set for cin being set st cin <>set =[*,cm,nor2]
GFA1AdderOutput(ap,bm,cp)*>,nor2] & not cin in InnerVertices BitGFA1Str(ap,bm,
cp) for s being State of BitFTA1Circ(ap,bm,cp,dm,cin) for a1,a2,a3,a4,a5 being
Element of BOOLEAN st a1 = s.ap & a2 = s.bm & a3 = s.cp & a4 = s.dm & a5 = s.
cin holds Following(s,3).[ setdmA1 =[*mA1*,nor2
not 
& Following(s,3).[<*dm of  & bmcm in the carrier of S1 by GFACIRC1:132;
''n'a2 xor'a3 Following(,3.   &s3.bm a2 &
Following(s,3).cp = a3 & Following(s,3).dm = a4 & Following(s,3).cin = a5

  let ap,bm,cp,dm be non pair set;
   cin setsuch that
A1: cin <> [<*dm,GFA1AdderOutputA4: cmam   carrierofS1& C1in the ofjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
  InnerVertices BitGFA1Str(ap,bm,cp);
  set   a,bmcp,mjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A2: ap in InputVertices S ::f.x=cos.x/((sin.x) #Z (n+1))
A3: cp in   thecarrierS2&in
  let s  amin S1&bminthe   :132java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
  letintegral(f,A)=((-1/n)(#)(( #Z n)*(sin^))).(upper_bound A)
A4: a1 = s.ap & a2 = s.bm & a3 = s.cp & a4 = s.dm & a5 = s.cin;
A5: Following(s,2).cin = a5 by A1,A4,Th18;
  set cindm = [<*cin,dm*>,and2c];
  set A1 = GFA1AdderOutput(ap,bm,cp);
  set =[*,cin,];
  set dmA1 = [<*dm,A1*>, nor2];
A6: Following(s,2+1) = Following Following(s,2) by FACIRC_1:12;
  Following(s,2).A1 = 'not' (a1 'xor' 'not' a2 'xor' a3) & Following(s,2).
  dm = a4 by A1,A4,Th18;
  hence
  Following(s,3).A1cin = (a1 'xor' 'not' a2 'xor' a3) '&' a5 & Following(
  s,3).cindm = a5 '&' 'not' a4 & Following(s,3).dmA1 = 'not' a4 '&' (a1 'xor'
  'not'  xor' a3)by ,java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
 (s2)cp=a3  Followings).m=a4 A1,4Th18;
A8: Following(s,2).cin =c  G(mbm,)ininInnerVertices
A9: cin in  itFTA3Str(mbm,dm)&[*(,bmcm
  FollowingBitFTA3Str(,,cmdmc) &<cin,m* 
  hence thesis by A6,A2,A3,A9,A7,A8,CIRCUIT2  BitFTA3Str(bm,m,mA1:A c= Z & n>0 & (for x st  Z xos./(sin
end;

:: Temporal (Internal) Calculations after Three-steps (for q)

Lm16: for java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [60, 15) out of bounds for length 78
cp) for s being State of BitFTA1Circ(ap,bm,cp,dm,cin) for set   bm,,dm;
Elementof set  
set (,dm;
 nota2'xor  xor'not'a5set <,bm*>, xor2 ];
3).bm = a2 & java.lang.StringIndexOutOfBoundsException: Range [77, 22) out of bounds for length 78
 
oof
  let ap,bmjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  cin suchjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
1:>[<*dmap, et  Element
InnerVerticesFDIFF_17;java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
   (,bmcm;
A2: ap in
A3:    <dmA1  cin S1
  let s be State of BitFTA1Circ(  then InputVertices S = {am,bm,cmjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 51
  let a1,a2,a3,a4,a5 be Element of BOOLEAN such that
A4: a1 = s.ap & a2 = s.bm & a3 = s.cp & a4 = s.dm & a5 = s.cin;
A5: Following(s,:: Def. External/Internal Signal Outputs of 1-bit FTA TYPE-3
  set A1 = GFA1AdderOutput(ap,bm,cp);
  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A6  let am,java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
 & ,)java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
 Ajava.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 69
  hence Following(s,3).A1cin = 'not' (a1 'xor' 'not' a2 'xor' a3) 'xor'java.lang.StringIndexOutOfBoundsException: Range [13, 8) out of bounds for length 53
   by,m14
A7: Following(  (am,bm,,,)-  of
A8s byA1;Bjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 36
  Following(s,2).ap = a1 & Following(s,2).bm = a2 java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 20
by,,,C:def;
end;

Lm17: forGjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 44
of BitFTA1Circ(ap,bm,cp,dm,cin) for a123x,a123y,a123z being Element 
(,,inn]& [<*d*>
and2c] & a123z = s.[<*dm,GFA1AdderOutput(ap,bm,cp)*>,nor2] java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 36
FA2CarryOutputjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 76
'or' a123z)
proof
   byTh35;
  let cin be set;
  set S = BitFTA1Str(ap,bm,cp,dm,cin);
  set C = BitFTA1Circ(ap,bm,cp
  set A1 = GFA1AdderOutput(ap,bm,cp);
  set A2 = GFA2CarryOutput(A1,cin,dm);
   A1cin [*cin*>and2a];
  set cindm = [<*cin,dm*>,and2c];
  set dmA1 = [<*dm,A1*>, nor2];
  let s be State of C;
  let a123x,a123y,a123z be   for bm,cmpairsetfor ,   s 
A1o (,bm,dm ,, Elementsta1= 
A2 in the carriera&
:dmA1in thecarrier S &=thecarrier ofSby CIRCUIT1:;
  InnerVertices S = the a3 '&' 'not' a1)) & Following(s.BitFTA3AdderOutputI(mbm,dm, =''
  A2 inthe carrier' byTh15;
  hence (Following s).A2 = nor3.(s*<*A1cin,cindm,dmA1*>) by FACIRC_1:35
   =nor3a123y,123>by java.lang.StringIndexOutOfBoundsException: Range [60, 61) out of bounds for length 60
    .= 'not.byA1
end;

Lm18: for ap,bm,cp,dm being non pair set for cin being set for s being Statehence ;
ofend
 letdmcin be set;
FA2AdderOutputapbmpdm=a1235 x otjava.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
proof
  let ap,bm,cp,dm be non pair set;
  let cin be set;
  set S = BitFTA1Str(ap,bm,cp,dm,cin);
  set C = BitFTA1Circ(ap,bm,cp,dm,cin);
  set A1 = GFA1AdderOutput(ap,bm,cp);
  );
  set A1cin  
 letsbejava.lang.StringIndexOutOfBoundsException: Range [16, 11) out of bounds for length 22
  let a1235,a4 be Element of BOOLEAN such that
A1: a1235 = s.A1cin & a4 = s.dm;
A2: dom s = the carrier of S:a1= .amand
A3: A1cin in the carrier of S & dm in the carrier of S  FACIRC_1:26java.lang.StringIndexOutOfBoundsException: Range [68, 69) out of bounds for length 68
  InnerVertices S = the carrier' of S by FACIRC_1:37;
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 39
hence)A2=.java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    .= xor2c.<*a1235, a4*> by A1,A3,A2,FINSEQ_2assume
    .= a1235 'xor' 'not' a4 by GFACIRC1:def 4;
;

:: Temporal (External) Calculations after Four-steps (for p)

Lm19: for ap,bm,cp,dm being non pair set for cin being set st cin <> [<*dm,
GFA1AdderOutput(ap,bm,cp)*>,nor2] & not cin in InnerVertices BitGFA1Str(ap,bm,
cp)for s Z=g1))\( \f20 1java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
Element of BOOLEAN st a1 = s.ap & a2 = s.bmA2 :Zc(+^& cdom { XBOOLE_18
java.lang.StringIndexOutOfBoundsException: Range [56, 3) out of bounds for length 76
'not' (((a1 'xor' 'not' a2 'xor' a3) '&' a5) 'or' (a5 '&' 'not' GFA3CarryOutput(am,bm,cm) by A6,FACIRC_1:32;
a4 '&' (  hence Fos2).BitFTA3CarryOutput(am,bm,cm,dm,cin) = 'not' (('A4: f2 is_differentiable_on Z by A1,SIN_COS9:;
 &Followings,4.cp = a3 & Following(s,4).dm = a4 & java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
,,A7GFACIRC1:;
proof
  apdm be  ;
  let cin be set such that
A1(ap,)>nor2&notcin in
  InnerVertices BitGFA1Str(ap,bm,cp);
sS = abm,,);
A2: ap in InputVertices S & bm in InputVertices S by A1,Th16;
A3: cp in InputVertices S & dm in java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 4
  set A1 = GFA1AdderOutput(ap,bm,cp);
  java.lang.StringIndexOutOfBoundsException: Range [31, 5) out of bounds for length 49
  set dmA1 = [<*dm,A1*>, nor2];
  let ,2a3a4,  Element of BOOLEAN suchthat
A4: a1 = s.ap & a2 = s.bm & a3 = s.cp &A8   for ambmmdm  non set forcin set st cin <[
A5: Following(s,3).dmA1 = 'not' a4 '&' (a1 'xor' 'not' a2 'xor' a3) by A1,A4
,Lm15<dmGFA3AdderOutput(,bmcm*,java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 36
  set cindm = [<*    roof
  set A1cin = [<*A1,cin*>,and2a];
   A2= GFA2CarryOutput(A1cin      letbe;
A6: Following(s,3+1) = Following Following(s,3) by FACIRC_1:12;
  s)A1cin       (| 
  ,3). cindm = a5 '&' 'not' a4 by A1,A4,Lm15;
  consider bethat
  Following(s,4).A2 = 'not' (((a1 'xor' 'not' a2 'xor' a3) '&' a5) 'or' (
  a5 '&' 'not' a4) 'or' ('not' a4 '&' (a1 'xor' 'not' a2 'xor' a3))) by A6,A5
,Lm17;
A7: Following(s,3).cp = a3 & Following(s,3).dm = a4 by A1,A4,Lm15;
A8: Following(s,A8: Following(s,3
A9: cin in InputVertices S by A1,Th16;
  .  ,UNCT_1:;
  hence thesis by A6,A2,A3,A9,A7,A8,CIRCUIT2:def 5;
end;

:: Temporal (External) Calculations after Four-steps (for q)

Lm20: for ap,bm,cp,dm being non pair set for cin being set st cin <> [<*dm,
GFA1AdderOutput(ap,thenA10Zc=dom (narccot)by A1,A7,UNCT_1:;
cp) for s being State of   set A1 = GFA3AdderOutput(am,bm A1 =GFA3AdderOutputam,bm A&f| java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 66
A12:ln is_differentiable_onZ A1AA8,SIN_COS9:90java.lang.StringIndexOutOfBoundsException: Range [62, 63) out of bounds for length 62
cin holds Following(s,4).java.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 34
'or '' a2 '' a3 xor 'ot  ''a5& Following(,4. = 
Following(s,4).bm = a2 & Following(s,4).cp = a3 & Following(s,4).dm = a4  let sbe BitFTA3Circ,,cm,cin;
Following(4)cinlet234, Eof that
proof
  let ap,bm,cp,dm be non pair set;
  :a1 s. 
A1: cin <> [<*dm,GFA1AdderOutput(ap,bm,cp)*>,nor2] & not cin in
InnerVertices BitGFA1Str(ap,bm,cp);
  set S = BitFTA1Str(ap,bm,cp,dm,cin);
A2: ap in InputVertices S & bm in InputVertices S by A1,Th16;
A33: cpinInputVertices  &let ;
  let s be State of BitFTA1Circ(ap,bm,cp,dm,cin);
  let a1,a2,a3,a4,a5 be Element of BOOLEAN such that
A4: a1 = s.java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
A5: Following(s,3).cp = a3 & Following  reconsider s1 =carrier of  as  6-1 <  x <  by ,XXREAL_1:4
  set A1 = GFA1AdderOutput(ap,bm,cp);
   Zby ,:;
  set A1cin = [<*A1,cin*>,xor2c];
A6:Following(s,3+1) = FollowingA8: dm in InputVertices S by A1,Th36;
  Following(s,3).A1cin = 'not' (a1 'xor' 'not' a2 'xor' a3) 'xor' 'not' a5
  & Following(s,3).dm = a4 by A1,A4,Lm16;
 *arccot is_differentiable_in  byA12,15FDIFF_1:;
  a4 by A6,Lm18
    ' a2 ' a3 xor 'not' a4 '(-lnarccot)`|Z.x=diff(-ln*arccot),) by A13,A15,FDIFF_1:def 7
A7: Following(s,3).cin = a5 by A1,A4,Lm16;
A8  then
  Following(s,3).ap = a1 & Following(s,3).bm = a2 by A1,A4,Lm16;
  hence thesis by A6,A2,A3,A8,A5,A7,CIRCUIT2:def 5;
end;

:: Main Proposition #2-1 (External Circuit Outputs after Four-steps) FTA1

theorem
  for ap,bm .= (1/1x))/arccot.x
GFA1AdderOutput(ap,bm,cp)*>,nor2] & not cin in InnerVertices BitGFA1Str(ap,bm,
cp) for s being State of BitFTA1Circ(ap,bm,cp,dm,cin) for a1,a2,a3,a4,a5 being
   ofBOOLEAN a1=sap&a2 =   Element of BOOLEAN st a1 = s.ap & a2 = s
  cin holds Following(s,4).BitFTA1AdderOutputP(ap,bm,java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 9
'xor' 'GFACIRC1:132
ot a2 ''a3))  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  ) = a1 'java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 8

:: Main Proposition #2-2 (The Whole Circuit Stability after Four-steps) FTA1

theorem
  for ap,bm  cm in  carrier of  byGFACIRC1:32;
GFA1AdderOutputa,bmc)>nor2] tjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  c) holdsDIFF_1:ef7;hen
proof
  set n1=2, n2=2;  am the ((ln(arccot))`Z.x=1(x^2)arccot.x)byA14
  let ap,bm,cp,dm be non pair set;
e set;
  set C = BitFTA1Circ(ap,bm,cp,dm,cin);
  set S1 = BitGFA1Str(ap,bm,cp);
   C1 =BitGFA1Circend;
  set A1 = GFA1AdderOutput(ap,bm,cp);
 set =BitGFA2Str(c,dm)java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
  set C2 = BitGFA2Circ(A1,cin,dm);
  set dmA1 = [<*dm,A1*>, nor2];
  assume
A1: cin <> dmA1;
  let s beend;
  C1 tolerates C2 by CIRCCOMB:60;
  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
A2: the Sorts of C1 tolerates the Sorts of C2 by CIRCCOMB:def 3;
  then reconsider s1 =s|java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
  reconsider s2  thenAZ  ]-1[ f st iZ
CIRCCOMB:26;
A3:  arcsin.x>0 & f1=)&Zc dom ln(): 5,15;
Lm12,GFACIRC1:72;
  Following(s2) is stable by ,Lm11GFACIRC1:
  java.lang.StringIndexOutOfBoundsException: Range [41, 6) out of bounds for length 66
  hence thesis;
end;

begin :: 3. Stability of 4-2 Binary Addition Circuit Cell (TYPE-2)
::========================================================================
:: [4-2 Binary Addition Cell_i : TYPE-2]
::
::   Cell Module Symbol :
::
::                 a- b+ c- d+            Input : a-,b+,c-,d+ (non pair set)
::                 |  |  |  |                     cin- (pair)
::               +-O--*--O--*-+    cin-
::               |            |   /
::            +--O FTA TYPE-2 O--+        Output : p+,q-,cout- (pair)
::           /   |            |
::        cout-  +---*----O---+
::                   |    |
::                   p+   q-
::
::   Composition : Cascade by Adder Output together with GFA TYPE-2 and TYPE-1
::   Function    : p[i+1] - q[i] - Intermediate_Carry_out
::                  = -a[i] + b[i] - c[i] + d[i] - Intermediate_Carry_in
::
::                 a^{-}[i]  b^{+}[i]
::                     |     /
::                     |    /
::                 +---O---*
::                 |  GFA  O---- c^{-}[i]  Circuit Composition :
::                 | TYPE2 |                    BitGFA2Str(a-,b+,c-)
::                 O---*---+                    BitGFA1Str(A1,cin,d+)
::                /    |      cin[i]           --->
::               /   A1|     /                  FTA2Str(a-,b+,c-,d+,cin)
::      cout[i+1]      |    /
::                 +---*---O               Intermediate Addition and Carry:
::                 |  GFA  *---- d^{+}[i]       A1 <= GFA2AdderOutput
::                 | TYPE1 |                    cout[i+1] <= GFA2CarryOutput
::                 *---O---+                    q[i] <= GFA1AdderOutput
::                /    |                        p[i+1] <= GFA1CarryOutput
::               /     |
::     p^{+}[i+1]   q^{-}[i]
::
::   Calculation Stability : Following(s,2+2) is stable.
::
::=========================================================================
::---------------------------------------------------------------
:: 3-1. Circuit Definition for Intermediate Addition and Carry Circuit (TYPE-2)
::---------------------------------------------------------------
:: Def. Combined Circuit Structure of 1-bit FTA TYPE-2

definition
  let am,A5:cin in the2).x =x-f2.x  A5,VALUED_1:3
  BitFTA2Str(am,bp,,dp,cin -> unsplit gate`arity gate`2             =1x-(x #(+)by TAYLOR_1:def 1
  void strict non empty ManySortedSign equals
  ,cm+BitGFA1Str
  GFA2AdderOutput(am,bp,cm),cin,dp);
  coherence;
end;

definition
  let am,bp,cm,  hence Following )=nor2.s<A1,in*)by :java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
func;
  A8: dm in th  xinZholdsf1.&(-Z ) >by;
  BitGFA2Circ(am,bp,cm) +* BitGFA1Circ(
  GFA2AdderOutput(am,bp,cm),cin,dp);
  coherence;
end;

::-----------------------------------------------
:: 3-2. Properties of 1-bit FTA Structure and Circuit (TYPE-2)
::-----------------------------------------------
:: InnerVertices and InputVertices of 1-bit FTA Circuit Structure (FTA2)

theorem Th21:
  for am,bp,cm,dp,cin being set holds InnerVertices BitFTA2Str(am,
bp,cm,dp,cin) = {[<*am,bp*>,xor2c], GFA2AdderOutput(am,bp,cm)} \/ {[<*am,bp*>,
and2a] <bpcm>and2c], [*mam> x x Z holds=1 (sqrt(x)*arcsin.x)
FA2AdderOutput(,bpcm,*;
,cm),cin,dp)} \/ {[<*GFA2AdderOutput(am,bp,java.lang.StringIndexOutOfBoundsException: Range [0, 45) out of bounds for length 9
, [<*dp,GFA2AdderOutput(am,bp,cm)*>,and2], GFA1CarryOutput(GFA2AdderOutput(amA12:xin java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
  bp,cm),cin,dp)}
roof
  let am,bp,cm,dp,cin be set;
  set S = BitFTA2Str(am,bp,cm,dp,cin);
  set S1 = BitGFA2Str(am,bp,cm);
  set A1letam,m,,dmbe nonpair set;
rryOutput(,cm;
  set S2 = BitGFA1Str(A1,cin,dp);
  set A2 = GFA1AdderOutput(A1,cin,dp);
sC2=GFA1CarryOutput(A1,indp    ((# 2)- )).x
  set ambp0 = [<*am,bp*>, xor2c];
  set ambp = [<*am,bp*>, and2a];
  set bpcm = [<*bp,cm*>, and2c];
  set   <cm,> nor2;
  set A1cin0 = [<*A1,cin*>,xor2c];
  set A1cin = [<*A1,cin*>,and2c];
  set cindp = [<*cin  =/((-#2.  ,5   
set = [<dp a123= .A1  .java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 29
   java.lang.StringIndexOutOfBoundsException: Range [33, 29) out of bounds for length 33
 InnerVerticesS InnerVertices  \(InnerVertices java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 69
11
    .= ({ambp0} \/ {A1} \/ {ambp,bpcm,cmam} \/ {C1}) \/ (InnerVertices S2)
  by GFACIRC1:95
    .= ({ambp0,A1} \/ {java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 23
    end;
    .= ({ambp0,A1} \/ ({ambp,bpcm,cmam} \/ {C1})) \/ (InnerVertices S2) by
XBOOLE_1:4
({ambp0, /{ambp,,cmam,C1} /(InnerVertices S2)by :java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
    . {java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 9
        be ofREAL;
    .= ({ambp0,A1} \/ {ambp,bpcm,cmam,C1}) \/ ({A1cin0,A2} \/ {A1cin,cindpjava.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 42
  dpA1} \/ {C2}) by ENUMSET1:1
    .= Element ofBOOLEAN sta1=sa&a2  s.A17x Zby ,DIFF_1: then
  dpA1} \/ {C2})) cin holds Following(3.<GFA3AdderOutputam,mcm =(not'a1
. (,A1}\/ {bpcmcmam,1}) \({cin0,A2}\ A1cin,   =({A11,17;
     hencethesis;
    .= {ambp0 end
,   lnrcsin`|dom  A1,10FDIFF_1:7java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
nd

theorem
  for am,bp,cm,dp,cin being set holds InnerVertices BitFTA2Str(am,bp,cm,
  dp,cin) is Relation
proof
  let
  set S1 = BitGFA2Str(am,bp,cm);
u(,,cmjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
  set S2 = BitGFA1Str(A1,cin,dp);
  A1: cin <> [<*dmGFA3AdderOutput(am,cm)>nor2] &not java.lang.StringIndexOutOfBoundsException: Range [0, 60) out of bounds for length 58
;
  java.lang.StringIndexOutOfBoundsException: Range [26, 7) out of bounds for length 29
end;

Lm21: for x(fA)(arccos.A-(*java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 72
and2a]


   ,yzbeset, p be set;

   f1=  .0  Z =  leta1a2,,5be ofBOOLEAN

  ` = xor2cjava.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15
then ,2< 12GFACIRC1,;

  hence thesis;

end;


Lm22:for b,being non:Z  A1DIFF_126IN_COS6:06
BitGFA2Str(m.=' 'ot xor''a o ''3&
proof

  let am,bp,cm be non pair set;

  let x,y,z letx

  set S1 =A5: in''(not'a1'r''a2 or not'a3bA5Lm33java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70

  InputVertices S1 is without_pairs by GFACIRC1   0< +x &   -  XREAL_1:50,; java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44

  hence thesis by FACIRC_1:5,GFACIRC1:64;

end;


theorem Th23
  for am,bp,cm,dp being non pair set for cin being set st cin <> [
      thesis A6java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
Verticesjava.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 8
proof
  let ,,cm,p non  java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
  letElement   st =s &=s &3=.a4=m&a5  .
  set S = BitFTA2Str(am,bp,cm,dp,cin);
  set S1 = BitGFA2Str(am,bp,cm);
  setthen: is_differentiable_on Z'a3)''&Following(,. a1&
  set C1 = GFA2CarryOutput x st in holds g.Following(,)bm =a2&Following(s)m=a3  (3.= a4 
  set S2 = then  is_differentiable_on Z  A1,7FDIFF_2:22
  set ambp0 = [<*am,bp*>, xor2c];
  set ambp = [<*am,bp*>, and2a];
  set bpcm s A8: InnerVertices BitGFA3Str(am,bm,cm);
  set cmam = [<*cm,am*>, nor2];
  set dpA1 = [<*dp,A1*>, and2 ];
  assume that
A1: cin <> A3:  in    java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 39
    S1java.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32
A3: not dp in {A1,ambp0,ambp,bpcm,cmam,C1} by ENUMSET1:def 4;
  A1 in {A1,ambp0,ambp,bpcm,cmam,C1} by java.lang.StringIndexOutOfBoundsException: Range [0, 48) out of bounds for length 37
  then
A4: {A1} \ {A1,ambp0,ambp,bpcm,cmam,C1} = {} by ZFMISC_1:60;
:S1 ambp0 / {A1} \/ {ambp,bpcm, /{1 java.lang.StringIndexOutOfBoundsException: Range [69, 70) out of bounds for length 69
GFACIRC1:95
.{,pcm\{1}by
    .= {ambp0,A1} in = a5 A1,:lnarccos is_differentiable_in  ,12,:9java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
    =(*|.xlna))A10FDIFF_17
    .= {A1,ambp0,ambp,bpcm,      .=(-1)*diff(ln*arccos,x-1)diff(ln*x) A16,FDIFF_115
  then
java.lang.StringIndexOutOfBoundsException: Range [3, 2) out of bounds for length 73
  bpcm,cmam,C1} by ENUMSET1:2
    .= ({A1} \ {A1,ambp0,      .=(-1)*((-1 / sqrt(1-x^2/rccos.  A13,SIN_COS6:106
  bpcm,cmam,C1}) by XBOOLE_1:      .=(-1*-(1  sqrt(-^2)arccos.)
  hence  A6,2A3,A5,A7,  hence thesis by A6,A2,A3,A8,A5,A7,CIRCUIT2
    .= ({cin}   java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
  ,cmam,   end;
    .= ({cin}) \/ (Lm37:for am,,cm being.=/(1-2*arccos)
    .= ({cin}) \/ ({dp}ofBitFTA3Circam,java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
     in}ENUMSET1;
  InnerVertices S2 misses InputVertices S1 & S1 tolerates S2 by Lm22,
CIRCCOMB:47;
  hence InputVertices (S) = (InputVertices S1) \/ (InputVertices S2 \
  InnerVertices S1) by FACIRC_1:4
    .= ({am,bp,cm}) \/ (InputVertices S2 \ InnerVertices S1) by GFACIRC1:98
    .= ({am,bp,cm}) \/ ({A1,cin,dp} \ InnerVertices S1) by A1,Lm21,GFACIRC1:65
    .= {am,bp,cm,dp,cin} by A6,ENUMSET1:9;
end;

:: The Element of Carriers, InnerVertices and InputVertices (FTA2)

theorem Th24:
  ,,,,java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 58
BitFTA2Str(((( #R (1/2))*(f1-#Z ))#), ]java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
  & cm in the carrier of BitFTA2Str(am,bp,cm,dp,cin) & dp in the carrier of
BitFTA2Str(am,bp,cm,dp,cin) & cin in the carrier of BitFTA2Str(am,bp,cm,dp,cin)
   & <am A1cin  =indm &123z smA1;
GFA2AdderOutput(am,bp,cm) in the carrier of BitFTA2Str(am,bp,cm,dp,cin) & [<A2 A1cin in  carrier  S&cindm the carrier =(#().f1-Z2xarccos.) A18,java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
cin)<p>
 java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 73
  carrierof ambp,m,pcin &GFA2CarryOutput(bp,m) in the
  carrier of. <a123x  >by ,A3FINSEQ_2:126
  xor2c] in the carrier of BitFTA2Str(am,bp,cm,dp,cin) & GFA1AdderOutput(
GFA2AdderOutput(am,bp,cm  =1/
& [<*GFA2AdderOutput(am,bp,cm),cin*Lm38 for ,bm,, beingnonpair set  =/(sqrt^a.xbyA21;
cmofBitFTA3Circ(bmcm,dm,cin) for , java.lang.StringIndexOutOfBoundsException: Range [0, 50) out of bounds for length 23
[<*dp,GFA2AdderOutput(am,bp,cm)*>,and2] in the carrier of BitFTA2Str(java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 8
  dp,cin) & GFA1CarryOutput(GFA2AdderOutput(am,bp,cm),cin,dp) in java.lang.StringIndexOutOfBoundsException: Range [0, 68) out of bounds for length 66
  BitFTA2Str(am,bp,cm,dp,cin)
proof
  let am,bp,cm,dp,cin be set;
  set S1 = BitGFA2Str(am,bp,cm);
  set A1 = GFA2AdderOutput(am,bp,cm);
  set C1 = GFA2CarryOutput(am,bp,cm);
  set S2 = BitGFA1Str(A1,cin,dp);setbm,,;
  set set A1=(am,bm,cm);
  set  set   Ac,dm;
  set ambp0 = [<*am,bp*>, xor2c];
  set ambp = [<*am,bp*>, and2a];
   bpcm = [<*bp,*>, and2c]java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  set cmam = A:a1235  s
  set A1cin0 = [<A2 dom  = thecarrier  S CIRCUIT13java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
  set A1cin = [<*A1,cin*>,and2c];
  set cindp = [<*cin,p*,and2a];
  set dpA1 = [<*dp,A1*>, and2 ];
:cmthecarrierof  inthejava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
A2: ambp in the carrier   hence (Following s).A2 =xor2.(s*<*dm*> by FACIRC_1:
 inthe  S2 & cin inthe carrierof  :;
A4 cmamjava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
A5: C2 in 
A6: cindp in the carrier of S2 & dpA1 in the carrierFollowing(s,.am =a1&Following(,4.= a2&Following(s4. = a3 java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
A7: A2 in the carrier of S2 & A1cin in the carrier of S2 by GFACIRC1:java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
A8: dp in   let cin be setcin esetsuchthat
inthe of S1 &bp in   of  GFACIRC1:00
 thesis by A1,A2,A4,A3,A8,A7,A6,A5,FACIRC_1:20;
end;

theorem Th25:
   am,pcm,,cin  set [*,bp>xor2c] java.lang.StringIndexOutOfBoundsException: Range [58, 59) out of bounds for length 58
  InnerVertices BitFTA2Str(am,bp,cm,dp,cin) & GFA2AdderOutput(am,bp,cm) in
InnerVertices BitFTA2Str(am,bp,cm,dp,cin) & [<*am,bp*>,and2a] in''a5 & s3.=a4  ,,;
BitFTA2Stra,cm,dp,cin  <bp,,and2c]in InnerVerticesBitFTA2Str(java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
bp,cm,dp,cin) & [<*cm,am*>,nor2] in InnerVertices BitFTA2Str(am,bp,cm,dp,cin)
 am,,)in ambp,cm,dp,)& [*
GFA2AdderOutput(am,bp,cm),cin*>,xor2c] in':74
)&am,)cin,dp InnerVertices
  BitFTA2Str(am,bp,cm,dp,cin) & [<*GFA2AdderOutput(am,bp,cm),cin*>,and2c] in
InnerVertices BitFTA2Str(am,bp,cm,dp,cin) & [<*cin,dp*>,and2a] in InnerVertices
  BitFTA2StrA7: Following(s,3).cin = a5 by A1,A4,Lm36;
rVerticesam,,,,)&(GFA2AdderOutput(m,
b,cm),indp)in InnerVertices (bp,m,,
proof
  let am,bp,cm,dp,cin be set;
  S=java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 38
  set A1 = GFA2AdderOutput(am,bp,cm);
  set C1 = GFA2CarryOutput(am,bp,cm);
  set   A1cin,dp);
  set C2 = GFA1CarryOutput(A1,cin,dp);
  set ambp0 = [<*am,bp*>, xor2c];
  set ambp = [<*am,bp*>, and2a];
  set bpcm = [<*bp,cm*>, and2c];
setcmam=<cmam*> ;
  set A1cin0 = [<*A1,cin*>,xor2c  BitFTA3AdderOutputQambm,,cin ='not (''  'xorjava.lang.StringIndexOutOfBoundsException: Range [77, 78) out of bounds for length 77
  set A1cin = [<*A1,cin*>,and2c];
  set cindp = [<*cin,dp*>,and2a];
  set dpA1 = [<*dp,A1*>, and2 ];
java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
  set p2 = {A2: the Sorts of C1 tolerates the Sorts of C2 by CIRCCOMB:def 3;
A1: ambp0 in p1 & A1 in p1 by ENUMSET1:def 4;
A2: ambp  then s1  |thecarrier ofS1 of  by:26;
A3: A1cin0 in p2 & A2 in p2 by ENUMSET1:def 4;
A4: cmam in p1 & C1 in p1 by ENUMSET1:def 4;
  in p2&C2  p2by ENUMSET1:def 4;
A6: A1cin in p2 & cindp in p2 by ENUMSET1:def 4;
  InnerVertices;
  cindpd,}java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
    .= p1 \/ {A1cin0,A2} \/ {A1cin,cindp,dpA1,C2} by ENUMSET1:12
    .= p1 \/ ({A1cin0,A2} \/ {A1cin,cindp,dpA1,C2})end;
    .= p1 \/ p2 by ENUMSET1:12;
  hence thesis by A1,A2,A4,A3,A6,A5,XBOOLE_0:def 3;
end;

theorem Th26:
  for am,bp,cm,dp being non pair set for cin being set st cin <> [
<*dp,GFA2AdderOutput(am,bp,cm)*>,and2] & not cin in InnerVertices BitGFA2Str(am
  ,bp,cm) holds am in InputVertices BitFTA2Str(am,bp,cm,dp,cin) & bp in
InputVertices BitFTA2Str(am,bp,cm,dp,cin) & cm in InputVertices BitFTA2Str(am,
  bp,cm,dp,cin) & dp in InputVertices BitFTA2Str(am,bp,cm,dp,cin) & cin in
  InputVertices BitFTA2Str(am,bp,cm,dp,cin)
proof
  let am,bp,cm,dp be non pair set;
  let cin be set;
  set S = BitFTA2Str(am,bp,cm,dp,cin);
  set S1 = BitGFA2Str(am,bp,cm);
  set A1 = GFA2AdderOutput(am,bp,cm);
  set dpA1 = [<*dp,A1*>,and2];
  assume cin <> dpA1 & not cin in InnerVertices S1;
  then InputVertices S = {am,bp,cm,dp,cin} by Th23;
  hence thesis by ENUMSET1:def 3;
end;

::-------------------------------------------
:: 3-3. Output Definitions of the Combined Circuit
::-------------------------------------------
:: Def. External/Internal Signal Outputs of 1-bit FTA TYPE-2

definition
  let am,bp,cm,dp,cin be set;
  func BitFTA2CarryOutput(am,bp,cm,dp,cin) -> Element of InnerVertices
  BitFTA2Str(am,bp,cm,dp,cin) equals
  GFA2CarryOutput(am,bp,cm);
  coherence by Th25;
  func BitFTA2AdderOutputI(am,bp,cm,dp,cin) -> Element of InnerVertices
  BitFTA2Str(am,bp,cm,dp,cin) equals
  GFA2AdderOutput(am,bp,cm);
  coherence by Th25;
  func BitFTA2AdderOutputP(am,bp,cm,dp,cin) -> Element of InnerVertices
  BitFTA2Str(am,bp,cm,dp,cin) equals
  GFA1CarryOutput(GFA2AdderOutput(am,bp,cm),
  cin,dp);
  coherence by Th25;
  func BitFTA2AdderOutputQ(am,bp,cm,dp,cin) -> Element of InnerVertices
  BitFTA2Str(am,bp,cm,dp,cin) equals
  GFA1AdderOutput(GFA2AdderOutput(am,bp,cm),
  cin,dp);
  coherence by Th25;
end;

::-----------------------------------
:: 3-4. Stability of the Combined Circuit and its Outputs
::-----------------------------------
:: Intermediate (External/Internal) Carry/Adder Outputs after Two-steps

theorem
  for am,bp,cm being non pair set for dp,cin being set for s being State
of BitFTA2Circ(am,bp,cm,dp,cin) for a1,a2,a3 being Element of BOOLEAN st a1 = s
.am & a2 = s.bp & a3 = s.cm holds Following(s,2).BitFTA2CarryOutput(am,bp,cm,dp
  ,cin) = 'not' (('not' a1 '&' a2) 'or' (a2 '&' 'not' a3) 'or' ('not' a3 '&'
  'not' a1)) & Following(s,2).BitFTA2AdderOutputI(am,bp,cm,dp,cin) = 'not' a1
  'xor' a2 'xor' 'not' a3
proof
  let am,bp,cm be non pair set;
  let dp,cin be set;
  let s be State of BitFTA2Circ(am,bp,cm,dp,cin);
  set S1 = BitGFA2Str(am,bp,cm);
  set C1 = BitGFA2Circ(am,bp,cm);
  set A1 = GFA2AdderOutput(am,bp,cm);
  set A2 = GFA2CarryOutput(am,bp,cm);
  set S2 = BitGFA1Str(A1,cin,dp);
  set C2 = BitGFA1Circ(A1,cin,dp);
  let a1,a2,a3 be Element of BOOLEAN such that
A1: a1 = s.am and
A2: a2 = s.bp and
A3: a3 = s.cm;
  reconsider s1 = s|the carrier of S1 as State of C1 by FACIRC_1:26;
A4: dom s1 = the carrier of S1 by CIRCUIT1:3;
  am in the carrier of S1 by GFACIRC1:100;
  then
A5: a1 = s1.am by A1,A4,FUNCT_1:47;
  reconsider t = s as State of C1+*C2;
A6: InputVertices S1 misses InnerVertices S2 by Lm22;
  cm in the carrier of S1 by GFACIRC1:100;
  then
A7: a3 = s1.cm by A3,A4,FUNCT_1:47;
  bp in the carrier of S1 by GFACIRC1:100;
  then
A8: a2 = s1.bp by A2,A4,FUNCT_1:47;
  A2 in the carrier of S1 by GFACIRC1:100;
  then Following(t,2).GFA2CarryOutput(am,bp,cm) = Following(s1,2).
  GFA2CarryOutput(am,bp,cm) by A6,FACIRC_1:32;
  hence Following(s,2).BitFTA2CarryOutput(am,bp,cm,dp,cin) = 'not' (('not' a1
  '&' a2) 'or' (a2 '&' 'not' a3) 'or' ('not' a3 '&' 'not' a1)) by A5,A8,A7,
GFACIRC1:103;
  A1 in the carrier of S1 by GFACIRC1:100;
  then Following(t,2).GFA2AdderOutput(am,bp,cm) = Following(s1,2).
  GFA2AdderOutput(am,bp,cm) by A6,FACIRC_1:32;
  hence thesis by A5,A8,A7,GFACIRC1:103;
end;

:: Temporal (Internal) Calculations after Two-steps

theorem Th28:
  for am,bp,cm,dp being non pair set for cin being set st cin <> [
<*dp,GFA2AdderOutput(am,bp,cm)*>,and2] & not cin in InnerVertices BitGFA2Str(am
  ,bp,cm) for s being State of BitFTA2Circ(am,bp,cm,dp,cin) for a1,a2,a3,a4,a5
being Element of BOOLEAN st a1 = s.am & a2 = s.bp & a3 = s.cm & a4 = s.dp & a5
  = s.cin holds Following(s,2).GFA2AdderOutput(am,bp,cm) = 'not' a1 'xor' a2
'xor' 'not' a3 & Following(s,2).am = a1 & Following(s,2).bp = a2 & Following(s,
  2).cm = a3 & Following(s,2).dp = a4 & Following(s,2).cin = a5
proof
  let am,bp,cm,dp be non pair set;
  let cin be set such that
A1: cin <> [<*dp,GFA2AdderOutput(am,bp,cm)*>,and2] & not cin in
  InnerVertices BitGFA2Str(am,bp,cm);
  set A1 = GFA2AdderOutput(am,bp,cm);
  set C1 = BitGFA2Circ(am,bp,cm);
  set S1 = BitGFA2Str(am,bp,cm);
  set S2 = BitGFA1Str(A1,cin,dp);
  set C2 = BitGFA1Circ(A1,cin,dp);
  set S = BitFTA2Str(am,bp,cm,dp,cin);
  let s be State of BitFTA2Circ(am,bp,cm,dp,cin);
  let a1,a2,a3,a4,a5 be Element of BOOLEAN such that
A2: a1 = s.am and
A3: a2 = s.bp and
A4: a3 = s.cm and
A5: a4 = s.dp and
A6: a5 = s.cin;
  reconsider s1 = s|the carrier of S1 as State of C1 by FACIRC_1:26;
A7: dom s1 = the carrier of S1 by CIRCUIT1:3;
A8: dp in InputVertices S by A1,Th26;
  then
A9: (Following s).dp = a4 by A5,CIRCUIT2:def 5;
A10: cm in InputVertices S by A1,Th26;
  then
A11: (Following s).cm = a3 by A4,CIRCUIT2:def 5;
  bp in the carrier of S1 by GFACIRC1:100;
  then
A12: a2 = s1.bp by A3,A7,FUNCT_1:47;
  reconsider t = s as State of C1+*C2;
  A1 in the carrier of S1 & InputVertices S1 misses InnerVertices S2 by Lm22,
GFACIRC1:100;
  then
A13: Following(t,2).GFA2AdderOutput(am,bp,cm) = Following(s1,2).
  GFA2AdderOutput(am,bp,cm) by FACIRC_1:32;
  cm in the carrier of S1 by GFACIRC1:100;
  then
A14: a3 = s1.cm by A4,A7,FUNCT_1:47;
  am in the carrier of S1 by GFACIRC1:100;
  then a1 = s1.am by A2,A7,FUNCT_1:47;
  hence Following(s,2).GFA2AdderOutput(am,bp,cm) = 'not' a1 'xor' a2 'xor'
  'not' a3 by A12,A14,A13,GFACIRC1:103;
A15: bp in InputVertices S by A1,Th26;
  then
A16: (Following s).bp = a2 by A3,CIRCUIT2:def 5;
A17: cin in InputVertices S by A1,Th26;
  then
A18: (Following s).cin = a5 by A6,CIRCUIT2:def 5;
A19: am in InputVertices S by A1,Th26;
  then Following(s,2) = Following Following s & (Following s).am = a1 by A2,
CIRCUIT2:def 5,FACIRC_1:15;
  hence thesis by A19,A15,A10,A8,A17,A16,A11,A9,A18,CIRCUIT2:def 5;
end;

Lm23: for am,bp,cm,dp being non pair set for cin being set for s being State
of BitFTA2Circ(am,bp,cm,dp,cin) for a123,a4,a5 being Element of BOOLEAN st a123
= s.GFA2AdderOutput(am,bp,cm) & a4 = s.dp & a5 = s.cin holds (Following s).[<*
GFA2AdderOutput(am,bp,cm),cin*>,and2c] = a123 '&' 'not' a5 & (Following s).[<*
cin,dp*>,and2a] = 'not' a5 '&' a4 & (Following s).[<*dp,GFA2AdderOutput(am,bp,
cm)*>,and2] = a4 '&' a123
proof
  let am,bp,cm,dp be non pair set;
  let cin be set;
  set S = BitFTA2Str(am,bp,cm,dp,cin);
  set C = BitFTA2Circ(am,bp,cm,dp,cin);
  set A1 = GFA2AdderOutput(am,bp,cm);
  set A1cin = [<*A1,cin*>,and2c];
  set cindp = [<*cin,dp*>,and2a];
  set dpA1 = [<*dp,A1*>, and2];
  let s be State of C;
  let a123,a4,a5 be Element of BOOLEAN such that
A1: a123 = s.A1 and
A2: a4 = s.dp and
A3: a5 = s.cin;
A4: dom s = the carrier of S by CIRCUIT1:3;
A5: cin in the carrier of S by Th24;
A6: A1 in the carrier of S by Th24;
A7: InnerVertices S = the carrier' of S by FACIRC_1:37;
  then A1cin in the carrier' of S by Th25;
  hence (Following s).A1cin = and2c.(s*<*A1,cin*>) by FACIRC_1:35
    .= and2c.<*a123, a5*> by A1,A3,A6,A5,A4,FINSEQ_2:125
    .= a123 '&' 'not' a5 by GFACIRC1:def 3;
A8: dp in the carrier of S by Th24;
  cindp in the carrier' of S by A7,Th25;
  hence (Following s).cindp = and2a.(s*<*cin,dp*>) by FACIRC_1:35
    .= and2a.<*a5,a4*> by A2,A3,A8,A5,A4,FINSEQ_2:125
    .= 'not' a5 '&' a4 by TWOSCOMP:def 2;
  dpA1 in the carrier' of S by A7,Th25;
  hence (Following s).dpA1 = and2.(s*<*dp,A1*>) by FACIRC_1:35
    .= and2.<*a4,a123*> by A1,A2,A6,A8,A4,FINSEQ_2:125
    .= a4 '&' a123 by FACIRC_1:def 6;
end;

Lm24: for am,bp,cm,dp being non pair set for cin being set for s being State
of BitFTA2Circ(am,bp,cm,dp,cin) for a123,a5 being Element of BOOLEAN st a123 =
s.GFA2AdderOutput(am,bp,cm) & a5 = s.cin holds (Following s).[<*GFA2AdderOutput
(am,bp,cm),cin*>,xor2c] = a123 'xor' 'not' a5
proof
  let am,bp,cm,dp be non pair set;
  let cin be set;
  set S = BitFTA2Str(am,bp,cm,dp,cin);
  set C = BitFTA2Circ(am,bp,cm,dp,cin);
  set A1 = GFA2AdderOutput(am,bp,cm);
  set A1cin = [<*A1,cin*>,xor2c];
  let s be State of C;
  let a123,a5 be Element of BOOLEAN such that
A1: a123 = s.A1 & a5 = s.cin;
A2: dom s = the carrier of S by CIRCUIT1:3;
A3: A1 in the carrier of S & cin in the carrier of S by Th24;
  InnerVertices S = the carrier' of S by FACIRC_1:37;
  then A1cin in the carrier' of S by Th25;
  hence (Following s).A1cin = xor2c.(s*<*A1,cin*>) by FACIRC_1:35
    .= xor2c.<*a123, a5*> by A1,A3,A2,FINSEQ_2:125
    .= a123 'xor' 'not' a5 by GFACIRC1:def 4;
end;

:: Temporal (Internal) Calculations after Three-steps (for p)

Lm25: for am,bp,cm,dp being non pair set for cin being set st cin <> [<*dp,
GFA2AdderOutput(am,bp,cm)*>,and2] & not cin in InnerVertices BitGFA2Str(am,bp,
cm) for s being State of BitFTA2Circ(am,bp,cm,dp,cin) for a1,a2,a3,a4,a5 being
Element of BOOLEAN st a1 = s.am & a2 = s.bp & a3 = s.cm & a4 = s.dp & a5 = s.
cin holds Following(s,3).[<*GFA2AdderOutput(am,bp,cm),cin*>,and2c] = ('not' a1
'xor' a2 'xor' 'not' a3) '&' 'not' a5 & Following(s,3).[<*cin,dp*>,and2a] =
'not' a5 '&' a4 & Following(s,3).[<*dp,GFA2AdderOutput(am,bp,cm)*>,and2] = a4
'&' ('not' a1 'xor' a2 'xor' 'not' a3) & Following(s,3).am = a1 & Following(s,3
).bp = a2 & Following(s,3).cm = a3 & Following(s,3).dp = a4 & Following(s,3).
cin = a5
proof
  let am,bp,cm,dp be non pair set;
  let cin be set such that
A1: cin <> [<*dp,GFA2AdderOutput(am,bp,cm)*>,and2] & not cin in
  InnerVertices BitGFA2Str(am,bp,cm);
  set S = BitFTA2Str(am,bp,cm,dp,cin);
A2: am in InputVertices S & bp in InputVertices S by A1,Th26;
A3: cm in InputVertices S & dp in InputVertices S by A1,Th26;
  let s be State of BitFTA2Circ(am,bp,cm,dp,cin);
  let a1,a2,a3,a4,a5 be Element of BOOLEAN such that
A4: a1 = s.am & a2 = s.bp & a3 = s.cm & a4 = s.dp & a5 = s.cin;
A5: Following(s,2).cin = a5 by A1,A4,Th28;
  set cindp = [<*cin,dp*>,and2a];
  set A1 = GFA2AdderOutput(am,bp,cm);
  set A1cin = [<*A1,cin*>,and2c];
  set dpA1 = [<*dp,A1*>, and2];
A6: Following(s,2+1) = Following Following(s,2) by FACIRC_1:12;
  Following(s,2).A1 = 'not' a1 'xor' a2 'xor' 'not' a3 & Following(s,2).dp
  = a4 by A1,A4,Th28;
  hence Following(s,3).A1cin = ('not' a1 'xor' a2 'xor' 'not' a3) '&' 'not' a5
& Following(s,3).cindp = 'not' a5 '&' a4 & Following(s,3).dpA1 = a4 '&' ('not'
  a1 'xor' a2 'xor' 'not' a3) by A6,A5,Lm23;
A7: Following(s,2).cm = a3 & Following(s,2).dp = a4 by A1,A4,Th28;
A8: Following(s,2).cin = a5 by A1,A4,Th28;
A9: cin in InputVertices S by A1,Th26;
  Following(s,2).am = a1 & Following(s,2).bp = a2 by A1,A4,Th28;
  hence thesis by A6,A2,A3,A9,A7,A8,CIRCUIT2:def 5;
end;

:: Temporal (Internal) Calculations after Three-steps (for q)

Lm26: for am,bp,cm,dp being non pair set for cin being set st cin <> [<*dp,
GFA2AdderOutput(am,bp,cm)*>,and2] & not cin in InnerVertices BitGFA2Str(am,bp,
cm) for s being State of BitFTA2Circ(am,bp,cm,dp,cin) for a1,a2,a3,a4,a5 being
Element of BOOLEAN st a1 = s.am & a2 = s.bp & a3 = s.cm & a4 = s.dp & a5 = s.
cin holds Following(s,3).[<*GFA2AdderOutput(am,bp,cm),cin*>,xor2c] = ('not' a1
'xor' a2 'xor' 'not' a3) 'xor' 'not' a5 & Following(s,3).am = a1 & Following(s,
3).bp = a2 & Following(s,3).cm = a3 & Following(s,3).dp = a4 & Following(s,3).
cin = a5
proof
  let am,bp,cm,dp be non pair set;
  let cin be set such that
A1: cin <> [<*dp,GFA2AdderOutput(am,bp,cm)*>,and2] & not cin in
  InnerVertices BitGFA2Str(am,bp,cm);
  set S = BitFTA2Str(am,bp,cm,dp,cin);
A2: am in InputVertices S & bp in InputVertices S by A1,Th26;
A3: cm in InputVertices S & dp in InputVertices S by A1,Th26;
  let s be State of BitFTA2Circ(am,bp,cm,dp,cin);
  let a1,a2,a3,a4,a5 be Element of BOOLEAN such that
A4: a1 = s.am & a2 = s.bp & a3 = s.cm & a4 = s.dp & a5 = s.cin;
A5: Following(s,2).cm = a3 & Following(s,2).dp = a4 by A1,A4,Th28;
  set A1 = GFA2AdderOutput(am,bp,cm);
  set A1cin = [<*A1,cin*>,xor2c];
A6: Following(s,2+1) = Following Following(s,2) by FACIRC_1:12;
  Following(s,2).A1 = 'not' a1 'xor' a2 'xor' 'not' a3 & Following(s,2).
  cin = a5 by A1,A4,Th28;
  hence Following(s,3).A1cin = ('not' a1 'xor' a2 'xor' 'not' a3) 'xor' 'not'
  a5 by A6,Lm24;
A7: Following(s,2).cin = a5 by A1,A4,Th28;
A8: cin in InputVertices S by A1,Th26;
  Following(s,2).am = a1 & Following(s,2).bp = a2 by A1,A4,Th28;
  hence thesis by A6,A2,A3,A8,A5,A7,CIRCUIT2:def 5;
end;

Lm27: for am,bp,cm,dp being non pair set for cin being set for s being State
of BitFTA2Circ(am,bp,cm,dp,cin) for a123x,a123y,a123z being Element of BOOLEAN
st a123x = s.[<*GFA2AdderOutput(am,bp,cm),cin*>,and2c] & a123y = s.[<*cin,dp*>,
and2a] & a123z = s.[<*dp,GFA2AdderOutput(am,bp,cm)*>,and2] holds (Following s).
GFA1CarryOutput(GFA2AdderOutput(am,bp,cm),cin,dp) = a123x 'or' a123y 'or' a123z
proof
  let am,bp,cm,dp be non pair set;
  let cin be set;
  set S = BitFTA2Str(am,bp,cm,dp,cin);
  set C = BitFTA2Circ(am,bp,cm,dp,cin);
  set A1 = GFA2AdderOutput(am,bp,cm);
  set A2 = GFA1CarryOutput(A1,cin,dp);
  set A1cin = [<*A1,cin*>,and2c];
  set cindp = [<*cin,dp*>,and2a];
  set dpA1 = [<*dp,A1*>, and2];
  let s be State of C;
  let a123x,a123y,a123z be Element of BOOLEAN such that
A1: a123x = s.A1cin & a123y = s.cindp & a123z = s.dpA1;
A2: A1cin in the carrier of S & cindp in the carrier of S by Th24;
A3: dpA1 in the carrier of S & dom s = the carrier of S by Th24,CIRCUIT1:3;
  InnerVertices S = the carrier' of S by FACIRC_1:37;
  then A2 in the carrier' of S by Th25;
  hence (Following s).A2 = or3.(s*<*A1cin,cindp,dpA1*>) by FACIRC_1:35
    .= or3.<*a123x, a123y, a123z*> by A1,A2,A3,FINSEQ_2:126
    .= a123x 'or' a123y 'or' a123z by FACIRC_1:def 7;
end;

Lm28: for am,bp,cm,dp being non pair set for cin being set for s being State
of BitFTA2Circ(am,bp,cm,dp,cin) for a1235,a4 being Element of BOOLEAN st a1235
= s.[<*GFA2AdderOutput(am,bp,cm),cin*>,xor2c] & a4 = s.dp holds (Following s).
GFA1AdderOutput(GFA2AdderOutput(am,bp,cm),cin,dp) = a1235 'xor' 'not' a4
proof
  let am,bp,cm,dp be non pair set;
  let cin be set;
  set S = BitFTA2Str(am,bp,cm,dp,cin);
  set C = BitFTA2Circ(am,bp,cm,dp,cin);
  set A1 = GFA2AdderOutput(am,bp,cm);
  set A2 = GFA1AdderOutput(A1,cin,dp);
  set A1cin = [<*A1,cin*>,xor2c];
  let s be State of C;
  let a1235,a4 be Element of BOOLEAN such that
A1: a1235 = s.A1cin & a4 = s.dp;
A2: dom s = the carrier of S by CIRCUIT1:3;
A3: A1cin in the carrier of S & dp in the carrier of S by Th24;
  InnerVertices S = the carrier' of S by FACIRC_1:37;
  then A2 in the carrier' of S by Th25;
  hence (Following s).A2 = xor2c.(s*<*A1cin,dp*>) by FACIRC_1:35
    .= xor2c.<*a1235, a4*> by A1,A3,A2,FINSEQ_2:125
    .= a1235 'xor' 'not' a4 by GFACIRC1:def 4;
end;

:: Temporal (External) Calculations after Four-steps (for p)

Lm29: for am,bp,cm,dp being non pair set for cin being set st cin <> [<*dp,
GFA2AdderOutput(am,bp,cm)*>,and2] & not cin in InnerVertices BitGFA2Str(am,bp,
cm) for s being State of BitFTA2Circ(am,bp,cm,dp,cin) for a1,a2,a3,a4,a5 being
Element of BOOLEAN st a1 = s.am & a2 = s.bp & a3 = s.cm & a4 = s.dp & a5 = s.
cin holds Following(s,4).GFA1CarryOutput(GFA2AdderOutput(am,bp,cm),cin,dp) = ((
'not' a1 'xor' a2 'xor' 'not' a3) '&' 'not' a5) 'or' ('not' a5 '&' a4) 'or' (a4
'&' ('not' a1 'xor' a2 'xor' 'not' a3)) & Following(s,4).am = a1 & Following(s,
4).bp = a2 & Following(s,4).cm = a3 & Following(s,4).dp = a4 & Following(s,4).
cin = a5
proof
  let am,bp,cm,dp be non pair set;
  let cin be set such that
A1: cin <> [<*dp,GFA2AdderOutput(am,bp,cm)*>,and2] & not cin in
  InnerVertices BitGFA2Str(am,bp,cm);
  set S = BitFTA2Str(am,bp,cm,dp,cin);
A2: am in InputVertices S & bp in InputVertices S by A1,Th26;
A3: cm in InputVertices S & dp in InputVertices S by A1,Th26;
  set A1 = GFA2AdderOutput(am,bp,cm);
  let s be State of BitFTA2Circ(am,bp,cm,dp,cin);
  set dpA1 = [<*dp,A1*>, and2];
  let a1,a2,a3,a4,a5 be Element of BOOLEAN such that
A4: a1 = s.am & a2 = s.bp & a3 = s.cm & a4 = s.dp & a5 = s.cin;
A5: Following(s,3).dpA1 = a4 '&' ('not' a1 'xor' a2 'xor' 'not' a3) by A1,A4
,Lm25;
  set cindp = [<*cin,dp*>,and2a];
  set A1cin = [<*A1,cin*>,and2c];
  set A2 = GFA1CarryOutput(A1,cin,dp);
A6: Following(s,3+1) = Following Following(s,3) by FACIRC_1:12;
  Following(s,3).A1cin = ('not' a1 'xor' a2 'xor' 'not' a3) '&' 'not' a5 &
  Following(s,3).cindp = 'not' a5 '&' a4 by A1,A4,Lm25;
  hence Following(s,4).A2 = (('not' a1 'xor' a2 'xor' 'not' a3) '&' 'not' a5)
'or' ('not' a5 '&' a4) 'or' (a4 '&' ('not' a1 'xor' a2 'xor' 'not' a3)) by A6
,A5,Lm27;
A7: Following(s,3).cm = a3 & Following(s,3).dp = a4 by A1,A4,Lm25;
A8: Following(s,3).cin = a5 by A1,A4,Lm25;
A9: cin in InputVertices S by A1,Th26;
  Following(s,3).am = a1 & Following(s,3).bp = a2 by A1,A4,Lm25;
  hence thesis by A6,A2,A3,A9,A7,A8,CIRCUIT2:def 5;
end;

:: Temporal (External) Calculations after Four-steps (for q)

Lm30: for am,bp,cm,dp being non pair set for cin being set st cin <> [<*dp,
GFA2AdderOutput(am,bp,cm)*>,and2] & not cin in InnerVertices BitGFA2Str(am,bp,
cm) for s being State of BitFTA2Circ(am,bp,cm,dp,cin) for a1,a2,a3,a4,a5 being
Element of BOOLEAN st a1 = s.am & a2 = s.bp & a3 = s.cm & a4 = s.dp & a5 = s.
cin holds Following(s,4).GFA1AdderOutput(GFA2AdderOutput(am,bp,cm),cin,dp) =
'not' ('not' a1 'xor' a2 'xor' 'not' a3 'xor' a4 'xor' 'not' a5) & Following(s,
4).am = a1 & Following(s,4).bp = a2 & Following(s,4).cm = a3 & Following(s,4).
dp = a4 & Following(s,4).cin = a5
proof
  let am,bp,cm,dp be non pair set;
  let cin be set such that
A1: cin <> [<*dp,GFA2AdderOutput(am,bp,cm)*>,and2] & not cin in
  InnerVertices BitGFA2Str(am,bp,cm);
  set S = BitFTA2Str(am,bp,cm,dp,cin);
A2: am in InputVertices S & bp in InputVertices S by A1,Th26;
A3: cm in InputVertices S & dp in InputVertices S by A1,Th26;
  let s be State of BitFTA2Circ(am,bp,cm,dp,cin);
  let a1,a2,a3,a4,a5 be Element of BOOLEAN such that
A4: a1 = s.am & a2 = s.bp & a3 = s.cm & a4 = s.dp & a5 = s.cin;
A5: Following(s,3).cm = a3 & Following(s,3).dp = a4 by A1,A4,Lm26;
  set A1 = GFA2AdderOutput(am,bp,cm);
  set A2 = GFA1AdderOutput(A1,cin,dp);
  set A1cin = [<*A1,cin*>,xor2c];
A6: Following(s,3+1) = Following Following(s,3) by FACIRC_1:12;
  Following(s,3).A1cin = ('not' a1 'xor' a2 'xor' 'not' a3) 'xor' 'not' a5
  & Following(s,3).dp = a4 by A1,A4,Lm26;
  hence Following(s,4).A2 = ('not' a1 'xor' a2 'xor' 'not' a3) 'xor' 'not' a5
  'xor' 'not' a4 by A6,Lm28
    .= 'not' (('not' a1 'xor' a2 'xor' 'not' a3) 'xor' 'not' a5 'xor' a4) by
XBOOLEAN:74
    .= 'not' ('not' a1 'xor' a2 'xor' 'not' a3 'xor' a4 'xor' 'not' a5) by
XBOOLEAN:73;
A7: Following(s,3).cin = a5 by A1,A4,Lm26;
A8: cin in InputVertices S by A1,Th26;
  Following(s,3).am = a1 & Following(s,3).bp = a2 by A1,A4,Lm26;
  hence thesis by A6,A2,A3,A8,A5,A7,CIRCUIT2:def 5;
end;

:: Main Proposition #3-1 (External Circuit Outputs after Four-steps) FTA2

theorem
  for am,bp,cm,dp being non pair set for cin being set st cin <> [<*dp,
GFA2AdderOutput(am,bp,cm)*>,and2] & not cin in InnerVertices BitGFA2Str(am,bp,
cm) for s being State of BitFTA2Circ(am,bp,cm,dp,cin) for a1,a2,a3,a4,a5 being
  Element of BOOLEAN st a1 = s.am & a2 = s.bp & a3 = s.cm & a4 = s.dp & a5 = s.
  cin holds Following(s,4).BitFTA2AdderOutputP(am,bp,cm,dp,cin) = (('not' a1
  'xor' a2 'xor' 'not' a3) '&' 'not' a5) 'or' ('not' a5 '&' a4) 'or' (a4 '&' (
'not' a1 'xor' a2 'xor' 'not' a3)) & Following(s,4).BitFTA2AdderOutputQ(am,bp,
  cm,dp,cin) = 'not' ('not' a1 'xor' a2 'xor' 'not' a3 'xor' a4 'xor' 'not' a5)
  by Lm29,Lm30;

:: Main Proposition #3-2 (The Whole Circuit Stability after Four-steps) FTA2

theorem
  for am,bp,cm,dp being non pair set for cin being set st cin <> [<*dp,
GFA2AdderOutput(am,bp,cm)*>,and2] for s being State of BitFTA2Circ(am,bp,cm,dp,
  cin) holds Following(s,4) is stable
proof
  set n1=2, n2=2;
  let am,bp,cm,dp be non pair set;
  let cin be set;
  set C = BitFTA2Circ(am,bp,cm,dp,cin);
  set S1 = BitGFA2Str(am,bp,cm);
  set C1 = BitGFA2Circ(am,bp,cm);
  set A1 = GFA2AdderOutput(am,bp,cm);
  set S2 = BitGFA1Str(A1,cin,dp);
  set C2 = BitGFA1Circ(A1,cin,dp);
  set dpA1 = [<*dp,A1*>, and2 ];
  assume
A1: cin <> dpA1;
  let s be State of C;
  C1 tolerates C2 by CIRCCOMB:60;
  then
A2: the Sorts of C1 tolerates the Sorts of C2 by CIRCCOMB:def 3;
  then reconsider s1 = s|the carrier of S1 as State of C1 by CIRCCOMB:26;
  reconsider s2 = Following(s,n1)|the carrier of S2 as State of C2 by A2,
CIRCCOMB:26;
A3: InputVertices S1 misses InnerVertices S2 & Following(s1,n1) is stable by
Lm22,GFACIRC1:104;
  Following(s2,n2) is stable by A1,Lm21,GFACIRC1:72;
  then Following(s,n1+n2) is stable by A3,CIRCCMB2:19,CIRCCOMB:60;
  hence thesis;
end;

begin :: 4. Stability of 4-2 Binary Addition Circuit Cell (TYPE-3)
::========================================================================
:: [4-2 Binary Addition Cell_i : TYPE-3]
::
::   Cell Module Symbol :
::
::                 a- b- c- d-            Input : a-,b-,c-,d- (non pair set)
::                 |  |  |  |                     cin- (pair)
::               +-O--O--O--O-+    cin-
::               |            |   /
::            +--O FTA TYPE-3 O--+        Output : p-,q-,cout- (pair)
::           /   |            |
::        cout-  +---O----O---+
::                   |    |
::                   p-   q-
::
::   Composition : Cascade by Adder Output together with two GFA TYPE-3
::   Function    : -p[i+1] - q[i] - Intermediate_Carry_out
::                 = -a[i] - b[i] - c[i] - d[i] - Intermediate_Carry_in
::
::                 a^{-}[i]  b^{-}[i]
::                     |     /
::                     |    /
::                 +---O---O
::                 |  GFA  O---- c^{-}[i]  Circuit Composition :
::                 | TYPE3 |                    BitGFA3Str(a-,b-,c-)
::                 O---O---+                    BitGFA3Str(A1,cin,d-)
::                /    |      cin[i]           --->
::               /   A1|     /                  FTA3Str(a-,b-,c-,d-,cin)
::      cout[i+1]      |    /
::                 +---O---O               Intermediate Addition and Carry:
::                 |  GFA  O---- d^{-}[i]       A1 <= GFA3AdderOutput
::                 | TYPE3 |                    cout[i+1] <= GFA3CarryOutput
::                 O---O---+                    q[i] <= GFA3AdderOutput
::                /    |                        p[i+1] <= GFA3CarryOutput
::               /     |
::     p^{-}[i+1]   q^{-}[i]
::
::   Calculation Stability : Following(s,2+2) is stable.
::
::=========================================================================
::---------------------------------------------------------------
:: 4-1. Circuit Definition for Intermediate Addition and Carry Circuit (TYPE-3)
::---------------------------------------------------------------
:: Def. Combined Circuit Structure of 1-bit FTA TYPE-2

definition
  let am,bm,cm,dm,cin be set;
  func BitFTA3Str(am,bm,cm,dm,cin) -> unsplit gate`1=arity gate`2isBoolean non
  void strict non empty ManySortedSign equals
  BitGFA3Str(am,bm,cm) +* BitGFA3Str(
  GFA3AdderOutput(am,bm,cm),cin,dm);
  coherence;
end;

definition
  let am,bm,cm,dm,cin be set;
  func BitFTA3Circ(am,bm,cm,dm,cin) -> strict Boolean gate`2=den Circuit of
  BitFTA3Str(am,bm,cm,dm,cin) equals
  BitGFA3Circ(am,bm,cm) +* BitGFA3Circ(
  GFA3AdderOutput(am,bm,cm),cin,dm);
  coherence;
end;

::-----------------------------------------------
:: 4-2. Properties of 1-bit FTA Structure and Circuit (TYPE-3)
::-----------------------------------------------
:: InnerVertices and InputVertices of 1-bit FTA Circuit Structure (FTA3)

theorem Th31:
  for am,bm,cm,dm,cin being set holds InnerVertices BitFTA3Str(am,
  bm,cm,dm,cin) = {[<*am,bm*>,xor2], GFA3AdderOutput(am,bm,cm)} \/ {[<*am,bm*>,
nor2], [<*bm,cm*>,nor2], [<*cm,am*>,nor2], GFA3CarryOutput(am,bm,cm)} \/ {[
<*GFA3AdderOutput(am,bm,cm),cin*>,xor2], GFA3AdderOutput(GFA3AdderOutput(am,bm,
cm),cin,dm)} \/ {[<*GFA3AdderOutput(am,bm,cm),cin*>,nor2], [<*cin,dm*>,nor2],
[<*dm,GFA3AdderOutput(am,bm,cm)*>,nor2], GFA3CarryOutput(GFA3AdderOutput(am,bm
  ,cm),cin,dm)}
proof
  let am,bm,cm,dm,cin be set;
  set S = BitFTA3Str(am,bm,cm,dm,cin);
  set S1 = BitGFA3Str(am,bm,cm);
  set A1 = GFA3AdderOutput(am,bm,cm);
  set C1 = GFA3CarryOutput(am,bm,cm);
  set S2 = BitGFA3Str(A1,cin,dm);
  set A2 = GFA3AdderOutput(A1,cin,dm);
  set C2 = GFA3CarryOutput(A1,cin,dm);
  set ambm0 = [<*am,bm*>, xor2 ];
  set ambm = [<*am,bm*>, nor2];
  set bmcm = [<*bm,cm*>, nor2];
  set cmam = [<*cm,am*>, nor2];
  set A1cin0 = [<*A1,cin*>,xor2 ];
  set A1cin = [<*A1,cin*>,nor2];
  set cindm = [<*cin,dm*>,nor2];
  set dmA1 = [<*dm,A1*>, nor2];
  S1 tolerates S2 by CIRCCOMB:47;
  hence InnerVertices S = (InnerVertices S1) \/ (InnerVertices S2) by
CIRCCOMB:11
    .= ({ambm0} \/ {A1} \/ {ambm,bmcm,cmam} \/ {C1}) \/ (InnerVertices S2)
  by GFACIRC1:127
    .= ({ambm0,A1} \/ {ambm,bmcm,cmam} \/ {C1}) \/ (InnerVertices S2) by
ENUMSET1:1
    .= ({ambm0,A1} \/ ({ambm,bmcm,cmam} \/ {C1})) \/ (InnerVertices S2) by
XBOOLE_1:4
    .= ({ambm0,A1} \/ {ambm,bmcm,cmam,C1}) \/ (InnerVertices S2) by ENUMSET1:6
    .= ({ambm0,A1} \/ {ambm,bmcm,cmam,C1}) \/ ({A1cin0} \/ {A2} \/ {A1cin,
  cindm,dmA1} \/ {C2}) by GFACIRC1:127
    .= ({ambm0,A1} \/ {ambm,bmcm,cmam,C1}) \/ ({A1cin0,A2} \/ {A1cin,cindm,
  dmA1} \/ {C2}) by ENUMSET1:1
    .= ({ambm0,A1} \/ {ambm,bmcm,cmam,C1}) \/ ({A1cin0,A2} \/ ({A1cin,cindm,
  dmA1} \/ {C2})) by XBOOLE_1:4
    .= ({ambm0,A1} \/ {ambm,bmcm,cmam,C1}) \/ ({A1cin0,A2} \/ {A1cin,cindm,
  dmA1,C2}) by ENUMSET1:6
    .= {ambm0,A1} \/ {ambm,bmcm,cmam,C1} \/ {A1cin0,A2} \/ {A1cin,cindm,dmA1
  ,C2} by XBOOLE_1:4;
end;

theorem
  for am,bm,cm,dm,cin being set holds InnerVertices BitFTA3Str(am,bm,cm,
  dm,cin) is Relation
proof
  let am,bm,cm,dm,cin be set;
  set S1 = BitGFA3Str(am,bm,cm);
  set A1 = GFA3AdderOutput(am,bm,cm);
  set S2 = BitGFA3Str(A1,cin,dm);
  InnerVertices S1 is Relation & InnerVertices S2 is Relation by GFACIRC1:128;
  hence thesis by FACIRC_1:3;
end;

Lm31: for x,y,z being set for p being set holds GFA3AdderOutput(x,y,z) <> [p,
nor2]
proof

  let x,y,z be set, p be set;

  set A1 = GFA3AdderOutput(x,y,z);

  A1`2 = xor2;
  then [p,nor2]`2 <>A1`2 by TWOSCOMP:9,11;

  hence thesis;

end;


Lm32: for am,bm,cm being non pair set for x,y,z being set holds InputVertices
BitGFA3Str(am,bm,cm) misses InnerVertices BitGFA3Str(x,y,z)
proof
  let am,bm,cm be non pair set;
  let x,y,z be set;
  set S1 = BitGFA3Str(am,bm,cm);
  InputVertices S1 is without_pairs by GFACIRC1:131;
  hence thesis by FACIRC_1:5,GFACIRC1:128;
end;

theorem Th33:
  for am,bm,cm,dm being non pair set for cin being set st cin <> [
<*dm,GFA3AdderOutput(am,bm,cm)*>,nor2] & not cin in InnerVertices BitGFA3Str(
  am,bm,cm) holds InputVertices BitFTA3Str(am,bm,cm,dm,cin) = {am,bm,cm,dm,cin}
proof
  let am,bm,cm,dm be non pair set;
  let cin be set;
  set S = BitFTA3Str(am,bm,cm,dm,cin);
  set S1 = BitGFA3Str(am,bm,cm);
  set A1 = GFA3AdderOutput(am,bm,cm);
  set C1 = GFA3CarryOutput(am,bm,cm);
  set S2 = BitGFA3Str(A1,cin,dm);
  set ambm0 = [<*am,bm*>, xor2 ];
  set ambm = [<*am,bm*>, nor2];
  set bmcm = [<*bm,cm*>, nor2];
  set cmam = [<*cm,am*>, nor2];
  set cindm = [<*cin,dm*>,nor2];
  set dmA1 = [<*dm,A1*>, nor2];
  assume that
A1: cin <> dmA1 and
A2: not cin in InnerVertices S1;
A3: not dm in {A1,ambm0,ambm,bmcm,cmam,C1} by ENUMSET1:def 4;
  A1 in {A1,ambm0,ambm,bmcm,cmam,C1} by ENUMSET1:def 4;
  then
A4: {A1} \ {A1,ambm0,ambm,bmcm,cmam,C1} = {} by ZFMISC_1:60;
A5: InnerVertices S1 = {ambm0} \/ {A1} \/ {ambm,bmcm,cmam} \/ {C1} by
GFACIRC1:127
    .= {ambm0,A1} \/ {ambm,bmcm,cmam} \/ {C1} by ENUMSET1:1
    .= {ambm0,A1} \/ ({ambm,bmcm,cmam} \/ {C1}) by XBOOLE_1:4
    .= {A1,ambm0} \/ {ambm,bmcm,cmam,C1} by ENUMSET1:6
    .= {A1,ambm0,ambm,bmcm,cmam,C1} by ENUMSET1:12;
  then
A6: {A1,cin,dm} \ InnerVertices S1 = ({A1} \/ {cin,dm}) \ {A1,ambm0,ambm,
  bmcm,cmam,C1} by ENUMSET1:2
    .= ({A1} \ {A1,ambm0,ambm,bmcm,cmam,C1}) \/ ({cin,dm} \ {A1,ambm0,ambm,
  bmcm,cmam,C1}) by XBOOLE_1:42
    .= ({cin} \/ {dm}) \ {A1,ambm0,ambm,bmcm,cmam,C1} by A4,ENUMSET1:1
    .= ({cin} \ {A1,ambm0,ambm,bmcm,cmam,C1}) \/ ({dm} \ {A1,ambm0,ambm,bmcm
  ,cmam,C1}) by XBOOLE_1:42
    .= ({cin}) \/ ({dm} \ {A1,ambm0,ambm,bmcm,cmam,C1}) by A2,A5,ZFMISC_1:59
    .= ({cin}) \/ ({dm}) by A3,ZFMISC_1:59
    .= {cin,dm} by ENUMSET1:1;
A7: A1 <> cindm by Lm31;
  InnerVertices S2 misses InputVertices S1 & S1 tolerates S2 by Lm32,
CIRCCOMB:47;
  hence InputVertices (S) = (InputVertices S1) \/ (InputVertices S2 \
  InnerVertices S1) by FACIRC_1:4
    .= ({am,bm,cm}) \/ (InputVertices S2 \ InnerVertices S1) by GFACIRC1:130
    .= ({am,bm,cm}) \/ ({A1,cin,dm} \ InnerVertices S1) by A1,A7,GFACIRC1:129
    .= {am,bm,cm,dm,cin} by A6,ENUMSET1:9;
end;

:: The Element of Carriers, InnerVertices and InputVertices (FTA3)

theorem Th34:
  for am,bm,cm,dm,cin being set holds am in the carrier of
BitFTA3Str(am,bm,cm,dm,cin) & bm in the carrier of BitFTA3Str(am,bm,cm,dm,cin)
  & cm in the carrier of BitFTA3Str(am,bm,cm,dm,cin) & dm in the carrier of
BitFTA3Str(am,bm,cm,dm,cin) & cin in the carrier of BitFTA3Str(am,bm,cm,dm,cin)
  & [<*am,bm*>,xor2] in the carrier of BitFTA3Str(am,bm,cm,dm,cin) &
GFA3AdderOutput(am,bm,cm) in the carrier of BitFTA3Str(am,bm,cm,dm,cin) & [<*am
,bm*>,nor2] in the carrier of BitFTA3Str(am,bm,cm,dm,cin) & [<*bm,cm*>,nor2]
  in the carrier of BitFTA3Str(am,bm,cm,dm,cin) & [<*cm,am*>,nor2] in the
  carrier of BitFTA3Str(am,bm,cm,dm,cin) & GFA3CarryOutput(am,bm,cm) in the
  carrier of BitFTA3Str(am,bm,cm,dm,cin) & [<*GFA3AdderOutput(am,bm,cm),cin*>,
  xor2] in the carrier of BitFTA3Str(am,bm,cm,dm,cin) & GFA3AdderOutput(
GFA3AdderOutput(am,bm,cm),cin,dm) in the carrier of BitFTA3Str(am,bm,cm,dm,cin)
& [<*GFA3AdderOutput(am,bm,cm),cin*>,nor2] in the carrier of BitFTA3Str(am,bm,
cm,dm,cin) & [<*cin,dm*>,nor2] in the carrier of BitFTA3Str(am,bm,cm,dm,cin) &
[<*dm,GFA3AdderOutput(am,bm,cm)*>,nor2] in the carrier of BitFTA3Str(am,bm,cm,
  dm,cin) & GFA3CarryOutput(GFA3AdderOutput(am,bm,cm),cin,dm) in the carrier of
  BitFTA3Str(am,bm,cm,dm,cin)
proof
  let am,bm,cm,dm,cin be set;
  set S1 = BitGFA3Str(am,bm,cm);
  set A1 = GFA3AdderOutput(am,bm,cm);
  set C1 = GFA3CarryOutput(am,bm,cm);
  set S2 = BitGFA3Str(A1,cin,dm);
  set A2 = GFA3AdderOutput(A1,cin,dm);
  set C2 = GFA3CarryOutput(A1,cin,dm);
  set ambm0 = [<*am,bm*>, xor2 ];
  set ambm = [<*am,bm*>, nor2];
  set bmcm = [<*bm,cm*>, nor2];
  set cmam = [<*cm,am*>, nor2];
  set A1cin0 = [<*A1,cin*>,xor2 ];
  set A1cin = [<*A1,cin*>,nor2];
  set cindm = [<*cin,dm*>,nor2];
  set dmA1 = [<*dm,A1*>, nor2];
A1: cm in the carrier of S1 & ambm0 in the carrier of S1 by GFACIRC1:132;
A2: ambm in the carrier of S1 & bmcm in the carrier of S1 by GFACIRC1:132;
A3: A1 in the carrier of S2 & cin in the carrier of S2 by GFACIRC1:132;
A4: cmam in the carrier of S1 & C1 in the carrier of S1 by GFACIRC1:132;
A5: C2 in the carrier of S2 by GFACIRC1:132;
A6: cindm in the carrier of S2 & dmA1 in the carrier of S2 by GFACIRC1:132;
A7: A2 in the carrier of S2 & A1cin in the carrier of S2 by GFACIRC1:132;
A8: dm in the carrier of S2 & A1cin0 in the carrier of S2 by GFACIRC1:132;
  am in the carrier of S1 & bm in the carrier of S1 by GFACIRC1:132;
  hence thesis by A1,A2,A4,A3,A8,A7,A6,A5,FACIRC_1:20;
end;

theorem Th35:
  for am,bm,cm,dm,cin being set holds [<*am,bm*>,xor2] in
  InnerVertices BitFTA3Str(am,bm,cm,dm,cin) & GFA3AdderOutput(am,bm,cm) in
InnerVertices BitFTA3Str(am,bm,cm,dm,cin) & [<*am,bm*>,nor2] in InnerVertices
BitFTA3Str(am,bm,cm,dm,cin) & [<*bm,cm*>,nor2] in InnerVertices BitFTA3Str(am,
bm,cm,dm,cin) & [<*cm,am*>,nor2] in InnerVertices BitFTA3Str(am,bm,cm,dm,cin)
& GFA3CarryOutput(am,bm,cm) in InnerVertices BitFTA3Str(am,bm,cm,dm,cin) & [<*
GFA3AdderOutput(am,bm,cm),cin*>,xor2] in InnerVertices BitFTA3Str(am,bm,cm,dm,
  cin) & GFA3AdderOutput(GFA3AdderOutput(am,bm,cm),cin,dm) in InnerVertices
  BitFTA3Str(am,bm,cm,dm,cin) & [<*GFA3AdderOutput(am,bm,cm),cin*>,nor2] in
InnerVertices BitFTA3Str(am,bm,cm,dm,cin) & [<*cin,dm*>,nor2] in InnerVertices
  BitFTA3Str(am,bm,cm,dm,cin) & [<*dm,GFA3AdderOutput(am,bm,cm)*>,nor2] in
InnerVertices BitFTA3Str(am,bm,cm,dm,cin) & GFA3CarryOutput(GFA3AdderOutput(am,
  bm,cm),cin,dm) in InnerVertices BitFTA3Str(am,bm,cm,dm,cin)
proof
  let am,bm,cm,dm,cin be set;
  set S = BitFTA3Str(am,bm,cm,dm,cin);
  set A1 = GFA3AdderOutput(am,bm,cm);
  set C1 = GFA3CarryOutput(am,bm,cm);
  set A2 = GFA3AdderOutput(A1,cin,dm);
  set C2 = GFA3CarryOutput(A1,cin,dm);
  set ambm0 = [<*am,bm*>, xor2 ];
  set ambm = [<*am,bm*>, nor2];
  set bmcm = [<*bm,cm*>, nor2];
  set cmam = [<*cm,am*>, nor2];
  set A1cin0 = [<*A1,cin*>,xor2 ];
  set A1cin = [<*A1,cin*>,nor2];
  set cindm = [<*cin,dm*>,nor2];
  set dmA1 = [<*dm,A1*>, nor2];
  set p1 = {ambm0,A1,ambm,bmcm,cmam,C1};
  set p2 = {A1cin0,A2,A1cin,cindm,dmA1,C2};
A1: ambm0 in p1 & A1 in p1 by ENUMSET1:def 4;
A2: ambm in p1 & bmcm in p1 by ENUMSET1:def 4;
A3: A1cin0 in p2 & A2 in p2 by ENUMSET1:def 4;
A4: cmam in p1 & C1 in p1 by ENUMSET1:def 4;
A5: dmA1 in p2 & C2 in p2 by ENUMSET1:def 4;
A6: A1cin in p2 & cindm in p2 by ENUMSET1:def 4;
  InnerVertices S = {ambm0,A1} \/ {ambm,bmcm,cmam,C1} \/ {A1cin0,A2} \/ {
  A1cin,cindm,dmA1,C2} by Th31
    .= p1 \/ {A1cin0,A2} \/ {A1cin,cindm,dmA1,C2} by ENUMSET1:12
    .= p1 \/ ({A1cin0,A2} \/ {A1cin,cindm,dmA1,C2}) by XBOOLE_1:4
    .= p1 \/ p2 by ENUMSET1:12;
  hence thesis by A1,A2,A4,A3,A6,A5,XBOOLE_0:def 3;
end;

theorem Th36:
  for am,bm,cm,dm being non pair set for cin being set st cin <> [
<*dm,GFA3AdderOutput(am,bm,cm)*>,nor2] & not cin in InnerVertices BitGFA3Str(
  am,bm,cm) holds am in InputVertices BitFTA3Str(am,bm,cm,dm,cin) & bm in
InputVertices BitFTA3Str(am,bm,cm,dm,cin) & cm in InputVertices BitFTA3Str(am,
  bm,cm,dm,cin) & dm in InputVertices BitFTA3Str(am,bm,cm,dm,cin) & cin in
  InputVertices BitFTA3Str(am,bm,cm,dm,cin)
proof
  let am,bm,cm,dm be non pair set;
  let cin be set;
  set S = BitFTA3Str(am,bm,cm,dm,cin);
  set S1 = BitGFA3Str(am,bm,cm);
  set A1 = GFA3AdderOutput(am,bm,cm);
  set dmA1 = [<*dm,A1*>,nor2];
  assume cin <> dmA1 & not cin in InnerVertices S1;
  then InputVertices S = {am,bm,cm,dm,cin} by Th33;
  hence thesis by ENUMSET1:def 3;
end;

::-------------------------------------------
:: 4-3. Output Definitions of the Combined Circuit
::-------------------------------------------
:: Def. External/Internal Signal Outputs of 1-bit FTA TYPE-3

definition
  let am,bm,cm,dm,cin be set;
  func BitFTA3CarryOutput(am,bm,cm,dm,cin) -> Element of InnerVertices
  BitFTA3Str(am,bm,cm,dm,cin) equals
  GFA3CarryOutput(am,bm,cm);
  coherence by Th35;
  func BitFTA3AdderOutputI(am,bm,cm,dm,cin) -> Element of InnerVertices
  BitFTA3Str(am,bm,cm,dm,cin) equals
  GFA3AdderOutput(am,bm,cm);
  coherence by Th35;
  func BitFTA3AdderOutputP(am,bm,cm,dm,cin) -> Element of InnerVertices
  BitFTA3Str(am,bm,cm,dm,cin) equals
  GFA3CarryOutput(GFA3AdderOutput(am,bm,cm),
  cin,dm);
  coherence by Th35;
  func BitFTA3AdderOutputQ(am,bm,cm,dm,cin) -> Element of InnerVertices
  BitFTA3Str(am,bm,cm,dm,cin) equals
  GFA3AdderOutput(GFA3AdderOutput(am,bm,cm),
  cin,dm);
  coherence by Th35;
end;

::-----------------------------------
:: 4-4. Stability of the Combined Circuit and its Outputs
::-----------------------------------
:: Intermediate (External/Internal) Carry/Adder Outputs after Two-steps

theorem
  for am,bm,cm being non pair set for dm,cin being set for s being State
of BitFTA3Circ(am,bm,cm,dm,cin) for a1,a2,a3 being Element of BOOLEAN st a1 = s
.am & a2 = s.bm & a3 = s.cm holds Following(s,2).BitFTA3CarryOutput(am,bm,cm,dm
,cin) = 'not' (('not' a1 '&' 'not' a2) 'or' ('not' a2 '&' 'not' a3) 'or' ('not'
a3 '&' 'not' a1)) & Following(s,2).BitFTA3AdderOutputI(am,bm,cm,dm,cin) = 'not'
  ('not' a1 'xor' 'not' a2 'xor' 'not' a3)
proof
  let am,bm,cm be non pair set;
  let dm,cin be set;
  let s be State of BitFTA3Circ(am,bm,cm,dm,cin);
  set S1 = BitGFA3Str(am,bm,cm);
  set C1 = BitGFA3Circ(am,bm,cm);
  set A1 = GFA3AdderOutput(am,bm,cm);
  set A2 = GFA3CarryOutput(am,bm,cm);
  set S2 = BitGFA3Str(A1,cin,dm);
  set C2 = BitGFA3Circ(A1,cin,dm);
  let a1,a2,a3 be Element of BOOLEAN such that
A1: a1 = s.am and
A2: a2 = s.bm and
A3: a3 = s.cm;
  reconsider s1 = s|the carrier of S1 as State of C1 by FACIRC_1:26;
A4: dom s1 = the carrier of S1 by CIRCUIT1:3;
  am in the carrier of S1 by GFACIRC1:132;
  then
A5: a1 = s1.am by A1,A4,FUNCT_1:47;
  reconsider t = s as State of C1+*C2;
A6: InputVertices S1 misses InnerVertices S2 by Lm32;
  cm in the carrier of S1 by GFACIRC1:132;
  then
A7: a3 = s1.cm by A3,A4,FUNCT_1:47;
  bm in the carrier of S1 by GFACIRC1:132;
  then
A8: a2 = s1.bm by A2,A4,FUNCT_1:47;
  A2 in the carrier of S1 by GFACIRC1:132;
  then Following(t,2).GFA3CarryOutput(am,bm,cm) = Following(s1,2).
  GFA3CarryOutput(am,bm,cm) by A6,FACIRC_1:32;
  hence Following(s,2).BitFTA3CarryOutput(am,bm,cm,dm,cin) = 'not' (('not' a1
'&' 'not' a2) 'or' ('not' a2 '&' 'not' a3) 'or' ('not' a3 '&' 'not' a1)) by A5
,A8,A7,GFACIRC1:135;
  A1 in the carrier of S1 by GFACIRC1:132;
  then Following(t,2).GFA3AdderOutput(am,bm,cm) = Following(s1,2).
  GFA3AdderOutput(am,bm,cm) by A6,FACIRC_1:32;
  hence thesis by A5,A8,A7,GFACIRC1:135;
end;

:: Temporal (Internal) Calculations after Two-steps

theorem Th38:
  for am,bm,cm,dm being non pair set for cin being set st cin <> [
<*dm,GFA3AdderOutput(am,bm,cm)*>,nor2] & not cin in InnerVertices BitGFA3Str(
am,bm,cm) for s being State of BitFTA3Circ(am,bm,cm,dm,cin) for a1,a2,a3,a4,a5
being Element of BOOLEAN st a1 = s.am & a2 = s.bm & a3 = s.cm & a4 = s.dm & a5
= s.cin holds Following(s,2).GFA3AdderOutput(am,bm,cm) = 'not' ('not' a1 'xor'
  'not' a2 'xor' 'not' a3) & Following(s,2).am = a1 & Following(s,2).bm = a2 &
  Following(s,2).cm = a3 & Following(s,2).dm = a4 & Following(s,2).cin = a5
proof
  let am,bm,cm,dm be non pair set;
  let cin be set such that
A1: cin <> [<*dm,GFA3AdderOutput(am,bm,cm)*>,nor2] & not cin in
  InnerVertices BitGFA3Str(am,bm,cm);
  set A1 = GFA3AdderOutput(am,bm,cm);
  set C1 = BitGFA3Circ(am,bm,cm);
  set S1 = BitGFA3Str(am,bm,cm);
  set S2 = BitGFA3Str(A1,cin,dm);
  set C2 = BitGFA3Circ(A1,cin,dm);
  set S = BitFTA3Str(am,bm,cm,dm,cin);
  let s be State of BitFTA3Circ(am,bm,cm,dm,cin);
  let a1,a2,a3,a4,a5 be Element of BOOLEAN such that
A2: a1 = s.am and
A3: a2 = s.bm and
A4: a3 = s.cm and
A5: a4 = s.dm and
A6: a5 = s.cin;
  reconsider s1 = s|the carrier of S1 as State of C1 by FACIRC_1:26;
A7: dom s1 = the carrier of S1 by CIRCUIT1:3;
A8: dm in InputVertices S by A1,Th36;
  then
A9: (Following s).dm = a4 by A5,CIRCUIT2:def 5;
A10: cm in InputVertices S by A1,Th36;
  then
A11: (Following s).cm = a3 by A4,CIRCUIT2:def 5;
  bm in the carrier of S1 by GFACIRC1:132;
  then
A12: a2 = s1.bm by A3,A7,FUNCT_1:47;
  reconsider t = s as State of C1+*C2;
  A1 in the carrier of S1 & InputVertices S1 misses InnerVertices S2 by Lm32,
GFACIRC1:132;
  then
A13: Following(t,2).GFA3AdderOutput(am,bm,cm) = Following(s1,2).
  GFA3AdderOutput(am,bm,cm) by FACIRC_1:32;
  cm in the carrier of S1 by GFACIRC1:132;
  then
A14: a3 = s1.cm by A4,A7,FUNCT_1:47;
  am in the carrier of S1 by GFACIRC1:132;
  then a1 = s1.am by A2,A7,FUNCT_1:47;
  hence Following(s,2).GFA3AdderOutput(am,bm,cm) = 'not' ('not' a1 'xor' 'not'
  a2 'xor' 'not' a3) by A12,A14,A13,GFACIRC1:135;
A15: bm in InputVertices S by A1,Th36;
  then
A16: (Following s).bm = a2 by A3,CIRCUIT2:def 5;
A17: cin in InputVertices S by A1,Th36;
  then
A18: (Following s).cin = a5 by A6,CIRCUIT2:def 5;
A19: am in InputVertices S by A1,Th36;
  then Following(s,2) = Following Following s & (Following s).am = a1 by A2,
CIRCUIT2:def 5,FACIRC_1:15;
  hence thesis by A19,A15,A10,A8,A17,A16,A11,A9,A18,CIRCUIT2:def 5;
end;

Lm33: for am,bm,cm,dm being non pair set for cin being set for s being State
of BitFTA3Circ(am,bm,cm,dm,cin) for a123,a4,a5 being Element of BOOLEAN st a123
= s.GFA3AdderOutput(am,bm,cm) & a4 = s.dm & a5 = s.cin holds (Following s).[<*
GFA3AdderOutput(am,bm,cm),cin*>,nor2] = 'not' a123 '&' 'not' a5 & (Following s
).[<*cin,dm*>,nor2] = 'not' a5 '&' 'not' a4 & (Following s).[<*dm,
GFA3AdderOutput(am,bm,cm)*>,nor2] = 'not' a4 '&' 'not' a123
proof
  let am,bm,cm,dm be non pair set;
  let cin be set;
  set S = BitFTA3Str(am,bm,cm,dm,cin);
  set C = BitFTA3Circ(am,bm,cm,dm,cin);
  set A1 = GFA3AdderOutput(am,bm,cm);
  set A1cin = [<*A1,cin*>,nor2];
  set cindm = [<*cin,dm*>,nor2];
  set dmA1 = [<*dm,A1*>, nor2];
  let s be State of C;
  let a123,a4,a5 be Element of BOOLEAN such that
A1: a123 = s.A1 and
A2: a4 = s.dm and
A3: a5 = s.cin;
A4: dom s = the carrier of S by CIRCUIT1:3;
A5: cin in the carrier of S by Th34;
A6: A1 in the carrier of S by Th34;
A7: InnerVertices S = the carrier' of S by FACIRC_1:37;
  then A1cin in the carrier' of S by Th35;
  hence (Following s).A1cin = nor2.(s*<*A1,cin*>) by FACIRC_1:35
    .= nor2.<*a123, a5*> by A1,A3,A6,A5,A4,FINSEQ_2:125
    .= 'not' a123 '&' 'not' a5 by TWOSCOMP:54;
A8: dm in the carrier of S by Th34;
  cindm in the carrier' of S by A7,Th35;
  hence (Following s).cindm = nor2.(s*<*cin,dm*>) by FACIRC_1:35
    .= nor2.<*a5,a4*> by A2,A3,A8,A5,A4,FINSEQ_2:125
    .= 'not' a5 '&' 'not' a4 by TWOSCOMP:54;
  dmA1 in the carrier' of S by A7,Th35;
  hence (Following s).dmA1 = nor2.(s*<*dm,A1*>) by FACIRC_1:35
    .= nor2.<*a4,a123*> by A1,A2,A6,A8,A4,FINSEQ_2:125
    .= 'not' a4 '&' 'not' a123 by TWOSCOMP:54;
end;

Lm34: for am,bm,cm,dm being non pair set for cin being set for s being State
of BitFTA3Circ(am,bm,cm,dm,cin) for a123,a5 being Element of BOOLEAN st a123 =
s.GFA3AdderOutput(am,bm,cm) & a5 = s.cin holds (Following s).[<*GFA3AdderOutput
(am,bm,cm),cin*>,xor2] = a123 'xor' a5
proof
  let am,bm,cm,dm be non pair set;
  let cin be set;
  set S = BitFTA3Str(am,bm,cm,dm,cin);
  set C = BitFTA3Circ(am,bm,cm,dm,cin);
  set A1 = GFA3AdderOutput(am,bm,cm);
  set A1cin = [<*A1,cin*>,xor2];
  let s be State of C;
  let a123,a5 be Element of BOOLEAN such that
A1: a123 = s.A1 & a5 = s.cin;
A2: dom s = the carrier of S by CIRCUIT1:3;
A3: A1 in the carrier of S & cin in the carrier of S by Th34;
  InnerVertices S = the carrier' of S by FACIRC_1:37;
  then A1cin in the carrier' of S by Th35;
  hence (Following s).A1cin = xor2.(s*<*A1,cin*>) by FACIRC_1:35
    .= xor2.<*a123, a5*> by A1,A3,A2,FINSEQ_2:125
    .= a123 'xor' a5 by FACIRC_1:def 4;
end;

:: Temporal (Internal) Calculations after Three-steps (for p)

Lm35: for am,bm,cm,dm being non pair set for cin being set st cin <> [<*dm,
GFA3AdderOutput(am,bm,cm)*>,nor2] & not cin in InnerVertices BitGFA3Str(am,bm,
cm) for s being State of BitFTA3Circ(am,bm,cm,dm,cin) for a1,a2,a3,a4,a5 being
Element of BOOLEAN st a1 = s.am & a2 = s.bm & a3 = s.cm & a4 = s.dm & a5 = s.
cin holds Following(s,3).[<*GFA3AdderOutput(am,bm,cm),cin*>,nor2] = ('not' a1
'xor' 'not' a2 'xor' 'not' a3) '&' 'not' a5 & Following(s,3).[<*cin,dm*>,nor2]
= 'not' a5 '&' 'not' a4 & Following(s,3).[<*dm,GFA3AdderOutput(am,bm,cm)*>,
nor2] = 'not' a4 '&' ('not' a1 'xor' 'not' a2 'xor' 'not' a3) & Following(s,3)
.am = a1 & Following(s,3).bm = a2 & Following(s,3).cm = a3 & Following(s,3).dm
= a4 & Following(s,3).cin = a5
proof
  let am,bm,cm,dm be non pair set;
  let cin be set such that
A1: cin <> [<*dm,GFA3AdderOutput(am,bm,cm)*>,nor2] & not cin in
  InnerVertices BitGFA3Str(am,bm,cm);
  set S = BitFTA3Str(am,bm,cm,dm,cin);
A2: am in InputVertices S & bm in InputVertices S by A1,Th36;
A3: cm in InputVertices S & dm in InputVertices S by A1,Th36;
  let s be State of BitFTA3Circ(am,bm,cm,dm,cin);
  let a1,a2,a3,a4,a5 be Element of BOOLEAN such that
A4: a1 = s.am & a2 = s.bm & a3 = s.cm & a4 = s.dm & a5 = s.cin;
A5: Following(s,2).cin = a5 by A1,A4,Th38;
  set cindm = [<*cin,dm*>,nor2];
  set A1 = GFA3AdderOutput(am,bm,cm);
  set A1cin = [<*A1,cin*>,nor2];
  set dmA1 = [<*dm,A1*>, nor2];
A6: Following(s,2+1) = Following Following(s,2) by FACIRC_1:12;
  Following(s,2).A1 = 'not' ('not' a1 'xor' 'not' a2 'xor' 'not' a3) &
  Following(s,2).dm = a4 by A1,A4,Th38;
  hence Following(s,3).A1cin = ('not' a1 'xor' 'not' a2 'xor' 'not' a3) '&'
'not' a5 & Following(s,3).cindm = 'not' a5 '&' 'not' a4 & Following(s,3).dmA1 =
  'not' a4 '&' ('not' a1 'xor' 'not' a2 'xor' 'not' a3) by A6,A5,Lm33;
A7: Following(s,2).cm = a3 & Following(s,2).dm = a4 by A1,A4,Th38;
A8: Following(s,2).cin = a5 by A1,A4,Th38;
A9: cin in InputVertices S by A1,Th36;
  Following(s,2).am = a1 & Following(s,2).bm = a2 by A1,A4,Th38;
  hence thesis by A6,A2,A3,A9,A7,A8,CIRCUIT2:def 5;
end;

:: Temporal (Internal) Calculations after Three-steps (for q)

Lm36: for am,bm,cm,dm being non pair set for cin being set st cin <> [<*dm,
GFA3AdderOutput(am,bm,cm)*>,nor2] & not cin in InnerVertices BitGFA3Str(am,bm,
cm) for s being State of BitFTA3Circ(am,bm,cm,dm,cin) for a1,a2,a3,a4,a5 being
Element of BOOLEAN st a1 = s.am & a2 = s.bm & a3 = s.cm & a4 = s.dm & a5 = s.
cin holds Following(s,3).[<*GFA3AdderOutput(am,bm,cm),cin*>,xor2] = 'not' (
'not' a1 'xor' 'not' a2 'xor' 'not' a3) 'xor' a5 & Following(s,3).am = a1 &
Following(s,3).bm = a2 & Following(s,3).cm = a3 & Following(s,3).dm = a4 &
Following(s,3).cin = a5
proof
  let am,bm,cm,dm be non pair set;
  let cin be set such that
A1: cin <> [<*dm,GFA3AdderOutput(am,bm,cm)*>,nor2] & not cin in
  InnerVertices BitGFA3Str(am,bm,cm);
  set S = BitFTA3Str(am,bm,cm,dm,cin);
A2: am in InputVertices S & bm in InputVertices S by A1,Th36;
A3: cm in InputVertices S & dm in InputVertices S by A1,Th36;
  let s be State of BitFTA3Circ(am,bm,cm,dm,cin);
  let a1,a2,a3,a4,a5 be Element of BOOLEAN such that
A4: a1 = s.am & a2 = s.bm & a3 = s.cm & a4 = s.dm & a5 = s.cin;
A5: Following(s,2).cm = a3 & Following(s,2).dm = a4 by A1,A4,Th38;
  set A1 = GFA3AdderOutput(am,bm,cm);
  set A1cin = [<*A1,cin*>,xor2];
A6: Following(s,2+1) = Following Following(s,2) by FACIRC_1:12;
  Following(s,2).A1 = 'not' ('not' a1 'xor' 'not' a2 'xor' 'not' a3) &
  Following(s,2).cin = a5 by A1,A4,Th38;
  hence Following(s,3).A1cin = 'not' ('not' a1 'xor' 'not' a2 'xor' 'not' a3)
  'xor' a5 by A6,Lm34;
A7: Following(s,2).cin = a5 by A1,A4,Th38;
A8: cin in InputVertices S by A1,Th36;
  Following(s,2).am = a1 & Following(s,2).bm = a2 by A1,A4,Th38;
  hence thesis by A6,A2,A3,A8,A5,A7,CIRCUIT2:def 5;
end;

Lm37: for am,bm,cm,dm being non pair set for cin being set for s being State
of BitFTA3Circ(am,bm,cm,dm,cin) for a123x,a123y,a123z being Element of BOOLEAN
st a123x = s.[<*GFA3AdderOutput(am,bm,cm),cin*>,nor2] & a123y = s.[<*cin,dm*>,
nor2] & a123z = s.[<*dm,GFA3AdderOutput(am,bm,cm)*>,nor2] holds (Following s)
.GFA3CarryOutput(GFA3AdderOutput(am,bm,cm),cin,dm) = 'not' (a123x 'or' a123y
'or' a123z)
proof
  let am,bm,cm,dm be non pair set;
  let cin be set;
  set S = BitFTA3Str(am,bm,cm,dm,cin);
  set C = BitFTA3Circ(am,bm,cm,dm,cin);
  set A1 = GFA3AdderOutput(am,bm,cm);
  set A2 = GFA3CarryOutput(A1,cin,dm);
  set A1cin = [<*A1,cin*>,nor2];
  set cindm = [<*cin,dm*>,nor2];
  set dmA1 = [<*dm,A1*>, nor2];
  let s be State of C;
  let a123x,a123y,a123z be Element of BOOLEAN such that
A1: a123x = s.A1cin & a123y = s.cindm & a123z = s.dmA1;
A2: A1cin in the carrier of S & cindm in the carrier of S by Th34;
A3: dmA1 in the carrier of S & dom s = the carrier of S by Th34,CIRCUIT1:3;
  InnerVertices S = the carrier' of S by FACIRC_1:37;
  then A2 in the carrier' of S by Th35;
  hence (Following s).A2 = nor3.(s*<*A1cin,cindm,dmA1*>) by FACIRC_1:35
    .= nor3.<*a123x, a123y, a123z*> by A1,A2,A3,FINSEQ_2:126
    .= 'not' (a123x 'or' a123y 'or' a123z) by TWOSCOMP:def 28;
end;

Lm38: for am,bm,cm,dm being non pair set for cin being set for s being State
of BitFTA3Circ(am,bm,cm,dm,cin) for a1235,a4 being Element of BOOLEAN st a1235
= s.[<*GFA3AdderOutput(am,bm,cm),cin*>,xor2] & a4 = s.dm holds (Following s).
GFA3AdderOutput(GFA3AdderOutput(am,bm,cm),cin,dm) = a1235 'xor' a4
proof
  let am,bm,cm,dm be non pair set;
  let cin be set;
  set S = BitFTA3Str(am,bm,cm,dm,cin);
  set C = BitFTA3Circ(am,bm,cm,dm,cin);
  set A1 = GFA3AdderOutput(am,bm,cm);
  set A2 = GFA3AdderOutput(A1,cin,dm);
  set A1cin = [<*A1,cin*>,xor2];
  let s be State of C;
  let a1235,a4 be Element of BOOLEAN such that
A1: a1235 = s.A1cin & a4 = s.dm;
A2: dom s = the carrier of S by CIRCUIT1:3;
A3: A1cin in the carrier of S & dm in the carrier of S by Th34;
  InnerVertices S = the carrier' of S by FACIRC_1:37;
  then A2 in the carrier' of S by Th35;
  hence (Following s).A2 = xor2.(s*<*A1cin,dm*>) by FACIRC_1:35
    .= xor2.<*a1235, a4*> by A1,A3,A2,FINSEQ_2:125
    .= a1235 'xor' a4 by FACIRC_1:def 4;
end;

:: Temporal (External) Calculations after Four-steps (for p)

Lm39: for am,bm,cm,dm being non pair set for cin being set st cin <> [<*dm,
GFA3AdderOutput(am,bm,cm)*>,nor2] & not cin in InnerVertices BitGFA3Str(am,bm,
cm) for s being State of BitFTA3Circ(am,bm,cm,dm,cin) for a1,a2,a3,a4,a5 being
Element of BOOLEAN st a1 = s.am & a2 = s.bm & a3 = s.cm & a4 = s.dm & a5 = s.
cin holds Following(s,4).GFA3CarryOutput(GFA3AdderOutput(am,bm,cm),cin,dm) =
'not' ((('not' a1 'xor' 'not' a2 'xor' 'not' a3) '&' 'not' a5) 'or' ('not' a5
'&' 'not' a4) 'or' ('not' a4 '&' ('not' a1 'xor' 'not' a2 'xor' 'not' a3))) &
Following(s,4).am = a1 & Following(s,4).bm = a2 & Following(s,4).cm = a3 &
Following(s,4).dm = a4 & Following(s,4).cin = a5
proof
  let am,bm,cm,dm be non pair set;
  let cin be set such that
A1: cin <> [<*dm,GFA3AdderOutput(am,bm,cm)*>,nor2] & not cin in
  InnerVertices BitGFA3Str(am,bm,cm);
  set S = BitFTA3Str(am,bm,cm,dm,cin);
A2: am in InputVertices S & bm in InputVertices S by A1,Th36;
A3: cm in InputVertices S & dm in InputVertices S by A1,Th36;
  set A1 = GFA3AdderOutput(am,bm,cm);
  let s be State of BitFTA3Circ(am,bm,cm,dm,cin);
  set dmA1 = [<*dm,A1*>, nor2];
  let a1,a2,a3,a4,a5 be Element of BOOLEAN such that
A4: a1 = s.am & a2 = s.bm & a3 = s.cm & a4 = s.dm & a5 = s.cin;
A5: Following(s,3).dmA1 = 'not' a4 '&' ('not' a1 'xor' 'not' a2 'xor' 'not'
  a3) by A1,A4,Lm35;
  set cindm = [<*cin,dm*>,nor2];
  set A1cin = [<*A1,cin*>,nor2];
  set A2 = GFA3CarryOutput(A1,cin,dm);
A6: Following(s,3+1) = Following Following(s,3) by FACIRC_1:12;
  Following(s,3).A1cin = ('not' a1 'xor' 'not' a2 'xor' 'not' a3) '&'
  'not' a5 & Following(s,3).cindm = 'not' a5 '&' 'not' a4 by A1,A4,Lm35;
  hence Following(s,4).A2 = 'not' ((('not' a1 'xor' 'not' a2 'xor' 'not' a3)
  '&' 'not' a5) 'or' ('not' a5 '&' 'not' a4) 'or' ('not' a4 '&' ('not' a1 'xor'
  'not' a2 'xor' 'not' a3))) by A6,A5,Lm37;
A7: Following(s,3).cm = a3 & Following(s,3).dm = a4 by A1,A4,Lm35;
A8: Following(s,3).cin = a5 by A1,A4,Lm35;
A9: cin in InputVertices S by A1,Th36;
  Following(s,3).am = a1 & Following(s,3).bm = a2 by A1,A4,Lm35;
  hence thesis by A6,A2,A3,A9,A7,A8,CIRCUIT2:def 5;
end;

:: Temporal (External) Calculations after Four-steps (for q)

Lm40: for am,bm,cm,dm being non pair set for cin being set st cin <> [<*dm,
GFA3AdderOutput(am,bm,cm)*>,nor2] & not cin in InnerVertices BitGFA3Str(am,bm,
cm) for s being State of BitFTA3Circ(am,bm,cm,dm,cin) for a1,a2,a3,a4,a5 being
Element of BOOLEAN st a1 = s.am & a2 = s.bm & a3 = s.cm & a4 = s.dm & a5 = s.
cin holds Following(s,4).GFA3AdderOutput(GFA3AdderOutput(am,bm,cm),cin,dm) =
'not' ('not' a1 'xor' 'not' a2 'xor' 'not' a3 'xor' 'not' a4 'xor' 'not' a5) &
Following(s,4).am = a1 & Following(s,4).bm = a2 & Following(s,4).cm = a3 &
Following(s,4).dm = a4 & Following(s,4).cin = a5
proof
  let am,bm,cm,dm be non pair set;
  let cin be set such that
A1: cin <> [<*dm,GFA3AdderOutput(am,bm,cm)*>,nor2] & not cin in
  InnerVertices BitGFA3Str(am,bm,cm);
  set S = BitFTA3Str(am,bm,cm,dm,cin);
A2: am in InputVertices S & bm in InputVertices S by A1,Th36;
A3: cm in InputVertices S & dm in InputVertices S by A1,Th36;
  let s be State of BitFTA3Circ(am,bm,cm,dm,cin);
  let a1,a2,a3,a4,a5 be Element of BOOLEAN such that
A4: a1 = s.am & a2 = s.bm & a3 = s.cm & a4 = s.dm & a5 = s.cin;
A5: Following(s,3).cm = a3 & Following(s,3).dm = a4 by A1,A4,Lm36;
  set A1 = GFA3AdderOutput(am,bm,cm);
  set A2 = GFA3AdderOutput(A1,cin,dm);
  set A1cin = [<*A1,cin*>,xor2];
A6: Following(s,3+1) = Following Following(s,3) by FACIRC_1:12;
  Following(s,3).A1cin = 'not' ('not' a1 'xor' 'not' a2 'xor' 'not' a3)
  'xor' a5 & Following(s,3).dm = a4 by A1,A4,Lm36;
  hence Following(s,4).A2 = 'not' ('not' a1 'xor' 'not' a2 'xor' 'not' a3)
  'xor' a5 'xor' a4 by A6,Lm38
    .= 'not' (('not' a1 'xor' 'not' a2 'xor' 'not' a3) 'xor' 'not' a5 'xor'
  'not' a4) by XBOOLEAN:74
    .= 'not' ('not' a1 'xor' 'not' a2 'xor' 'not' a3 'xor' 'not' a4 'xor'
  'not' a5) by XBOOLEAN:73;
A7: Following(s,3).cin = a5 by A1,A4,Lm36;
A8: cin in InputVertices S by A1,Th36;
  Following(s,3).am = a1 & Following(s,3).bm = a2 by A1,A4,Lm36;
  hence thesis by A6,A2,A3,A8,A5,A7,CIRCUIT2:def 5;
end;

:: Main Proposition #4-1 (External Circuit Outputs after Four-steps) FTA3

theorem
  for am,bm,cm,dm being non pair set for cin being set st cin <> [<*dm,
GFA3AdderOutput(am,bm,cm)*>,nor2] & not cin in InnerVertices BitGFA3Str(am,bm,
cm) for s being State of BitFTA3Circ(am,bm,cm,dm,cin) for a1,a2,a3,a4,a5 being
  Element of BOOLEAN st a1 = s.am & a2 = s.bm & a3 = s.cm & a4 = s.dm & a5 = s.
cin holds Following(s,4).BitFTA3AdderOutputP(am,bm,cm,dm,cin) = 'not' ((('not'
  a1 'xor' 'not' a2 'xor' 'not' a3) '&' 'not' a5) 'or' ('not' a5 '&' 'not' a4)
'or' ('not' a4 '&' ('not' a1 'xor' 'not' a2 'xor' 'not' a3))) & Following(s,4).
  BitFTA3AdderOutputQ(am,bm,cm,dm,cin) = 'not' ('not' a1 'xor' 'not' a2 'xor'
  'not' a3 'xor' 'not' a4 'xor' 'not' a5) by Lm39,Lm40;

:: Main Proposition #4-2 (The Whole Circuit Stability after Four-steps) FTA3

theorem
  for am,bm,cm,dm being non pair set for cin being set st cin <> [<*dm,
GFA3AdderOutput(am,bm,cm)*>,nor2] for s being State of BitFTA3Circ(am,bm,cm,dm
  ,cin) holds Following(s,4) is stable
proof
  set n1=2, n2=2;
  let am,bm,cm,dm be non pair set;
  let cin be set;
  set C = BitFTA3Circ(am,bm,cm,dm,cin);
  set S1 = BitGFA3Str(am,bm,cm);
  set C1 = BitGFA3Circ(am,bm,cm);
  set A1 = GFA3AdderOutput(am,bm,cm);
  set S2 = BitGFA3Str(A1,cin,dm);
  set C2 = BitGFA3Circ(A1,cin,dm);
  set cindm = [<*cin,dm*>,nor2];
  set dmA1 = [<*dm,A1*>, nor2];
  assume
A1: cin <> dmA1;
  let s be State of C;
  C1 tolerates C2 by CIRCCOMB:60;
  then
A2: the Sorts of C1 tolerates the Sorts of C2 by CIRCCOMB:def 3;
  then reconsider s1 = s|the carrier of S1 as State of C1 by CIRCCOMB:26;
  reconsider s2 = Following(s,n1)|the carrier of S2 as State of C2 by A2,
CIRCCOMB:26;
A3: InputVertices S1 misses InnerVertices S2 & Following(s1,n1) is stable by
Lm32,GFACIRC1:136;
  A1<>cindm by Lm31;
  then Following(s2,n2) is stable by A1,GFACIRC1:136;
  then Following(s,n1+n2) is stable by A3,CIRCCMB2:19,CIRCCOMB:60;
  hence thesis;
end;

Messung
CHZG
8110010093

¤ Dauer der Verarbeitung: 0.194 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

letze Version des Elbe Quellennavigators


letze Version des Demonstrationsprogramms Goedel
letze Version des Bille Abgleichprogramms
Version

Jenseits des Üblichen ....

Besucher

Besucher

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