let N be non empty with_non-empty_elements set ; for S being non empty stored-program IC-Ins-separated definite halting AMI-Struct of N
for p being NAT -defined the Instructions of b1 -valued Function
for s being State of S
for m being Element of NAT holds
( p halts_on s iff p halts_on Comput (p,s,m) )
let S be non empty stored-program IC-Ins-separated definite halting AMI-Struct of N; for p being NAT -defined the Instructions of S -valued Function
for s being State of S
for m being Element of NAT holds
( p halts_on s iff p halts_on Comput (p,s,m) )
let p be NAT -defined the Instructions of S -valued Function; for s being State of S
for m being Element of NAT holds
( p halts_on s iff p halts_on Comput (p,s,m) )
let s be State of S; for m being Element of NAT holds
( p halts_on s iff p halts_on Comput (p,s,m) )
let m be Element of NAT ; ( p halts_on s iff p halts_on Comput (p,s,m) )
hereby ( p halts_on Comput (p,s,m) implies p halts_on s )
assume
p halts_on s
;
p halts_on Comput (p,s,m)then consider n being
Nat such that W0:
IC (Comput (p,s,n)) in dom p
and W:
CurInstr (
p,
(Comput (p,s,n)))
= halt S
by Def20;
reconsider n =
n as
Element of
NAT by ORDINAL1:def 13;
per cases
( n <= m or n >= m )
;
suppose
n <= m
;
p halts_on Comput (p,s,m)then Comput (
p,
s,
n) =
Comput (
p,
s,
(m + 0))
by W, Th6
.=
Comput (
p,
(Comput (p,s,m)),
0)
by Th5
;
hence
p halts_on Comput (
p,
s,
m)
by Def20, W, W0;
verum end; suppose
n >= m
;
p halts_on Comput (p,s,m)then reconsider k =
n - m as
Element of
NAT by INT_1:18;
Comput (
p,
(Comput (p,s,m)),
k) =
Comput (
p,
s,
(m + k))
by Th5
.=
Comput (
p,
s,
n)
;
hence
p halts_on Comput (
p,
s,
m)
by Def20, W0, W;
verum end; end;
end;
given n being Nat such that W1:
IC (Comput (p,(Comput (p,s,m)),n)) in dom p
and
W2:
CurInstr (p,(Comput (p,(Comput (p,s,m)),n))) = halt S
; EXTPRO_1:def 7 p halts_on s
reconsider nn = n as Element of NAT by ORDINAL1:def 13;
take
m + nn
; EXTPRO_1:def 7 ( IC (Comput (p,s,(m + nn))) in dom p & CurInstr (p,(Comput (p,s,(m + nn)))) = halt S )
thus
( IC (Comput (p,s,(m + nn))) in dom p & CurInstr (p,(Comput (p,s,(m + nn)))) = halt S )
by W1, W2, Th5; verum