let V be LTLModelStr ; :: thesis: for Kai being Function of atomic_LTL ,the BasicAssign of V
for n being Nat ex f being Function of LTL_WFF ,the Assignations of V st f is-PreEvaluation-for n,Kai

let Kai be Function of atomic_LTL ,the BasicAssign of V; :: thesis: for n being Nat ex f being Function of LTL_WFF ,the Assignations of V st f is-PreEvaluation-for n,Kai
defpred S1[ Nat] means ex f being Function of LTL_WFF ,the Assignations of V st f is-PreEvaluation-for $1,Kai;
A1: for k being Nat st S1[k] holds
S1[k + 1]
proof
let k be Nat; :: thesis: ( S1[k] implies S1[k + 1] )
assume S1[k] ; :: thesis: S1[k + 1]
then consider h being Function of LTL_WFF ,the Assignations of V such that
A2: h is-PreEvaluation-for k,Kai ;
S1[k + 1]
proof
deffunc H1( set ) -> set = GraftEval V,Kai,h,h,k,(CastLTL $1);
A3: for H being set st H in LTL_WFF holds
H1(H) in the Assignations of V
proof
let H be set ; :: thesis: ( H in LTL_WFF implies H1(H) in the Assignations of V )
assume A4: H in LTL_WFF ; :: thesis: H1(H) in the Assignations of V
reconsider H = H as LTL-formula by A4, Th1;
A5: H1(H) = GraftEval V,Kai,h,h,k,H by A4, Def25;
per cases ( len H > k + 1 or ( len H = k + 1 & H is atomic ) or ( len H = k + 1 & H is negative ) or ( len H = k + 1 & H is conjunctive ) or ( len H = k + 1 & H is disjunctive ) or ( len H = k + 1 & H is next ) or ( len H = k + 1 & H is Until ) or ( len H = k + 1 & H is Release ) or len H < k + 1 ) by Th2, XXREAL_0:1;
suppose len H > k + 1 ; :: thesis: H1(H) in the Assignations of V
then GraftEval V,Kai,h,h,k,H = h . H by Def29;
hence H1(H) in the Assignations of V by A4, A5, FUNCT_2:7; :: thesis: verum
end;
suppose A7: ( len H = k + 1 & H is negative ) ; :: thesis: H1(H) in the Assignations of V
end;
suppose A13: ( len H = k + 1 & H is next ) ; :: thesis: H1(H) in the Assignations of V
end;
suppose len H < k + 1 ; :: thesis: H1(H) in the Assignations of V
then GraftEval V,Kai,h,h,k,H = h . H by Def29;
hence H1(H) in the Assignations of V by A4, A5, FUNCT_2:7; :: thesis: verum
end;
end;
end;
consider f being Function of LTL_WFF ,the Assignations of V such that
A19: for H being set st H in LTL_WFF holds
f . H = H1(H) from FUNCT_2:sch 2(A3);
take f ; :: thesis: f is-PreEvaluation-for k + 1,Kai
A20: for H being LTL-formula st len H < k + 1 holds
f . H = h . H
proof
let H be LTL-formula; :: thesis: ( len H < k + 1 implies f . H = h . H )
assume A21: len H < k + 1 ; :: thesis: f . H = h . H
A22: H in LTL_WFF by Th1;
then f . H = H1(H) by A19
.= GraftEval V,Kai,h,h,k,H by A22, Def25 ;
hence f . H = h . H by A21, Def29; :: thesis: verum
end;
for H being LTL-formula st len H <= k + 1 holds
( ( H is atomic implies f . H = Kai . H ) & ( H is negative implies f . H = the Not of V . (f . (the_argument_of H)) ) & ( H is conjunctive implies f . H = the And of V . (f . (the_left_argument_of H)),(f . (the_right_argument_of H)) ) & ( H is disjunctive implies f . H = the Or of V . (f . (the_left_argument_of H)),(f . (the_right_argument_of H)) ) & ( H is next implies f . H = the NEXT of V . (f . (the_argument_of H)) ) & ( H is Until implies f . H = the UNTIL of V . (f . (the_left_argument_of H)),(f . (the_right_argument_of H)) ) & ( H is Release implies f . H = the RELEASE of V . (f . (the_left_argument_of H)),(f . (the_right_argument_of H)) ) )
proof
let H be LTL-formula; :: thesis: ( len H <= k + 1 implies ( ( H is atomic implies f . H = Kai . H ) & ( H is negative implies f . H = the Not of V . (f . (the_argument_of H)) ) & ( H is conjunctive implies f . H = the And of V . (f . (the_left_argument_of H)),(f . (the_right_argument_of H)) ) & ( H is disjunctive implies f . H = the Or of V . (f . (the_left_argument_of H)),(f . (the_right_argument_of H)) ) & ( H is next implies f . H = the NEXT of V . (f . (the_argument_of H)) ) & ( H is Until implies f . H = the UNTIL of V . (f . (the_left_argument_of H)),(f . (the_right_argument_of H)) ) & ( H is Release implies f . H = the RELEASE of V . (f . (the_left_argument_of H)),(f . (the_right_argument_of H)) ) ) )
assume A23: len H <= k + 1 ; :: thesis: ( ( H is atomic implies f . H = Kai . H ) & ( H is negative implies f . H = the Not of V . (f . (the_argument_of H)) ) & ( H is conjunctive implies f . H = the And of V . (f . (the_left_argument_of H)),(f . (the_right_argument_of H)) ) & ( H is disjunctive implies f . H = the Or of V . (f . (the_left_argument_of H)),(f . (the_right_argument_of H)) ) & ( H is next implies f . H = the NEXT of V . (f . (the_argument_of H)) ) & ( H is Until implies f . H = the UNTIL of V . (f . (the_left_argument_of H)),(f . (the_right_argument_of H)) ) & ( H is Release implies f . H = the RELEASE of V . (f . (the_left_argument_of H)),(f . (the_right_argument_of H)) ) )
A24: H in LTL_WFF by Th1;
then A25: f . H = H1(H) by A19
.= GraftEval V,Kai,h,h,k,H by A24, Def25 ;
A26: ( H is negative implies f . H = the Not of V . (f . (the_argument_of H)) )
proof
assume A27: H is negative ; :: thesis: f . H = the Not of V . (f . (the_argument_of H))
then len (the_argument_of H) < len H by Th10;
then len (the_argument_of H) <= k by A23, Lm1;
then A28: len (the_argument_of H) < k + 1 by NAT_1:13;
per cases ( len H <= k or len H = k + 1 ) by A23, NAT_1:8;
suppose A29: len H <= k ; :: thesis: f . H = the Not of V . (f . (the_argument_of H))
then len H < k + 1 by NAT_1:13;
then f . H = h . H by A20
.= the Not of V . (h . (the_argument_of H)) by A2, A27, A29, Def28 ;
hence f . H = the Not of V . (f . (the_argument_of H)) by A20, A28; :: thesis: verum
end;
suppose len H = k + 1 ; :: thesis: f . H = the Not of V . (f . (the_argument_of H))
then GraftEval V,Kai,h,h,k,H = the Not of V . (h . (the_argument_of H)) by A27, Def29
.= the Not of V . (f . (the_argument_of H)) by A20, A28 ;
hence f . H = the Not of V . (f . (the_argument_of H)) by A25; :: thesis: verum
end;
end;
end;
A30: ( H is Release implies f . H = the RELEASE of V . (f . (the_left_argument_of H)),(f . (the_right_argument_of H)) )
proof end;
A35: ( H is Until implies f . H = the UNTIL of V . (f . (the_left_argument_of H)),(f . (the_right_argument_of H)) )
proof end;
A40: ( H is disjunctive implies f . H = the Or of V . (f . (the_left_argument_of H)),(f . (the_right_argument_of H)) )
proof end;
A45: ( H is conjunctive implies f . H = the And of V . (f . (the_left_argument_of H)),(f . (the_right_argument_of H)) )
proof end;
A50: ( H is next implies f . H = the NEXT of V . (f . (the_argument_of H)) )
proof
assume A51: H is next ; :: thesis: f . H = the NEXT of V . (f . (the_argument_of H))
then len (the_argument_of H) < len H by Th10;
then len (the_argument_of H) <= k by A23, Lm1;
then A52: len (the_argument_of H) < k + 1 by NAT_1:13;
per cases ( len H <= k or len H = k + 1 ) by A23, NAT_1:8;
suppose A53: len H <= k ; :: thesis: f . H = the NEXT of V . (f . (the_argument_of H))
then len H < k + 1 by NAT_1:13;
then f . H = h . H by A20
.= the NEXT of V . (h . (the_argument_of H)) by A2, A51, A53, Def28 ;
hence f . H = the NEXT of V . (f . (the_argument_of H)) by A20, A52; :: thesis: verum
end;
suppose len H = k + 1 ; :: thesis: f . H = the NEXT of V . (f . (the_argument_of H))
then GraftEval V,Kai,h,h,k,H = the NEXT of V . (h . (the_argument_of H)) by A51, Def29
.= the NEXT of V . (f . (the_argument_of H)) by A20, A52 ;
hence f . H = the NEXT of V . (f . (the_argument_of H)) by A25; :: thesis: verum
end;
end;
end;
( H is atomic implies f . H = Kai . H )
proof
assume A54: H is atomic ; :: thesis: f . H = Kai . H
per cases ( len H <= k or len H = k + 1 ) by A23, NAT_1:8;
suppose A55: len H <= k ; :: thesis: f . H = Kai . H
then len H < k + 1 by NAT_1:13;
then f . H = h . H by A20
.= Kai . H by A2, A54, A55, Def28 ;
hence f . H = Kai . H ; :: thesis: verum
end;
suppose len H = k + 1 ; :: thesis: f . H = Kai . H
hence f . H = Kai . H by A25, A54, Def29; :: thesis: verum
end;
end;
end;
hence ( ( H is atomic implies f . H = Kai . H ) & ( H is negative implies f . H = the Not of V . (f . (the_argument_of H)) ) & ( H is conjunctive implies f . H = the And of V . (f . (the_left_argument_of H)),(f . (the_right_argument_of H)) ) & ( H is disjunctive implies f . H = the Or of V . (f . (the_left_argument_of H)),(f . (the_right_argument_of H)) ) & ( H is next implies f . H = the NEXT of V . (f . (the_argument_of H)) ) & ( H is Until implies f . H = the UNTIL of V . (f . (the_left_argument_of H)),(f . (the_right_argument_of H)) ) & ( H is Release implies f . H = the RELEASE of V . (f . (the_left_argument_of H)),(f . (the_right_argument_of H)) ) ) by A26, A45, A40, A50, A35, A30; :: thesis: verum
end;
hence f is-PreEvaluation-for k + 1,Kai by Def28; :: thesis: verum
end;
hence S1[k + 1] ; :: thesis: verum
end;
A56: S1[ 0 ]
proof
consider v0 being set such that
A57: v0 in the Assignations of V by XBOOLE_0:def 1;
set f = LTL_WFF --> v0;
A58: ( dom (LTL_WFF --> v0) = LTL_WFF & rng (LTL_WFF --> v0) c= {v0} ) by FUNCOP_1:19;
{v0} c= the Assignations of V by A57, ZFMISC_1:37;
then reconsider f = LTL_WFF --> v0 as Function of LTL_WFF ,the Assignations of V by A58, FUNCT_2:4, XBOOLE_1:1;
take f ; :: thesis: f is-PreEvaluation-for 0 ,Kai
thus f is-PreEvaluation-for 0 ,Kai by Lm22; :: thesis: verum
end;
for n being Nat holds S1[n] from NAT_1:sch 2(A56, A1);
hence for n being Nat ex f being Function of LTL_WFF ,the Assignations of V st f is-PreEvaluation-for n,Kai ; :: thesis: verum