let s be State of SCM+FSA ; :: thesis: for a being read-write Int-Location
for I being Program of SCM+FSA st I is_closed_on s & I is_halting_on s & s . a = 0 holds
DataPart (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((LifeSpan (s +* (I +* (Start-At (insloc 0 ))))) + 3)) = DataPart (Computation (s +* (I +* (Start-At (insloc 0 )))),(LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))

let a be read-write Int-Location ; :: thesis: for I being Program of SCM+FSA st I is_closed_on s & I is_halting_on s & s . a = 0 holds
DataPart (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((LifeSpan (s +* (I +* (Start-At (insloc 0 ))))) + 3)) = DataPart (Computation (s +* (I +* (Start-At (insloc 0 )))),(LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))

let I be Program of SCM+FSA ; :: thesis: ( I is_closed_on s & I is_halting_on s & s . a = 0 implies DataPart (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((LifeSpan (s +* (I +* (Start-At (insloc 0 ))))) + 3)) = DataPart (Computation (s +* (I +* (Start-At (insloc 0 )))),(LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) )
assume that
A1: I is_closed_on s and
A2: I is_halting_on s and
A3: s . a = 0 ; :: thesis: DataPart (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((LifeSpan (s +* (I +* (Start-At (insloc 0 ))))) + 3)) = DataPart (Computation (s +* (I +* (Start-At (insloc 0 )))),(LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))
set s1 = s +* ((while=0 a,I) +* (Start-At (insloc 0 )));
set s2 = Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),1;
set i = a =0_goto (insloc 4);
set sI = s +* (I +* (Start-At (insloc 0 )));
A4: insloc 0 in dom (while=0 a,I) by SCMFSA_9:10;
while=0 a,I c= (while=0 a,I) +* (Start-At (insloc 0 )) by SCMFSA8A:9;
then A5: dom (while=0 a,I) c= dom ((while=0 a,I) +* (Start-At (insloc 0 ))) by GRFUNC_1:8;
A6: IC SCM+FSA in dom ((while=0 a,I) +* (Start-At (insloc 0 ))) by SF_MASTR:65;
A7: IC (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))) = (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))) . (IC SCM+FSA ) by AMI_1:def 15
.= ((while=0 a,I) +* (Start-At (insloc 0 ))) . (IC SCM+FSA ) by A6, FUNCT_4:14
.= insloc 0 by SF_MASTR:66 ;
(s +* ((while=0 a,I) +* (Start-At (insloc 0 )))) . (insloc 0 ) = ((while=0 a,I) +* (Start-At (insloc 0 ))) . (insloc 0 ) by A4, A5, FUNCT_4:14
.= (while=0 a,I) . (insloc 0 ) by A4, SCMFSA6B:7
.= a =0_goto (insloc 4) by SCMFSA_9:11 ;
then A8: CurInstr (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))) = a =0_goto (insloc 4) by A7, AMI_1:def 17;
A9: Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(0 + 1) = Following (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),0 ) by AMI_1:14
.= Following (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))) by AMI_1:13
.= Exec (a =0_goto (insloc 4)),(s +* ((while=0 a,I) +* (Start-At (insloc 0 )))) by A8, AMI_1:def 18 ;
( not a in dom ((while=0 a,I) +* (Start-At (insloc 0 ))) & a in dom s ) by SCMFSA6B:12, SCMFSA_2:66;
then A10: (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))) . a = s . a by FUNCT_4:12;
A11: IC (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),1) = (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),1) . (IC SCM+FSA ) by AMI_1:def 15
.= insloc 4 by A3, A9, A10, SCMFSA_2:96 ;
( ( for c being Int-Location holds (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),1) . c = (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))) . c ) & ( for f being FinSeq-Location holds (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),1) . f = (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))) . f ) ) by A9, SCMFSA_2:96;
then A12: DataPart (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),1) = DataPart (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))) by SCMFSA6A:38
.= DataPart s by SCMFSA8A:11
.= DataPart (s +* (I +* (Start-At (insloc 0 )))) by SCMFSA8A:11 ;
defpred S1[ Element of NAT ] means ( $1 <= LifeSpan (s +* (I +* (Start-At (insloc 0 )))) implies ( IC (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + $1)) = (IC (Computation (s +* (I +* (Start-At (insloc 0 )))),$1)) + 4 & DataPart (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + $1)) = DataPart (Computation (s +* (I +* (Start-At (insloc 0 )))),$1) ) );
A13: S1[ 0 ]
proof
assume 0 <= LifeSpan (s +* (I +* (Start-At (insloc 0 )))) ; :: thesis: ( IC (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + 0 )) = (IC (Computation (s +* (I +* (Start-At (insloc 0 )))),0 )) + 4 & DataPart (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + 0 )) = DataPart (Computation (s +* (I +* (Start-At (insloc 0 )))),0 ) )
A14: IC SCM+FSA in dom (I +* (Start-At (insloc 0 ))) by SF_MASTR:65;
IC (Computation (s +* (I +* (Start-At (insloc 0 )))),0 ) = IC (s +* (I +* (Start-At (insloc 0 )))) by AMI_1:13
.= (s +* (I +* (Start-At (insloc 0 )))) . (IC SCM+FSA ) by AMI_1:def 15
.= (I +* (Start-At (insloc 0 ))) . (IC SCM+FSA ) by A14, FUNCT_4:14
.= insloc 0 by SF_MASTR:66 ;
hence ( IC (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + 0 )) = (IC (Computation (s +* (I +* (Start-At (insloc 0 )))),0 )) + 4 & DataPart (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + 0 )) = DataPart (Computation (s +* (I +* (Start-At (insloc 0 )))),0 ) ) by A11, A12, AMI_1:13; :: thesis: verum
end;
A15: now
let k be Element of NAT ; :: thesis: ( S1[k] implies S1[k + 1] )
assume A16: S1[k] ; :: thesis: S1[k + 1]
now
assume A17: k + 1 <= LifeSpan (s +* (I +* (Start-At (insloc 0 )))) ; :: thesis: ( IC (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((1 + k) + 1)) = (IC (Computation (s +* (I +* (Start-At (insloc 0 )))),(k + 1))) + 4 & DataPart (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((1 + k) + 1)) = DataPart (Computation (s +* (I +* (Start-At (insloc 0 )))),(k + 1)) )
k + 0 < k + 1 by XREAL_1:8;
then k < LifeSpan (s +* (I +* (Start-At (insloc 0 )))) by A17, XXREAL_0:2;
hence ( IC (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((1 + k) + 1)) = (IC (Computation (s +* (I +* (Start-At (insloc 0 )))),(k + 1))) + 4 & DataPart (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((1 + k) + 1)) = DataPart (Computation (s +* (I +* (Start-At (insloc 0 )))),(k + 1)) ) by A1, A2, A16, SCMFSA_9:19; :: thesis: verum
end;
hence S1[k + 1] ; :: thesis: verum
end;
set s2 = Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 ))))));
set loc4 = insloc ((card I) + 4);
set s3 = Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) + 1);
for k being Element of NAT holds S1[k] from NAT_1:sch 1(A13, A15);
then A18: S1[ LifeSpan (s +* (I +* (Start-At (insloc 0 ))))] ;
then A19: CurInstr (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) = goto (insloc ((card I) + 4)) by A1, A2, SCMFSA_9:20;
A20: Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) + 1) = Following (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) by AMI_1:14
.= Exec (goto (insloc ((card I) + 4))),(Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) by A19, AMI_1:def 18 ;
A21: insloc ((card I) + 4) in dom (while=0 a,I) by SCMFSA_9:13;
A22: IC (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) + 1)) = (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) + 1)) . (IC SCM+FSA ) by AMI_1:def 15
.= insloc ((card I) + 4) by A20, SCMFSA_2:95 ;
A23: ( ( for c being Int-Location holds (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) + 1)) . c = (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) . c ) & ( for f being FinSeq-Location holds (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) + 1)) . f = (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) . f ) ) by A20, SCMFSA_2:95;
set s4 = Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(((1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) + 1) + 1);
(Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) + 1)) . (insloc ((card I) + 4)) = (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))) . (insloc ((card I) + 4)) by AMI_1:54
.= ((while=0 a,I) +* (Start-At (insloc 0 ))) . (insloc ((card I) + 4)) by A5, A21, FUNCT_4:14
.= (while=0 a,I) . (insloc ((card I) + 4)) by A21, SCMFSA6B:7
.= goto (insloc 0 ) by SCMFSA_9:21 ;
then A24: CurInstr (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) + 1)) = goto (insloc 0 ) by A22, AMI_1:def 17;
Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(((1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) + 1) + 1) = Following (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) + 1)) by AMI_1:14
.= Exec (goto (insloc 0 )),(Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) + 1)) by A24, AMI_1:def 18 ;
then ( ( for c being Int-Location holds (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(((1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) + 1) + 1)) . c = (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) + 1)) . c ) & ( for f being FinSeq-Location holds (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(((1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) + 1) + 1)) . f = (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) + 1)) . f ) ) by SCMFSA_2:95;
hence DataPart (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((LifeSpan (s +* (I +* (Start-At (insloc 0 ))))) + 3)) = DataPart (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),((1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) + 1)) by SCMFSA6A:38
.= DataPart (Computation (s +* (I +* (Start-At (insloc 0 )))),(LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) by A18, A23, SCMFSA6A:38 ;
:: thesis: verum