let l be Element of NAT ; :: thesis: for X being Subset of CQC-WFF
for f being FinSequence of [:CQC-WFF ,Proof_Step_Kinds :] st f is_a_proof_wrt X & 1 <= l & l <= len f holds
(f . l) `1 in Cn X

let X be Subset of CQC-WFF ; :: thesis: for f being FinSequence of [:CQC-WFF ,Proof_Step_Kinds :] st f is_a_proof_wrt X & 1 <= l & l <= len f holds
(f . l) `1 in Cn X

let f be FinSequence of [:CQC-WFF ,Proof_Step_Kinds :]; :: thesis: ( f is_a_proof_wrt X & 1 <= l & l <= len f implies (f . l) `1 in Cn X )
assume that
A1: f is_a_proof_wrt X and
A2: ( 1 <= l & l <= len f ) ; :: thesis: (f . l) `1 in Cn X
for n being Element of NAT st 1 <= n & n <= len f holds
(f . n) `1 in Cn X
proof
defpred S1[ Nat] means ( 1 <= $1 & $1 <= len f implies (f . $1) `1 in Cn X );
A4: for n being Nat st ( for k being Nat st k < n holds
S1[k] ) holds
S1[n]
proof
let n be Nat; :: thesis: ( ( for k being Nat st k < n holds
S1[k] ) implies S1[n] )

assume A5: for k being Nat st k < n holds
S1[k] ; :: thesis: S1[n]
A6: n in NAT by ORDINAL1:def 13;
assume that
A7: 1 <= n and
A8: n <= len f ; :: thesis: (f . n) `1 in Cn X
A9: f,n is_a_correct_step_wrt X by A1, A6, A7, A8, Def5;
now
per cases ( (f . n) `2 = 0 or (f . n) `2 = 1 or (f . n) `2 = 2 or (f . n) `2 = 3 or (f . n) `2 = 4 or (f . n) `2 = 5 or (f . n) `2 = 6 or (f . n) `2 = 7 or (f . n) `2 = 8 or (f . n) `2 = 9 ) by A7, A8, Th45;
suppose (f . n) `2 = 0 ; :: thesis: (f . n) `1 in Cn X
then A12: (f . n) `1 in X by A9, Def4;
X c= Cn X by Th38;
hence (f . n) `1 in Cn X by A12; :: thesis: verum
end;
suppose (f . n) `2 = 1 ; :: thesis: (f . n) `1 in Cn X
then (f . n) `1 = VERUM by A9, Def4;
hence (f . n) `1 in Cn X by Th27; :: thesis: verum
end;
suppose (f . n) `2 = 2 ; :: thesis: (f . n) `1 in Cn X
then ex p being Element of CQC-WFF st (f . n) `1 = (('not' p) => p) => p by A9, Def4;
hence (f . n) `1 in Cn X by Th28; :: thesis: verum
end;
suppose (f . n) `2 = 3 ; :: thesis: (f . n) `1 in Cn X
then ex p, q being Element of CQC-WFF st (f . n) `1 = p => (('not' p) => q) by A9, Def4;
hence (f . n) `1 in Cn X by Th29; :: thesis: verum
end;
suppose (f . n) `2 = 4 ; :: thesis: (f . n) `1 in Cn X
then ex p, q, r being Element of CQC-WFF st (f . n) `1 = (p => q) => (('not' (q '&' r)) => ('not' (p '&' r))) by A9, Def4;
hence (f . n) `1 in Cn X by Th30; :: thesis: verum
end;
suppose (f . n) `2 = 5 ; :: thesis: (f . n) `1 in Cn X
then ex p, q being Element of CQC-WFF st (f . n) `1 = (p '&' q) => (q '&' p) by A9, Def4;
hence (f . n) `1 in Cn X by Th31; :: thesis: verum
end;
suppose (f . n) `2 = 6 ; :: thesis: (f . n) `1 in Cn X
then ex p being Element of CQC-WFF ex x being bound_QC-variable st (f . n) `1 = (All x,p) => p by A9, Def4;
hence (f . n) `1 in Cn X by Th33; :: thesis: verum
end;
suppose (f . n) `2 = 7 ; :: thesis: (f . n) `1 in Cn X
then consider i, j being Element of NAT , p, q being Element of CQC-WFF such that
A27: 1 <= i and
A28: i < n and
A29: 1 <= j and
A30: j < i and
A31: ( p = (f . j) `1 & q = (f . n) `1 & (f . i) `1 = p => q ) by A9, Def4;
A32: j < n by A28, A30, XXREAL_0:2;
A33: i <= len f by A8, A28, XXREAL_0:2;
then j <= len f by A30, XXREAL_0:2;
then A35: (f . j) `1 in Cn X by A5, A29, A32;
(f . i) `1 in Cn X by A5, A27, A28, A33;
hence (f . n) `1 in Cn X by A31, A35, Th32; :: thesis: verum
end;
suppose (f . n) `2 = 8 ; :: thesis: (f . n) `1 in Cn X
then consider i being Element of NAT , p, q being Element of CQC-WFF , x being bound_QC-variable such that
A38: 1 <= i and
A39: i < n and
A40: ( (f . i) `1 = p => q & not x in still_not-bound_in p & (f . n) `1 = p => (All x,q) ) by A9, Def4;
i <= len f by A8, A39, XXREAL_0:2;
hence (f . n) `1 in Cn X by A5, A38, A39, A40, Th34; :: thesis: verum
end;
suppose (f . n) `2 = 9 ; :: thesis: (f . n) `1 in Cn X
then consider i being Element of NAT , x, y being bound_QC-variable, s being QC-formula such that
A43: 1 <= i and
A44: i < n and
A45: ( s . x in CQC-WFF & s . y in CQC-WFF & not x in still_not-bound_in s & s . x = (f . i) `1 & (f . n) `1 = s . y ) by A9, Def4;
i <= len f by A8, A44, XXREAL_0:2;
hence (f . n) `1 in Cn X by A5, A43, A44, A45, Th35; :: thesis: verum
end;
end;
end;
hence (f . n) `1 in Cn X ; :: thesis: verum
end;
for n being Nat holds S1[n] from NAT_1:sch 4(A4);
hence for n being Element of NAT st 1 <= n & n <= len f holds
(f . n) `1 in Cn X ; :: thesis: verum
end;
hence (f . l) `1 in Cn X by A2; :: thesis: verum