let P be the Instructions of SCMPDS -valued ManySortedSet of NAT ; :: thesis: for s being State of SCMPDS
for I being halt-free shiftable Program of SCMPDS
for a being Int_position
for i, c being Integer
for X, Y being set
for f being Function of (product the Object-Kind of SCMPDS),NAT st s . (DataLoc ((s . a),i)) > 0 & card I > 0 & ( for t being State of SCMPDS st f . (Dstate t) = 0 holds
t . (DataLoc ((s . a),i)) <= 0 ) & ( for x being Int_position st x in X holds
s . x >= c + (s . (DataLoc ((s . a),i))) ) & ( for t being State of SCMPDS
for Q being the Instructions of SCMPDS -valued ManySortedSet of NAT st ( for x being Int_position st x in X holds
t . x >= c + (t . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
t . x = s . x ) & t . a = s . a & t . (DataLoc ((s . a),i)) > 0 holds
( (IExec (I,Q,t)) . a = t . a & I is_closed_on t,Q & I is_halting_on t,Q & f . (Dstate (IExec (I,Q,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,Q,t)) . x >= c + ((IExec (I,Q,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,Q,t)) . x = t . x ) ) ) holds
IExec ((while>0 (a,i,I)),P,s) = IExec ((while>0 (a,i,I)),P,(IExec (I,P,s)))

let s be State of SCMPDS; :: thesis: for I being halt-free shiftable Program of SCMPDS
for a being Int_position
for i, c being Integer
for X, Y being set
for f being Function of (product the Object-Kind of SCMPDS),NAT st s . (DataLoc ((s . a),i)) > 0 & card I > 0 & ( for t being State of SCMPDS st f . (Dstate t) = 0 holds
t . (DataLoc ((s . a),i)) <= 0 ) & ( for x being Int_position st x in X holds
s . x >= c + (s . (DataLoc ((s . a),i))) ) & ( for t being State of SCMPDS
for Q being the Instructions of SCMPDS -valued ManySortedSet of NAT st ( for x being Int_position st x in X holds
t . x >= c + (t . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
t . x = s . x ) & t . a = s . a & t . (DataLoc ((s . a),i)) > 0 holds
( (IExec (I,Q,t)) . a = t . a & I is_closed_on t,Q & I is_halting_on t,Q & f . (Dstate (IExec (I,Q,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,Q,t)) . x >= c + ((IExec (I,Q,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,Q,t)) . x = t . x ) ) ) holds
IExec ((while>0 (a,i,I)),P,s) = IExec ((while>0 (a,i,I)),P,(IExec (I,P,s)))

let I be halt-free shiftable Program of SCMPDS; :: thesis: for a being Int_position
for i, c being Integer
for X, Y being set
for f being Function of (product the Object-Kind of SCMPDS),NAT st s . (DataLoc ((s . a),i)) > 0 & card I > 0 & ( for t being State of SCMPDS st f . (Dstate t) = 0 holds
t . (DataLoc ((s . a),i)) <= 0 ) & ( for x being Int_position st x in X holds
s . x >= c + (s . (DataLoc ((s . a),i))) ) & ( for t being State of SCMPDS
for Q being the Instructions of SCMPDS -valued ManySortedSet of NAT st ( for x being Int_position st x in X holds
t . x >= c + (t . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
t . x = s . x ) & t . a = s . a & t . (DataLoc ((s . a),i)) > 0 holds
( (IExec (I,Q,t)) . a = t . a & I is_closed_on t,Q & I is_halting_on t,Q & f . (Dstate (IExec (I,Q,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,Q,t)) . x >= c + ((IExec (I,Q,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,Q,t)) . x = t . x ) ) ) holds
IExec ((while>0 (a,i,I)),P,s) = IExec ((while>0 (a,i,I)),P,(IExec (I,P,s)))

let a be Int_position ; :: thesis: for i, c being Integer
for X, Y being set
for f being Function of (product the Object-Kind of SCMPDS),NAT st s . (DataLoc ((s . a),i)) > 0 & card I > 0 & ( for t being State of SCMPDS st f . (Dstate t) = 0 holds
t . (DataLoc ((s . a),i)) <= 0 ) & ( for x being Int_position st x in X holds
s . x >= c + (s . (DataLoc ((s . a),i))) ) & ( for t being State of SCMPDS
for Q being the Instructions of SCMPDS -valued ManySortedSet of NAT st ( for x being Int_position st x in X holds
t . x >= c + (t . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
t . x = s . x ) & t . a = s . a & t . (DataLoc ((s . a),i)) > 0 holds
( (IExec (I,Q,t)) . a = t . a & I is_closed_on t,Q & I is_halting_on t,Q & f . (Dstate (IExec (I,Q,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,Q,t)) . x >= c + ((IExec (I,Q,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,Q,t)) . x = t . x ) ) ) holds
IExec ((while>0 (a,i,I)),P,s) = IExec ((while>0 (a,i,I)),P,(IExec (I,P,s)))

let i, c be Integer; :: thesis: for X, Y being set
for f being Function of (product the Object-Kind of SCMPDS),NAT st s . (DataLoc ((s . a),i)) > 0 & card I > 0 & ( for t being State of SCMPDS st f . (Dstate t) = 0 holds
t . (DataLoc ((s . a),i)) <= 0 ) & ( for x being Int_position st x in X holds
s . x >= c + (s . (DataLoc ((s . a),i))) ) & ( for t being State of SCMPDS
for Q being the Instructions of SCMPDS -valued ManySortedSet of NAT st ( for x being Int_position st x in X holds
t . x >= c + (t . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
t . x = s . x ) & t . a = s . a & t . (DataLoc ((s . a),i)) > 0 holds
( (IExec (I,Q,t)) . a = t . a & I is_closed_on t,Q & I is_halting_on t,Q & f . (Dstate (IExec (I,Q,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,Q,t)) . x >= c + ((IExec (I,Q,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,Q,t)) . x = t . x ) ) ) holds
IExec ((while>0 (a,i,I)),P,s) = IExec ((while>0 (a,i,I)),P,(IExec (I,P,s)))

let X, Y be set ; :: thesis: for f being Function of (product the Object-Kind of SCMPDS),NAT st s . (DataLoc ((s . a),i)) > 0 & card I > 0 & ( for t being State of SCMPDS st f . (Dstate t) = 0 holds
t . (DataLoc ((s . a),i)) <= 0 ) & ( for x being Int_position st x in X holds
s . x >= c + (s . (DataLoc ((s . a),i))) ) & ( for t being State of SCMPDS
for Q being the Instructions of SCMPDS -valued ManySortedSet of NAT st ( for x being Int_position st x in X holds
t . x >= c + (t . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
t . x = s . x ) & t . a = s . a & t . (DataLoc ((s . a),i)) > 0 holds
( (IExec (I,Q,t)) . a = t . a & I is_closed_on t,Q & I is_halting_on t,Q & f . (Dstate (IExec (I,Q,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,Q,t)) . x >= c + ((IExec (I,Q,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,Q,t)) . x = t . x ) ) ) holds
IExec ((while>0 (a,i,I)),P,s) = IExec ((while>0 (a,i,I)),P,(IExec (I,P,s)))

let f be Function of (product the Object-Kind of SCMPDS),NAT; :: thesis: ( s . (DataLoc ((s . a),i)) > 0 & card I > 0 & ( for t being State of SCMPDS st f . (Dstate t) = 0 holds
t . (DataLoc ((s . a),i)) <= 0 ) & ( for x being Int_position st x in X holds
s . x >= c + (s . (DataLoc ((s . a),i))) ) & ( for t being State of SCMPDS
for Q being the Instructions of SCMPDS -valued ManySortedSet of NAT st ( for x being Int_position st x in X holds
t . x >= c + (t . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
t . x = s . x ) & t . a = s . a & t . (DataLoc ((s . a),i)) > 0 holds
( (IExec (I,Q,t)) . a = t . a & I is_closed_on t,Q & I is_halting_on t,Q & f . (Dstate (IExec (I,Q,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,Q,t)) . x >= c + ((IExec (I,Q,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,Q,t)) . x = t . x ) ) ) implies IExec ((while>0 (a,i,I)),P,s) = IExec ((while>0 (a,i,I)),P,(IExec (I,P,s))) )

set b = DataLoc ((s . a),i);
set WHL = while>0 (a,i,I);
set pWHL = stop (while>0 (a,i,I));
set s1 = Initialize s;
set ps = ProgramPart s;
set P1 = P +* (stop (while>0 (a,i,I)));
set i1 = (a,i) <=0_goto ((card I) + 2);
set i2 = goto (- ((card I) + 1));
assume A2: s . (DataLoc ((s . a),i)) > 0 ; :: thesis: ( not card I > 0 or ex t being State of SCMPDS st
( f . (Dstate t) = 0 & not t . (DataLoc ((s . a),i)) <= 0 ) or ex x being Int_position st
( x in X & not s . x >= c + (s . (DataLoc ((s . a),i))) ) or ex t being State of SCMPDS ex Q being the Instructions of SCMPDS -valued ManySortedSet of NAT st
( ( for x being Int_position st x in X holds
t . x >= c + (t . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
t . x = s . x ) & t . a = s . a & t . (DataLoc ((s . a),i)) > 0 & not ( (IExec (I,Q,t)) . a = t . a & I is_closed_on t,Q & I is_halting_on t,Q & f . (Dstate (IExec (I,Q,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,Q,t)) . x >= c + ((IExec (I,Q,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,Q,t)) . x = t . x ) ) ) or IExec ((while>0 (a,i,I)),P,s) = IExec ((while>0 (a,i,I)),P,(IExec (I,P,s))) )

set s4 = Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),1);
set P4 = P +* (stop (while>0 (a,i,I)));
A3: IC (Initialize s) = 0 by COMPOS_1:def 16;
A4: while>0 (a,i,I) = ((a,i) <=0_goto ((card I) + 2)) ';' (I ';' (goto (- ((card I) + 1)))) by SCMPDS_4:51;
A5: Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),(0 + 1)) = Following ((P +* (stop (while>0 (a,i,I)))),(Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),0))) by EXTPRO_1:4
.= Following ((P +* (stop (while>0 (a,i,I)))),(Initialize s)) by EXTPRO_1:3
.= Exec (((a,i) <=0_goto ((card I) + 2)),(Initialize s)) by A4, SCMPDS_6:22 ;
set m0 = LifeSpan ((P +* (stop (while>0 (a,i,I)))),(Initialize s));
A6: dom (ProgramPart s) = NAT by COMPOS_1:34;
A7: dom (ProgramPart s) = (dom s) /\ NAT by RELAT_1:90
.= (({(IC )} \/ SCM-Data-Loc) \/ NAT) /\ NAT by SCMPDS_4:19
.= NAT by XBOOLE_1:21 ;
set Es = IExec (I,P,s);
set bj = DataLoc (((IExec (I,P,s)) . a),i);
set EP = P;
assume card I > 0 ; :: thesis: ( ex t being State of SCMPDS st
( f . (Dstate t) = 0 & not t . (DataLoc ((s . a),i)) <= 0 ) or ex x being Int_position st
( x in X & not s . x >= c + (s . (DataLoc ((s . a),i))) ) or ex t being State of SCMPDS ex Q being the Instructions of SCMPDS -valued ManySortedSet of NAT st
( ( for x being Int_position st x in X holds
t . x >= c + (t . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
t . x = s . x ) & t . a = s . a & t . (DataLoc ((s . a),i)) > 0 & not ( (IExec (I,Q,t)) . a = t . a & I is_closed_on t,Q & I is_halting_on t,Q & f . (Dstate (IExec (I,Q,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,Q,t)) . x >= c + ((IExec (I,Q,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,Q,t)) . x = t . x ) ) ) or IExec ((while>0 (a,i,I)),P,s) = IExec ((while>0 (a,i,I)),P,(IExec (I,P,s))) )

assume A9: for t being State of SCMPDS st f . (Dstate t) = 0 holds
t . (DataLoc ((s . a),i)) <= 0 ; :: thesis: ( ex x being Int_position st
( x in X & not s . x >= c + (s . (DataLoc ((s . a),i))) ) or ex t being State of SCMPDS ex Q being the Instructions of SCMPDS -valued ManySortedSet of NAT st
( ( for x being Int_position st x in X holds
t . x >= c + (t . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
t . x = s . x ) & t . a = s . a & t . (DataLoc ((s . a),i)) > 0 & not ( (IExec (I,Q,t)) . a = t . a & I is_closed_on t,Q & I is_halting_on t,Q & f . (Dstate (IExec (I,Q,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,Q,t)) . x >= c + ((IExec (I,Q,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,Q,t)) . x = t . x ) ) ) or IExec ((while>0 (a,i,I)),P,s) = IExec ((while>0 (a,i,I)),P,(IExec (I,P,s))) )

assume A10: for x being Int_position st x in X holds
s . x >= c + (s . (DataLoc ((s . a),i))) ; :: thesis: ( ex t being State of SCMPDS ex Q being the Instructions of SCMPDS -valued ManySortedSet of NAT st
( ( for x being Int_position st x in X holds
t . x >= c + (t . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
t . x = s . x ) & t . a = s . a & t . (DataLoc ((s . a),i)) > 0 & not ( (IExec (I,Q,t)) . a = t . a & I is_closed_on t,Q & I is_halting_on t,Q & f . (Dstate (IExec (I,Q,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,Q,t)) . x >= c + ((IExec (I,Q,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,Q,t)) . x = t . x ) ) ) or IExec ((while>0 (a,i,I)),P,s) = IExec ((while>0 (a,i,I)),P,(IExec (I,P,s))) )

assume A11: for t being State of SCMPDS
for Q being the Instructions of SCMPDS -valued ManySortedSet of NAT st ( for x being Int_position st x in X holds
t . x >= c + (t . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
t . x = s . x ) & t . a = s . a & t . (DataLoc ((s . a),i)) > 0 holds
( (IExec (I,Q,t)) . a = t . a & I is_closed_on t,Q & I is_halting_on t,Q & f . (Dstate (IExec (I,Q,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,Q,t)) . x >= c + ((IExec (I,Q,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,Q,t)) . x = t . x ) ) ; :: thesis: IExec ((while>0 (a,i,I)),P,s) = IExec ((while>0 (a,i,I)),P,(IExec (I,P,s)))
then while>0 (a,i,I) is_halting_on s,P by A9, A10, Th24;
then A12: P +* (stop (while>0 (a,i,I))) halts_on Initialize s by SCMPDS_6:def 3;
A13: for x being Int_position st x in Y holds
s . x = s . x ;
then A14: DataLoc (((IExec (I,P,s)) . a),i) = DataLoc ((s . a),i) by A2, A10, A11;
set sI = Initialize s;
set PI = P +* (stop I);
set m1 = (LifeSpan ((P +* (stop I)),(Initialize s))) + 2;
set s2 = Initialize (IExec (I,P,s));
set P2 = P +* (stop (while>0 (a,i,I)));
set m2 = LifeSpan ((P +* (stop (while>0 (a,i,I)))),(Initialize (IExec (I,P,s))));
A17: stop I c= P +* (stop I) by FUNCT_4:26;
B17: Start-At (0,SCMPDS) c= Initialize s by FUNCT_4:26;
A18: (IExec (I,P,s)) . a = s . a by A2, A10, A11, A13;
A19: now
let t be State of SCMPDS; :: thesis: for Q being the Instructions of SCMPDS -valued ManySortedSet of NAT st ( for x being Int_position st x in X holds
t . x >= c + (t . (DataLoc (((IExec (I,P,s)) . a),i))) ) & ( for x being Int_position st x in Y holds
t . x = (IExec (I,P,s)) . x ) & t . a = (IExec (I,P,s)) . a & t . (DataLoc (((IExec (I,P,s)) . a),i)) > 0 holds
( (IExec (I,Q,t)) . a = t . a & I is_closed_on t,Q & I is_halting_on t,Q & f . (Dstate (IExec (I,Q,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,Q,t)) . x >= c + ((IExec (I,Q,t)) . (DataLoc (((IExec (I,P,s)) . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,Q,t)) . x = t . x ) )

let Q be the Instructions of SCMPDS -valued ManySortedSet of NAT ; :: thesis: ( ( for x being Int_position st x in X holds
t . x >= c + (t . (DataLoc (((IExec (I,P,s)) . a),i))) ) & ( for x being Int_position st x in Y holds
t . x = (IExec (I,P,s)) . x ) & t . a = (IExec (I,P,s)) . a & t . (DataLoc (((IExec (I,P,s)) . a),i)) > 0 implies ( (IExec (I,Q,t)) . a = t . a & I is_closed_on t,Q & I is_halting_on t,Q & f . (Dstate (IExec (I,Q,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,Q,t)) . x >= c + ((IExec (I,Q,t)) . (DataLoc (((IExec (I,P,s)) . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,Q,t)) . x = t . x ) ) )

assume that
A20: for x being Int_position st x in X holds
t . x >= c + (t . (DataLoc (((IExec (I,P,s)) . a),i))) and
A21: for x being Int_position st x in Y holds
t . x = (IExec (I,P,s)) . x and
A22: t . a = (IExec (I,P,s)) . a and
A23: t . (DataLoc (((IExec (I,P,s)) . a),i)) > 0 ; :: thesis: ( (IExec (I,Q,t)) . a = t . a & I is_closed_on t,Q & I is_halting_on t,Q & f . (Dstate (IExec (I,Q,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,Q,t)) . x >= c + ((IExec (I,Q,t)) . (DataLoc (((IExec (I,P,s)) . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,Q,t)) . x = t . x ) )

A24: now
let x be Int_position ; :: thesis: ( x in Y implies t . x = s . x )
assume A25: x in Y ; :: thesis: t . x = s . x
hence t . x = (IExec (I,P,s)) . x by A21
.= s . x by A2, A10, A11, A13, A25 ;
:: thesis: verum
end;
hence (IExec (I,Q,t)) . a = t . a by A11, A18, A20, A22, A23; :: thesis: ( I is_closed_on t,Q & I is_halting_on t,Q & f . (Dstate (IExec (I,Q,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,Q,t)) . x >= c + ((IExec (I,Q,t)) . (DataLoc (((IExec (I,P,s)) . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,Q,t)) . x = t . x ) )

A26: t . a = s . a by A2, A10, A11, A13, A22;
hence ( I is_closed_on t,Q & I is_halting_on t,Q ) by A11, A20, A22, A23, A24; :: thesis: ( f . (Dstate (IExec (I,Q,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,Q,t)) . x >= c + ((IExec (I,Q,t)) . (DataLoc (((IExec (I,P,s)) . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,Q,t)) . x = t . x ) )

thus f . (Dstate (IExec (I,Q,t))) < f . (Dstate t) by A11, A20, A22, A23, A24, A26; :: thesis: ( ( for x being Int_position st x in X holds
(IExec (I,Q,t)) . x >= c + ((IExec (I,Q,t)) . (DataLoc (((IExec (I,P,s)) . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,Q,t)) . x = t . x ) )

thus for x being Int_position st x in X holds
(IExec (I,Q,t)) . x >= c + ((IExec (I,Q,t)) . (DataLoc (((IExec (I,P,s)) . a),i))) by A11, A18, A20, A22, A23, A24; :: thesis: for x being Int_position st x in Y holds
(IExec (I,Q,t)) . x = t . x

thus for x being Int_position st x in Y holds
(IExec (I,Q,t)) . x = t . x by A11, A20, A22, A23, A24, A26; :: thesis: verum
end;
for x being Int_position st x in X holds
(IExec (I,P,s)) . x >= c + ((IExec (I,P,s)) . (DataLoc (((IExec (I,P,s)) . a),i))) by A2, A10, A11, A13, A18;
then while>0 (a,i,I) is_halting_on IExec (I,P,s),P by A9, A14, A19, Th24;
then A27: P +* (stop (while>0 (a,i,I))) halts_on Initialize (IExec (I,P,s)) by SCMPDS_6:def 3;
now
let a be Int_position ; :: thesis: (Initialize s) . a = (Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),1)) . a
thus (Initialize s) . a = (Initialize s) . a
.= (Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),1)) . a by A5, SCMPDS_2:68 ; :: thesis: verum
end;
then A29: DataPart (Initialize s) = DataPart (Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),1)) by SCMPDS_4:23;
set mI = LifeSpan ((P +* (stop I)),(Initialize s));
set s5 = Comput ((P +* (stop (while>0 (a,i,I)))),(Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),1)),(LifeSpan ((P +* (stop I)),(Initialize s))));
set P5 = P +* (stop (while>0 (a,i,I)));
set l1 = (card I) + 1;
XX: while>0 (a,i,I) c= stop (while>0 (a,i,I)) by AFINSQ_1:78;
stop (while>0 (a,i,I)) c= P +* (stop (while>0 (a,i,I))) by FUNCT_4:26;
then A30: while>0 (a,i,I) c= P +* (stop (while>0 (a,i,I))) by XBOOLE_1:1, XX;
set m3 = (LifeSpan ((P +* (stop I)),(Initialize s))) + 1;
A31: IExec (I,P,s) = (Result ((P +* (stop I)),(Initialize s))) +* (s | NAT) by SCMPDS_4:def 8;
set s7 = Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),(((LifeSpan ((P +* (stop I)),(Initialize s))) + 1) + 1));
set P7 = P +* (stop (while>0 (a,i,I)));
set s6 = Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),((LifeSpan ((P +* (stop I)),(Initialize s))) + 1));
set P6 = P +* (stop (while>0 (a,i,I)));
(card I) + 1 < (card I) + 2 by XREAL_1:8;
then A32: (card I) + 1 in dom (while>0 (a,i,I)) by Th18;
Shift (I,1) c= while>0 (a,i,I) by Lm4;
then Shift (I,1) c= P +* (stop (while>0 (a,i,I))) by A30, XBOOLE_1:1;
then A33: Shift (I,1) c= P +* (stop (while>0 (a,i,I))) ;
I is_halting_on s,P by A2, A10, A11, A13;
then A34: P +* (stop I) halts_on Initialize s by SCMPDS_6:def 3;
P +* (stop I) = (P +* (stop I)) +* (stop I) by A17, FUNCT_4:104;
then (P +* (stop I)) +* (stop I) halts_on Initialize (Initialize s) by A34;
then A36: I is_halting_on Initialize s,P +* (stop I) by SCMPDS_6:def 3;
A37: ProgramPart (IExec (I,P,s)) = ProgramPart ((Result ((P +* (stop I)),(Initialize s))) +* (ProgramPart s)) by SCMPDS_4:def 8
.= ProgramPart s by A7, FUNCT_4:24 ;
A38: not DataLoc ((s . a),i) in dom (Start-At (0,SCMPDS)) by SCMPDS_4:59;
not a in dom (Start-At (0,SCMPDS)) by SCMPDS_4:59;
then (Initialize s) . (DataLoc (((Initialize s) . a),i)) = (Initialize s) . (DataLoc ((s . a),i)) by FUNCT_4:12
.= s . (DataLoc ((s . a),i)) by A38, FUNCT_4:12 ;
then A39: IC (Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),1)) = succ (IC (Initialize s)) by A2, A5, SCMPDS_2:68
.= 0 + 1 by A3 ;
I is_closed_on s,P by A2, A10, A11, A13;
then A40: I is_closed_on Initialize s,P +* (stop I) by SCMPDS_6:38;
then A41: IC (Comput ((P +* (stop (while>0 (a,i,I)))),(Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),1)),(LifeSpan ((P +* (stop I)),(Initialize s))))) = (card I) + 1 by A17, B17, A36, A39, A29, A33, SCMPDS_7:36;
A42: (P +* (stop (while>0 (a,i,I)))) /. (IC (Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),((LifeSpan ((P +* (stop I)),(Initialize s))) + 1)))) = (P +* (stop (while>0 (a,i,I)))) . (IC (Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),((LifeSpan ((P +* (stop I)),(Initialize s))) + 1)))) by PBOOLE:158;
A43: Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),((LifeSpan ((P +* (stop I)),(Initialize s))) + 1)) = Comput ((P +* (stop (while>0 (a,i,I)))),(Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),1)),(LifeSpan ((P +* (stop I)),(Initialize s)))) by EXTPRO_1:5;
then A44: CurInstr ((P +* (stop (while>0 (a,i,I)))),(Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),((LifeSpan ((P +* (stop I)),(Initialize s))) + 1)))) = (P +* (stop (while>0 (a,i,I)))) . ((card I) + 1) by A17, B17, A36, A40, A39, A29, A33, A42, SCMPDS_7:36
.= (P +* (stop (while>0 (a,i,I)))) . ((card I) + 1)
.= (P +* (stop (while>0 (a,i,I)))) . ((card I) + 1)
.= (while>0 (a,i,I)) . ((card I) + 1) by A32, A30, GRFUNC_1:8
.= goto (- ((card I) + 1)) by Th19 ;
A46: Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),(((LifeSpan ((P +* (stop I)),(Initialize s))) + 1) + 1)) = Following ((P +* (stop (while>0 (a,i,I)))),(Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),((LifeSpan ((P +* (stop I)),(Initialize s))) + 1)))) by EXTPRO_1:4
.= Exec ((goto (- ((card I) + 1))),(Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),((LifeSpan ((P +* (stop I)),(Initialize s))) + 1)))) by A44 ;
then IC (Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),(((LifeSpan ((P +* (stop I)),(Initialize s))) + 1) + 1))) = ICplusConst ((Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),((LifeSpan ((P +* (stop I)),(Initialize s))) + 1))),(0 - ((card I) + 1))) by SCMPDS_2:66
.= 0 by A41, A43, SCMPDS_7:1 ;
then A47: IC (Initialize (IExec (I,P,s))) = IC (Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),((LifeSpan ((P +* (stop I)),(Initialize s))) + 2))) by COMPOS_1:def 16;
A48: DataPart (Comput ((P +* (stop I)),(Initialize s),(LifeSpan ((P +* (stop I)),(Initialize s))))) = DataPart (Comput ((P +* (stop (while>0 (a,i,I)))),(Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),1)),(LifeSpan ((P +* (stop I)),(Initialize s))))) by A17, B17, A36, A40, A39, A29, A33, SCMPDS_7:36;
now
let x be Int_position ; :: thesis: (Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),(((LifeSpan ((P +* (stop I)),(Initialize s))) + 1) + 1))) . x = (Initialize (IExec (I,P,s))) . x
A49: not x in dom (Start-At (0,SCMPDS)) by SCMPDS_4:59;
A50: not x in dom (s | NAT) by A6, SCMPDS_2:53;
(Comput ((P +* (stop (while>0 (a,i,I)))),(Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),1)),(LifeSpan ((P +* (stop I)),(Initialize s))))) . x = (Comput ((P +* (stop I)),(Initialize s),(LifeSpan ((P +* (stop I)),(Initialize s))))) . x by A48, SCMPDS_4:23
.= (Result ((P +* (stop I)),(Initialize s))) . x by A34, EXTPRO_1:23
.= (IExec (I,P,s)) . x by A31, A50, FUNCT_4:12 ;
hence (Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),(((LifeSpan ((P +* (stop I)),(Initialize s))) + 1) + 1))) . x = (IExec (I,P,s)) . x by A43, A46, SCMPDS_2:66
.= (Initialize (IExec (I,P,s))) . x by A49, FUNCT_4:12 ;
:: thesis: verum
end;
then A51: DataPart (Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),(((LifeSpan ((P +* (stop I)),(Initialize s))) + 1) + 1))) = DataPart (Initialize (IExec (I,P,s))) by SCMPDS_4:23;
ProgramPart (Initialize (IExec (I,P,s))) = ProgramPart (IExec (I,P,s)) by COMPOS_1:206
.= ProgramPart ((Result ((P +* (stop I)),(Initialize s))) +* (ProgramPart s)) by SCMPDS_4:def 8
.= ProgramPart ((Result ((P +* (stop I)),(Initialize s))) +* (ProgramPart s))
.= ProgramPart s by A7, FUNCT_4:24
.= ProgramPart (Initialize s) by COMPOS_1:206
.= ProgramPart (Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),((LifeSpan ((P +* (stop I)),(Initialize s))) + 2))) by AMI_1:123 ;
then A53: Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),((LifeSpan ((P +* (stop I)),(Initialize s))) + 2)) = Initialize (IExec (I,P,s)) by A51, A47, SCMPDS_7:7;
then CurInstr ((P +* (stop (while>0 (a,i,I)))),(Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),((LifeSpan ((P +* (stop I)),(Initialize s))) + 2)))) = (a,i) <=0_goto ((card I) + 2) by A4, SCMPDS_6:22;
then LifeSpan ((P +* (stop (while>0 (a,i,I)))),(Initialize s)) > (LifeSpan ((P +* (stop I)),(Initialize s))) + 2 by A12, SCMPDS_6:2, SCMPDS_6:30;
then consider nn being Nat such that
A54: LifeSpan ((P +* (stop (while>0 (a,i,I)))),(Initialize s)) = ((LifeSpan ((P +* (stop I)),(Initialize s))) + 2) + nn by NAT_1:10;
reconsider nn = nn as Element of NAT by ORDINAL1:def 13;
Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),(((LifeSpan ((P +* (stop I)),(Initialize s))) + 2) + (LifeSpan ((P +* (stop (while>0 (a,i,I)))),(Initialize (IExec (I,P,s))))))) = Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize (IExec (I,P,s))),(LifeSpan ((P +* (stop (while>0 (a,i,I)))),(Initialize (IExec (I,P,s)))))) by A53, EXTPRO_1:5;
then CurInstr ((P +* (stop (while>0 (a,i,I)))),(Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),(((LifeSpan ((P +* (stop I)),(Initialize s))) + 2) + (LifeSpan ((P +* (stop (while>0 (a,i,I)))),(Initialize (IExec (I,P,s))))))))) = halt SCMPDS by A27, EXTPRO_1:def 14;
then ((LifeSpan ((P +* (stop I)),(Initialize s))) + 2) + (LifeSpan ((P +* (stop (while>0 (a,i,I)))),(Initialize (IExec (I,P,s))))) >= LifeSpan ((P +* (stop (while>0 (a,i,I)))),(Initialize s)) by A12, EXTPRO_1:def 14;
then A56: LifeSpan ((P +* (stop (while>0 (a,i,I)))),(Initialize (IExec (I,P,s)))) >= nn by A54, XREAL_1:8;
A57: Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize s),(LifeSpan ((P +* (stop (while>0 (a,i,I)))),(Initialize s)))) = Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize (IExec (I,P,s))),nn) by A53, A54, EXTPRO_1:5;
then CurInstr ((P +* (stop (while>0 (a,i,I)))),(Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize (IExec (I,P,s))),nn))) = halt SCMPDS by A12, EXTPRO_1:def 14;
then nn >= LifeSpan ((P +* (stop (while>0 (a,i,I)))),(Initialize (IExec (I,P,s)))) by A27, EXTPRO_1:def 14;
then nn = LifeSpan ((P +* (stop (while>0 (a,i,I)))),(Initialize (IExec (I,P,s)))) by A56, XXREAL_0:1;
then Result ((P +* (stop (while>0 (a,i,I)))),(Initialize s)) = Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize (IExec (I,P,s))),(LifeSpan ((P +* (stop (while>0 (a,i,I)))),(Initialize (IExec (I,P,s)))))) by A12, A57, EXTPRO_1:23;
hence IExec ((while>0 (a,i,I)),P,s) = (Comput ((P +* (stop (while>0 (a,i,I)))),(Initialize (IExec (I,P,s))),(LifeSpan ((P +* (stop (while>0 (a,i,I)))),(Initialize (IExec (I,P,s))))))) +* (ProgramPart s) by SCMPDS_4:def 8
.= (Result ((P +* (stop (while>0 (a,i,I)))),(Initialize (IExec (I,P,s))))) +* ((IExec (I,P,s)) | NAT) by A27, A37, EXTPRO_1:23
.= IExec ((while>0 (a,i,I)),P,(IExec (I,P,s))) by SCMPDS_4:def 8 ;
:: thesis: verum