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:92;
then reconsider z = z as Tuple of n, BOOLEAN ;
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)
then
i in dom z
by A1, FINSEQ_1:def 3;
hence z /. i =
z . i
by PARTFUN1:def 6
.=
IFEQ (i,1,TRUE,FALSE)
by A2, A3, A4
;
verum