let N be non empty with_non-empty_elements set ; for S being non empty IC-Ins-separated halting AMI-Struct of N
for F being Instruction-Sequence of S
for s being State of S st ex k being Element of NAT st F . (IC (Comput (F,s,k))) = halt S holds
F halts_on s
let S be non empty IC-Ins-separated halting AMI-Struct of N; for F being Instruction-Sequence of S
for s being State of S st ex k being Element of NAT st F . (IC (Comput (F,s,k))) = halt S holds
F halts_on s
let F be Instruction-Sequence of S; for s being State of S st ex k being Element of NAT st F . (IC (Comput (F,s,k))) = halt S holds
F halts_on s
let s be State of S; ( ex k being Element of NAT st F . (IC (Comput (F,s,k))) = halt S implies F halts_on s )
given k being Element of NAT such that A1:
F . (IC (Comput (F,s,k))) = halt S
; F halts_on s
take
k
; EXTPRO_1:def 8 ( IC (Comput (F,s,k)) in dom F & CurInstr (F,(Comput (F,s,k))) = halt S )
A2:
dom F = NAT
by PARTFUN1:def 2;
hence
IC (Comput (F,s,k)) in dom F
; CurInstr (F,(Comput (F,s,k))) = halt S
thus
CurInstr (F,(Comput (F,s,k))) = halt S
by A1, A2, PARTFUN1:def 6; verum