let s be State of SCMPDS ; :: thesis: for I being Program of SCMPDS
for a, c being Int_position
for i being Integer st s . (DataLoc (s . a),i) = 0 holds
IExec (while<>0 a,i,I),s = s +* (Start-At (inspos ((card I) + 3)))

let I be Program of SCMPDS ; :: thesis: for a, c being Int_position
for i being Integer st s . (DataLoc (s . a),i) = 0 holds
IExec (while<>0 a,i,I),s = s +* (Start-At (inspos ((card I) + 3)))

let a, c be Int_position ; :: thesis: for i being Integer st s . (DataLoc (s . a),i) = 0 holds
IExec (while<>0 a,i,I),s = s +* (Start-At (inspos ((card I) + 3)))

let i be Integer; :: thesis: ( s . (DataLoc (s . a),i) = 0 implies IExec (while<>0 a,i,I),s = s +* (Start-At (inspos ((card I) + 3))) )
set b = DataLoc (s . a),i;
assume A1: s . (DataLoc (s . a),i) = 0 ; :: thesis: IExec (while<>0 a,i,I),s = s +* (Start-At (inspos ((card I) + 3)))
set i1 = a,i <>0_goto 2;
set i2 = goto ((card I) + 2);
set i3 = goto (- ((card I) + 2));
set WHL = while<>0 a,i,I;
set pWH = stop (while<>0 a,i,I);
set iWH = Initialized (stop (while<>0 a,i,I));
set s3 = s +* (Initialized (stop (while<>0 a,i,I)));
set s4 = Computation (s +* (Initialized (stop (while<>0 a,i,I)))),1;
set s5 = Computation (s +* (Initialized (stop (while<>0 a,i,I)))),2;
A2: IC (s +* (Initialized (stop (while<>0 a,i,I)))) = inspos 0 by SCMPDS_6:21;
A3: Initialized (stop (while<>0 a,i,I)) c= s +* (Initialized (stop (while<>0 a,i,I))) by FUNCT_4:26;
then A4: stop (while<>0 a,i,I) c= Computation (s +* (Initialized (stop (while<>0 a,i,I)))),1 by AMI_1:81, SCMPDS_4:57;
A5: stop (while<>0 a,i,I) c= Computation (s +* (Initialized (stop (while<>0 a,i,I)))),2 by A3, AMI_1:81, SCMPDS_4:57;
A6: not DataLoc (s . a),i in dom (Initialized (stop (while<>0 a,i,I))) by SCMPDS_4:31;
A7: while<>0 a,i,I = (a,i <>0_goto 2) ';' (((goto ((card I) + 2)) ';' I) ';' (goto (- ((card I) + 2)))) by Lm10;
A8: Computation (s +* (Initialized (stop (while<>0 a,i,I)))),(0 + 1) = Following (Computation (s +* (Initialized (stop (while<>0 a,i,I)))),0 ) by AMI_1:14
.= Following (s +* (Initialized (stop (while<>0 a,i,I)))) by AMI_1:13
.= Exec (a,i <>0_goto 2),(s +* (Initialized (stop (while<>0 a,i,I)))) by A7, SCMPDS_6:22 ;
A9: inspos 1 in dom (while<>0 a,i,I) by Th14;
then inspos 1 in dom (stop (while<>0 a,i,I)) by SCMPDS_6:18;
then A10: (Computation (s +* (Initialized (stop (while<>0 a,i,I)))),1) . (inspos 1) = (stop (while<>0 a,i,I)) . (inspos 1) by A4, GRFUNC_1:8
.= (while<>0 a,i,I) . (inspos 1) by A9, SCMPDS_6:19
.= goto ((card I) + 2) by Th15 ;
set SAl = Start-At (inspos ((card I) + 3));
A11: dom (s | NAT ) = NAT by SCMPDS_6:1;
not a in dom (Initialized (stop (while<>0 a,i,I))) by SCMPDS_4:31;
then (s +* (Initialized (stop (while<>0 a,i,I)))) . (DataLoc ((s +* (Initialized (stop (while<>0 a,i,I)))) . a),i) = (s +* (Initialized (stop (while<>0 a,i,I)))) . (DataLoc (s . a),i) by FUNCT_4:12
.= 0 by A1, A6, FUNCT_4:12 ;
then A12: IC (Computation (s +* (Initialized (stop (while<>0 a,i,I)))),1) = Next (IC (s +* (Initialized (stop (while<>0 a,i,I))))) by A8, SCMPDS_2:67
.= inspos (0 + 1) by A2 ;
A13: Computation (s +* (Initialized (stop (while<>0 a,i,I)))),(1 + 1) = Following (Computation (s +* (Initialized (stop (while<>0 a,i,I)))),1) by AMI_1:14
.= Exec (goto ((card I) + 2)),(Computation (s +* (Initialized (stop (while<>0 a,i,I)))),1) by A12, A10 ;
then A14: IC (Computation (s +* (Initialized (stop (while<>0 a,i,I)))),2) = ICplusConst (Computation (s +* (Initialized (stop (while<>0 a,i,I)))),1),((card I) + 2) by SCMPDS_2:66
.= inspos (((card I) + 2) + 1) by A12, SCMPDS_6:23
.= inspos ((card I) + (2 + 1)) ;
A15: card (while<>0 a,i,I) = (card I) + 3 by Th12;
then inspos ((card I) + 3) in dom (stop (while<>0 a,i,I)) by SCMPDS_6:25;
then (Computation (s +* (Initialized (stop (while<>0 a,i,I)))),2) . (inspos ((card I) + 3)) = (stop (while<>0 a,i,I)) . (inspos ((card I) + 3)) by A5, GRFUNC_1:8
.= halt SCMPDS by A15, SCMPDS_6:25 ;
then A16: CurInstr (Computation (s +* (Initialized (stop (while<>0 a,i,I)))),2) = halt SCMPDS by A14;
then s +* (Initialized (stop (while<>0 a,i,I))) is halting by AMI_1:def 20;
then A17: Computation (s +* (Initialized (stop (while<>0 a,i,I)))),2 = Result (s +* (Initialized (stop (while<>0 a,i,I)))) by A16, AMI_1:def 22;
A18: IExec (while<>0 a,i,I),s = (Result (s +* (Initialized (stop (while<>0 a,i,I))))) +* (s | NAT ) by SCMPDS_4:def 8;
A19: now
let x be set ; :: thesis: ( x in dom (IExec (while<>0 a,i,I),s) implies (IExec (while<>0 a,i,I),s) . b1 = (s +* (Start-At (inspos ((card I) + 3)))) . b1 )
A20: dom (Start-At (inspos ((card I) + 3))) = {(IC SCMPDS )} by FUNCOP_1:19;
assume A21: x in dom (IExec (while<>0 a,i,I),s) ; :: thesis: (IExec (while<>0 a,i,I),s) . b1 = (s +* (Start-At (inspos ((card I) + 3)))) . b1
per cases ( x is Int_position or x = IC SCMPDS or x is Instruction-Location of SCMPDS ) by A21, SCMPDS_4:20;
suppose A22: x is Int_position ; :: thesis: (IExec (while<>0 a,i,I),s) . b1 = (s +* (Start-At (inspos ((card I) + 3)))) . b1
then x <> IC SCMPDS by SCMPDS_2:52;
then A23: not x in dom (Start-At (inspos ((card I) + 3))) by A20, TARSKI:def 1;
now
assume x in dom (s | NAT ) ; :: thesis: contradiction
then reconsider l = x as Instruction-Location of SCMPDS by A11, AMI_1:def 4;
l = x ;
hence contradiction by A22, SCMPDS_2:53; :: thesis: verum
end;
hence (IExec (while<>0 a,i,I),s) . x = (Computation (s +* (Initialized (stop (while<>0 a,i,I)))),2) . x by A17, A18, FUNCT_4:12
.= (Computation (s +* (Initialized (stop (while<>0 a,i,I)))),1) . x by A13, A22, SCMPDS_2:66
.= (s +* (Initialized (stop (while<>0 a,i,I)))) . x by A8, A22, SCMPDS_2:67
.= s . x by A22, SCMPDS_5:19
.= (s +* (Start-At (inspos ((card I) + 3)))) . x by A23, FUNCT_4:12 ;
:: thesis: verum
end;
suppose A24: x = IC SCMPDS ; :: thesis: (IExec (while<>0 a,i,I),s) . b1 = (s +* (Start-At (inspos ((card I) + 3)))) . b1
now
assume x in dom (s | NAT ) ; :: thesis: contradiction
then reconsider l = x as Instruction-Location of SCMPDS by A11, AMI_1:def 4;
l = x ;
hence contradiction by A24, AMI_1:48; :: thesis: verum
end;
hence (IExec (while<>0 a,i,I),s) . x = inspos ((card I) + 3) by A14, A17, A18, A24, FUNCT_4:12
.= (s +* (Start-At (inspos ((card I) + 3)))) . x by A24, SCMPDS_7:12 ;
:: thesis: verum
end;
suppose x is Instruction-Location of SCMPDS ; :: thesis: (IExec (while<>0 a,i,I),s) . b1 = (s +* (Start-At (inspos ((card I) + 3)))) . b1
hence (IExec (while<>0 a,i,I),s) . x = (s +* (Start-At (inspos ((card I) + 3)))) . x by SCMPDS_6:27; :: thesis: verum
end;
end;
end;
dom (IExec (while<>0 a,i,I),s) = the carrier of SCMPDS by AMI_1:79
.= dom (s +* (Start-At (inspos ((card I) + 3)))) by AMI_1:79 ;
hence IExec (while<>0 a,i,I),s = s +* (Start-At (inspos ((card I) + 3))) by A19, FUNCT_1:9; :: thesis: verum