let s be State of SCM+FSA; for I being paraclosed Program of SCM+FSA
for J being Program of SCM+FSA
for P being the Instructions of SCM+FSA -valued ManySortedSet of NAT st I c= P & Start-At (0,SCM+FSA) c= s & P halts_on s holds
for m being Element of NAT st m <= LifeSpan (P,s) holds
NPP (Comput (P,s,m)) = NPP (Comput ((P +* (I ';' J)),s,m))
let I be paraclosed Program of SCM+FSA; for J being Program of SCM+FSA
for P being the Instructions of SCM+FSA -valued ManySortedSet of NAT st I c= P & Start-At (0,SCM+FSA) c= s & P halts_on s holds
for m being Element of NAT st m <= LifeSpan (P,s) holds
NPP (Comput (P,s,m)) = NPP (Comput ((P +* (I ';' J)),s,m))
let J be Program of SCM+FSA; for P being the Instructions of SCM+FSA -valued ManySortedSet of NAT st I c= P & Start-At (0,SCM+FSA) c= s & P halts_on s holds
for m being Element of NAT st m <= LifeSpan (P,s) holds
NPP (Comput (P,s,m)) = NPP (Comput ((P +* (I ';' J)),s,m))
let P be the Instructions of SCM+FSA -valued ManySortedSet of NAT ; ( I c= P & Start-At (0,SCM+FSA) c= s & P halts_on s implies for m being Element of NAT st m <= LifeSpan (P,s) holds
NPP (Comput (P,s,m)) = NPP (Comput ((P +* (I ';' J)),s,m)) )
assume A1:
I c= P
; ( not Start-At (0,SCM+FSA) c= s or not P halts_on s or for m being Element of NAT st m <= LifeSpan (P,s) holds
NPP (Comput (P,s,m)) = NPP (Comput ((P +* (I ';' J)),s,m)) )
assume that
A2:
Start-At (0,SCM+FSA) c= s
and
A3:
P halts_on s
; for m being Element of NAT st m <= LifeSpan (P,s) holds
NPP (Comput (P,s,m)) = NPP (Comput ((P +* (I ';' J)),s,m))
defpred S1[ Nat] means ( $1 <= LifeSpan (P,s) implies NPP (Comput (P,s,$1)) = NPP (Comput ((P +* (I ';' J)),s,$1)) );
A6:
for m being Element of NAT st S1[m] holds
S1[m + 1]
proof
let m be
Element of
NAT ;
( S1[m] implies S1[m + 1] )
assume A7:
(
m <= LifeSpan (
P,
s) implies
NPP (Comput (P,s,m)) = NPP (Comput ((P +* (I ';' J)),s,m)) )
;
S1[m + 1]
xx:
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
;
A8:
(
{} c= Comput (
(P +* (I ';' J)),
s,
m) &
dom I c= dom (I ';' J) )
by xx, XBOOLE_1:2, XBOOLE_1:7;
A9:
Comput (
P,
s,
(m + 1)) =
Following (
P,
(Comput (P,s,m)))
by EXTPRO_1:4
.=
Exec (
(CurInstr (P,(Comput (P,s,m)))),
(Comput (P,s,m)))
;
A10:
Comput (
(P +* (I ';' J)),
s,
(m + 1)) =
Following (
(P +* (I ';' J)),
(Comput ((P +* (I ';' J)),s,m)))
by EXTPRO_1:4
.=
Exec (
(CurInstr ((P +* (I ';' J)),(Comput ((P +* (I ';' J)),s,m)))),
(Comput ((P +* (I ';' J)),s,m)))
;
A11:
IC (Comput (P,s,m)) in dom I
by A2, Def2, A1;
dom P = NAT
by PARTFUN1:def 4;
then A12:
CurInstr (
P,
(Comput (P,s,m))) =
P . (IC (Comput (P,s,m)))
by PARTFUN1:def 8
.=
I . (IC (Comput (P,s,m)))
by A11, A1, GRFUNC_1:8
;
assume A13:
m + 1
<= LifeSpan (
P,
s)
;
NPP (Comput (P,s,(m + 1))) = NPP (Comput ((P +* (I ';' J)),s,(m + 1)))
A14:
I ';' J c= P +* (I ';' J)
by FUNCT_4:26;
A15:
dom (P +* (I ';' J)) = NAT
by PARTFUN1:def 4;
m < LifeSpan (
P,
s)
by A13, NAT_1:13;
then
I . (IC (Comput (P,s,m))) <> halt SCM+FSA
by A3, A12, EXTPRO_1:def 14;
then CurInstr (
P,
(Comput (P,s,m))) =
(I ';' J) . (IC (Comput (P,s,m)))
by A11, A12, SCMFSA6A:54
.=
(P +* (I ';' J)) . (IC (Comput (P,s,m)))
by A11, A8, A14, GRFUNC_1:8
.=
(P +* (I ';' J)) . (IC (Comput ((P +* (I ';' J)),s,m)))
by A13, A7, COMPOS_1:230, NAT_1:13
.=
CurInstr (
(P +* (I ';' J)),
(Comput ((P +* (I ';' J)),s,m)))
by A15, PARTFUN1:def 8
;
hence
NPP (Comput (P,s,(m + 1))) = NPP (Comput ((P +* (I ';' J)),s,(m + 1)))
by A9, A10, A7, A13, AMISTD_2:def 20, NAT_1:13;
verum
end;
( Comput (P,s,0) = s & Comput ((P +* (I ';' J)),s,0) = s )
by EXTPRO_1:3;
then A16:
S1[ 0 ]
;
thus
for m being Element of NAT holds S1[m]
from NAT_1:sch 1(A16, A6); verum