let P be Instruction-Sequence of SCMPDS; for s being 0 -started State of SCMPDS
for n, p0 being Element of NAT
for f being FinSequence of INT st p0 >= 3 & f is_FinSequence_on s,p0 & len f = n holds
( (IExec ((sum (n,p0)),P,s)) . (intpos 1) = Sum f & sum (n,p0) is parahalting )
let s be 0 -started State of SCMPDS; for n, p0 being Element of NAT
for f being FinSequence of INT st p0 >= 3 & f is_FinSequence_on s,p0 & len f = n holds
( (IExec ((sum (n,p0)),P,s)) . (intpos 1) = Sum f & sum (n,p0) is parahalting )
let n, p0 be Element of NAT ; for f being FinSequence of INT st p0 >= 3 & f is_FinSequence_on s,p0 & len f = n holds
( (IExec ((sum (n,p0)),P,s)) . (intpos 1) = Sum f & sum (n,p0) is parahalting )
let f be FinSequence of INT ; ( p0 >= 3 & f is_FinSequence_on s,p0 & len f = n implies ( (IExec ((sum (n,p0)),P,s)) . (intpos 1) = Sum f & sum (n,p0) is parahalting ) )
assume that
A1:
p0 >= 3
and
A2:
( f is_FinSequence_on s,p0 & len f = n )
; ( (IExec ((sum (n,p0)),P,s)) . (intpos 1) = Sum f & sum (n,p0) is parahalting )
thus
(IExec ((sum (n,p0)),P,s)) . (intpos 1) = Sum f
by A1, A2, Lm4; sum (n,p0) is parahalting
now let t be
State of
SCMPDS;
for Q being Instruction-Sequence of SCMPDS holds sum (n,p0) is_halting_on t,Qlet Q be
Instruction-Sequence of
SCMPDS;
sum (n,p0) is_halting_on t,Qconsider g being
FinSequence of
INT such that A3:
(
len g = n &
g is_FinSequence_on t,
p0 )
by SCPISORT:2;
g is_FinSequence_on Initialize t,
p0
then
sum (
n,
p0)
is_halting_on Initialize t,
Q
by A1, Lm4, A3;
hence
sum (
n,
p0)
is_halting_on t,
Q
by SCMPDS_6:126;
verum end;
hence
sum (n,p0) is parahalting
by SCMPDS_6:21; verum