let P be the Instructions of SCM+FSA -valued ManySortedSet of NAT ; for s being State of SCM+FSA
for I being InitHalting Program of SCM+FSA
for a being read-write Int-Location st s . a > 0 holds
ex s2 being State of SCM+FSA ex k being Element of NAT st
( s2 = s +* (Initialized (while>0 (a,I))) & k = (LifeSpan ((P +* I),(s +* (Initialized I)))) + 3 & IC (Comput ((P +* (while>0 (a,I))),s2,k)) = 0 & ( for b being Int-Location holds (Comput ((P +* (while>0 (a,I))),s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput ((P +* (while>0 (a,I))),s2,k)) . f = (IExec (I,P,s)) . f ) )
let s be State of SCM+FSA; for I being InitHalting Program of SCM+FSA
for a being read-write Int-Location st s . a > 0 holds
ex s2 being State of SCM+FSA ex k being Element of NAT st
( s2 = s +* (Initialized (while>0 (a,I))) & k = (LifeSpan ((P +* I),(s +* (Initialized I)))) + 3 & IC (Comput ((P +* (while>0 (a,I))),s2,k)) = 0 & ( for b being Int-Location holds (Comput ((P +* (while>0 (a,I))),s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput ((P +* (while>0 (a,I))),s2,k)) . f = (IExec (I,P,s)) . f ) )
let I be InitHalting Program of SCM+FSA; for a being read-write Int-Location st s . a > 0 holds
ex s2 being State of SCM+FSA ex k being Element of NAT st
( s2 = s +* (Initialized (while>0 (a,I))) & k = (LifeSpan ((P +* I),(s +* (Initialized I)))) + 3 & IC (Comput ((P +* (while>0 (a,I))),s2,k)) = 0 & ( for b being Int-Location holds (Comput ((P +* (while>0 (a,I))),s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput ((P +* (while>0 (a,I))),s2,k)) . f = (IExec (I,P,s)) . f ) )
set D = Data-Locations SCM+FSA;
let a be read-write Int-Location ; ( s . a > 0 implies ex s2 being State of SCM+FSA ex k being Element of NAT st
( s2 = s +* (Initialized (while>0 (a,I))) & k = (LifeSpan ((P +* I),(s +* (Initialized I)))) + 3 & IC (Comput ((P +* (while>0 (a,I))),s2,k)) = 0 & ( for b being Int-Location holds (Comput ((P +* (while>0 (a,I))),s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput ((P +* (while>0 (a,I))),s2,k)) . f = (IExec (I,P,s)) . f ) ) )
assume A1:
s . a > 0
; ex s2 being State of SCM+FSA ex k being Element of NAT st
( s2 = s +* (Initialized (while>0 (a,I))) & k = (LifeSpan ((P +* I),(s +* (Initialized I)))) + 3 & IC (Comput ((P +* (while>0 (a,I))),s2,k)) = 0 & ( for b being Int-Location holds (Comput ((P +* (while>0 (a,I))),s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput ((P +* (while>0 (a,I))),s2,k)) . f = (IExec (I,P,s)) . f ) )
set Is = (Initialized s) +* (Initialize I);
set Q = while>0 (a,I);
set s1 = s +* (Initialized I);
set P1 = P +* I;
take s2 = s +* (Initialized (while>0 (a,I))); ex k being Element of NAT st
( s2 = s +* (Initialized (while>0 (a,I))) & k = (LifeSpan ((P +* I),(s +* (Initialized I)))) + 3 & IC (Comput ((P +* (while>0 (a,I))),s2,k)) = 0 & ( for b being Int-Location holds (Comput ((P +* (while>0 (a,I))),s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput ((P +* (while>0 (a,I))),s2,k)) . f = (IExec (I,P,s)) . f ) )
set P2 = P +* (while>0 (a,I));
take k = (LifeSpan ((P +* I),(s +* (Initialized I)))) + 3; ( s2 = s +* (Initialized (while>0 (a,I))) & k = (LifeSpan ((P +* I),(s +* (Initialized I)))) + 3 & IC (Comput ((P +* (while>0 (a,I))),s2,k)) = 0 & ( for b being Int-Location holds (Comput ((P +* (while>0 (a,I))),s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput ((P +* (while>0 (a,I))),s2,k)) . f = (IExec (I,P,s)) . f ) )
A2:
ProgramPart I = I
by RELAT_1:209;
thus
( s2 = s +* (Initialized (while>0 (a,I))) & k = (LifeSpan ((P +* I),(s +* (Initialized I)))) + 3 )
; ( IC (Comput ((P +* (while>0 (a,I))),s2,k)) = 0 & ( for b being Int-Location holds (Comput ((P +* (while>0 (a,I))),s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput ((P +* (while>0 (a,I))),s2,k)) . f = (IExec (I,P,s)) . f ) )
A3:
I is_halting_onInit s,P
by SCM_HALT:36;
then A4:
P +* I halts_on s +* (Initialized I)
by SCM_HALT:def 5;
s +* (Initialized I) = (Initialized s) +* (Initialize I)
by SCMFSA8A:13;
then A5:
I is_halting_on Initialized s,P
by A4, SCMFSA7B:def 8, A2;
A6:
I is_closed_onInit s,P
by SCM_HALT:35;
hence
IC (Comput ((P +* (while>0 (a,I))),s2,k)) = 0
by A1, A3, Th21; ( ( for b being Int-Location holds (Comput ((P +* (while>0 (a,I))),s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput ((P +* (while>0 (a,I))),s2,k)) . f = (IExec (I,P,s)) . f ) )
set s4 = Comput ((P +* (while>0 (a,I))),s2,k);
set s3 = Comput ((P +* I),(s +* (Initialized I)),(LifeSpan ((P +* I),(s +* (Initialized I)))));
A7:
s +* (Initialized I) = (Initialized s) +* (Initialize I)
by SCMFSA8A:13;
A8:
s +* (Initialized I) = (Initialized s) +* (Initialize I)
by SCMFSA8A:13;
A9: Comput ((P +* I),(s +* (Initialized I)),(LifeSpan ((P +* I),(s +* (Initialized I))))) =
Comput ((P +* I),((Initialized s) +* (Initialize I)),(LifeSpan ((P +* I),(s +* (Initialized I)))))
by A7
.=
Comput ((P +* I),((Initialized s) +* (Initialize I)),(LifeSpan ((P +* I),((Initialized s) +* (Initialize I)))))
by A8
;
A10:
DataPart (Comput ((P +* (while>0 (a,I))),s2,k)) = DataPart (Comput ((P +* I),(s +* (Initialized I)),(LifeSpan ((P +* I),(s +* (Initialized I))))))
by A1, A3, A6, Th21;
hereby for f being FinSeq-Location holds (Comput ((P +* (while>0 (a,I))),s2,k)) . f = (IExec (I,P,s)) . f
let b be
Int-Location ;
(Comput ((P +* (while>0 (a,I))),s2,k)) . b = (IExec (I,P,s)) . bthus (Comput ((P +* (while>0 (a,I))),s2,k)) . b =
(Comput ((P +* I),((Initialized s) +* (Initialize I)),(LifeSpan ((P +* I),((Initialized s) +* (Initialize I)))))) . b
by A9, A10, SCMFSA6A:38
.=
(IExec (I,P,s)) . b
by A5, Th10
;
verum
end;
hereby verum
let f be
FinSeq-Location ;
(Comput ((P +* (while>0 (a,I))),s2,k)) . f = (IExec (I,P,s)) . fthus (Comput ((P +* (while>0 (a,I))),s2,k)) . f =
(Comput ((P +* I),((Initialized s) +* (Initialize I)),(LifeSpan ((P +* I),((Initialized s) +* (Initialize I)))))) . f
by A9, A10, SCMFSA6A:38
.=
(IExec (I,P,s)) . f
by A5, SCMFSA8C:87
;
verum
end;