let N be non empty with_non-empty_elements set ; for S being non empty IC-Ins-separated halting AMI-Struct of N
for p being NAT -defined the Instructions of b1 -valued Function
for s being State of S holds
( p halts_on s iff ex i being Element of NAT st p halts_at IC (Comput (p,s,i)) )
let S be non empty IC-Ins-separated halting AMI-Struct of N; for p being NAT -defined the Instructions of S -valued Function
for s being State of S holds
( p halts_on s iff ex i being Element of NAT st p halts_at IC (Comput (p,s,i)) )
let p be NAT -defined the Instructions of S -valued Function; for s being State of S holds
( p halts_on s iff ex i being Element of NAT st p halts_at IC (Comput (p,s,i)) )
let s be State of S; ( p halts_on s iff ex i being Element of NAT st p halts_at IC (Comput (p,s,i)) )
hereby ( ex i being Element of NAT st p halts_at IC (Comput (p,s,i)) implies p halts_on s )
assume
p halts_on s
;
ex i being Element of NAT st p halts_at IC (Comput (p,s,i))then consider i being
Nat such that A1:
IC (Comput (p,s,i)) in dom p
and A2:
CurInstr (
p,
(Comput (p,s,i)))
= halt S
by Def7;
reconsider i =
i as
Element of
NAT by ORDINAL1:def 12;
take i =
i;
p halts_at IC (Comput (p,s,i))
p . (IC (Comput (p,s,i))) = halt S
by A1, A2, PARTFUN1:def 6;
hence
p halts_at IC (Comput (p,s,i))
by A1, COMPOS_1:def 6;
verum
end;
given i being Element of NAT such that A3:
p halts_at IC (Comput (p,s,i))
; p halts_on s
A4:
IC (Comput (p,s,i)) in dom p
by A3, COMPOS_1:def 6;
A5:
p . (IC (Comput (p,s,i))) = halt S
by A3, COMPOS_1:def 6;
take
i
; EXTPRO_1:def 8 ( IC (Comput (p,s,i)) in dom p & CurInstr (p,(Comput (p,s,i))) = halt S )
thus
IC (Comput (p,s,i)) in dom p
by A3, COMPOS_1:def 6; CurInstr (p,(Comput (p,s,i))) = halt S
thus
CurInstr (p,(Comput (p,s,i))) = halt S
by A4, A5, PARTFUN1:def 6; verum