let s be State of ; for I being keepInt0_1 Program of st not ProgramPart (s +* (Initialized I)) halts_on s +* (Initialized I) holds
for J being Program of
for k being Element of NAT holds Computation (s +* (Initialized I)),k, Computation (s +* (Initialized (I ';' J))),k equal_outside NAT
let I be keepInt0_1 Program of ; ( not ProgramPart (s +* (Initialized I)) halts_on s +* (Initialized I) implies for J being Program of
for k being Element of NAT holds Computation (s +* (Initialized I)),k, Computation (s +* (Initialized (I ';' J))),k equal_outside NAT )
assume A1:
not ProgramPart (s +* (Initialized I)) halts_on s +* (Initialized I)
; for J being Program of
for k being Element of NAT holds Computation (s +* (Initialized I)),k, Computation (s +* (Initialized (I ';' J))),k equal_outside NAT
set s1 = s +* (Initialized I);
let J be Program of ; for k being Element of NAT holds Computation (s +* (Initialized I)),k, Computation (s +* (Initialized (I ';' J))),k equal_outside NAT
A2:
Initialized I c= s +* (Initialized I)
by FUNCT_4:26;
set s2 = s +* (Initialized (I ';' J));
defpred S1[ Element of NAT ] means Computation (s +* (Initialized I)),$1, Computation (s +* (Initialized (I ';' J))),$1 equal_outside NAT ;
A3:
Initialized (I ';' J) c= s +* (Initialized (I ';' J))
by FUNCT_4:26;
A4:
for m being Element of NAT st S1[m] holds
S1[m + 1]
proof
dom (I ';' J) =
(dom (Directed I)) \/ (dom (ProgramPart (Relocated J,(card I))))
by FUNCT_4:def 1
.=
(dom I) \/ (dom (ProgramPart (Relocated J,(card I))))
by FUNCT_4:105
;
then A5:
dom I c= dom (I ';' J)
by XBOOLE_1:7;
set sx =
s +* (Initialized (I ';' J));
let m be
Element of
NAT ;
( S1[m] implies S1[m + 1] )
A6:
Computation (s +* (Initialized I)),
(m + 1) =
Following (Computation (s +* (Initialized I)),m)
by AMI_1:14
.=
Exec (CurInstr (Computation (s +* (Initialized I)),m)),
(Computation (s +* (Initialized I)),m)
;
A7:
Computation (s +* (Initialized (I ';' J))),
(m + 1) =
Following (Computation (s +* (Initialized (I ';' J))),m)
by AMI_1:14
.=
Exec (CurInstr (Computation (s +* (Initialized (I ';' J))),m)),
(Computation (s +* (Initialized (I ';' J))),m)
;
assume A8:
Computation (s +* (Initialized I)),
m,
Computation (s +* (Initialized (I ';' J))),
m equal_outside NAT
;
S1[m + 1]
then A9:
IC (Computation (s +* (Initialized I)),m) = IC (Computation (s +* (Initialized (I ';' J))),m)
by AMI_1:121;
A10:
I ';' J c= Computation (s +* (Initialized (I ';' J))),
m
by A3, Th13, AMI_1:81;
A11:
IC (Computation (s +* (Initialized I)),m) in dom I
by A2, Def1;
I c= Computation (s +* (Initialized I)),
m
by A2, Th13, AMI_1:81;
then A12:
CurInstr (Computation (s +* (Initialized I)),m) = I . (IC (Computation (s +* (Initialized I)),m))
by A11, GRFUNC_1:8;
then
I . (IC (Computation (s +* (Initialized I)),m)) <> halt SCM+FSA
by A1, AMI_1:146;
then CurInstr (Computation (s +* (Initialized I)),m) =
(I ';' J) . (IC (Computation (s +* (Initialized I)),m))
by A11, A12, SCMFSA6A:54
.=
CurInstr (Computation (s +* (Initialized (I ';' J))),m)
by A9, A11, A10, A5, GRFUNC_1:8
;
hence
S1[
m + 1]
by A8, A6, A7, SCMFSA6A:32;
verum
end;
A13:
( Computation (s +* (Initialized I)),0 = s +* (Initialized I) & Computation (s +* (Initialized (I ';' J))),0 = s +* (Initialized (I ';' J)) )
by AMI_1:13;
A14:
( (s +* (((intloc 0 ) .--> 1) +* (Start-At (insloc 0 )))) +* I,s +* (((intloc 0 ) .--> 1) +* (Start-At (insloc 0 ))) equal_outside NAT & s +* (((intloc 0 ) .--> 1) +* (Start-At (insloc 0 ))),(s +* (((intloc 0 ) .--> 1) +* (Start-At (insloc 0 )))) +* (I ';' J) equal_outside NAT )
by AMI_1:120, FUNCT_7:28;
A15: s +* (Initialized (I ';' J)) =
s +* ((I ';' J) +* (((intloc 0 ) .--> 1) +* (Start-At (insloc 0 ))))
by FUNCT_4:15
.=
(s +* (I ';' J)) +* (((intloc 0 ) .--> 1) +* (Start-At (insloc 0 )))
by FUNCT_4:15
.=
(s +* (((intloc 0 ) .--> 1) +* (Start-At (insloc 0 )))) +* (I ';' J)
by Th19
;
s +* (Initialized I) =
s +* (I +* (((intloc 0 ) .--> 1) +* (Start-At (insloc 0 ))))
by FUNCT_4:15
.=
(s +* I) +* (((intloc 0 ) .--> 1) +* (Start-At (insloc 0 )))
by FUNCT_4:15
.=
(s +* (((intloc 0 ) .--> 1) +* (Start-At (insloc 0 )))) +* I
by Th19
;
then A16:
S1[ 0 ]
by A15, A14, A13, FUNCT_7:29;
thus
for k being Element of NAT holds S1[k]
from NAT_1:sch 1(A16, A4); verum