let s be State of SCMPDS ; for I being shiftable No-StopCode Program of SCMPDS
for a being Int_position
for i being Integer
for X being set st card I > 0 & ( for t being State of SCMPDS st ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a & t . (DataLoc (s . a),i) < 0 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 x being Int_position st x in X holds
(IExec I,t) . x = t . x ) ) ) holds
( while<0 a,i,I is_closed_on s & while<0 a,i,I is_halting_on s )
let I be shiftable No-StopCode Program of SCMPDS ; for a being Int_position
for i being Integer
for X being set st card I > 0 & ( for t being State of SCMPDS st ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a & t . (DataLoc (s . a),i) < 0 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 x being Int_position st x in X holds
(IExec I,t) . x = t . x ) ) ) holds
( while<0 a,i,I is_closed_on s & while<0 a,i,I is_halting_on s )
let a be Int_position ; for i being Integer
for X being set st card I > 0 & ( for t being State of SCMPDS st ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a & t . (DataLoc (s . a),i) < 0 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 x being Int_position st x in X holds
(IExec I,t) . x = t . x ) ) ) holds
( while<0 a,i,I is_closed_on s & while<0 a,i,I is_halting_on s )
let i be Integer; for X being set st card I > 0 & ( for t being State of SCMPDS st ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a & t . (DataLoc (s . a),i) < 0 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 x being Int_position st x in X holds
(IExec I,t) . x = t . x ) ) ) holds
( while<0 a,i,I is_closed_on s & while<0 a,i,I is_halting_on s )
let X be set ; ( card I > 0 & ( for t being State of SCMPDS st ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a & t . (DataLoc (s . a),i) < 0 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 x being Int_position st x in X holds
(IExec I,t) . x = t . x ) ) ) implies ( while<0 a,i,I is_closed_on s & while<0 a,i,I is_halting_on s ) )
set b = DataLoc (s . a),i;
set WHL = while<0 a,i,I;
set pWHL = stop (while<0 a,i,I);
set iWHL = Initialized (stop (while<0 a,i,I));
set pI = stop I;
set IsI = Initialized (stop I);
set i1 = a,i >=0_goto ((card I) + 2);
set i2 = goto (- ((card I) + 1));
assume A1:
card I > 0
; ( ex t being State of SCMPDS st
( ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a & t . (DataLoc (s . a),i) < 0 & 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 x being Int_position st x in X holds
(IExec I,t) . x = t . x ) ) ) or ( while<0 a,i,I is_closed_on s & while<0 a,i,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
( while<0 a,i,I is_closed_on t & while<0 a,i,I is_halting_on t );
assume A2:
for t being State of SCMPDS st ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a & t . (DataLoc (s . a),i) < 0 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 x being Int_position st x in X holds
(IExec I,t) . x = t . x ) )
; ( while<0 a,i,I is_closed_on s & while<0 a,i,I is_halting_on s )
A3:
for k being Element of NAT st S1[k] holds
S1[k + 1]
proof
let k be
Element of
NAT ;
( S1[k] implies S1[k + 1] )
assume A4:
S1[
k]
;
S1[k + 1]
now let t be
State of
SCMPDS ;
( - (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 ( while<0 a,i,I is_closed_on b1 & while<0 a,i,I is_halting_on b1 ) )assume A5:
- (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 ( while<0 a,i,I is_closed_on b1 & while<0 a,i,I is_halting_on b1 ) )assume A6:
for
x being
Int_position st
x in X holds
t . x = s . x
;
( t . a = s . a implies ( while<0 a,i,I is_closed_on b1 & while<0 a,i,I is_halting_on b1 ) )assume A7:
t . a = s . a
;
( while<0 a,i,I is_closed_on b1 & while<0 a,i,I is_halting_on b1 )per cases
( t . (DataLoc (s . a),i) >= 0 or t . (DataLoc (s . a),i) < 0 )
;
suppose A8:
t . (DataLoc (s . a),i) < 0
;
( while<0 a,i,I is_closed_on b1 & while<0 a,i,I is_halting_on b1 )A9:
dom (t | NAT ) = NAT
by SCMPDS_6:1;
A10:
not
a in dom (t | NAT )
by A9, SCMPDS_2:53;
A11:
not
DataLoc (s . a),
i in dom (t | NAT )
by A9, SCMPDS_2:53;
A12:
(IExec I,t) . (DataLoc (s . a),i) > t . (DataLoc (s . a),i)
by A2, A6, A7, A8;
A13:
0 in dom (stop (while<0 a,i,I))
by SCMPDS_4:75;
A14:
(IExec I,t) . a = t . a
by A2, A6, A7, A8;
A15:
not
DataLoc (s . a),
i in dom (Initialized (stop (while<0 a,i,I)))
by SCMPDS_4:31;
A16:
while<0 a,
i,
I = (a,i >=0_goto ((card I) + 2)) ';' (I ';' (goto (- ((card I) + 1))))
by SCMPDS_4:51;
set t2 =
t +* (Initialized (stop I));
set t3 =
t +* (Initialized (stop (while<0 a,i,I)));
set t4 =
Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),
(t +* (Initialized (stop (while<0 a,i,I)))),1;
A17:
Initialized (stop I) c= t +* (Initialized (stop I))
by FUNCT_4:26;
A18:
Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),
(t +* (Initialized (stop (while<0 a,i,I)))),
(0 + 1) =
Following (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),
(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),0 )
by AMI_1:14
.=
Following (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),
(t +* (Initialized (stop (while<0 a,i,I))))
by AMI_1:13
.=
Exec (a,i >=0_goto ((card I) + 2)),
(t +* (Initialized (stop (while<0 a,i,I))))
by A16, SCMPDS_6:22
;
A19:
DataPart (t +* (Initialized (stop I))) = DataPart (t +* (Initialized (stop (while<0 a,i,I))))
by SCMPDS_4:24, SCMPDS_4:36;
now let a be
Int_position ;
(t +* (Initialized (stop I))) . a = (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1) . athus (t +* (Initialized (stop I))) . a =
(t +* (Initialized (stop (while<0 a,i,I)))) . a
by A19, SCMPDS_4:23
.=
(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1) . a
by A18, SCMPDS_2:69
;
verum end; then A20:
DataPart (t +* (Initialized (stop I))) = DataPart (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1)
by SCMPDS_4:23;
(
while<0 a,
i,
I c= Initialized (stop (while<0 a,i,I)) &
Initialized (stop (while<0 a,i,I)) c= t +* (Initialized (stop (while<0 a,i,I))) )
by FUNCT_4:26, SCMPDS_6:17;
then A21:
while<0 a,
i,
I c= t +* (Initialized (stop (while<0 a,i,I)))
by XBOOLE_1:1;
Shift I,1
c= while<0 a,
i,
I
by Lm2;
then
Shift I,1
c= t +* (Initialized (stop (while<0 a,i,I)))
by A21, XBOOLE_1:1;
then A22:
Shift I,1
c= Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),
(t +* (Initialized (stop (while<0 a,i,I)))),1
by AMI_1:81;
set m2 =
LifeSpan (t +* (Initialized (stop I)));
set t5 =
Comput (ProgramPart (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1)),
(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1),
(LifeSpan (t +* (Initialized (stop I))));
set l1 =
(card I) + 1;
A23:
IC (t +* (Initialized (stop (while<0 a,i,I)))) = 0
by SCMPDS_6:21;
set m3 =
(LifeSpan (t +* (Initialized (stop I)))) + 1;
set t6 =
Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),
(t +* (Initialized (stop (while<0 a,i,I)))),
((LifeSpan (t +* (Initialized (stop I)))) + 1);
set t7 =
Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),
(t +* (Initialized (stop (while<0 a,i,I)))),
(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1);
(card I) + 1
< (card I) + 2
by XREAL_1:8;
then A24:
(card I) + 1
in dom (while<0 a,i,I)
by Th7;
A25:
IExec I,
t = (Result (t +* (Initialized (stop I)))) +* (t | NAT )
by SCMPDS_4:def 8;
A26:
I is_closed_on t
by A2, A6, A7, A8;
then A27:
I is_closed_on t +* (Initialized (stop I))
by SCMPDS_6:38;
I is_halting_on t
by A2, A6, A7, A8;
then A28:
ProgramPart (t +* (Initialized (stop I))) halts_on t +* (Initialized (stop I))
by SCMPDS_6:def 3;
t +* (Initialized (stop I)) = (t +* (Initialized (stop I))) +* (Initialized (stop I))
by A17, FUNCT_4:79;
then
ProgramPart ((t +* (Initialized (stop I))) +* (Initialized (stop I))) halts_on (t +* (Initialized (stop I))) +* (Initialized (stop I))
by A28;
then A29:
I is_halting_on t +* (Initialized (stop I))
by SCMPDS_6:def 3;
not
a in dom (Initialized (stop (while<0 a,i,I)))
by SCMPDS_4:31;
then (t +* (Initialized (stop (while<0 a,i,I)))) . (DataLoc ((t +* (Initialized (stop (while<0 a,i,I)))) . a),i) =
(t +* (Initialized (stop (while<0 a,i,I)))) . (DataLoc (s . a),i)
by A7, FUNCT_4:12
.=
t . (DataLoc (s . a),i)
by A15, FUNCT_4:12
;
then A30:
IC (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1) =
succ (IC (t +* (Initialized (stop (while<0 a,i,I)))))
by A8, A18, SCMPDS_2:69
.=
0 + 1
by A23
;
then A31:
IC (Comput (ProgramPart (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1)),(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1),(LifeSpan (t +* (Initialized (stop I))))) = (card I) + 1
by A1, A17, A29, A27, A20, A22, SCMPDS_7:36;
Y:
(ProgramPart (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),((LifeSpan (t +* (Initialized (stop I)))) + 1))) /. (IC (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),((LifeSpan (t +* (Initialized (stop I)))) + 1))) = (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),((LifeSpan (t +* (Initialized (stop I)))) + 1)) . (IC (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),((LifeSpan (t +* (Initialized (stop I)))) + 1)))
by AMI_1:150;
ProgramPart (t +* (Initialized (stop (while<0 a,i,I)))) = ProgramPart (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1)
by AMI_1:144;
then A32:
Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),
(t +* (Initialized (stop (while<0 a,i,I)))),
((LifeSpan (t +* (Initialized (stop I)))) + 1) = Comput (ProgramPart (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1)),
(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1),
(LifeSpan (t +* (Initialized (stop I))))
by AMI_1:51;
then A33:
CurInstr (ProgramPart (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),((LifeSpan (t +* (Initialized (stop I)))) + 1))),
(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),((LifeSpan (t +* (Initialized (stop I)))) + 1)) =
(Comput (ProgramPart (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1)),(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1),(LifeSpan (t +* (Initialized (stop I))))) . ((card I) + 1)
by A1, A17, A29, A27, A30, A20, A22, SCMPDS_7:36, Y
.=
(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1) . ((card I) + 1)
by AMI_1:54
.=
(t +* (Initialized (stop (while<0 a,i,I)))) . ((card I) + 1)
by AMI_1:54
.=
(while<0 a,i,I) . ((card I) + 1)
by A24, A21, GRFUNC_1:8
.=
goto (- ((card I) + 1))
by Th8
;
A34:
DataPart (Comput (ProgramPart (t +* (Initialized (stop I)))),(t +* (Initialized (stop I))),(LifeSpan (t +* (Initialized (stop I))))) = DataPart (Comput (ProgramPart (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1)),(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1),(LifeSpan (t +* (Initialized (stop I)))))
by A1, A17, A29, A27, A30, A20, A22, SCMPDS_7:36;
then A35:
(Comput (ProgramPart (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1)),(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1),(LifeSpan (t +* (Initialized (stop I))))) . a =
(Comput (ProgramPart (t +* (Initialized (stop I)))),(t +* (Initialized (stop I))),(LifeSpan (t +* (Initialized (stop I))))) . a
by SCMPDS_4:23
.=
(Result (t +* (Initialized (stop I)))) . a
by A28, AMI_1:122
.=
s . a
by A7, A14, A25, A10, FUNCT_4:12
;
T:
ProgramPart (t +* (Initialized (stop (while<0 a,i,I)))) = ProgramPart (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),((LifeSpan (t +* (Initialized (stop I)))) + 1))
by AMI_1:144;
A36:
Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),
(t +* (Initialized (stop (while<0 a,i,I)))),
(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1) =
Following (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),
(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),((LifeSpan (t +* (Initialized (stop I)))) + 1))
by AMI_1:14
.=
Exec (goto (- ((card I) + 1))),
(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),((LifeSpan (t +* (Initialized (stop I)))) + 1))
by A33, T
;
then IC (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1)) =
ICplusConst (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),((LifeSpan (t +* (Initialized (stop I)))) + 1)),
(0 - ((card I) + 1))
by SCMPDS_2:66
.=
0
by A31, A32, SCMPDS_7:1
;
then A37:
(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1)) +* (Initialized (stop (while<0 a,i,I))) = Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),
(t +* (Initialized (stop (while<0 a,i,I)))),
(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1)
by SCMPDS_7:37;
A38:
now let x be
Int_position ;
( x in X implies (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1)) . x = s . x )assume A39:
x in X
;
(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1)) . x = s . xA40:
not
x in dom (t | NAT )
by A9, SCMPDS_2:53;
(Comput (ProgramPart (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1)),(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1),(LifeSpan (t +* (Initialized (stop I))))) . x =
(Comput (ProgramPart (t +* (Initialized (stop I)))),(t +* (Initialized (stop I))),(LifeSpan (t +* (Initialized (stop I))))) . x
by A34, SCMPDS_4:23
.=
(Result (t +* (Initialized (stop I)))) . x
by A28, AMI_1:122
.=
(IExec I,t) . x
by A25, A40, FUNCT_4:12
.=
t . x
by A2, A6, A7, A8, A39
.=
s . x
by A6, A39
;
hence
(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1)) . x = s . x
by A32, A36, SCMPDS_2:66;
verum end; (Comput (ProgramPart (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1)),(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1),(LifeSpan (t +* (Initialized (stop I))))) . (DataLoc (s . a),i) =
(Comput (ProgramPart (t +* (Initialized (stop I)))),(t +* (Initialized (stop I))),(LifeSpan (t +* (Initialized (stop I))))) . (DataLoc (s . a),i)
by A34, SCMPDS_4:23
.=
(Result (t +* (Initialized (stop I)))) . (DataLoc (s . a),i)
by A28, AMI_1:122
.=
(IExec I,t) . (DataLoc (s . a),i)
by A25, A11, FUNCT_4:12
;
then A41:
(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1)) . (DataLoc (s . a),i) = (IExec I,t) . (DataLoc (s . a),i)
by A32, A36, SCMPDS_2:66;
A42:
now
- ((Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1)) . (DataLoc (s . a),i)) < - (t . (DataLoc (s . a),i))
by A12, A41, XREAL_1:26;
then A43:
- ((Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1)) . (DataLoc (s . a),i)) < k + 1
by A5, XXREAL_0:2;
assume
- ((Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1)) . (DataLoc (s . a),i)) > k
;
contradictionhence
contradiction
by A43, INT_1:20;
verum end; T1:
ProgramPart (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1) = ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))
by AMI_1:144;
A44:
(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1)) . a =
(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),((LifeSpan (t +* (Initialized (stop I)))) + 1)) . a
by A36, SCMPDS_2:66
.=
s . a
by A35, AMI_1:51, T1
;
then A45:
while<0 a,
i,
I is_closed_on Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),
(t +* (Initialized (stop (while<0 a,i,I)))),
(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1)
by A4, A38, A42;
now let k be
Element of
NAT ;
IC (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),b1) in dom (stop (while<0 a,i,I))per cases
( k < ((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1 or k >= ((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1 )
;
suppose
k < ((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1
;
IC (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),b1) in dom (stop (while<0 a,i,I))then A46:
k <= (LifeSpan (t +* (Initialized (stop I)))) + 1
by INT_1:20;
hereby verum
per cases
( k <= LifeSpan (t +* (Initialized (stop I))) or k = (LifeSpan (t +* (Initialized (stop I)))) + 1 )
by A46, NAT_1:8;
suppose A47:
k <= LifeSpan (t +* (Initialized (stop I)))
;
IC (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),k) in dom (stop (while<0 a,i,I))hereby verum
per cases
( k = 0 or k <> 0 )
;
suppose
k = 0
;
IC (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),k) in dom (stop (while<0 a,i,I))hence
IC (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),k) in dom (stop (while<0 a,i,I))
by A13, A23, AMI_1:13;
verum end; suppose
k <> 0
;
IC (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),k) in dom (stop (while<0 a,i,I))then consider kn being
Nat such that A48:
k = kn + 1
by NAT_1:6;
reconsider kn =
kn as
Element of
NAT by ORDINAL1:def 13;
reconsider lm =
IC (Comput (ProgramPart (t +* (Initialized (stop I)))),(t +* (Initialized (stop I))),kn) as
Element of
NAT ;
t:
ProgramPart (t +* (Initialized (stop (while<0 a,i,I)))) = ProgramPart (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1)
by AMI_1:144;
kn < k
by A48, XREAL_1:31;
then
kn < LifeSpan (t +* (Initialized (stop I)))
by A47, XXREAL_0:2;
then
(IC (Comput (ProgramPart (t +* (Initialized (stop I)))),(t +* (Initialized (stop I))),kn)) + 1
= IC (Comput (ProgramPart (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1)),(Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),1),kn)
by A1, A17, A29, A27, A30, A20, A22, SCMPDS_7:34;
then A49:
IC (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),k) = lm + 1
by A48, AMI_1:51, t;
IC (Comput (ProgramPart (t +* (Initialized (stop I)))),(t +* (Initialized (stop I))),kn) in dom (stop I)
by A26, SCMPDS_6:def 2;
then
lm < card (stop I)
by SCMPDS_4:1;
then
lm < (card I) + 1
by SCMPDS_5:7;
then A50:
lm + 1
<= (card I) + 1
by INT_1:20;
(card I) + 1
< (card I) + 3
by XREAL_1:8;
then
lm + 1
< (card I) + 3
by A50, XXREAL_0:2;
then
lm + 1
< card (stop (while<0 a,i,I))
by Lm1;
hence
IC (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),k) in dom (stop (while<0 a,i,I))
by A49, SCMPDS_4:1;
verum end; end;
end; end; suppose A51:
k = (LifeSpan (t +* (Initialized (stop I)))) + 1
;
IC (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),k) in dom (stop (while<0 a,i,I))
(card I) + 1
in dom (stop (while<0 a,i,I))
by A24, SCMPDS_6:18;
hence
IC (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),k) in dom (stop (while<0 a,i,I))
by A1, A17, A29, A27, A30, A20, A22, A32, A51, SCMPDS_7:36;
verum end; end;
end; end; suppose
k >= ((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1
;
IC (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),b1) in dom (stop (while<0 a,i,I))then consider nn being
Nat such that A52:
k = (((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1) + nn
by NAT_1:10;
reconsider nn =
nn as
Element of
NAT by ORDINAL1:def 13;
ProgramPart (t +* (Initialized (stop (while<0 a,i,I)))) = ProgramPart (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1))
by AMI_1:144;
then
Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),
(t +* (Initialized (stop (while<0 a,i,I)))),
k = Comput (ProgramPart ((Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1)) +* (Initialized (stop (while<0 a,i,I))))),
((Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1)) +* (Initialized (stop (while<0 a,i,I)))),
nn
by A37, A52, AMI_1:51;
hence
IC (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),k) in dom (stop (while<0 a,i,I))
by A45, SCMPDS_6:def 2;
verum end; end; end; hence
while<0 a,
i,
I is_closed_on t
by SCMPDS_6:def 2;
while<0 a,i,I is_halting_on t
while<0 a,
i,
I is_halting_on Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),
(t +* (Initialized (stop (while<0 a,i,I)))),
(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1)
by A4, A44, A38, A42;
then
ProgramPart (Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),(t +* (Initialized (stop (while<0 a,i,I)))),(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1)) halts_on Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),
(t +* (Initialized (stop (while<0 a,i,I)))),
(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1)
by A37, SCMPDS_6:def 3;
then
ProgramPart (t +* (Initialized (stop (while<0 a,i,I)))) halts_on Comput (ProgramPart (t +* (Initialized (stop (while<0 a,i,I))))),
(t +* (Initialized (stop (while<0 a,i,I)))),
(((LifeSpan (t +* (Initialized (stop I)))) + 1) + 1)
by AMI_1:144;
then
ProgramPart (t +* (Initialized (stop (while<0 a,i,I)))) halts_on t +* (Initialized (stop (while<0 a,i,I)))
by AMI_1:93;
hence
while<0 a,
i,
I is_halting_on t
by SCMPDS_6:def 3;
verum end; end; end;
hence
S1[
k + 1]
;
verum
end;
A53:
S1[ 0 ]
proof
let t be
State of
SCMPDS ;
( - (t . (DataLoc (s . a),i)) <= 0 & ( for x being Int_position st x in X holds
t . x = s . x ) & t . a = s . a implies ( while<0 a,i,I is_closed_on t & while<0 a,i,I is_halting_on t ) )
assume
- (t . (DataLoc (s . a),i)) <= 0
;
( ex x being Int_position st
( x in X & not t . x = s . x ) or not t . a = s . a or ( while<0 a,i,I is_closed_on t & while<0 a,i,I is_halting_on t ) )
then
- (t . (DataLoc (s . a),i)) <= - 0
;
then A54:
t . (DataLoc (s . a),i) >= 0
by XREAL_1:26;
assume
for
x being
Int_position st
x in X holds
t . x = s . x
;
( not t . a = s . a or ( while<0 a,i,I is_closed_on t & while<0 a,i,I is_halting_on t ) )
assume
t . a = s . a
;
( while<0 a,i,I is_closed_on t & while<0 a,i,I is_halting_on t )
hence
(
while<0 a,
i,
I is_closed_on t &
while<0 a,
i,
I is_halting_on t )
by A54, Th9;
verum
end;
A55:
for k being Element of NAT holds S1[k]
from NAT_1:sch 1(A53, A3);