let s be State of SCM+FSA; for p being the Instructions of SCM+FSA -valued ManySortedSet of NAT
for I being keepInt0_1 Program of SCM+FSA st not p +* I halts_on s +* (Initialize ((intloc 0) .--> 1)) holds
for J being Program of SCM+FSA
for k being Element of NAT holds NPP (Comput ((p +* I),(s +* (Initialize ((intloc 0) .--> 1))),k)) = NPP (Comput ((p +* (I ';' J)),(s +* (Initialize ((intloc 0) .--> 1))),k))
let p be the Instructions of SCM+FSA -valued ManySortedSet of NAT ; for I being keepInt0_1 Program of SCM+FSA st not p +* I halts_on s +* (Initialize ((intloc 0) .--> 1)) holds
for J being Program of SCM+FSA
for k being Element of NAT holds NPP (Comput ((p +* I),(s +* (Initialize ((intloc 0) .--> 1))),k)) = NPP (Comput ((p +* (I ';' J)),(s +* (Initialize ((intloc 0) .--> 1))),k))
let I be keepInt0_1 Program of SCM+FSA; ( not p +* I halts_on s +* (Initialize ((intloc 0) .--> 1)) implies for J being Program of SCM+FSA
for k being Element of NAT holds NPP (Comput ((p +* I),(s +* (Initialize ((intloc 0) .--> 1))),k)) = NPP (Comput ((p +* (I ';' J)),(s +* (Initialize ((intloc 0) .--> 1))),k)) )
assume A1:
not p +* I halts_on s +* (Initialize ((intloc 0) .--> 1))
; for J being Program of SCM+FSA
for k being Element of NAT holds NPP (Comput ((p +* I),(s +* (Initialize ((intloc 0) .--> 1))),k)) = NPP (Comput ((p +* (I ';' J)),(s +* (Initialize ((intloc 0) .--> 1))),k))
set s1 = s +* (Initialize ((intloc 0) .--> 1));
set p1 = p +* I;
A2:
I c= p +* I
by FUNCT_4:26;
A3:
Initialize ((intloc 0) .--> 1) c= s +* (Initialize ((intloc 0) .--> 1))
by FUNCT_4:26;
let J be Program of SCM+FSA; for k being Element of NAT holds NPP (Comput ((p +* I),(s +* (Initialize ((intloc 0) .--> 1))),k)) = NPP (Comput ((p +* (I ';' J)),(s +* (Initialize ((intloc 0) .--> 1))),k))
set s2 = s +* (Initialize ((intloc 0) .--> 1));
set p2 = p +* (I ';' J);
A4:
I ';' J c= p +* (I ';' J)
by FUNCT_4:26;
defpred S1[ Nat] means NPP (Comput ((p +* I),(s +* (Initialize ((intloc 0) .--> 1))),$1)) = NPP (Comput ((p +* (I ';' J)),(s +* (Initialize ((intloc 0) .--> 1))),$1));
A5:
for m being Element of NAT st S1[m] holds
S1[m + 1]
proof
dom (I ';' J) =
(dom (Directed I)) \/ (dom (Reloc (J,(card I))))
by FUNCT_4:def 1
.=
(dom I) \/ (dom (Reloc (J,(card I))))
by FUNCT_4:105
;
then A6:
dom I c= dom (I ';' J)
by XBOOLE_1:7;
set sx =
s +* (Initialize ((intloc 0) .--> 1));
set px =
p +* (I ';' J);
let m be
Element of
NAT ;
( S1[m] implies S1[m + 1] )
A7:
Comput (
(p +* I),
(s +* (Initialize ((intloc 0) .--> 1))),
(m + 1)) =
Following (
(p +* I),
(Comput ((p +* I),(s +* (Initialize ((intloc 0) .--> 1))),m)))
by EXTPRO_1:4
.=
Exec (
(CurInstr ((p +* I),(Comput ((p +* I),(s +* (Initialize ((intloc 0) .--> 1))),m)))),
(Comput ((p +* I),(s +* (Initialize ((intloc 0) .--> 1))),m)))
;
A8:
Comput (
(p +* (I ';' J)),
(s +* (Initialize ((intloc 0) .--> 1))),
(m + 1)) =
Following (
(p +* (I ';' J)),
(Comput ((p +* (I ';' J)),(s +* (Initialize ((intloc 0) .--> 1))),m)))
by EXTPRO_1:4
.=
Exec (
(CurInstr ((p +* (I ';' J)),(Comput ((p +* (I ';' J)),(s +* (Initialize ((intloc 0) .--> 1))),m)))),
(Comput ((p +* (I ';' J)),(s +* (Initialize ((intloc 0) .--> 1))),m)))
;
assume A9:
NPP (Comput ((p +* I),(s +* (Initialize ((intloc 0) .--> 1))),m)) = NPP (Comput ((p +* (I ';' J)),(s +* (Initialize ((intloc 0) .--> 1))),m))
;
S1[m + 1]
then A10:
IC (Comput ((p +* I),(s +* (Initialize ((intloc 0) .--> 1))),m)) = IC (Comput ((p +* (I ';' J)),(s +* (Initialize ((intloc 0) .--> 1))),m))
by COMPOS_1:230;
A11:
IC (Comput ((p +* I),(s +* (Initialize ((intloc 0) .--> 1))),m)) in dom I
by Def1, A2, A3;
A12:
(p +* I) /. (IC (Comput ((p +* I),(s +* (Initialize ((intloc 0) .--> 1))),m))) = (p +* I) . (IC (Comput ((p +* I),(s +* (Initialize ((intloc 0) .--> 1))),m)))
by PBOOLE:158;
A13:
(p +* (I ';' J)) /. (IC (Comput ((p +* (I ';' J)),(s +* (Initialize ((intloc 0) .--> 1))),m))) = (p +* (I ';' J)) . (IC (Comput ((p +* (I ';' J)),(s +* (Initialize ((intloc 0) .--> 1))),m)))
by PBOOLE:158;
A14:
CurInstr (
(p +* I),
(Comput ((p +* I),(s +* (Initialize ((intloc 0) .--> 1))),m)))
= I . (IC (Comput ((p +* I),(s +* (Initialize ((intloc 0) .--> 1))),m)))
by A11, A12, A2, GRFUNC_1:8;
then
I . (IC (Comput ((p +* I),(s +* (Initialize ((intloc 0) .--> 1))),m))) <> halt SCM+FSA
by A1, EXTPRO_1:30;
then CurInstr (
(p +* I),
(Comput ((p +* I),(s +* (Initialize ((intloc 0) .--> 1))),m))) =
(I ';' J) . (IC (Comput ((p +* I),(s +* (Initialize ((intloc 0) .--> 1))),m)))
by A11, A14, SCMFSA6A:54
.=
CurInstr (
(p +* (I ';' J)),
(Comput ((p +* (I ';' J)),(s +* (Initialize ((intloc 0) .--> 1))),m)))
by A10, A11, A6, A13, A4, GRFUNC_1:8
;
hence
S1[
m + 1]
by A9, A7, A8, AMISTD_2:def 20;
verum
end;
A15:
( Comput ((p +* I),(s +* (Initialize ((intloc 0) .--> 1))),0) = s +* (Initialize ((intloc 0) .--> 1)) & Comput ((p +* (I ';' J)),(s +* (Initialize ((intloc 0) .--> 1))),0) = s +* (Initialize ((intloc 0) .--> 1)) )
by EXTPRO_1:3;
A18:
S1[ 0 ]
by A15;
thus
for k being Element of NAT holds S1[k]
from NAT_1:sch 1(A18, A5); verum