let s be State of SCM+FSA; :: thesis: for p being Instruction-Sequence of SCM+FSA

for I being really-closed keepInt0_1 Program of SCM+FSA st not p +* I halts_on Initialized s holds

for J being Program of SCM+FSA

for k being Nat holds Comput ((p +* I),(Initialized s),k) = Comput ((p +* (I ";" J)),(Initialized s),k)

let p be Instruction-Sequence of SCM+FSA; :: thesis: for I being really-closed keepInt0_1 Program of SCM+FSA st not p +* I halts_on Initialized s holds

for J being Program of SCM+FSA

for k being Nat holds Comput ((p +* I),(Initialized s),k) = Comput ((p +* (I ";" J)),(Initialized s),k)

let I be really-closed keepInt0_1 Program of SCM+FSA; :: thesis: ( not p +* I halts_on Initialized s implies for J being Program of SCM+FSA

for k being Nat holds Comput ((p +* I),(Initialized s),k) = Comput ((p +* (I ";" J)),(Initialized s),k) )

assume A1: not p +* I halts_on Initialized s ; :: thesis: for J being Program of SCM+FSA

for k being Nat holds Comput ((p +* I),(Initialized s),k) = Comput ((p +* (I ";" J)),(Initialized s),k)

set s1 = Initialized s;

set p1 = p +* I;

A2: I c= p +* I by FUNCT_4:25;

let J be Program of SCM+FSA; :: thesis: for k being Nat holds Comput ((p +* I),(Initialized s),k) = Comput ((p +* (I ";" J)),(Initialized s),k)

set s2 = Initialized s;

set p2 = p +* (I ";" J);

A3: I ";" J c= p +* (I ";" J) by FUNCT_4:25;

defpred S_{1}[ Nat] means Comput ((p +* I),(Initialized s),$1) = Comput ((p +* (I ";" J)),(Initialized s),$1);

A4: for m being Nat st S_{1}[m] holds

S_{1}[m + 1]
_{1}[ 0 ]
;

thus for k being Nat holds S_{1}[k]
from NAT_1:sch 2(A13, A4); :: thesis: verum

for I being really-closed keepInt0_1 Program of SCM+FSA st not p +* I halts_on Initialized s holds

for J being Program of SCM+FSA

for k being Nat holds Comput ((p +* I),(Initialized s),k) = Comput ((p +* (I ";" J)),(Initialized s),k)

let p be Instruction-Sequence of SCM+FSA; :: thesis: for I being really-closed keepInt0_1 Program of SCM+FSA st not p +* I halts_on Initialized s holds

for J being Program of SCM+FSA

for k being Nat holds Comput ((p +* I),(Initialized s),k) = Comput ((p +* (I ";" J)),(Initialized s),k)

let I be really-closed keepInt0_1 Program of SCM+FSA; :: thesis: ( not p +* I halts_on Initialized s implies for J being Program of SCM+FSA

for k being Nat holds Comput ((p +* I),(Initialized s),k) = Comput ((p +* (I ";" J)),(Initialized s),k) )

assume A1: not p +* I halts_on Initialized s ; :: thesis: for J being Program of SCM+FSA

for k being Nat holds Comput ((p +* I),(Initialized s),k) = Comput ((p +* (I ";" J)),(Initialized s),k)

set s1 = Initialized s;

set p1 = p +* I;

A2: I c= p +* I by FUNCT_4:25;

let J be Program of SCM+FSA; :: thesis: for k being Nat holds Comput ((p +* I),(Initialized s),k) = Comput ((p +* (I ";" J)),(Initialized s),k)

set s2 = Initialized s;

set p2 = p +* (I ";" J);

A3: I ";" J c= p +* (I ";" J) by FUNCT_4:25;

defpred S

A4: for m being Nat st S

S

proof

A13:
S
dom (I ";" J) = (dom I) \/ (dom (Reloc (J,(card I))))
by SCMFSA6A:39;

then A5: dom I c= dom (I ";" J) by XBOOLE_1:7;

set sx = Initialized s;

set px = p +* (I ";" J);

let m be Nat; :: thesis: ( S_{1}[m] implies S_{1}[m + 1] )

A6: Comput ((p +* I),(Initialized s),(m + 1)) = Following ((p +* I),(Comput ((p +* I),(Initialized s),m))) by EXTPRO_1:3

.= Exec ((CurInstr ((p +* I),(Comput ((p +* I),(Initialized s),m)))),(Comput ((p +* I),(Initialized s),m))) ;

A7: Comput ((p +* (I ";" J)),(Initialized s),(m + 1)) = Following ((p +* (I ";" J)),(Comput ((p +* (I ";" J)),(Initialized s),m))) by EXTPRO_1:3

.= Exec ((CurInstr ((p +* (I ";" J)),(Comput ((p +* (I ";" J)),(Initialized s),m)))),(Comput ((p +* (I ";" J)),(Initialized s),m))) ;

assume A8: Comput ((p +* I),(Initialized s),m) = Comput ((p +* (I ";" J)),(Initialized s),m) ; :: thesis: S_{1}[m + 1]

IC (Initialized s) = 0 by MEMSTR_0:def 11;

then IC (Initialized s) in dom I by AFINSQ_1:65;

then A9: IC (Comput ((p +* I),(Initialized s),m)) in dom I by AMISTD_1:21, A2;

A10: (p +* I) /. (IC (Comput ((p +* I),(Initialized s),m))) = (p +* I) . (IC (Comput ((p +* I),(Initialized s),m))) by PBOOLE:143;

A11: (p +* (I ";" J)) /. (IC (Comput ((p +* (I ";" J)),(Initialized s),m))) = (p +* (I ";" J)) . (IC (Comput ((p +* (I ";" J)),(Initialized s),m))) by PBOOLE:143;

A12: CurInstr ((p +* I),(Comput ((p +* I),(Initialized s),m))) = I . (IC (Comput ((p +* I),(Initialized s),m))) by A9, A10, A2, GRFUNC_1:2;

then I . (IC (Comput ((p +* I),(Initialized s),m))) <> halt SCM+FSA by A1, EXTPRO_1:29;

then CurInstr ((p +* I),(Comput ((p +* I),(Initialized s),m))) = (I ";" J) . (IC (Comput ((p +* I),(Initialized s),m))) by A9, A12, SCMFSA6A:15

.= CurInstr ((p +* (I ";" J)),(Comput ((p +* (I ";" J)),(Initialized s),m))) by A8, A9, A5, A11, A3, GRFUNC_1:2 ;

hence S_{1}[m + 1]
by A8, A6, A7; :: thesis: verum

end;then A5: dom I c= dom (I ";" J) by XBOOLE_1:7;

set sx = Initialized s;

set px = p +* (I ";" J);

let m be Nat; :: thesis: ( S

A6: Comput ((p +* I),(Initialized s),(m + 1)) = Following ((p +* I),(Comput ((p +* I),(Initialized s),m))) by EXTPRO_1:3

.= Exec ((CurInstr ((p +* I),(Comput ((p +* I),(Initialized s),m)))),(Comput ((p +* I),(Initialized s),m))) ;

A7: Comput ((p +* (I ";" J)),(Initialized s),(m + 1)) = Following ((p +* (I ";" J)),(Comput ((p +* (I ";" J)),(Initialized s),m))) by EXTPRO_1:3

.= Exec ((CurInstr ((p +* (I ";" J)),(Comput ((p +* (I ";" J)),(Initialized s),m)))),(Comput ((p +* (I ";" J)),(Initialized s),m))) ;

assume A8: Comput ((p +* I),(Initialized s),m) = Comput ((p +* (I ";" J)),(Initialized s),m) ; :: thesis: S

IC (Initialized s) = 0 by MEMSTR_0:def 11;

then IC (Initialized s) in dom I by AFINSQ_1:65;

then A9: IC (Comput ((p +* I),(Initialized s),m)) in dom I by AMISTD_1:21, A2;

A10: (p +* I) /. (IC (Comput ((p +* I),(Initialized s),m))) = (p +* I) . (IC (Comput ((p +* I),(Initialized s),m))) by PBOOLE:143;

A11: (p +* (I ";" J)) /. (IC (Comput ((p +* (I ";" J)),(Initialized s),m))) = (p +* (I ";" J)) . (IC (Comput ((p +* (I ";" J)),(Initialized s),m))) by PBOOLE:143;

A12: CurInstr ((p +* I),(Comput ((p +* I),(Initialized s),m))) = I . (IC (Comput ((p +* I),(Initialized s),m))) by A9, A10, A2, GRFUNC_1:2;

then I . (IC (Comput ((p +* I),(Initialized s),m))) <> halt SCM+FSA by A1, EXTPRO_1:29;

then CurInstr ((p +* I),(Comput ((p +* I),(Initialized s),m))) = (I ";" J) . (IC (Comput ((p +* I),(Initialized s),m))) by A9, A12, SCMFSA6A:15

.= CurInstr ((p +* (I ";" J)),(Comput ((p +* (I ";" J)),(Initialized s),m))) by A8, A9, A5, A11, A3, GRFUNC_1:2 ;

hence S

thus for k being Nat holds S