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

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

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

let k1 be Integer; :: thesis: ( s . (DataLoc (s . a),k1) = 0 implies IExec (if<>0 a,k1,I),s = s +* (Start-At (inspos ((card I) + 2))) )
set b = DataLoc (s . a),k1;
assume A1: s . (DataLoc (s . a),k1) = 0 ; :: thesis: IExec (if<>0 a,k1,I),s = s +* (Start-At (inspos ((card I) + 2)))
set SAl = Start-At (inspos ((card I) + 2));
set i = a,k1 <>0_goto 2;
set j = goto ((card I) + 1);
set IF = if<>0 a,k1,I;
set pIF = stop (if<>0 a,k1,I);
set IsIF = Initialized (stop (if<>0 a,k1,I));
set s3 = s +* (Initialized (stop (if<>0 a,k1,I)));
set s4 = Computation (s +* (Initialized (stop (if<>0 a,k1,I)))),1;
set s5 = Computation (s +* (Initialized (stop (if<>0 a,k1,I)))),2;
A2: if<>0 a,k1,I = (a,k1 <>0_goto 2) ';' ((goto ((card I) + 1)) ';' I) by SCMPDS_4:52;
A3: Initialized (stop (if<>0 a,k1,I)) c= s +* (Initialized (stop (if<>0 a,k1,I))) by FUNCT_4:26;
then A4: stop (if<>0 a,k1,I) c= Computation (s +* (Initialized (stop (if<>0 a,k1,I)))),1 by AMI_1:81, SCMPDS_4:57;
A5: stop (if<>0 a,k1,I) c= Computation (s +* (Initialized (stop (if<>0 a,k1,I)))),2 by A3, AMI_1:81, SCMPDS_4:57;
A6: not DataLoc (s . a),k1 in dom (Initialized (stop (if<>0 a,k1,I))) by SCMPDS_4:31;
A7: IC (s +* (Initialized (stop (if<>0 a,k1,I)))) = inspos 0 by FUNCT_4:26, SCMPDS_5:18;
A8: Computation (s +* (Initialized (stop (if<>0 a,k1,I)))),(0 + 1) = Following (Computation (s +* (Initialized (stop (if<>0 a,k1,I)))),0 ) by AMI_1:14
.= Following (s +* (Initialized (stop (if<>0 a,k1,I)))) by AMI_1:13
.= Exec (a,k1 <>0_goto 2),(s +* (Initialized (stop (if<>0 a,k1,I)))) by A2, Th22 ;
not a in dom (Initialized (stop (if<>0 a,k1,I))) by SCMPDS_4:31;
then (s +* (Initialized (stop (if<>0 a,k1,I)))) . (DataLoc ((s +* (Initialized (stop (if<>0 a,k1,I)))) . a),k1) = (s +* (Initialized (stop (if<>0 a,k1,I)))) . (DataLoc (s . a),k1) by FUNCT_4:12
.= 0 by A1, A6, FUNCT_4:12 ;
then A9: IC (Computation (s +* (Initialized (stop (if<>0 a,k1,I)))),1) = Next (IC (s +* (Initialized (stop (if<>0 a,k1,I))))) by A8, SCMPDS_2:67
.= inspos (0 + 1) by A7 ;
A10: inspos 1 in dom (if<>0 a,k1,I) by Lm9;
then inspos 1 in dom (stop (if<>0 a,k1,I)) by Th18;
then A11: (Computation (s +* (Initialized (stop (if<>0 a,k1,I)))),1) . (inspos 1) = (stop (if<>0 a,k1,I)) . (inspos 1) by A4, GRFUNC_1:8
.= (if<>0 a,k1,I) . (inspos 1) by A10, Th19
.= goto ((card I) + 1) by Lm10 ;
A12: Computation (s +* (Initialized (stop (if<>0 a,k1,I)))),(1 + 1) = Following (Computation (s +* (Initialized (stop (if<>0 a,k1,I)))),1) by AMI_1:14
.= Exec (goto ((card I) + 1)),(Computation (s +* (Initialized (stop (if<>0 a,k1,I)))),1) by A9, A11 ;
then A13: IC (Computation (s +* (Initialized (stop (if<>0 a,k1,I)))),2) = ICplusConst (Computation (s +* (Initialized (stop (if<>0 a,k1,I)))),1),((card I) + 1) by SCMPDS_2:66
.= inspos (((card I) + 1) + 1) by A9, Th23
.= inspos ((card I) + (1 + 1)) ;
A14: card (if<>0 a,k1,I) = (card I) + 2 by Lm8;
then inspos ((card I) + 2) in dom (stop (if<>0 a,k1,I)) by Th25;
then (Computation (s +* (Initialized (stop (if<>0 a,k1,I)))),2) . (inspos ((card I) + 2)) = (stop (if<>0 a,k1,I)) . (inspos ((card I) + 2)) by A5, GRFUNC_1:8
.= halt SCMPDS by A14, Th25 ;
then A15: CurInstr (Computation (s +* (Initialized (stop (if<>0 a,k1,I)))),2) = halt SCMPDS by A13;
then A16: ProgramPart (s +* (Initialized (stop (if<>0 a,k1,I)))) halts_on s +* (Initialized (stop (if<>0 a,k1,I))) by AMI_1:146;
A17: CurInstr (s +* (Initialized (stop (if<>0 a,k1,I)))) = a,k1 <>0_goto 2 by A2, Th22;
now end;
then for l being Element of NAT st CurInstr (Computation (s +* (Initialized (stop (if<>0 a,k1,I)))),l) = halt SCMPDS holds
2 <= l ;
then LifeSpan (s +* (Initialized (stop (if<>0 a,k1,I)))) = 2 by A15, A16, AMI_1:def 46;
then A19: Computation (s +* (Initialized (stop (if<>0 a,k1,I)))),2 = Result (s +* (Initialized (stop (if<>0 a,k1,I)))) by A16, AMI_1:122;
A20: dom (s | NAT ) = NAT by Th1;
A21: now
A22: dom (Start-At (inspos ((card I) + 2))) = {(IC SCMPDS )} by FUNCOP_1:19;
let x be set ; :: thesis: ( x in dom (IExec (if<>0 a,k1,I),s) implies (IExec (if<>0 a,k1,I),s) . b1 = (s +* (Start-At (inspos ((card I) + 2)))) . b1 )
A23: IExec (if<>0 a,k1,I),s = (Result (s +* (Initialized (stop (if<>0 a,k1,I))))) +* (s | NAT ) by SCMPDS_4:def 8;
assume A24: x in dom (IExec (if<>0 a,k1,I),s) ; :: thesis: (IExec (if<>0 a,k1,I),s) . b1 = (s +* (Start-At (inspos ((card I) + 2)))) . b1
per cases ( x is Int_position or x = IC SCMPDS or x is Instruction-Location of SCMPDS ) by A24, SCMPDS_4:20;
suppose A25: x is Int_position ; :: thesis: (IExec (if<>0 a,k1,I),s) . b1 = (s +* (Start-At (inspos ((card I) + 2)))) . b1
then x <> IC SCMPDS by SCMPDS_2:52;
then A26: not x in dom (Start-At (inspos ((card I) + 2))) by A22, TARSKI:def 1;
now
assume x in dom (s | NAT ) ; :: thesis: contradiction
then reconsider l = x as Instruction-Location of SCMPDS by A20, AMI_1:def 4;
l = x ;
hence contradiction by A25, SCMPDS_2:53; :: thesis: verum
end;
hence (IExec (if<>0 a,k1,I),s) . x = (Computation (s +* (Initialized (stop (if<>0 a,k1,I)))),2) . x by A19, A23, FUNCT_4:12
.= (Computation (s +* (Initialized (stop (if<>0 a,k1,I)))),1) . x by A12, A25, SCMPDS_2:66
.= (s +* (Initialized (stop (if<>0 a,k1,I)))) . x by A8, A25, SCMPDS_2:67
.= s . x by A25, SCMPDS_5:19
.= (s +* (Start-At (inspos ((card I) + 2)))) . x by A26, FUNCT_4:12 ;
:: thesis: verum
end;
suppose A27: x = IC SCMPDS ; :: thesis: (IExec (if<>0 a,k1,I),s) . b1 = (s +* (Start-At (inspos ((card I) + 2)))) . b1
now
assume x in dom (s | NAT ) ; :: thesis: contradiction
then reconsider l = x as Instruction-Location of SCMPDS by A20, AMI_1:def 4;
l = x ;
hence contradiction by A27, AMI_1:48; :: thesis: verum
end;
hence (IExec (if<>0 a,k1,I),s) . x = inspos ((card I) + 2) by A13, A19, A23, A27, FUNCT_4:12
.= (s +* (Start-At (inspos ((card I) + 2)))) . x by A27, Lm7 ;
:: thesis: verum
end;
suppose x is Instruction-Location of SCMPDS ; :: thesis: (IExec (if<>0 a,k1,I),s) . b1 = (s +* (Start-At (inspos ((card I) + 2)))) . b1
hence (IExec (if<>0 a,k1,I),s) . x = (s +* (Start-At (inspos ((card I) + 2)))) . x by Th27; :: thesis: verum
end;
end;
end;
dom (IExec (if<>0 a,k1,I),s) = the carrier of SCMPDS by AMI_1:79
.= dom (s +* (Start-At (inspos ((card I) + 2)))) by AMI_1:79 ;
hence IExec (if<>0 a,k1,I),s = s +* (Start-At (inspos ((card I) + 2))) by A21, FUNCT_1:9; :: thesis: verum