let P be Instruction-Sequence of SCMPDS; :: thesis: for s being State of SCMPDS
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)),P,(Initialize s)) = s +* (Start-At (((card I) + 2),SCMPDS))

let s be State of SCMPDS; :: 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)),P,(Initialize s)) = s +* (Start-At (((card I) + 2),SCMPDS))

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)),P,(Initialize s)) = s +* (Start-At (((card I) + 2),SCMPDS))

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

let k1 be Integer; :: thesis: ( s . (DataLoc ((s . a),k1)) > 0 implies IExec ((if<=0 (a,k1,I)),P,(Initialize s)) = s +* (Start-At (((card I) + 2),SCMPDS)) )
set b = DataLoc ((s . a),k1);
set IF = if<=0 (a,k1,I);
set pIF = stop (if<=0 (a,k1,I));
set s3 = Initialize s;
set P3 = P +* (stop (if<=0 (a,k1,I)));
set s4 = Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),1);
set s5 = Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),2);
set P4 = P +* (stop (if<=0 (a,k1,I)));
set P5 = P +* (stop (if<=0 (a,k1,I)));
set i = (a,k1) <=0_goto 2;
set j = goto ((card I) + 1);
set SAl = Start-At (((card I) + 2),SCMPDS);
A1: if<=0 (a,k1,I) = ((a,k1) <=0_goto 2) ';' ((goto ((card I) + 1)) ';' I) by SCMPDS_4:16;
A2: not DataLoc ((s . a),k1) in dom (Start-At (0,SCMPDS)) by SCMPDS_4:18;
not a in dom (Start-At (0,SCMPDS)) by SCMPDS_4:18;
then A3: (Initialize s) . (DataLoc (((Initialize s) . a),k1)) = (Initialize s) . (DataLoc ((s . a),k1)) by FUNCT_4:11
.= s . (DataLoc ((s . a),k1)) by A2, FUNCT_4:11 ;
A4: IC (Initialize s) = 0 by MEMSTR_0:47;
A5: stop (if<=0 (a,k1,I)) c= P +* (stop (if<=0 (a,k1,I))) by FUNCT_4:25;
then A6: stop (if<=0 (a,k1,I)) c= P +* (stop (if<=0 (a,k1,I))) ;
A7: stop (if<=0 (a,k1,I)) c= P +* (stop (if<=0 (a,k1,I))) by A5;
A8: Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),(0 + 1)) = Following ((P +* (stop (if<=0 (a,k1,I)))),(Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),0))) by EXTPRO_1:3
.= Following ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s)) by EXTPRO_1:2
.= Exec (((a,k1) <=0_goto 2),(Initialize s)) by A1, Th3 ;
assume s . (DataLoc ((s . a),k1)) > 0 ; :: thesis: IExec ((if<=0 (a,k1,I)),P,(Initialize s)) = s +* (Start-At (((card I) + 2),SCMPDS))
then A9: IC (Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),1)) = (IC (Initialize s)) + 1 by A8, A3, SCMPDS_2:56
.= 0 + 1 by A4 ;
A10: 1 in dom (if<=0 (a,k1,I)) by Lm9;
then 1 in dom (stop (if<=0 (a,k1,I))) by COMPOS_1:62;
then A11: (P +* (stop (if<=0 (a,k1,I)))) . 1 = (stop (if<=0 (a,k1,I))) . 1 by A6, GRFUNC_1:2
.= (if<=0 (a,k1,I)) . 1 by A10, COMPOS_1:63
.= goto ((card I) + 1) by Lm10 ;
A12: (P +* (stop (if<=0 (a,k1,I)))) /. (IC (Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),1))) = (P +* (stop (if<=0 (a,k1,I)))) . (IC (Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),1))) by PBOOLE:143;
A13: Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),(1 + 1)) = Following ((P +* (stop (if<=0 (a,k1,I)))),(Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),1))) by EXTPRO_1:3
.= Exec ((goto ((card I) + 1)),(Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),1))) by A9, A11, A12 ;
then A14: IC (Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),2)) = ICplusConst ((Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),1)),((card I) + 1)) by SCMPDS_2:54
.= ((card I) + 1) + 1 by A9, Th4
.= (card I) + (1 + 1) ;
A15: (P +* (stop (if<=0 (a,k1,I)))) /. (IC (Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),2))) = (P +* (stop (if<=0 (a,k1,I)))) . (IC (Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),2))) by PBOOLE:143;
A16: card (if<=0 (a,k1,I)) = (card I) + 2 by Lm8;
then (card I) + 2 in dom (stop (if<=0 (a,k1,I))) by COMPOS_1:64;
then (P +* (stop (if<=0 (a,k1,I)))) . ((card I) + 2) = (stop (if<=0 (a,k1,I))) . ((card I) + 2) by A7, GRFUNC_1:2
.= halt SCMPDS by A16, COMPOS_1:64 ;
then A17: CurInstr ((P +* (stop (if<=0 (a,k1,I)))),(Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),2))) = halt SCMPDS by A14, A15;
then A18: P +* (stop (if<=0 (a,k1,I))) halts_on Initialize s by EXTPRO_1:29;
A19: CurInstr ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s)) = (a,k1) <=0_goto 2 by A1, Th3;
now :: thesis: for l being Nat st l < 1 + 1 holds
CurInstr ((P +* (stop (if<=0 (a,k1,I)))),(Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),l))) <> halt SCMPDS
let l be Nat; :: thesis: ( l < 1 + 1 implies CurInstr ((P +* (stop (if<=0 (a,k1,I)))),(Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),b1))) <> halt SCMPDS )
assume l < 1 + 1 ; :: thesis: CurInstr ((P +* (stop (if<=0 (a,k1,I)))),(Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),b1))) <> halt SCMPDS
then A20: l <= 1 by NAT_1:13;
A21: Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),0) = Initialize s by EXTPRO_1:2;
A22: (P +* (stop (if<=0 (a,k1,I)))) /. (IC (Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),l))) = (P +* (stop (if<=0 (a,k1,I)))) . (IC (Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),l))) by PBOOLE:143;
per cases ( l = 0 or l = 1 ) by A20, NAT_1:25;
suppose l = 0 ; :: thesis: CurInstr ((P +* (stop (if<=0 (a,k1,I)))),(Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),b1))) <> halt SCMPDS
then CurInstr ((P +* (stop (if<=0 (a,k1,I)))),(Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),l))) = CurInstr ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s)) by A21;
hence CurInstr ((P +* (stop (if<=0 (a,k1,I)))),(Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),l))) <> halt SCMPDS by A19; :: thesis: verum
end;
suppose l = 1 ; :: thesis: CurInstr ((P +* (stop (if<=0 (a,k1,I)))),(Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),b1))) <> halt SCMPDS
hence CurInstr ((P +* (stop (if<=0 (a,k1,I)))),(Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),l))) <> halt SCMPDS by A9, A11, A22; :: thesis: verum
end;
end;
end;
then for l being Nat st CurInstr ((P +* (stop (if<=0 (a,k1,I)))),(Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),l))) = halt SCMPDS holds
2 <= l ;
then LifeSpan ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s)) = 2 by A17, A18, EXTPRO_1:def 15;
then A23: Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),2) = Result ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s)) by A18, EXTPRO_1:23;
A24: now :: thesis: for x being object st x in dom (IExec ((if<=0 (a,k1,I)),P,(Initialize s))) holds
(IExec ((if<=0 (a,k1,I)),P,(Initialize s))) . x = (s +* (Start-At (((card I) + 2),SCMPDS))) . x
A25: dom (Start-At (((card I) + 2),SCMPDS)) = {(IC )} by FUNCOP_1:13;
let x be object ; :: thesis: ( x in dom (IExec ((if<=0 (a,k1,I)),P,(Initialize s))) implies (IExec ((if<=0 (a,k1,I)),P,(Initialize s))) . b1 = (s +* (Start-At (((card I) + 2),SCMPDS))) . b1 )
assume A26: x in dom (IExec ((if<=0 (a,k1,I)),P,(Initialize s))) ; :: thesis: (IExec ((if<=0 (a,k1,I)),P,(Initialize s))) . b1 = (s +* (Start-At (((card I) + 2),SCMPDS))) . b1
per cases ( x is Int_position or x = IC ) by A26, SCMPDS_4:6;
suppose A27: x is Int_position ; :: thesis: (IExec ((if<=0 (a,k1,I)),P,(Initialize s))) . b1 = (s +* (Start-At (((card I) + 2),SCMPDS))) . b1
then x <> IC by SCMPDS_2:43;
then A28: not x in dom (Start-At (((card I) + 2),SCMPDS)) by A25, TARSKI:def 1;
A29: not x in dom (Start-At (0,SCMPDS)) by A27, SCMPDS_4:18;
thus (IExec ((if<=0 (a,k1,I)),P,(Initialize s))) . x = (Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),2)) . x by A23
.= (Comput ((P +* (stop (if<=0 (a,k1,I)))),(Initialize s),1)) . x by A13, A27, SCMPDS_2:54
.= (Initialize s) . x by A8, A27, SCMPDS_2:56
.= s . x by A29, FUNCT_4:11
.= (s +* (Start-At (((card I) + 2),SCMPDS))) . x by A28, FUNCT_4:11 ; :: thesis: verum
end;
suppose A30: x = IC ; :: thesis: (IExec ((if<=0 (a,k1,I)),P,(Initialize s))) . b1 = (s +* (Start-At (((card I) + 2),SCMPDS))) . b1
hence (IExec ((if<=0 (a,k1,I)),P,(Initialize s))) . x = (card I) + 2 by A14, A23
.= (s +* (Start-At (((card I) + 2),SCMPDS))) . x by A30, FUNCT_4:113 ;
:: thesis: verum
end;
end;
end;
dom (IExec ((if<=0 (a,k1,I)),P,(Initialize s))) = the carrier of SCMPDS by PARTFUN1:def 2
.= dom (s +* (Start-At (((card I) + 2),SCMPDS))) by PARTFUN1:def 2 ;
hence IExec ((if<=0 (a,k1,I)),P,(Initialize s)) = s +* (Start-At (((card I) + 2),SCMPDS)) by A24, FUNCT_1:2; :: thesis: verum