let f, g be nonpair-yielding FinSequence; :: thesis: for n being Nat holds
( InputVertices ((n + 1) -BitSubtracterStr (f,g)) = (InputVertices (n -BitSubtracterStr (f,g))) \/ ((InputVertices (BitSubtracterWithBorrowStr ((f . (n + 1)),(g . (n + 1)),(n -BitBorrowOutput (f,g))))) \ {(n -BitBorrowOutput (f,g))}) & InnerVertices (n -BitSubtracterStr (f,g)) is Relation & InputVertices (n -BitSubtracterStr (f,g)) is without_pairs )

deffunc H1( Nat) -> non empty non void strict unsplit gate`1=arity gate`2isBoolean ManySortedSign = $1 -BitSubtracterStr (f,g);
deffunc H2( set , Nat) -> ManySortedSign = BitSubtracterWithBorrowStr ((f . ($2 + 1)),(g . ($2 + 1)),$1);
deffunc H3( Nat) -> Element of InnerVertices ($1 -BitSubtracterStr (f,g)) = $1 -BitBorrowOutput (f,g);
consider h being ManySortedSet of NAT such that
A1: for n being Element of NAT holds h . n = H3(n) from PBOOLE:sch 5();
A2: for n being Nat holds h . n = H3(n)
proof
let n be Nat; :: thesis: h . n = H3(n)
n in NAT by ORDINAL1:def 12;
hence h . n = H3(n) by A1; :: thesis: verum
end;
deffunc H4( Nat) -> set = h . $1;
deffunc H5( set , Nat) -> Element of InnerVertices (BorrowStr ((f . ($2 + 1)),(g . ($2 + 1)),$1)) = BorrowOutput ((f . ($2 + 1)),(g . ($2 + 1)),$1);
set k = (0 -tuples_on BOOLEAN) --> TRUE;
A3: 0 -BitSubtracterStr (f,g) = 1GateCircStr (<*>,((0 -tuples_on BOOLEAN) --> TRUE)) by Th2;
then A4: InnerVertices H1( 0 ) is Relation by FACIRC_1:38;
A5: InputVertices H1( 0 ) is without_pairs by A3, FACIRC_1:39;
H4( 0 ) = 0 -BitBorrowOutput (f,g) by A2;
then A6: h . 0 in InnerVertices H1( 0 ) ;
A7: for n being Nat
for x being set holds InnerVertices H2(x,n) is Relation by FSCIRC_1:22;
A8: now :: thesis: for n being Element of NAT
for x being set st x = H4(n) holds
InputVertices H2(x,n) = {(f . (n + 1)),(g . (n + 1)),x}
let n be Element of NAT ; :: thesis: for x being set st x = H4(n) holds
InputVertices H2(x,n) = {(f . (n + 1)),(g . (n + 1)),x}

let x be set ; :: thesis: ( x = H4(n) implies InputVertices H2(x,n) = {(f . (n + 1)),(g . (n + 1)),x} )
assume A9: x = H4(n) ; :: thesis: InputVertices H2(x,n) = {(f . (n + 1)),(g . (n + 1)),x}
A10: H4(n) = n -BitBorrowOutput (f,g) by A2;
then A11: x <> [<*(f . (n + 1)),(g . (n + 1))*>,and2a] by A9, Th19;
x <> [<*(f . (n + 1)),(g . (n + 1))*>,'xor'] by A9, A10, Th19;
hence InputVertices H2(x,n) = {(f . (n + 1)),(g . (n + 1)),x} by A11, Th16; :: thesis: verum
end;
A12: for n being Nat
for x being set st x = h . n holds
(InputVertices H2(x,n)) \ {x} is without_pairs
proof
let n be Nat; :: thesis: for x being set st x = h . n holds
(InputVertices H2(x,n)) \ {x} is without_pairs

let x be set ; :: thesis: ( x = h . n implies (InputVertices H2(x,n)) \ {x} is without_pairs )
assume A13: x = H4(n) ; :: thesis: (InputVertices H2(x,n)) \ {x} is without_pairs
n in NAT by ORDINAL1:def 12;
then A14: InputVertices H2(x,n) = {(f . (n + 1)),(g . (n + 1)),x} by A8, A13;
thus (InputVertices H2(x,n)) \ {x} is without_pairs :: thesis: verum
proof
let a be pair object ; :: according to FACIRC_1:def 2 :: thesis: not a in (InputVertices H2(x,n)) \ {x}
assume A15: a in (InputVertices H2(x,n)) \ {x} ; :: thesis: contradiction
then a in InputVertices H2(x,n) by XBOOLE_0:def 5;
then A16: ( a = f . (n + 1) or a = g . (n + 1) or a = x ) by A14, ENUMSET1:def 1;
not a in {x} by A15, XBOOLE_0:def 5;
hence contradiction by A16, TARSKI:def 1; :: thesis: verum
end;
end;
A17: now :: thesis: for n being Nat
for S being non empty ManySortedSign
for x being set st S = H1(n) & x = h . n holds
( H1(n + 1) = S +* H2(x,n) & h . (n + 1) = H5(x,n) & x in InputVertices H2(x,n) & H5(x,n) in InnerVertices H2(x,n) )
let n be Nat; :: thesis: for S being non empty ManySortedSign
for x being set st S = H1(n) & x = h . n holds
( H1(n + 1) = S +* H2(x,n) & h . (n + 1) = H5(x,n) & x in InputVertices H2(x,n) & H5(x,n) in InnerVertices H2(x,n) )

let S be non empty ManySortedSign ; :: thesis: for x being set st S = H1(n) & x = h . n holds
( H1(n + 1) = S +* H2(x,n) & h . (n + 1) = H5(x,n) & x in InputVertices H2(x,n) & H5(x,n) in InnerVertices H2(x,n) )

let x be set ; :: thesis: ( S = H1(n) & x = h . n implies ( H1(n + 1) = S +* H2(x,n) & h . (n + 1) = H5(x,n) & x in InputVertices H2(x,n) & H5(x,n) in InnerVertices H2(x,n) ) )
A18: n in NAT by ORDINAL1:def 12;
assume that
A19: S = H1(n) and
A20: x = h . n ; :: thesis: ( H1(n + 1) = S +* H2(x,n) & h . (n + 1) = H5(x,n) & x in InputVertices H2(x,n) & H5(x,n) in InnerVertices H2(x,n) )
A21: x = n -BitBorrowOutput (f,g) by A2, A20;
A22: H4(n + 1) = (n + 1) -BitBorrowOutput (f,g) by A2;
thus H1(n + 1) = S +* H2(x,n) by A19, A21, Th7; :: thesis: ( h . (n + 1) = H5(x,n) & x in InputVertices H2(x,n) & H5(x,n) in InnerVertices H2(x,n) )
thus h . (n + 1) = H5(x,n) by A21, A22, Th7; :: thesis: ( x in InputVertices H2(x,n) & H5(x,n) in InnerVertices H2(x,n) )
InputVertices H2(x,n) = {(f . (n + 1)),(g . (n + 1)),x} by A8, A18, A20;
hence x in InputVertices H2(x,n) by ENUMSET1:def 1; :: thesis: H5(x,n) in InnerVertices H2(x,n)
A23: InnerVertices H2(x,n) = ({[<*(f . (n + 1)),(g . (n + 1))*>,'xor'],(2GatesCircOutput ((f . (n + 1)),(g . (n + 1)),x,'xor'))} \/ {[<*(f . (n + 1)),(g . (n + 1))*>,and2a],[<*(g . (n + 1)),x*>,and2],[<*(f . (n + 1)),x*>,and2a]}) \/ {(BorrowOutput ((f . (n + 1)),(g . (n + 1)),x))} by Th17;
H5(x,n) in {H5(x,n)} by TARSKI:def 1;
hence H5(x,n) in InnerVertices H2(x,n) by A23, XBOOLE_0:def 3; :: thesis: verum
end;
A24: for n being Nat holds
( InputVertices H1(n + 1) = (InputVertices H1(n)) \/ ((InputVertices H2(h . n,n)) \ {(h . n)}) & InnerVertices H1(n) is Relation & InputVertices H1(n) is without_pairs ) from CIRCCMB2:sch 11(A4, A5, A6, A7, A12, A17);
let n be Nat; :: thesis: ( InputVertices ((n + 1) -BitSubtracterStr (f,g)) = (InputVertices (n -BitSubtracterStr (f,g))) \/ ((InputVertices (BitSubtracterWithBorrowStr ((f . (n + 1)),(g . (n + 1)),(n -BitBorrowOutput (f,g))))) \ {(n -BitBorrowOutput (f,g))}) & InnerVertices (n -BitSubtracterStr (f,g)) is Relation & InputVertices (n -BitSubtracterStr (f,g)) is without_pairs )
h . n = n -BitBorrowOutput (f,g) by A2;
hence ( InputVertices ((n + 1) -BitSubtracterStr (f,g)) = (InputVertices (n -BitSubtracterStr (f,g))) \/ ((InputVertices (BitSubtracterWithBorrowStr ((f . (n + 1)),(g . (n + 1)),(n -BitBorrowOutput (f,g))))) \ {(n -BitBorrowOutput (f,g))}) & InnerVertices (n -BitSubtracterStr (f,g)) is Relation & InputVertices (n -BitSubtracterStr (f,g)) is without_pairs ) by A24; :: thesis: verum