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
; 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
; ( 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 Th13;
hence
InputVertices S = {F1(),F2(),F3(),F4()}
by CIRCCOMB:42; 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; (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 Th12;
A2:
dom <*F1(),F2(),F3(),F4()*> = Seg 4
by FINSEQ_1:89;
then A3:
1 in dom <*F1(),F2(),F3(),F4()*>
by FINSEQ_1:1;
A4:
3 in dom <*F1(),F2(),F3(),F4()*>
by A2, FINSEQ_1:1;
A5:
2 in dom <*F1(),F2(),F3(),F4()*>
by A2, FINSEQ_1:1;
A6:
4 in dom <*F1(),F2(),F3(),F4()*>
by A2, FINSEQ_1:1;
Result s = Following s
by Th20;
hence (Result s) . (Output S) =
(Following s) . [<*F1(),F2(),F3(),F4()*>,g]
by Th15
.=
g . (s * <*F1(),F2(),F3(),F4()*>)
by CIRCCOMB:56
.=
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 A3, FUNCT_1:13
.=
F6((s . F1()),(sx . 2),(sx . 3),(sx . 4))
.=
F6((s . F1()),(s . (<*F1(),F2(),F3(),F4()*> . 2)),(sx . 3),(sx . 4))
by A5, FUNCT_1:13
.=
F6((s . F1()),(s . F2()),(sx . 3),(sx . 4))
.=
F6((s . F1()),(s . F2()),(s . (<*F1(),F2(),F3(),F4()*> . 3)),(sx . 4))
by A4, FUNCT_1:13
.=
F6((s . F1()),(s . F2()),(s . F3()),(sx . 4))
.=
F6((s . F1()),(s . F2()),(s . F3()),(s . (<*F1(),F2(),F3(),F4()*> . 4)))
by A6, FUNCT_1:13
.=
F6((s . F1()),(s . F2()),(s . F3()),(s . F4()))
;
verum