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
for k being Nat st p halts_on s holds
( Result (p,s) = Comput (p,s,k) iff p halts_at IC (Comput (p,s,k)) )
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
for k being Nat st p halts_on s holds
( Result (p,s) = Comput (p,s,k) iff p halts_at IC (Comput (p,s,k)) )
let p be NAT -defined the Instructions of S -valued Function; for s being State of S
for k being Nat st p halts_on s holds
( Result (p,s) = Comput (p,s,k) iff p halts_at IC (Comput (p,s,k)) )
let s be State of S; for k being Nat st p halts_on s holds
( Result (p,s) = Comput (p,s,k) iff p halts_at IC (Comput (p,s,k)) )
let k be Nat; ( p halts_on s implies ( Result (p,s) = Comput (p,s,k) iff p halts_at IC (Comput (p,s,k)) ) )
assume A1:
p halts_on s
; ( Result (p,s) = Comput (p,s,k) iff p halts_at IC (Comput (p,s,k)) )
then consider n being Nat such that
A2:
IC (Comput (p,s,n)) in dom p
and
A3:
CurInstr (p,(Comput (p,s,n))) = halt S
by Def7;
hereby ( p halts_at IC (Comput (p,s,k)) implies Result (p,s) = Comput (p,s,k) )
assume A4:
Result (
p,
s)
= Comput (
p,
s,
k)
;
p halts_at IC (Comput (p,s,k))consider i being
Element of
NAT such that A5:
Result (
p,
s)
= Comput (
p,
s,
i)
and A6:
CurInstr (
p,
(Result (p,s)))
= halt S
by A1, Def8;
reconsider i =
i,
n =
n as
Element of
NAT by ORDINAL1:def 12;
p . (IC (Comput (p,s,k))) = halt S
by A7, A6, A4, A2, A5, PARTFUN1:def 6;
hence
p halts_at IC (Comput (p,s,k))
by A7, A2, A5, A4, COMPOS_1:def 6;
verum
end;
assume that
A8:
IC (Comput (p,s,k)) in dom p
and
A9:
p . (IC (Comput (p,s,k))) = halt S
; COMPOS_1:def 6 Result (p,s) = Comput (p,s,k)
A10:
CurInstr (p,(Comput (p,s,k))) = halt S
by A8, A9, PARTFUN1:def 6;
reconsider k = k, n = n as Element of NAT by ORDINAL1:def 12;
hence
Result (p,s) = Comput (p,s,k)
by A3, Def8, A1; verum