let s be State of SCMPDS; :: thesis: for I being halt-free shiftable Program of SCMPDS
for a being Int_position
for i being Integer
for n being Element of NAT
for X being set st s . (DataLoc ((s . a),i)) > 0 & not DataLoc ((s . a),i) in X & n > 0 & card I > 0 & a <> DataLoc ((s . a),i) & ( for t being 0 -started State of SCMPDS st ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a holds
( (IExec (I,t)) . a = t . a & (IExec (I,t)) . (DataLoc ((s . a),i)) = t . (DataLoc ((s . a),i)) & I is_closed_on t & I is_halting_on t & ( for y being Int_position st y in X holds
(IExec (I,t)) . y = t . y ) ) ) holds
( for-down (a,i,n,I) is_closed_on s & for-down (a,i,n,I) is_halting_on s )

let I be halt-free shiftable Program of SCMPDS; :: thesis: for a being Int_position
for i being Integer
for n being Element of NAT
for X being set st s . (DataLoc ((s . a),i)) > 0 & not DataLoc ((s . a),i) in X & n > 0 & card I > 0 & a <> DataLoc ((s . a),i) & ( for t being 0 -started State of SCMPDS st ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a holds
( (IExec (I,t)) . a = t . a & (IExec (I,t)) . (DataLoc ((s . a),i)) = t . (DataLoc ((s . a),i)) & I is_closed_on t & I is_halting_on t & ( for y being Int_position st y in X holds
(IExec (I,t)) . y = t . y ) ) ) holds
( for-down (a,i,n,I) is_closed_on s & for-down (a,i,n,I) is_halting_on s )

let a be Int_position ; :: thesis: for i being Integer
for n being Element of NAT
for X being set st s . (DataLoc ((s . a),i)) > 0 & not DataLoc ((s . a),i) in X & n > 0 & card I > 0 & a <> DataLoc ((s . a),i) & ( for t being 0 -started State of SCMPDS st ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a holds
( (IExec (I,t)) . a = t . a & (IExec (I,t)) . (DataLoc ((s . a),i)) = t . (DataLoc ((s . a),i)) & I is_closed_on t & I is_halting_on t & ( for y being Int_position st y in X holds
(IExec (I,t)) . y = t . y ) ) ) holds
( for-down (a,i,n,I) is_closed_on s & for-down (a,i,n,I) is_halting_on s )

let i be Integer; :: thesis: for n being Element of NAT
for X being set st s . (DataLoc ((s . a),i)) > 0 & not DataLoc ((s . a),i) in X & n > 0 & card I > 0 & a <> DataLoc ((s . a),i) & ( for t being 0 -started State of SCMPDS st ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a holds
( (IExec (I,t)) . a = t . a & (IExec (I,t)) . (DataLoc ((s . a),i)) = t . (DataLoc ((s . a),i)) & I is_closed_on t & I is_halting_on t & ( for y being Int_position st y in X holds
(IExec (I,t)) . y = t . y ) ) ) holds
( for-down (a,i,n,I) is_closed_on s & for-down (a,i,n,I) is_halting_on s )

let n be Element of NAT ; :: thesis: for X being set st s . (DataLoc ((s . a),i)) > 0 & not DataLoc ((s . a),i) in X & n > 0 & card I > 0 & a <> DataLoc ((s . a),i) & ( for t being 0 -started State of SCMPDS st ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a holds
( (IExec (I,t)) . a = t . a & (IExec (I,t)) . (DataLoc ((s . a),i)) = t . (DataLoc ((s . a),i)) & I is_closed_on t & I is_halting_on t & ( for y being Int_position st y in X holds
(IExec (I,t)) . y = t . y ) ) ) holds
( for-down (a,i,n,I) is_closed_on s & for-down (a,i,n,I) is_halting_on s )

let X be set ; :: thesis: ( s . (DataLoc ((s . a),i)) > 0 & not DataLoc ((s . a),i) in X & n > 0 & card I > 0 & a <> DataLoc ((s . a),i) & ( for t being 0 -started State of SCMPDS st ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a holds
( (IExec (I,t)) . a = t . a & (IExec (I,t)) . (DataLoc ((s . a),i)) = t . (DataLoc ((s . a),i)) & I is_closed_on t & I is_halting_on t & ( for y being Int_position st y in X holds
(IExec (I,t)) . y = t . y ) ) ) implies ( for-down (a,i,n,I) is_closed_on s & for-down (a,i,n,I) is_halting_on s ) )

set b = DataLoc ((s . a),i);
set FOR = for-down (a,i,n,I);
set pFOR = stop (for-down (a,i,n,I));
set pI = stop I;
set i1 = (a,i) <=0_goto ((card I) + 3);
set i2 = AddTo (a,i,(- n));
set i3 = goto (- ((card I) + 2));
assume A1: s . (DataLoc ((s . a),i)) > 0 ; :: thesis: ( DataLoc ((s . a),i) in X or not n > 0 or not card I > 0 or not a <> DataLoc ((s . a),i) or ex t being 0 -started State of SCMPDS st
( ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a & not ( (IExec (I,t)) . a = t . a & (IExec (I,t)) . (DataLoc ((s . a),i)) = t . (DataLoc ((s . a),i)) & I is_closed_on t & I is_halting_on t & ( for y being Int_position st y in X holds
(IExec (I,t)) . y = t . y ) ) ) or ( for-down (a,i,n,I) is_closed_on s & for-down (a,i,n,I) is_halting_on s ) )

defpred S1[ Element of NAT ] means for t being State of SCMPDS st t . (DataLoc ((s . a),i)) <= $1 & ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a holds
( for-down (a,i,n,I) is_closed_on t & for-down (a,i,n,I) is_halting_on t );
assume A2: not DataLoc ((s . a),i) in X ; :: thesis: ( not n > 0 or not card I > 0 or not a <> DataLoc ((s . a),i) or ex t being 0 -started State of SCMPDS st
( ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a & not ( (IExec (I,t)) . a = t . a & (IExec (I,t)) . (DataLoc ((s . a),i)) = t . (DataLoc ((s . a),i)) & I is_closed_on t & I is_halting_on t & ( for y being Int_position st y in X holds
(IExec (I,t)) . y = t . y ) ) ) or ( for-down (a,i,n,I) is_closed_on s & for-down (a,i,n,I) is_halting_on s ) )

assume A3: n > 0 ; :: thesis: ( not card I > 0 or not a <> DataLoc ((s . a),i) or ex t being 0 -started State of SCMPDS st
( ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a & not ( (IExec (I,t)) . a = t . a & (IExec (I,t)) . (DataLoc ((s . a),i)) = t . (DataLoc ((s . a),i)) & I is_closed_on t & I is_halting_on t & ( for y being Int_position st y in X holds
(IExec (I,t)) . y = t . y ) ) ) or ( for-down (a,i,n,I) is_closed_on s & for-down (a,i,n,I) is_halting_on s ) )

assume A4: card I > 0 ; :: thesis: ( not a <> DataLoc ((s . a),i) or ex t being 0 -started State of SCMPDS st
( ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a & not ( (IExec (I,t)) . a = t . a & (IExec (I,t)) . (DataLoc ((s . a),i)) = t . (DataLoc ((s . a),i)) & I is_closed_on t & I is_halting_on t & ( for y being Int_position st y in X holds
(IExec (I,t)) . y = t . y ) ) ) or ( for-down (a,i,n,I) is_closed_on s & for-down (a,i,n,I) is_halting_on s ) )

assume A5: a <> DataLoc ((s . a),i) ; :: thesis: ( ex t being 0 -started State of SCMPDS st
( ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a & not ( (IExec (I,t)) . a = t . a & (IExec (I,t)) . (DataLoc ((s . a),i)) = t . (DataLoc ((s . a),i)) & I is_closed_on t & I is_halting_on t & ( for y being Int_position st y in X holds
(IExec (I,t)) . y = t . y ) ) ) or ( for-down (a,i,n,I) is_closed_on s & for-down (a,i,n,I) is_halting_on s ) )

assume A6: for t being 0 -started State of SCMPDS st ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a holds
( (IExec (I,t)) . a = t . a & (IExec (I,t)) . (DataLoc ((s . a),i)) = t . (DataLoc ((s . a),i)) & I is_closed_on t & I is_halting_on t & ( for y being Int_position st y in X holds
(IExec (I,t)) . y = t . y ) ) ; :: thesis: ( for-down (a,i,n,I) is_closed_on s & for-down (a,i,n,I) is_halting_on s )
A7: for k being Element of NAT st S1[k] holds
S1[k + 1]
proof
let k be Element of NAT ; :: thesis: ( S1[k] implies S1[k + 1] )
assume A8: S1[k] ; :: thesis: S1[k + 1]
let t be State of SCMPDS; :: thesis: ( t . (DataLoc ((s . a),i)) <= k + 1 & ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a implies ( for-down (a,i,n,I) is_closed_on t & for-down (a,i,n,I) is_halting_on t ) )

assume A9: t . (DataLoc ((s . a),i)) <= k + 1 ; :: thesis: ( ex x being Int_position st
( x in X & not t . x = s . x ) or not t . a = s . a or ( for-down (a,i,n,I) is_closed_on t & for-down (a,i,n,I) is_halting_on t ) )

assume A10: for x being Int_position st x in X holds
t . x = s . x ; :: thesis: ( not t . a = s . a or ( for-down (a,i,n,I) is_closed_on t & for-down (a,i,n,I) is_halting_on t ) )
A11: for x being Int_position st x in X holds
(Initialize t) . x = s . x
proof
let x be Int_position ; :: thesis: ( x in X implies (Initialize t) . x = s . x )
assume x in X ; :: thesis: (Initialize t) . x = s . x
then t . x = s . x by A10;
hence (Initialize t) . x = s . x by SCMPDS_5:40; :: thesis: verum
end;
assume A12: t . a = s . a ; :: thesis: ( for-down (a,i,n,I) is_closed_on t & for-down (a,i,n,I) is_halting_on t )
then A13: (Initialize t) . a = s . a by SCMPDS_5:40;
per cases ( t . (DataLoc ((s . a),i)) <= 0 or t . (DataLoc ((s . a),i)) > 0 ) ;
suppose t . (DataLoc ((s . a),i)) <= 0 ; :: thesis: ( for-down (a,i,n,I) is_closed_on t & for-down (a,i,n,I) is_halting_on t )
hence ( for-down (a,i,n,I) is_closed_on t & for-down (a,i,n,I) is_halting_on t ) by A12, Th63; :: thesis: verum
end;
suppose A14: t . (DataLoc ((s . a),i)) > 0 ; :: thesis: ( for-down (a,i,n,I) is_closed_on t & for-down (a,i,n,I) is_halting_on t )
set t2 = (Initialize t) +* (stop I);
set t3 = (Initialize t) +* (stop (for-down (a,i,n,I)));
set t4 = Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1);
A15: t +* (Initialize (stop I)) = (Initialize t) +* (stop I) by COMPOS_1:125;
A16: t +* (Initialize (stop (for-down (a,i,n,I)))) = (Initialize t) +* (stop (for-down (a,i,n,I))) by COMPOS_1:125;
A17: Initialize (stop I) c= (Initialize t) +* (stop I) by A15, FUNCT_4:26;
A18: dom (ProgramPart t) = NAT by COMPOS_1:34;
A19: not a in dom (t | NAT) by A18, SCMPDS_2:53;
A20: for-down (a,i,n,I) = ((a,i) <=0_goto ((card I) + 3)) ';' ((I ';' (AddTo (a,i,(- n)))) ';' (goto (- ((card I) + 2)))) by Th15;
A21: Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),(0 + 1)) = Following ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),(Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),0))) by EXTPRO_1:4
.= Following ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I))))) by EXTPRO_1:3
.= Exec (((a,i) <=0_goto ((card I) + 3)),((Initialize t) +* (stop (for-down (a,i,n,I))))) by A20, A16, SCMPDS_6:22 ;
A22: DataPart ((Initialize t) +* (stop I)) = DataPart ((Initialize t) +* (stop (for-down (a,i,n,I)))) by COMPOS_1:138, FUNCT_7:134;
now
let a be Int_position ; :: thesis: ((Initialize t) +* (stop I)) . a = (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1)) . a
thus ((Initialize t) +* (stop I)) . a = ((Initialize t) +* (stop (for-down (a,i,n,I)))) . a by A22, SCMPDS_4:23
.= (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1)) . a by A21, SCMPDS_2:68 ; :: thesis: verum
end;
then A23: DataPart ((Initialize t) +* (stop I)) = DataPart (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1)) by SCMPDS_4:23;
A24: not DataLoc ((s . a),i) in dom (t | NAT) by A18, SCMPDS_2:53;
A25: IExec (I,t) = IExec (I,(Initialize t)) by SCMPDS_5:48;
then A26: (IExec (I,t)) . (DataLoc ((s . a),i)) = (Initialize t) . (DataLoc ((s . a),i)) by A6, A11, A13
.= t . (DataLoc ((s . a),i)) by SCMPDS_5:40 ;
- (- n) > 0 by A3;
then - n < 0 ;
then - n <= - 1 by INT_1:21;
then A27: (- n) + (t . (DataLoc ((s . a),i))) <= (- 1) + (t . (DataLoc ((s . a),i))) by XREAL_1:8;
(t . (DataLoc ((s . a),i))) - 1 <= k by A9, XREAL_1:22;
then A28: (- n) + (t . (DataLoc ((s . a),i))) <= k by A27, XXREAL_0:2;
I is_closed_on Initialize t by A6, A11, A13;
then A29: I is_closed_on t by SCMPDS_6:139;
then A30: I is_closed_on (Initialize t) +* (stop I) by SCMPDS_6:38;
A31: not DataLoc ((s . a),i) in dom (Initialize (stop (for-down (a,i,n,I)))) by SCMPDS_4:31;
set m2 = LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)));
set t5 = Comput ((ProgramPart (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1))),(Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1)),(LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))));
set l1 = (card I) + 1;
A32: IC ((Initialize t) +* (stop (for-down (a,i,n,I)))) = 0 by SCMPDS_6:21;
set m3 = (LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1;
set t6 = Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1));
(card I) + 1 < (card I) + 3 by XREAL_1:8;
then A33: (card I) + 1 in dom (for-down (a,i,n,I)) by Th61;
set m5 = (((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1;
set t8 = Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1));
set t7 = Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),(((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1));
A34: (IExec (I,t)) . a = (Initialize t) . a by A6, A11, A13, A25
.= t . a by A12, A13 ;
set l2 = (card I) + 2;
A35: 0 in dom (stop (for-down (a,i,n,I))) by COMPOS_1:135;
(card I) + 2 < (card I) + 3 by XREAL_1:8;
then A36: (card I) + 2 in dom (for-down (a,i,n,I)) by Th61;
A37: Initialize (stop (for-down (a,i,n,I))) c= (Initialize t) +* (stop (for-down (a,i,n,I))) by A16, FUNCT_4:26;
for-down (a,i,n,I) c= Initialize (stop (for-down (a,i,n,I))) by SCMPDS_6:17;
then A38: for-down (a,i,n,I) c= (Initialize t) +* (stop (for-down (a,i,n,I))) by A37, XBOOLE_1:1;
Shift (I,1) c= for-down (a,i,n,I) by Lm5;
then Shift (I,1) c= (Initialize t) +* (stop (for-down (a,i,n,I))) by A38, XBOOLE_1:1;
then A39: Shift (I,1) c= Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1) by AMI_1:81;
I is_halting_on Initialize t by A6, A11, A13;
then I is_halting_on t by SCMPDS_6:140;
then A40: ProgramPart ((Initialize t) +* (stop I)) halts_on (Initialize t) +* (stop I) by SCMPDS_6:def 3;
A41: ((Initialize t) +* (stop I)) +* (Initialize (stop I)) = (Initialize ((Initialize t) +* (stop I))) +* (stop I) by COMPOS_1:125;
(Initialize t) +* (stop I) = (Initialize ((Initialize t) +* (stop I))) +* (stop I) by A17, A41, FUNCT_4:79;
then ProgramPart ((Initialize ((Initialize t) +* (stop I))) +* (stop I)) halts_on (Initialize ((Initialize t) +* (stop I))) +* (stop I) by A40;
then A42: I is_halting_on (Initialize t) +* (stop I) by SCMPDS_6:def 3;
not a in dom (Initialize (stop (for-down (a,i,n,I)))) by SCMPDS_4:31;
then ((Initialize t) +* (stop (for-down (a,i,n,I)))) . (DataLoc ((((Initialize t) +* (stop (for-down (a,i,n,I)))) . a),i)) = ((Initialize t) +* (stop (for-down (a,i,n,I)))) . (DataLoc ((s . a),i)) by A12, A16, FUNCT_4:12
.= t . (DataLoc ((s . a),i)) by A31, A16, FUNCT_4:12 ;
then A43: IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1)) = succ (IC ((Initialize t) +* (stop (for-down (a,i,n,I))))) by A14, A21, SCMPDS_2:68
.= 0 + 1 by A32 ;
then A44: IC (Comput ((ProgramPart (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1))),(Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1)),(LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))))) = (card I) + 1 by A4, A17, A42, A30, A23, A39, Th36;
A45: (ProgramPart (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1)))) /. (IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1)))) = (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1))) . (IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1)))) by COMPOS_1:38;
ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I)))) = ProgramPart (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1)) by AMI_1:123;
then A46: Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1)) = Comput ((ProgramPart (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1))),(Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1)),(LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I))))) by EXTPRO_1:5;
then A47: CurInstr ((ProgramPart (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1)))),(Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1)))) = (Comput ((ProgramPart (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1))),(Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1)),(LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))))) . ((card I) + 1) by A4, A17, A42, A30, A43, A23, A39, Th36, A45
.= (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1)) . ((card I) + 1) by AMI_1:54
.= ((Initialize t) +* (stop (for-down (a,i,n,I)))) . ((card I) + 1) by AMI_1:54
.= (for-down (a,i,n,I)) . ((card I) + 1) by A33, A38, GRFUNC_1:8
.= AddTo (a,i,(- n)) by Th62 ;
A48: (ProgramPart (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),(((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1)))) /. (IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),(((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1)))) = (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),(((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1))) . (IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),(((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1)))) by COMPOS_1:38;
A49: ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I)))) = ProgramPart (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1))) by AMI_1:123;
A50: Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),(((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1)) = Following ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),(Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1)))) by EXTPRO_1:4
.= Exec ((AddTo (a,i,(- n))),(Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1)))) by A47, A49 ;
then A51: IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),(((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1))) = succ (IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1)))) by SCMPDS_2:60
.= ((card I) + 1) + 1 by A44, A46, NAT_1:39
.= (card I) + (1 + 1) ;
then A52: CurInstr ((ProgramPart (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),(((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1)))),(Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),(((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1)))) = ((Initialize t) +* (stop (for-down (a,i,n,I)))) . ((card I) + 2) by A48, AMI_1:54
.= (for-down (a,i,n,I)) . ((card I) + 2) by A38, A36, GRFUNC_1:8
.= goto (- ((card I) + 2)) by Th62 ;
A53: ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I)))) = ProgramPart (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),(((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1))) by AMI_1:123;
A54: Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1)) = Following ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),(Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),(((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1)))) by EXTPRO_1:4
.= Exec ((goto (- ((card I) + 2))),(Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),(((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1)))) by A52, A53 ;
then IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1))) = ICplusConst ((Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),(((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1))),(0 - ((card I) + 2))) by SCMPDS_2:66
.= 0 by A51, Th1 ;
then A55: (Initialize (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1)))) +* (stop (for-down (a,i,n,I))) = Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1)) by Th37;
A56: ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I)))) = ProgramPart (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1)) by AMI_1:123;
A57: DataPart (Comput ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)),(LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))))) = DataPart (Comput ((ProgramPart (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1))),(Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1)),(LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))))) by A4, A17, A42, A30, A43, A23, A39, Th36;
then A58: (Comput ((ProgramPart (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1))),(Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1)),(LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))))) . a = (Comput ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)),(LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))))) . a by SCMPDS_4:23
.= (Result ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) . a by A40, EXTPRO_1:23
.= s . a by A12, A34, A19, FUNCT_4:12 ;
then DataLoc (((Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1))) . a),i) = DataLoc ((s . a),i) by A56, EXTPRO_1:5;
then (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),(((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1))) . a = (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1))) . a by A5, A50, SCMPDS_2:60
.= s . a by A58, A56, EXTPRO_1:5 ;
then A59: (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1))) . a = s . a by A54, SCMPDS_2:66;
A60: now
let x be Int_position ; :: thesis: ( x in X implies (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1))) . x = s . x )
assume A61: x in X ; :: thesis: (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1))) . x = s . x
A62: not x in dom (t | NAT) by A18, SCMPDS_2:53;
(Comput ((ProgramPart (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1))),(Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1)),(LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))))) . x = (Comput ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)),(LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))))) . x by A57, SCMPDS_4:23
.= (Result ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) . x by A40, EXTPRO_1:23
.= (IExec (I,t)) . x by A62, FUNCT_4:12
.= (IExec (I,(Initialize t))) . x by SCMPDS_5:48
.= (Initialize t) . x by A6, A61, A11, A13
.= t . x by SCMPDS_5:40
.= s . x by A10, A61 ;
then (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),(((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1))) . x = s . x by A2, A58, A46, A50, A61, SCMPDS_2:60;
hence (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1))) . x = s . x by A54, SCMPDS_2:66; :: thesis: verum
end;
A63: (Comput ((ProgramPart (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1))),(Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1)),(LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))))) . (DataLoc ((s . a),i)) = (Comput ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)),(LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))))) . (DataLoc ((s . a),i)) by A57, SCMPDS_4:23
.= (Result ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) . (DataLoc ((s . a),i)) by A40, EXTPRO_1:23
.= t . (DataLoc ((s . a),i)) by A26, A24, FUNCT_4:12 ;
A64: (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1))) . (DataLoc ((s . a),i)) = (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),(((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1))) . (DataLoc ((s . a),i)) by A54, SCMPDS_2:66
.= (t . (DataLoc ((s . a),i))) + (- n) by A58, A63, A46, A50, SCMPDS_2:60 ;
then A65: for-down (a,i,n,I) is_closed_on Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1)) by A8, A59, A60, A28;
now
let k be Element of NAT ; :: thesis: IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),b1)) in dom (stop (for-down (a,i,n,I)))
per cases ( k < (((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1 or k >= (((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1 ) ;
suppose k < (((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1 ; :: thesis: IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),b1)) in dom (stop (for-down (a,i,n,I)))
then k <= ((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1 by INT_1:20;
then A66: ( k <= (LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1 or k = ((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1 ) by NAT_1:8;
hereby :: thesis: verum
per cases ( k <= LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I))) or k = (LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1 or k = ((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1 ) by A66, NAT_1:8;
suppose A67: k <= LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I))) ; :: thesis: IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),k)) in dom (stop (for-down (a,i,n,I)))
hereby :: thesis: verum
per cases ( k = 0 or k <> 0 ) ;
suppose k = 0 ; :: thesis: IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),k)) in dom (stop (for-down (a,i,n,I)))
hence IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),k)) in dom (stop (for-down (a,i,n,I))) by A35, A32, EXTPRO_1:3; :: thesis: verum
end;
suppose k <> 0 ; :: thesis: IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),k)) in dom (stop (for-down (a,i,n,I)))
then consider kn being Nat such that
A68: k = kn + 1 by NAT_1:6;
reconsider kn = kn as Element of NAT by ORDINAL1:def 13;
reconsider lm = IC (Comput ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)),kn)) as Element of NAT ;
kn < k by A68, XREAL_1:31;
then kn < LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I))) by A67, XXREAL_0:2;
then (IC (Comput ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)),kn))) + 1 = IC (Comput ((ProgramPart (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1))),(Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),1)),kn)) by A4, A17, A42, A30, A43, A23, A39, Th34;
then A69: IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),k)) = lm + 1 by A68, A56, EXTPRO_1:5
.= lm + 1 ;
IC (Comput ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)),kn)) in dom (stop I) by A29, SCMPDS_6:def 2;
then lm < card (stop I) by AFINSQ_1:70;
then lm < (card I) + 1 by SCMPDS_5:7;
then A70: lm + 1 <= (card I) + 1 by INT_1:20;
(card I) + 1 < (card I) + 4 by XREAL_1:8;
then lm + 1 < (card I) + 4 by A70, XXREAL_0:2;
then lm + 1 < card (stop (for-down (a,i,n,I))) by Lm4;
hence IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),k)) in dom (stop (for-down (a,i,n,I))) by A69, AFINSQ_1:70; :: thesis: verum
end;
end;
end;
end;
suppose A71: k = (LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1 ; :: thesis: IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),k)) in dom (stop (for-down (a,i,n,I)))
(card I) + 1 in dom (stop (for-down (a,i,n,I))) by A33, SCMPDS_6:18;
hence IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),k)) in dom (stop (for-down (a,i,n,I))) by A4, A17, A42, A30, A43, A23, A39, A46, A71, Th36; :: thesis: verum
end;
suppose k = ((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1 ; :: thesis: IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),k)) in dom (stop (for-down (a,i,n,I)))
hence IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),k)) in dom (stop (for-down (a,i,n,I))) by A51, A36, SCMPDS_6:18; :: thesis: verum
end;
end;
end;
end;
suppose k >= (((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1 ; :: thesis: IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),b1)) in dom (stop (for-down (a,i,n,I)))
then consider nn being Nat such that
A72: k = ((((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1) + nn by NAT_1:10;
reconsider nn = nn as Element of NAT by ORDINAL1:def 13;
ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I)))) = ProgramPart (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1))) by AMI_1:123;
then Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),k) = Comput ((ProgramPart ((Initialize (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1)))) +* (stop (for-down (a,i,n,I))))),((Initialize (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1)))) +* (stop (for-down (a,i,n,I)))),nn) by A55, A72, EXTPRO_1:5;
hence IC (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),k)) in dom (stop (for-down (a,i,n,I))) by A65, SCMPDS_6:def 2; :: thesis: verum
end;
end;
end;
hence for-down (a,i,n,I) is_closed_on t by SCMPDS_6:def 2; :: thesis: for-down (a,i,n,I) is_halting_on t
for-down (a,i,n,I) is_halting_on Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1)) by A8, A59, A60, A64, A28;
then ProgramPart (Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1))) halts_on Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1)) by A55, SCMPDS_6:def 3;
then ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I)))) halts_on Comput ((ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I))))),((Initialize t) +* (stop (for-down (a,i,n,I)))),((((LifeSpan ((ProgramPart ((Initialize t) +* (stop I))),((Initialize t) +* (stop I)))) + 1) + 1) + 1)) by AMI_1:123;
then ProgramPart ((Initialize t) +* (stop (for-down (a,i,n,I)))) halts_on (Initialize t) +* (stop (for-down (a,i,n,I))) by EXTPRO_1:22;
hence for-down (a,i,n,I) is_halting_on t by SCMPDS_6:def 3; :: thesis: verum
end;
end;
end;
reconsider n = s . (DataLoc ((s . a),i)) as Element of NAT by A1, INT_1:16;
A73: S1[ 0 ] by Th63;
for k being Element of NAT holds S1[k] from NAT_1:sch 1(A73, A7);
then A74: S1[n] ;
for x being Int_position st x in X holds
s . x = s . x ;
hence ( for-down (a,i,n,I) is_closed_on s & for-down (a,i,n,I) is_halting_on s ) by A74; :: thesis: verum