set Ma = Macro (SubFrom (a,b));
let s be State of SCM+FSA; SCMFSA6B:def 4,SCMFSA6C:def 2 ( not Start-At (0,SCM+FSA) c= s or for b1 being set holds
( not Macro (SubFrom (a,b)) c= b1 or for b2 being Element of NAT holds (Comput (b1,s,b2)) . (intloc 0) = s . (intloc 0) ) )
assume A21:
Start-At (0,SCM+FSA) c= s
; for b1 being set holds
( not Macro (SubFrom (a,b)) c= b1 or for b2 being Element of NAT holds (Comput (b1,s,b2)) . (intloc 0) = s . (intloc 0) )
let P be the Instructions of SCM+FSA -valued ManySortedSet of NAT ; ( not Macro (SubFrom (a,b)) c= P or for b1 being Element of NAT holds (Comput (P,s,b1)) . (intloc 0) = s . (intloc 0) )
assume A22:
Macro (SubFrom (a,b)) c= P
; for b1 being Element of NAT holds (Comput (P,s,b1)) . (intloc 0) = s . (intloc 0)
let k be Element of NAT ; (Comput (P,s,k)) . (intloc 0) = s . (intloc 0)
dom (Start-At (0,SCM+FSA)) = {(IC )}
by FUNCOP_1:19;
then A23:
IC in dom (Start-At (0,SCM+FSA))
by TARSKI:def 1;
A24: IC s =
(Start-At (0,SCM+FSA)) . (IC )
by A23, GRFUNC_1:8, A21
.=
0
by FUNCOP_1:87
;
0 in dom (Macro (SubFrom (a,b)))
by COMPOS_1:147;
then A25:
(Macro (SubFrom (a,b))) . 0 = P . 0
by A22, GRFUNC_1:8;
A26:
P /. (IC s) = P . (IC s)
by PBOOLE:158;
A27: Comput (P,s,(0 + 1)) =
Following (P,(Comput (P,s,0)))
by EXTPRO_1:4
.=
Following (P,s)
by EXTPRO_1:3
.=
Exec ((SubFrom (a,b)),s)
by A24, A25, A26, COMPOS_1:148
;
1 in dom (Macro (SubFrom (a,b)))
by COMPOS_1:147;
then
(Macro (SubFrom (a,b))) . 1 = P . 1
by A22, GRFUNC_1:8;
then A28:
P . 1 = halt SCM+FSA
by COMPOS_1:148;
IC (Exec ((SubFrom (a,b)),s)) =
succ 0
by A24, SCMFSA_2:91
.=
0 + 1
;
then A29:
CurInstr (P,(Comput (P,s,1))) = halt SCM+FSA
by A28, A27, PBOOLE:158;