II:
Initialize F2() = F2()
by MEMSTR_0:44;
set WHL = while<0 (F5(),F6(),F4());
set pWHL = stop (while<0 (F5(),F6(),F4()));
set P1 = F3() +* (stop (while<0 (F5(),F6(),F4())));
set PI = F3() +* (stop F4());
set m1 = (LifeSpan ((F3() +* (stop F4())),F2())) + 2;
set s2 = Initialize (IExec (F4(),F3(),F2()));
set P2 = F3() +* (stop (while<0 (F5(),F6(),F4())));
set m2 = LifeSpan ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Initialize (IExec (F4(),F3(),F2()))));
A9:
P1[F2()]
by A4;
A10:
stop F4() c= F3() +* (stop F4())
by FUNCT_4:25;
A11:
F4() is_closed_on F2(),F3() +* (stop F4())
by A2, A4, A5;
F4() is_halting_on F2(),F3()
by A2, A4, A5;
then A12:
F3() +* (stop F4()) halts_on F2()
by SCMPDS_6:def 3, II;
(F3() +* (stop F4())) +* (stop F4()) halts_on F2()
by A12, FUNCT_4:25, FUNCT_4:98;
then A14:
F4() is_halting_on F2(),F3() +* (stop F4())
by SCMPDS_6:def 3, II;
set Es = IExec (F4(),F3(),F2());
set bj = DataLoc (((Initialize (IExec (F4(),F3(),F2()))) . F5()),F6());
set EP = F3();
A15:
for t being 0 -started State of SCMPDS
for Q being Instruction-Sequence of SCMPDS st P1[t] & t . F5() = F2() . F5() & t . (DataLoc ((F2() . F5()),F6())) < 0 holds
( (IExec (F4(),Q,t)) . F5() = t . F5() & F4() is_closed_on t,Q & F4() is_halting_on t,Q & F1((Initialize (IExec (F4(),Q,t)))) < F1(t) & P1[ Initialize (IExec (F4(),Q,t))] )
by A5;
A16:
for t being 0 -started State of SCMPDS st P1[t] & F1(t) = 0 holds
t . (DataLoc ((F2() . F5()),F6())) >= 0
by A3;
( while<0 (F5(),F6(),F4()) is_closed_on F2(),F3() & while<0 (F5(),F6(),F4()) is_halting_on F2(),F3() )
from SCMPDS_8:sch 1(A16, A9, A15);
then A17:
F3() +* (stop (while<0 (F5(),F6(),F4()))) halts_on F2()
by SCMPDS_6:def 3, II;
B18:
(IExec (F4(),F3(),F2())) . F5() = (Initialize (IExec (F4(),F3(),F2()))) . F5()
by SCMPDS_5:15;
A18:
(IExec (F4(),F3(),F2())) . F5() = F2() . F5()
by A2, A4, A5;
then A19:
for t being 0 -started State of SCMPDS st P1[t] & F1(t) = 0 holds
t . (DataLoc (((Initialize (IExec (F4(),F3(),F2()))) . F5()),F6())) >= 0
by A3, B18;
A20:
for t being 0 -started State of SCMPDS
for Q being Instruction-Sequence of SCMPDS st P1[t] & t . F5() = (Initialize (IExec (F4(),F3(),F2()))) . F5() & t . (DataLoc (((Initialize (IExec (F4(),F3(),F2()))) . F5()),F6())) < 0 holds
( (IExec (F4(),Q,t)) . F5() = t . F5() & F4() is_closed_on t,Q & F4() is_halting_on t,Q & F1((Initialize (IExec (F4(),Q,t)))) < F1(t) & P1[ Initialize (IExec (F4(),Q,t))] )
by A5, A18, B18;
A21:
P1[ Initialize (IExec (F4(),F3(),F2()))]
by A2, A4, A5;
( while<0 (F5(),F6(),F4()) is_closed_on Initialize (IExec (F4(),F3(),F2())),F3() & while<0 (F5(),F6(),F4()) is_halting_on Initialize (IExec (F4(),F3(),F2())),F3() )
from SCMPDS_8:sch 1(A19, A21, A20);
then A22:
F3() +* (stop (while<0 (F5(),F6(),F4()))) halts_on Initialize (Initialize (IExec (F4(),F3(),F2())))
by SCMPDS_6:def 3;
set s4 = Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),1);
set P4 = F3() +* (stop (while<0 (F5(),F6(),F4())));
set i1 = (F5(),F6()) >=0_goto ((card F4()) + 2);
set i2 = goto (- ((card F4()) + 1));
set b = DataLoc ((F2() . F5()),F6());
A23:
while<0 (F5(),F6(),F4()) = ((F5(),F6()) >=0_goto ((card F4()) + 2)) ';' (F4() ';' (goto (- ((card F4()) + 1))))
by SCMPDS_4:15;
set mI = LifeSpan ((F3() +* (stop F4())),F2());
set s5 = Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),1)),(LifeSpan ((F3() +* (stop F4())),F2())));
set P5 = F3() +* (stop (while<0 (F5(),F6(),F4())));
set l1 = (card F4()) + 1;
A24:
IC F2() = 0
by MEMSTR_0:def 8;
A25: Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),(0 + 1)) =
Following ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),0)))
by EXTPRO_1:3
.=
Following ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2())
by EXTPRO_1:2
.=
Exec (((F5(),F6()) >=0_goto ((card F4()) + 2)),F2())
by A23, SCMPDS_6:11, II
;
for a being Int_position holds F2() . a = (Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),1)) . a
by A25, SCMPDS_2:57;
then A27:
DataPart F2() = DataPart (Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),1))
by SCMPDS_4:8;
set m3 = (LifeSpan ((F3() +* (stop F4())),F2())) + 1;
set s6 = Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),((LifeSpan ((F3() +* (stop F4())),F2())) + 1));
set P6 = F3() +* (stop (while<0 (F5(),F6(),F4())));
(card F4()) + 1 < (card F4()) + 2
by XREAL_1:6;
then A28:
(card F4()) + 1 in dom (while<0 (F5(),F6(),F4()))
by Th7;
set m0 = LifeSpan ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2());
set s7 = Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),(((LifeSpan ((F3() +* (stop F4())),F2())) + 1) + 1));
XX:
while<0 (F5(),F6(),F4()) c= stop (while<0 (F5(),F6(),F4()))
by AFINSQ_1:74;
stop (while<0 (F5(),F6(),F4())) c= F3() +* (stop (while<0 (F5(),F6(),F4())))
by FUNCT_4:25;
then A33:
while<0 (F5(),F6(),F4()) c= F3() +* (stop (while<0 (F5(),F6(),F4())))
by XX, XBOOLE_1:1;
Shift (F4(),1) c= while<0 (F5(),F6(),F4())
by Lm2;
then A34:
Shift (F4(),1) c= F3() +* (stop (while<0 (F5(),F6(),F4())))
by A33, XBOOLE_1:1;
A35: IC (Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),1)) =
succ (IC F2())
by A2, A25, SCMPDS_2:57
.=
0 + 1
by A24
;
then A36:
IC (Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),1)),(LifeSpan ((F3() +* (stop F4())),F2())))) = (card F4()) + 1
by A10, A14, A11, A27, A34, SCMPDS_7:18;
A37:
(F3() +* (stop (while<0 (F5(),F6(),F4())))) /. (IC (Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),((LifeSpan ((F3() +* (stop F4())),F2())) + 1)))) = (F3() +* (stop (while<0 (F5(),F6(),F4())))) . (IC (Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),((LifeSpan ((F3() +* (stop F4())),F2())) + 1))))
by PBOOLE:143;
A38:
Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),((LifeSpan ((F3() +* (stop F4())),F2())) + 1)) = Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),1)),(LifeSpan ((F3() +* (stop F4())),F2())))
by EXTPRO_1:4;
then A39: CurInstr ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),((LifeSpan ((F3() +* (stop F4())),F2())) + 1)))) =
(F3() +* (stop (while<0 (F5(),F6(),F4())))) . ((card F4()) + 1)
by A10, A14, A11, A35, A27, A34, A37, SCMPDS_7:18
.=
(while<0 (F5(),F6(),F4())) . ((card F4()) + 1)
by A28, A33, GRFUNC_1:2
.=
goto (- ((card F4()) + 1))
by Th8
;
A41: Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),(((LifeSpan ((F3() +* (stop F4())),F2())) + 1) + 1)) =
Following ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),((LifeSpan ((F3() +* (stop F4())),F2())) + 1))))
by EXTPRO_1:3
.=
Exec ((goto (- ((card F4()) + 1))),(Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),((LifeSpan ((F3() +* (stop F4())),F2())) + 1))))
by A39
;
then IC (Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),(((LifeSpan ((F3() +* (stop F4())),F2())) + 1) + 1))) =
ICplusConst ((Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),((LifeSpan ((F3() +* (stop F4())),F2())) + 1))),(0 - ((card F4()) + 1)))
by SCMPDS_2:54
.=
0
by A36, A38, SCMPDS_7:1
;
then A42:
IC (Initialize (IExec (F4(),F3(),F2()))) = IC (Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),((LifeSpan ((F3() +* (stop F4())),F2())) + 2)))
by MEMSTR_0:def 8;
A43:
DataPart (Comput ((F3() +* (stop F4())),F2(),(LifeSpan ((F3() +* (stop F4())),F2())))) = DataPart (Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),1)),(LifeSpan ((F3() +* (stop F4())),F2()))))
by A10, A14, A11, A35, A27, A34, SCMPDS_7:18;
now let x be
Int_position ;
(Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),(((LifeSpan ((F3() +* (stop F4())),F2())) + 1) + 1))) . x = (Initialize (IExec (F4(),F3(),F2()))) . xA44:
not
x in dom (Start-At (0,SCMPDS))
by SCMPDS_4:18;
(Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),1)),(LifeSpan ((F3() +* (stop F4())),F2())))) . x =
(Comput ((F3() +* (stop F4())),F2(),(LifeSpan ((F3() +* (stop F4())),F2())))) . x
by A43, SCMPDS_4:8
.=
(Result ((F3() +* (stop F4())),F2())) . x
by A12, EXTPRO_1:23
.=
(IExec (F4(),F3(),F2())) . x
by SCMPDS_4:def 5
;
hence (Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),(((LifeSpan ((F3() +* (stop F4())),F2())) + 1) + 1))) . x =
(IExec (F4(),F3(),F2())) . x
by A38, A41, SCMPDS_2:54
.=
(Initialize (IExec (F4(),F3(),F2()))) . x
by A44, FUNCT_4:11
;
verum end;
then A46:
DataPart (Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),(((LifeSpan ((F3() +* (stop F4())),F2())) + 1) + 1))) = DataPart (Initialize (IExec (F4(),F3(),F2())))
by SCMPDS_4:8;
A48:
Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),((LifeSpan ((F3() +* (stop F4())),F2())) + 2)) = Initialize (IExec (F4(),F3(),F2()))
by A46, A42, MEMSTR_0:78;
then
CurInstr ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),((LifeSpan ((F3() +* (stop F4())),F2())) + 2)))) = (F5(),F6()) >=0_goto ((card F4()) + 2)
by A23, SCMPDS_6:11;
then
LifeSpan ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2()) > (LifeSpan ((F3() +* (stop F4())),F2())) + 2
by A17, EXTPRO_1:36, SCMPDS_6:18;
then consider nn being Nat such that
A49:
LifeSpan ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2()) = ((LifeSpan ((F3() +* (stop F4())),F2())) + 2) + nn
by NAT_1:10;
reconsider nn = nn as Element of NAT by ORDINAL1:def 12;
Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),(((LifeSpan ((F3() +* (stop F4())),F2())) + 2) + (LifeSpan ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Initialize (IExec (F4(),F3(),F2()))))))) = Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Initialize (IExec (F4(),F3(),F2()))),(LifeSpan ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Initialize (IExec (F4(),F3(),F2()))))))
by A48, EXTPRO_1:4;
then
CurInstr ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),(((LifeSpan ((F3() +* (stop F4())),F2())) + 2) + (LifeSpan ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Initialize (IExec (F4(),F3(),F2()))))))))) = halt SCMPDS
by A22, EXTPRO_1:def 15;
then
((LifeSpan ((F3() +* (stop F4())),F2())) + 2) + (LifeSpan ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Initialize (IExec (F4(),F3(),F2()))))) >= LifeSpan ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2())
by A17, EXTPRO_1:def 15;
then A51:
LifeSpan ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Initialize (IExec (F4(),F3(),F2())))) >= nn
by A49, XREAL_1:6;
A52:
Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2(),(LifeSpan ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2()))) = Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Initialize (IExec (F4(),F3(),F2()))),nn)
by A48, A49, EXTPRO_1:4;
then
CurInstr ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Initialize (IExec (F4(),F3(),F2()))),nn))) = halt SCMPDS
by A17, EXTPRO_1:def 15;
then
nn >= LifeSpan ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Initialize (IExec (F4(),F3(),F2()))))
by A22, EXTPRO_1:def 15;
then
nn = LifeSpan ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Initialize (IExec (F4(),F3(),F2()))))
by A51, XXREAL_0:1;
then
Result ((F3() +* (stop (while<0 (F5(),F6(),F4())))),F2()) = Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Initialize (IExec (F4(),F3(),F2()))),(LifeSpan ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Initialize (IExec (F4(),F3(),F2()))))))
by A17, A52, EXTPRO_1:23;
hence IExec ((while<0 (F5(),F6(),F4())),F3(),F2()) =
Comput ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Initialize (IExec (F4(),F3(),F2()))),(LifeSpan ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Initialize (IExec (F4(),F3(),F2()))))))
by SCMPDS_4:def 5
.=
Result ((F3() +* (stop (while<0 (F5(),F6(),F4())))),(Initialize (IExec (F4(),F3(),F2()))))
by A22, EXTPRO_1:23
.=
IExec ((while<0 (F5(),F6(),F4())),F3(),(Initialize (IExec (F4(),F3(),F2()))))
by SCMPDS_4:def 5
;
verum