deffunc H1( Element of 4 -tuples_on F5()) -> Element of F5() = F6(($1 . 1),($1 . 2),($1 . 3),($1 . 4));
consider g being Function of (4 -tuples_on F5()),F5() such that
A1:
for a being Element of 4 -tuples_on F5() holds g . a = H1(a)
from FUNCT_2:sch 4();
reconsider S = 1GateCircStr <*F1(),F2(),F3(),F4()*>,g as one-gate ManySortedSign ;
take
S
; :: thesis: ex A being one-gate Circuit of S st
( InputVertices S = {F1(),F2(),F3(),F4()} & ( for s being State of A holds (Result s) . (Output S) = F6((s . F1()),(s . F2()),(s . F3()),(s . F4())) ) )
reconsider A = 1GateCircuit <*F1(),F2(),F3(),F4()*>,g as one-gate Circuit of S ;
take
A
; :: thesis: ( InputVertices S = {F1(),F2(),F3(),F4()} & ( for s being State of A holds (Result s) . (Output S) = F6((s . F1()),(s . F2()),(s . F3()),(s . F4())) ) )
rng <*F1(),F2(),F3(),F4()*> = {F1(),F2(),F3(),F4()}
by Th14;
hence
InputVertices S = {F1(),F2(),F3(),F4()}
by CIRCCOMB:49; :: thesis: for s being State of A holds (Result s) . (Output S) = F6((s . F1()),(s . F2()),(s . F3()),(s . F4()))
let s be State of A; :: thesis: (Result s) . (Output S) = F6((s . F1()),(s . F2()),(s . F3()),(s . F4()))
reconsider sx = s * <*F1(),F2(),F3(),F4()*> as Element of 4 -tuples_on F5() by Th13;
dom <*F1(),F2(),F3(),F4()*> = Seg 4
by FINSEQ_4:92;
then A2:
( 1 in dom <*F1(),F2(),F3(),F4()*> & 2 in dom <*F1(),F2(),F3(),F4()*> & 3 in dom <*F1(),F2(),F3(),F4()*> & 4 in dom <*F1(),F2(),F3(),F4()*> )
by FINSEQ_1:3;
Result s = Following s
by Th21;
hence (Result s) . (Output S) =
(Following s) . [<*F1(),F2(),F3(),F4()*>,g]
by Th16
.=
g . (s * <*F1(),F2(),F3(),F4()*>)
by CIRCCOMB:64
.=
F6((sx . 1),(sx . 2),(sx . 3),(sx . 4))
by A1
.=
F6((s . (<*F1(),F2(),F3(),F4()*> . 1)),(sx . 2),(sx . 3),(sx . 4))
by A2, FUNCT_1:23
.=
F6((s . F1()),(sx . 2),(sx . 3),(sx . 4))
by FINSEQ_4:91
.=
F6((s . F1()),(s . (<*F1(),F2(),F3(),F4()*> . 2)),(sx . 3),(sx . 4))
by A2, FUNCT_1:23
.=
F6((s . F1()),(s . F2()),(sx . 3),(sx . 4))
by FINSEQ_4:91
.=
F6((s . F1()),(s . F2()),(s . (<*F1(),F2(),F3(),F4()*> . 3)),(sx . 4))
by A2, FUNCT_1:23
.=
F6((s . F1()),(s . F2()),(s . F3()),(sx . 4))
by FINSEQ_4:91
.=
F6((s . F1()),(s . F2()),(s . F3()),(s . (<*F1(),F2(),F3(),F4()*> . 4)))
by A2, FUNCT_1:23
.=
F6((s . F1()),(s . F2()),(s . F3()),(s . F4()))
by FINSEQ_4:91
;
:: thesis: verum