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 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,t)) . a = t . a & I is_closed_on t & I is_halting_on t & f . (Dstate (IExec (I,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,t)) . x >= c + ((IExec (I,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,t)) . x = t . x ) ) ) holds
IExec ((while>0 (a,i,I)),s) = IExec ((while>0 (a,i,I)),(IExec (I,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 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,t)) . a = t . a & I is_closed_on t & I is_halting_on t & f . (Dstate (IExec (I,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,t)) . x >= c + ((IExec (I,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,t)) . x = t . x ) ) ) holds
IExec ((while>0 (a,i,I)),s) = IExec ((while>0 (a,i,I)),(IExec (I,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 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,t)) . a = t . a & I is_closed_on t & I is_halting_on t & f . (Dstate (IExec (I,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,t)) . x >= c + ((IExec (I,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,t)) . x = t . x ) ) ) holds
IExec ((while>0 (a,i,I)),s) = IExec ((while>0 (a,i,I)),(IExec (I,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 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,t)) . a = t . a & I is_closed_on t & I is_halting_on t & f . (Dstate (IExec (I,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,t)) . x >= c + ((IExec (I,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,t)) . x = t . x ) ) ) holds
IExec ((while>0 (a,i,I)),s) = IExec ((while>0 (a,i,I)),(IExec (I,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 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,t)) . a = t . a & I is_closed_on t & I is_halting_on t & f . (Dstate (IExec (I,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,t)) . x >= c + ((IExec (I,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,t)) . x = t . x ) ) ) holds
IExec ((while>0 (a,i,I)),s) = IExec ((while>0 (a,i,I)),(IExec (I,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 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,t)) . a = t . a & I is_closed_on t & I is_halting_on t & f . (Dstate (IExec (I,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,t)) . x >= c + ((IExec (I,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,t)) . x = t . x ) ) ) implies IExec ((while>0 (a,i,I)),s) = IExec ((while>0 (a,i,I)),(IExec (I,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) +* (stop (while>0 (a,i,I)));
set ps = ProgramPart s;
set i1 = (a,i) <=0_goto ((card I) + 2);
set i2 = goto (- ((card I) + 1));
A1: (Initialize s) +* (stop (while>0 (a,i,I))) = s +* (Initialize (stop (while>0 (a,i,I)))) by COMPOS_1:125;
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 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,t)) . a = t . a & I is_closed_on t & I is_halting_on t & f . (Dstate (IExec (I,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,t)) . x >= c + ((IExec (I,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,t)) . x = t . x ) ) ) or IExec ((while>0 (a,i,I)),s) = IExec ((while>0 (a,i,I)),(IExec (I,s))) )

set s4 = Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),1);
A3: IC ((Initialize s) +* (stop (while>0 (a,i,I)))) = 0 by SCMPDS_6:21;
A4: while>0 (a,i,I) = ((a,i) <=0_goto ((card I) + 2)) ';' (I ';' (goto (- ((card I) + 1)))) by SCMPDS_4:51;
A5: Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),(0 + 1)) = Following ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),(Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),0))) by EXTPRO_1:4
.= Following ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I))))) by EXTPRO_1:3
.= Exec (((a,i) <=0_goto ((card I) + 2)),((Initialize s) +* (stop (while>0 (a,i,I))))) by A4, A1, SCMPDS_6:22 ;
set m0 = LifeSpan ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))));
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,s);
set bj = DataLoc (((IExec (I,s)) . a),i);
assume A8: 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 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,t)) . a = t . a & I is_closed_on t & I is_halting_on t & f . (Dstate (IExec (I,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,t)) . x >= c + ((IExec (I,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,t)) . x = t . x ) ) ) or IExec ((while>0 (a,i,I)),s) = IExec ((while>0 (a,i,I)),(IExec (I,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 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,t)) . a = t . a & I is_closed_on t & I is_halting_on t & f . (Dstate (IExec (I,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,t)) . x >= c + ((IExec (I,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,t)) . x = t . x ) ) ) or IExec ((while>0 (a,i,I)),s) = IExec ((while>0 (a,i,I)),(IExec (I,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 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,t)) . a = t . a & I is_closed_on t & I is_halting_on t & f . (Dstate (IExec (I,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,t)) . x >= c + ((IExec (I,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,t)) . x = t . x ) ) ) or IExec ((while>0 (a,i,I)),s) = IExec ((while>0 (a,i,I)),(IExec (I,s))) )

assume A11: for t being State of SCMPDS 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,t)) . a = t . a & I is_closed_on t & I is_halting_on t & f . (Dstate (IExec (I,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,t)) . x >= c + ((IExec (I,t)) . (DataLoc ((s . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,t)) . x = t . x ) ) ; :: thesis: IExec ((while>0 (a,i,I)),s) = IExec ((while>0 (a,i,I)),(IExec (I,s)))
then while>0 (a,i,I) is_halting_on s by A8, A9, A10, Th24;
then A12: ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I)))) halts_on (Initialize s) +* (stop (while>0 (a,i,I))) 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,s)) . a),i) = DataLoc ((s . a),i) by A2, A10, A11;
set sI = (Initialize s) +* (stop I);
set m1 = (LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 2;
set s2 = (Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I)));
set m2 = LifeSpan ((ProgramPart ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))))),((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I)))));
A15: (Initialize s) +* (stop I) = s +* (Initialize (stop I)) by COMPOS_1:125;
A16: (Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))) = (IExec (I,s)) +* (Initialize (stop (while>0 (a,i,I)))) by COMPOS_1:125;
A17: Initialize (stop I) c= (Initialize s) +* (stop I) by A15, FUNCT_4:26;
A18: (IExec (I,s)) . a = s . a by A2, A10, A11, A13;
A19: now
let t be State of SCMPDS; :: thesis: ( ( for x being Int_position st x in X holds
t . x >= c + (t . (DataLoc (((IExec (I,s)) . a),i))) ) & ( for x being Int_position st x in Y holds
t . x = (IExec (I,s)) . x ) & t . a = (IExec (I,s)) . a & t . (DataLoc (((IExec (I,s)) . a),i)) > 0 implies ( (IExec (I,t)) . a = t . a & I is_closed_on t & I is_halting_on t & f . (Dstate (IExec (I,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,t)) . x >= c + ((IExec (I,t)) . (DataLoc (((IExec (I,s)) . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,t)) . x = t . x ) ) )

assume that
A20: for x being Int_position st x in X holds
t . x >= c + (t . (DataLoc (((IExec (I,s)) . a),i))) and
A21: for x being Int_position st x in Y holds
t . x = (IExec (I,s)) . x and
A22: t . a = (IExec (I,s)) . a and
A23: t . (DataLoc (((IExec (I,s)) . a),i)) > 0 ; :: thesis: ( (IExec (I,t)) . a = t . a & I is_closed_on t & I is_halting_on t & f . (Dstate (IExec (I,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,t)) . x >= c + ((IExec (I,t)) . (DataLoc (((IExec (I,s)) . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,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,s)) . x by A21
.= s . x by A2, A10, A11, A13, A25 ;
:: thesis: verum
end;
hence (IExec (I,t)) . a = t . a by A11, A18, A20, A22, A23; :: thesis: ( I is_closed_on t & I is_halting_on t & f . (Dstate (IExec (I,t))) < f . (Dstate t) & ( for x being Int_position st x in X holds
(IExec (I,t)) . x >= c + ((IExec (I,t)) . (DataLoc (((IExec (I,s)) . a),i))) ) & ( for x being Int_position st x in Y holds
(IExec (I,t)) . x = t . x ) )

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

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

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

thus for x being Int_position st x in Y holds
(IExec (I,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,s)) . x >= c + ((IExec (I,s)) . (DataLoc (((IExec (I,s)) . a),i))) by A2, A10, A11, A13, A18;
then while>0 (a,i,I) is_halting_on IExec (I,s) by A8, A9, A14, A19, Th24;
then A27: ProgramPart ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I)))) halts_on (Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))) by SCMPDS_6:def 3;
A28: DataPart ((Initialize s) +* (stop I)) = DataPart ((Initialize s) +* (stop (while>0 (a,i,I)))) by COMPOS_1:138, FUNCT_7:134;
now
let a be Int_position ; :: thesis: ((Initialize s) +* (stop I)) . a = (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),1)) . a
thus ((Initialize s) +* (stop I)) . a = ((Initialize s) +* (stop (while>0 (a,i,I)))) . a by A28, SCMPDS_4:23
.= (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),1)) . a by A5, SCMPDS_2:68 ; :: thesis: verum
end;
then A29: DataPart ((Initialize s) +* (stop I)) = DataPart (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),1)) by SCMPDS_4:23;
set mI = LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)));
set s5 = Comput ((ProgramPart (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),1))),(Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),1)),(LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))));
set l1 = (card I) + 1;
( while>0 (a,i,I) c= Initialize (stop (while>0 (a,i,I))) & Initialize (stop (while>0 (a,i,I))) c= (Initialize s) +* (stop (while>0 (a,i,I))) ) by A1, FUNCT_4:26, SCMPDS_6:17;
then A30: while>0 (a,i,I) c= (Initialize s) +* (stop (while>0 (a,i,I))) by XBOOLE_1:1;
set m3 = (LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 1;
A31: IExec (I,s) = (Result ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) +* (s | NAT) by SCMPDS_4:def 8;
set s7 = Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),(((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 1) + 1));
set s6 = Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 1));
(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= (Initialize s) +* (stop (while>0 (a,i,I))) by A30, XBOOLE_1:1;
then A33: Shift (I,1) c= Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),1) by AMI_1:81;
I is_halting_on s by A2, A10, A11, A13;
then A34: ProgramPart ((Initialize s) +* (stop I)) halts_on (Initialize s) +* (stop I) by SCMPDS_6:def 3;
A35: (Initialize ((Initialize s) +* (stop I))) +* (stop I) = ((Initialize s) +* (stop I)) +* (Initialize (stop I)) by COMPOS_1:125;
(Initialize s) +* (stop I) = (Initialize ((Initialize s) +* (stop I))) +* (stop I) by A17, A35, FUNCT_4:79;
then ProgramPart ((Initialize ((Initialize s) +* (stop I))) +* (stop I)) halts_on (Initialize ((Initialize s) +* (stop I))) +* (stop I) by A34;
then A36: I is_halting_on (Initialize s) +* (stop I) by SCMPDS_6:def 3;
A37: ProgramPart (IExec (I,s)) = ProgramPart ((Result ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) +* (ProgramPart s)) by SCMPDS_4:def 8
.= ProgramPart s by A7, FUNCT_4:24 ;
A38: not DataLoc ((s . a),i) in dom (Initialize (stop (while>0 (a,i,I)))) by SCMPDS_4:31;
not a in dom (Initialize (stop (while>0 (a,i,I)))) by SCMPDS_4:31;
then ((Initialize s) +* (stop (while>0 (a,i,I)))) . (DataLoc ((((Initialize s) +* (stop (while>0 (a,i,I)))) . a),i)) = ((Initialize s) +* (stop (while>0 (a,i,I)))) . (DataLoc ((s . a),i)) by A1, FUNCT_4:12
.= s . (DataLoc ((s . a),i)) by A38, A1, FUNCT_4:12 ;
then A39: IC (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),1)) = succ (IC ((Initialize s) +* (stop (while>0 (a,i,I))))) by A2, A5, SCMPDS_2:68
.= 0 + 1 by A3 ;
I is_closed_on s by A2, A10, A11, A13;
then A40: I is_closed_on (Initialize s) +* (stop I) by SCMPDS_6:38;
then A41: IC (Comput ((ProgramPart (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),1))),(Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),1)),(LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))))) = (card I) + 1 by A8, A17, A36, A39, A29, A33, SCMPDS_7:36;
A42: (ProgramPart (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 1)))) /. (IC (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 1)))) = (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 1))) . (IC (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 1)))) by COMPOS_1:38;
ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I)))) = ProgramPart (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),1)) by AMI_1:123;
then A43: Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 1)) = Comput ((ProgramPart (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),1))),(Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),1)),(LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I))))) by EXTPRO_1:5;
then A44: CurInstr ((ProgramPart (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 1)))),(Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 1)))) = (Comput ((ProgramPart (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),1))),(Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),1)),(LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))))) . ((card I) + 1) by A8, A17, A36, A40, A39, A29, A33, A42, SCMPDS_7:36
.= (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),1)) . ((card I) + 1) by AMI_1:54
.= ((Initialize s) +* (stop (while>0 (a,i,I)))) . ((card I) + 1) by AMI_1:54
.= (while>0 (a,i,I)) . ((card I) + 1) by A32, A30, GRFUNC_1:8
.= goto (- ((card I) + 1)) by Th19 ;
A45: ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I)))) = ProgramPart (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 1))) by AMI_1:123;
A46: Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),(((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 1) + 1)) = Following ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),(Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 1)))) by EXTPRO_1:4
.= Exec ((goto (- ((card I) + 1))),(Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 1)))) by A44, A45 ;
then IC (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),(((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 1) + 1))) = ICplusConst ((Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 1))),(0 - ((card I) + 1))) by SCMPDS_2:66
.= 0 by A41, A43, SCMPDS_7:1 ;
then A47: IC ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I)))) = IC (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 2))) by SCMPDS_6:21;
A48: DataPart (Comput ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)),(LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))))) = DataPart (Comput ((ProgramPart (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),1))),(Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),1)),(LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))))) by A8, A17, A36, A40, A39, A29, A33, SCMPDS_7:36;
now
let x be Int_position ; :: thesis: (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),(((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 1) + 1))) . x = ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I)))) . x
A49: not x in dom (Initialize (stop (while>0 (a,i,I)))) by SCMPDS_4:31;
A50: not x in dom (s | NAT) by A6, SCMPDS_2:53;
(Comput ((ProgramPart (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),1))),(Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),1)),(LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))))) . x = (Comput ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)),(LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))))) . x by A48, SCMPDS_4:23
.= (Result ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) . x by A34, EXTPRO_1:23
.= (IExec (I,s)) . x by A31, A50, FUNCT_4:12 ;
hence (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),(((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 1) + 1))) . x = (IExec (I,s)) . x by A43, A46, SCMPDS_2:66
.= ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I)))) . x by A49, A16, FUNCT_4:12 ;
:: thesis: verum
end;
then A51: DataPart (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),(((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 1) + 1))) = DataPart ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I)))) by SCMPDS_4:23;
A52: ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I)))) = ProgramPart (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 2))) by AMI_1:123;
ProgramPart ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I)))) = ProgramPart (((Result ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) +* (ProgramPart s)) +* (Initialize (stop (while>0 (a,i,I))))) by A16, SCMPDS_4:def 8
.= (ProgramPart ((Result ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) +* (ProgramPart s))) +* (ProgramPart (Initialize (stop (while>0 (a,i,I))))) by FUNCT_4:75
.= (ProgramPart s) +* (ProgramPart (Initialize (stop (while>0 (a,i,I))))) by A7, FUNCT_4:24
.= ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I)))) by A1, FUNCT_4:75
.= ProgramPart (Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 2))) by AMI_1:123 ;
then A53: Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 2)) = (Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))) by A51, A47, SCMPDS_7:7;
then CurInstr ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),(Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 2)))) = (a,i) <=0_goto ((card I) + 2) by A4, A52, A16, SCMPDS_6:22;
then LifeSpan ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I))))) > (LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 2 by A12, SCMPDS_6:2, SCMPDS_6:30;
then consider nn being Nat such that
A54: LifeSpan ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I))))) = ((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 2) + nn by NAT_1:10;
reconsider nn = nn as Element of NAT by ORDINAL1:def 13;
A55: ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I)))) = ProgramPart ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I)))) by A53, AMI_1:123;
Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),(((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 2) + (LifeSpan ((ProgramPart ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))))),((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I)))))))) = Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I)))),(LifeSpan ((ProgramPart ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))))),((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))))))) by A53, EXTPRO_1:5;
then CurInstr ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),(Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),(((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 2) + (LifeSpan ((ProgramPart ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))))),((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I)))))))))) = halt SCMPDS by A27, A55, EXTPRO_1:def 14;
then ((LifeSpan ((ProgramPart ((Initialize s) +* (stop I))),((Initialize s) +* (stop I)))) + 2) + (LifeSpan ((ProgramPart ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))))),((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I)))))) >= LifeSpan ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I))))) by A12, EXTPRO_1:def 14;
then A56: LifeSpan ((ProgramPart ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))))),((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))))) >= nn by A54, XREAL_1:8;
A57: Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I)))),(LifeSpan ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I))))))) = Comput ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I)))),nn) by A53, A54, EXTPRO_1:5;
then CurInstr ((ProgramPart ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))))),(Comput ((ProgramPart ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))))),((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I)))),nn))) = halt SCMPDS by A12, A55, EXTPRO_1:def 14;
then nn >= LifeSpan ((ProgramPart ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))))),((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))))) by A27, EXTPRO_1:def 14;
then nn = LifeSpan ((ProgramPart ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))))),((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))))) by A56, XXREAL_0:1;
then Result ((ProgramPart ((Initialize s) +* (stop (while>0 (a,i,I))))),((Initialize s) +* (stop (while>0 (a,i,I))))) = Comput ((ProgramPart ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))))),((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I)))),(LifeSpan ((ProgramPart ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))))),((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))))))) by A12, A57, A55, EXTPRO_1:23;
hence IExec ((while>0 (a,i,I)),s) = (Comput ((ProgramPart ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))))),((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I)))),(LifeSpan ((ProgramPart ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))))),((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I)))))))) +* (ProgramPart s) by SCMPDS_4:def 8
.= (Result ((ProgramPart ((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I))))),((Initialize (IExec (I,s))) +* (stop (while>0 (a,i,I)))))) +* ((IExec (I,s)) | NAT) by A27, A37, EXTPRO_1:23
.= IExec ((while>0 (a,i,I)),(IExec (I,s))) by SCMPDS_4:def 8 ;
:: thesis: verum