set Ma = Macro (SubFrom (a,b));
let s be State of SCM+FSA; SCMFSA6B:def 3,SCMFSA6C:def 1 ( not Start-At (0,SCM+FSA) c= s or for b1 being set holds
( not Macro (SubFrom (a,b)) c= b1 or b1 halts_on s ) )
assume A23:
Start-At (0,SCM+FSA) c= s
; for b1 being set holds
( not Macro (SubFrom (a,b)) c= b1 or b1 halts_on s )
let P be the Instructions of SCM+FSA -valued ManySortedSet of NAT ; ( not Macro (SubFrom (a,b)) c= P or P halts_on s )
assume A24:
Macro (SubFrom (a,b)) c= P
; P halts_on s
A25:
Macro (SubFrom (a,b)) c= P
by A24;
take
1
; EXTPRO_1:def 7 ( IC (Comput (P,s,1)) in proj1 P & CurInstr (P,(Comput (P,s,1))) = halt SCM+FSA )
A26:
dom P = NAT
by PARTFUN1:def 4;
thus
IC (Comput (P,s,1)) in dom P
by A26; CurInstr (P,(Comput (P,s,1))) = halt SCM+FSA
dom (Start-At (0,SCM+FSA)) = {(IC )}
by FUNCOP_1:19;
then A27:
IC in dom (Start-At (0,SCM+FSA))
by TARSKI:def 1;
A28: IC s =
(Start-At (0,SCM+FSA)) . (IC )
by A27, GRFUNC_1:8, A23
.=
0
by FUNCOP_1:87
;
then A29: IC (Exec ((SubFrom (a,b)),s)) =
succ 0
by SCMFSA_2:91
.=
0 + 1
;
A30:
1 in dom (Macro (SubFrom (a,b)))
by COMPOS_1:147;
A31:
0 in dom (Macro (SubFrom (a,b)))
by COMPOS_1:147;
A32: P . 0 =
(Macro (SubFrom (a,b))) . 0
by A25, A31, GRFUNC_1:8
.=
SubFrom (a,b)
by COMPOS_1:148
;
A33: P . 1 =
(Macro (SubFrom (a,b))) . 1
by A25, A30, GRFUNC_1:8
.=
halt SCM+FSA
by COMPOS_1:148
;
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 A28, A26, PARTFUN1:def 8, A32
;
hence
CurInstr (P,(Comput (P,s,1))) = halt SCM+FSA
by A29, A26, PARTFUN1:def 8, A33; verum