deffunc H1( set , Element of QC-WFF ) -> Element of Funcs (F1(),F2()) = F7((bound_in $2),$1,(the_scope_of $2));
deffunc H2( set , set , Element of QC-WFF ) -> Element of Funcs (F1(),F2()) = F6($1,$2,(the_left_argument_of $3),(the_right_argument_of $3));
deffunc H3( set , Element of QC-WFF ) -> Element of Funcs (F1(),F2()) = F5($1,(the_argument_of $2));
deffunc H4( Element of QC-WFF ) -> Element of Funcs (F1(),F2()) = F4((the_arity_of (the_pred_symbol_of $1)),(the_pred_symbol_of $1),(the_arguments_of $1));
consider F being Function of QC-WFF,(Funcs (F1(),F2())) such that
A1:
( F . VERUM = F3() & ( for p being Element of QC-WFF holds
( ( p is atomic implies F . p = H4(p) ) & ( p is negative implies F . p = H3(F . (the_argument_of p),p) ) & ( p is conjunctive implies F . p = H2(F . (the_left_argument_of p),F . (the_right_argument_of p),p) ) & ( p is universal implies F . p = H1(F . (the_scope_of p),p) ) ) ) )
from CQC_SIM1:sch 1();
reconsider G = F | CQC-WFF as Function of CQC-WFF,(Funcs (F1(),F2())) by FUNCT_2:38;
take
G
; ( G . VERUM = F3() & ( for k being Element of NAT
for l being CQC-variable_list of k
for P being QC-pred_symbol of k holds G . (P ! l) = F4(k,P,l) ) & ( for r, s being Element of CQC-WFF
for x being Element of bound_QC-variables holds
( G . ('not' r) = F5((G . r),r) & G . (r '&' s) = F6((G . r),(G . s),r,s) & G . (All (x,r)) = F7(x,(G . r),r) ) ) )
thus
G . VERUM = F3()
by A1, FUNCT_1:72; ( ( for k being Element of NAT
for l being CQC-variable_list of k
for P being QC-pred_symbol of k holds G . (P ! l) = F4(k,P,l) ) & ( for r, s being Element of CQC-WFF
for x being Element of bound_QC-variables holds
( G . ('not' r) = F5((G . r),r) & G . (r '&' s) = F6((G . r),(G . s),r,s) & G . (All (x,r)) = F7(x,(G . r),r) ) ) )
thus
for k being Element of NAT
for l being CQC-variable_list of k
for P being QC-pred_symbol of k holds G . (P ! l) = F4(k,P,l)
for r, s being Element of CQC-WFF
for x being Element of bound_QC-variables holds
( G . ('not' r) = F5((G . r),r) & G . (r '&' s) = F6((G . r),(G . s),r,s) & G . (All (x,r)) = F7(x,(G . r),r) )proof
let k be
Element of
NAT ;
for l being CQC-variable_list of k
for P being QC-pred_symbol of k holds G . (P ! l) = F4(k,P,l)let l be
CQC-variable_list of
k;
for P being QC-pred_symbol of k holds G . (P ! l) = F4(k,P,l)let P be
QC-pred_symbol of
k;
G . (P ! l) = F4(k,P,l)
A2:
the_arity_of P = k
by QC_LANG1:35;
A3:
P ! l is
atomic
by QC_LANG1:def 17;
then A4:
the_arguments_of (P ! l) = l
by QC_LANG1:def 22;
A5:
the_pred_symbol_of (P ! l) = P
by A3, QC_LANG1:def 21;
thus G . (P ! l) =
F . (P ! l)
by FUNCT_1:72
.=
F4(
k,
P,
l)
by A1, A3, A4, A5, A2
;
verum
end;
let r, s be Element of CQC-WFF ; for x being Element of bound_QC-variables holds
( G . ('not' r) = F5((G . r),r) & G . (r '&' s) = F6((G . r),(G . s),r,s) & G . (All (x,r)) = F7(x,(G . r),r) )
let x be Element of bound_QC-variables ; ( G . ('not' r) = F5((G . r),r) & G . (r '&' s) = F6((G . r),(G . s),r,s) & G . (All (x,r)) = F7(x,(G . r),r) )
set r9 = G . r;
set s9 = G . s;
A6:
G . r = F . r
by FUNCT_1:72;
A7:
'not' r is negative
by QC_LANG1:def 18;
then A8:
the_argument_of ('not' r) = r
by QC_LANG1:def 23;
thus G . ('not' r) =
F . ('not' r)
by FUNCT_1:72
.=
F5((G . r),r)
by A1, A6, A7, A8
; ( G . (r '&' s) = F6((G . r),(G . s),r,s) & G . (All (x,r)) = F7(x,(G . r),r) )
A9:
G . s = F . s
by FUNCT_1:72;
A10:
r '&' s is conjunctive
by QC_LANG1:def 19;
then A11:
the_left_argument_of (r '&' s) = r
by QC_LANG1:def 24;
A12:
the_right_argument_of (r '&' s) = s
by A10, QC_LANG1:def 25;
thus G . (r '&' s) =
F . (r '&' s)
by FUNCT_1:72
.=
F6((G . r),(G . s),r,s)
by A1, A6, A9, A10, A11, A12
; G . (All (x,r)) = F7(x,(G . r),r)
A13:
All (x,r) is universal
by QC_LANG1:def 20;
then A14:
bound_in (All (x,r)) = x
by QC_LANG1:def 26;
A15:
the_scope_of (All (x,r)) = r
by A13, QC_LANG1:def 27;
thus G . (All (x,r)) =
F . (All (x,r))
by FUNCT_1:72
.=
F7(x,(G . r),r)
by A1, A6, A13, A14, A15
; verum