deffunc H1( set ) -> Element of BOOLEAN = IFEQ $1,1,TRUE ,FALSE ;
consider z being FinSequence of BOOLEAN such that
A1:
len z = n
and
A2:
for j being Nat st j in dom z holds
z . j = H1(j)
from FINSEQ_2:sch 1();
A3:
dom z = Seg n
by A1, FINSEQ_1:def 3;
z is Element of n -tuples_on BOOLEAN
by A1, FINSEQ_2:110;
then reconsider z = z as Tuple of n, BOOLEAN by FINSEQ_2:151;
take
z
; for i being Nat st i in Seg n holds
z /. i = IFEQ i,1,TRUE ,FALSE
let i be Nat; ( i in Seg n implies z /. i = IFEQ i,1,TRUE ,FALSE )
assume A4:
i in Seg n
; z /. i = IFEQ i,1,TRUE ,FALSE
A5:
i in dom z
by A1, A4, FINSEQ_1:def 3;
thus z /. i =
z . i
by A5, PARTFUN1:def 8
.=
IFEQ i,1,TRUE ,FALSE
by A2, A3, A4
; verum