let N be non empty with_zero set ; for S being non empty with_non-empty_values IC-Ins-separated halting AMI-Struct over N
for p being NAT -defined the InstructionsF of b1 -valued Function
for s being State of S holds
( p halts_on s iff ex i being Nat st p halts_at IC (Comput (p,s,i)) )
let S be non empty with_non-empty_values IC-Ins-separated halting AMI-Struct over N; for p being NAT -defined the InstructionsF of S -valued Function
for s being State of S holds
( p halts_on s iff ex i being Nat st p halts_at IC (Comput (p,s,i)) )
let p be NAT -defined the InstructionsF of S -valued Function; for s being State of S holds
( p halts_on s iff ex i being Nat st p halts_at IC (Comput (p,s,i)) )
let s be State of S; ( p halts_on s iff ex i being Nat st p halts_at IC (Comput (p,s,i)) )
hereby ( ex i being Nat st p halts_at IC (Comput (p,s,i)) implies p halts_on s )
assume
p halts_on s
;
ex i being 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
;
reconsider i =
i as
Nat ;
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;
verum
end;
given i being 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;
A5:
p . (IC (Comput (p,s,i))) = halt S
by A3;
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; CurInstr (p,(Comput (p,s,i))) = halt S
thus
CurInstr (p,(Comput (p,s,i))) = halt S
by A4, A5, PARTFUN1:def 6; verum