set Ma = Macro (AddTo (a,b));
let s be 0 -started State of SCM+FSA; AMISTD_1:def 11,SCMFSA6C:def 1 for b1 being set holds
( not Macro (AddTo (a,b)) c= b1 or b1 halts_on s )
A11:
Start-At (0,SCM+FSA) c= s
by MEMSTR_0:29;
let P be Instruction-Sequence of SCM+FSA; ( not Macro (AddTo (a,b)) c= P or P halts_on s )
assume A12:
Macro (AddTo (a,b)) c= P
; P halts_on s
take
1
; EXTPRO_1:def 8 ( IC (Comput (P,s,1)) in dom P & CurInstr (P,(Comput (P,s,1))) = halt SCM+FSA )
A13:
dom P = NAT
by PARTFUN1:def 2;
thus
IC (Comput (P,s,1)) in dom P
by A13; CurInstr (P,(Comput (P,s,1))) = halt SCM+FSA
dom (Start-At (0,SCM+FSA)) = {(IC )}
by FUNCOP_1:13;
then A14:
IC in dom (Start-At (0,SCM+FSA))
by TARSKI:def 1;
A15: IC s =
(Start-At (0,SCM+FSA)) . (IC )
by A14, A11, GRFUNC_1:2
.=
0
by FUNCOP_1:72
;
then A16: IC (Exec ((AddTo (a,b)),s)) =
succ 0
by SCMFSA_2:64
.=
0 + 1
;
A17:
1 in dom (Macro (AddTo (a,b)))
by COMPOS_1:60;
A18:
0 in dom (Macro (AddTo (a,b)))
by COMPOS_1:60;
A19: P . 0 =
(Macro (AddTo (a,b))) . 0
by A12, A18, GRFUNC_1:2
.=
AddTo (a,b)
by COMPOS_1:58
;
A20: P . 1 =
(Macro (AddTo (a,b))) . 1
by A12, A17, GRFUNC_1:2
.=
halt SCM+FSA
by COMPOS_1:59
;
Comput (P,s,(0 + 1)) =
Following (P,(Comput (P,s,0)))
by EXTPRO_1:3
.=
Following (P,s)
.=
Exec ((AddTo (a,b)),s)
by A15, A13, A19, PARTFUN1:def 6
;
hence
CurInstr (P,(Comput (P,s,1))) = halt SCM+FSA
by A16, A13, A20, PARTFUN1:def 6; verum