let P be the Instructions of SCM+FSA -valued ManySortedSet of NAT ; for s being State of SCM+FSA
for I being parahalting good Program of SCM+FSA
for a being read-write Int-Location st not I destroys a & s . (intloc 0) = 1 & s . a > 0 holds
ex s2 being State of SCM+FSA ex P2 being the Instructions of SCM+FSA -valued ManySortedSet of NAT ex k being Element of NAT st
( s2 = s +* (Initialize (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))) & P2 = P +* (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) & k = (LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1 & (Comput (P2,s2,k)) . a = (s . a) - 1 & (Comput (P2,s2,k)) . (intloc 0) = 1 & ( for b being read-write Int-Location st b <> a holds
(Comput (P2,s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput (P2,s2,k)) . f = (IExec (I,P,s)) . f ) & IC (Comput (P2,s2,k)) = 0 & ( for n being Element of NAT st n <= k holds
IC (Comput (P2,s2,n)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) ) )
let s be State of SCM+FSA; for I being parahalting good Program of SCM+FSA
for a being read-write Int-Location st not I destroys a & s . (intloc 0) = 1 & s . a > 0 holds
ex s2 being State of SCM+FSA ex P2 being the Instructions of SCM+FSA -valued ManySortedSet of NAT ex k being Element of NAT st
( s2 = s +* (Initialize (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))) & P2 = P +* (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) & k = (LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1 & (Comput (P2,s2,k)) . a = (s . a) - 1 & (Comput (P2,s2,k)) . (intloc 0) = 1 & ( for b being read-write Int-Location st b <> a holds
(Comput (P2,s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput (P2,s2,k)) . f = (IExec (I,P,s)) . f ) & IC (Comput (P2,s2,k)) = 0 & ( for n being Element of NAT st n <= k holds
IC (Comput (P2,s2,n)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) ) )
set A = NAT ;
let I be parahalting good Program of SCM+FSA; for a being read-write Int-Location st not I destroys a & s . (intloc 0) = 1 & s . a > 0 holds
ex s2 being State of SCM+FSA ex P2 being the Instructions of SCM+FSA -valued ManySortedSet of NAT ex k being Element of NAT st
( s2 = s +* (Initialize (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))) & P2 = P +* (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) & k = (LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1 & (Comput (P2,s2,k)) . a = (s . a) - 1 & (Comput (P2,s2,k)) . (intloc 0) = 1 & ( for b being read-write Int-Location st b <> a holds
(Comput (P2,s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput (P2,s2,k)) . f = (IExec (I,P,s)) . f ) & IC (Comput (P2,s2,k)) = 0 & ( for n being Element of NAT st n <= k holds
IC (Comput (P2,s2,n)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) ) )
let a be read-write Int-Location ; ( not I destroys a & s . (intloc 0) = 1 & s . a > 0 implies ex s2 being State of SCM+FSA ex P2 being the Instructions of SCM+FSA -valued ManySortedSet of NAT ex k being Element of NAT st
( s2 = s +* (Initialize (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))) & P2 = P +* (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) & k = (LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1 & (Comput (P2,s2,k)) . a = (s . a) - 1 & (Comput (P2,s2,k)) . (intloc 0) = 1 & ( for b being read-write Int-Location st b <> a holds
(Comput (P2,s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput (P2,s2,k)) . f = (IExec (I,P,s)) . f ) & IC (Comput (P2,s2,k)) = 0 & ( for n being Element of NAT st n <= k holds
IC (Comput (P2,s2,n)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) ) ) )
assume A1:
not I destroys a
; ( not s . (intloc 0) = 1 or not s . a > 0 or ex s2 being State of SCM+FSA ex P2 being the Instructions of SCM+FSA -valued ManySortedSet of NAT ex k being Element of NAT st
( s2 = s +* (Initialize (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))) & P2 = P +* (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) & k = (LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1 & (Comput (P2,s2,k)) . a = (s . a) - 1 & (Comput (P2,s2,k)) . (intloc 0) = 1 & ( for b being read-write Int-Location st b <> a holds
(Comput (P2,s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput (P2,s2,k)) . f = (IExec (I,P,s)) . f ) & IC (Comput (P2,s2,k)) = 0 & ( for n being Element of NAT st n <= k holds
IC (Comput (P2,s2,n)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) ) ) )
reconsider I1 = I ';' (SubFrom (a,(intloc 0))) as parahalting Program of SCM+FSA ;
set I2 = if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))));
A2:
ProgramPart (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))) = if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))
by RELAT_1:209;
set s1 = s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))));
set P1 = P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))));
A3:
I1 is_halting_on s,P
by SCMFSA7B:25;
set Is = (Initialized s) +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))));
set IP = P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))));
A4:
intloc 0 in dom s
by SCMFSA_2:66;
assume
s . (intloc 0) = 1
; ( not s . a > 0 or ex s2 being State of SCM+FSA ex P2 being the Instructions of SCM+FSA -valued ManySortedSet of NAT ex k being Element of NAT st
( s2 = s +* (Initialize (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))) & P2 = P +* (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) & k = (LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1 & (Comput (P2,s2,k)) . a = (s . a) - 1 & (Comput (P2,s2,k)) . (intloc 0) = 1 & ( for b being read-write Int-Location st b <> a holds
(Comput (P2,s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput (P2,s2,k)) . f = (IExec (I,P,s)) . f ) & IC (Comput (P2,s2,k)) = 0 & ( for n being Element of NAT st n <= k holds
IC (Comput (P2,s2,n)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) ) ) )
then A5:
s +* ((intloc 0) .--> 1) = s
by A4, FUNCT_7:111;
A6:
I1 is_closed_on Initialized s,P
by SCMFSA7B:24;
A7:
I1 is_halting_on Initialized s,P
by SCMFSA7B:25;
assume A8:
s . a > 0
; ex s2 being State of SCM+FSA ex P2 being the Instructions of SCM+FSA -valued ManySortedSet of NAT ex k being Element of NAT st
( s2 = s +* (Initialize (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))) & P2 = P +* (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) & k = (LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1 & (Comput (P2,s2,k)) . a = (s . a) - 1 & (Comput (P2,s2,k)) . (intloc 0) = 1 & ( for b being read-write Int-Location st b <> a holds
(Comput (P2,s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput (P2,s2,k)) . f = (IExec (I,P,s)) . f ) & IC (Comput (P2,s2,k)) = 0 & ( for n being Element of NAT st n <= k holds
IC (Comput (P2,s2,n)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) ) )
then A9:
(Initialized s) . a > 0
by SCMFSA6C:3;
then A10:
if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))) is_halting_on Initialized s,P
by A6, A7, SCMFSA8B:18;
A11:
if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))) is_closed_on Initialized s,P
by A9, A6, A7, SCMFSA8B:18;
take s2 = s +* (Initialize (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))); ex P2 being the Instructions of SCM+FSA -valued ManySortedSet of NAT ex k being Element of NAT st
( s2 = s +* (Initialize (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))) & P2 = P +* (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) & k = (LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1 & (Comput (P2,s2,k)) . a = (s . a) - 1 & (Comput (P2,s2,k)) . (intloc 0) = 1 & ( for b being read-write Int-Location st b <> a holds
(Comput (P2,s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput (P2,s2,k)) . f = (IExec (I,P,s)) . f ) & IC (Comput (P2,s2,k)) = 0 & ( for n being Element of NAT st n <= k holds
IC (Comput (P2,s2,n)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) ) )
take P2 = P +* (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))); ex k being Element of NAT st
( s2 = s +* (Initialize (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))) & P2 = P +* (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) & k = (LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1 & (Comput (P2,s2,k)) . a = (s . a) - 1 & (Comput (P2,s2,k)) . (intloc 0) = 1 & ( for b being read-write Int-Location st b <> a holds
(Comput (P2,s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput (P2,s2,k)) . f = (IExec (I,P,s)) . f ) & IC (Comput (P2,s2,k)) = 0 & ( for n being Element of NAT st n <= k holds
IC (Comput (P2,s2,n)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) ) )
reconsider k = (LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1 as Element of NAT ;
take
k
; ( s2 = s +* (Initialize (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))) & P2 = P +* (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) & k = (LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1 & (Comput (P2,s2,k)) . a = (s . a) - 1 & (Comput (P2,s2,k)) . (intloc 0) = 1 & ( for b being read-write Int-Location st b <> a holds
(Comput (P2,s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput (P2,s2,k)) . f = (IExec (I,P,s)) . f ) & IC (Comput (P2,s2,k)) = 0 & ( for n being Element of NAT st n <= k holds
IC (Comput (P2,s2,n)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) ) )
thus
s2 = s +* (Initialize (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))))
; ( P2 = P +* (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) & k = (LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1 & (Comput (P2,s2,k)) . a = (s . a) - 1 & (Comput (P2,s2,k)) . (intloc 0) = 1 & ( for b being read-write Int-Location st b <> a holds
(Comput (P2,s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput (P2,s2,k)) . f = (IExec (I,P,s)) . f ) & IC (Comput (P2,s2,k)) = 0 & ( for n being Element of NAT st n <= k holds
IC (Comput (P2,s2,n)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) ) )
thus
P2 = P +* (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))
; ( k = (LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1 & (Comput (P2,s2,k)) . a = (s . a) - 1 & (Comput (P2,s2,k)) . (intloc 0) = 1 & ( for b being read-write Int-Location st b <> a holds
(Comput (P2,s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput (P2,s2,k)) . f = (IExec (I,P,s)) . f ) & IC (Comput (P2,s2,k)) = 0 & ( for n being Element of NAT st n <= k holds
IC (Comput (P2,s2,n)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) ) )
thus
k = (LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1
; ( (Comput (P2,s2,k)) . a = (s . a) - 1 & (Comput (P2,s2,k)) . (intloc 0) = 1 & ( for b being read-write Int-Location st b <> a holds
(Comput (P2,s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput (P2,s2,k)) . f = (IExec (I,P,s)) . f ) & IC (Comput (P2,s2,k)) = 0 & ( for n being Element of NAT st n <= k holds
IC (Comput (P2,s2,n)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) ) )
A12:
dom (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))) misses dom (Start-At (0,SCM+FSA))
by COMPOS_1:140;
Initialized s = Initialize (s +* ((intloc 0) .--> 1))
by FUNCT_4:15;
then A13: (Initialized s) +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) =
(Initialize s) +* ((Start-At (0,SCM+FSA)) +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))
by A5, A12, FUNCT_4:36
.=
(Initialize (Initialize s)) +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))
by FUNCT_4:15
.=
(s +* (Initialize (Start-At (0,SCM+FSA)))) +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))
by FUNCT_4:15
.=
s +* ((Start-At (0,SCM+FSA)) +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))
by FUNCT_4:15
.=
s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))
by A12, FUNCT_4:36
;
A14:
I1 is_halting_on Initialized s,P
by SCMFSA7B:25;
I1 is_closed_on Initialized s,P
by SCMFSA7B:24;
then A15:
IExec ((if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))),P,s) = (IExec (I1,P,s)) +* (Start-At ((((card (Goto 2)) + (card I1)) + 3),SCM+FSA))
by A8, A14, SCMFSA8B:19;
then A16:
(IExec ((if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))),P,s)) . a = (IExec (I1,P,s)) . a
by SCMFSA_3:11;
A17:
I1 is_closed_on s,P
by SCMFSA7B:24;
then A18:
if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))) is_closed_on s,P
by A8, A3, SCMFSA8B:18;
A19:
if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))) is_halting_on s,P
by A8, A17, A3, SCMFSA8B:18;
A20: Comput (P2,s2,((LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1)) =
Following (P2,(Comput (P2,s2,(LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))))))
by EXTPRO_1:4
.=
Exec ((CurInstr (P2,(Comput (P2,s2,(LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))))))),(Comput (P2,s2,(LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))))))
;
then A21:
Comput (P2,s2,((LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1)) = Exec ((goto 0),(Comput (P2,s2,(LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))))))
by A18, A19, Lm2;
A22:
now let b be
Int-Location ;
(Comput (P2,s2,((LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1))) . b = (Comput ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),((Initialized s) +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))),(LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),((Initialized s) +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))))) . b
(Comput (P2,s2,((LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1))) . b = (Comput (P2,s2,(LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))))) . b
by A21, SCMFSA_2:95;
hence
(Comput (P2,s2,((LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1))) . b = (Comput ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),((Initialized s) +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))),(LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),((Initialized s) +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))))) . b
by A18, A19, A13, Th109, SCMFSA10:92;
verum end;
then (Comput (P2,s2,((LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1))) . a =
(Comput ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),((Initialized s) +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))),(LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),((Initialized s) +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))))) . a
.=
(IExec ((if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))),P,s)) . a
by A10, Th87
;
hence (Comput (P2,s2,k)) . a =
(Comput ((P +* I1),((Initialized s) +* (Initialize I1)),(LifeSpan ((P +* I1),((Initialized s) +* (Initialize I1)))))) . a
by A14, A16, Th87
.=
(s . a) - 1
by A1, Th98
;
( (Comput (P2,s2,k)) . (intloc 0) = 1 & ( for b being read-write Int-Location st b <> a holds
(Comput (P2,s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput (P2,s2,k)) . f = (IExec (I,P,s)) . f ) & IC (Comput (P2,s2,k)) = 0 & ( for n being Element of NAT st n <= k holds
IC (Comput (P2,s2,n)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) ) )
A23:
if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))) is good
by Th115;
(Comput (P2,s2,((LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1))) . (intloc 0) =
(Comput ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),((Initialized s) +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))),(LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),((Initialized s) +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))))) . (intloc 0)
by A22
.=
1
by A10, A11, A23, Th96
;
hence
(Comput (P2,s2,k)) . (intloc 0) = 1
; ( ( for b being read-write Int-Location st b <> a holds
(Comput (P2,s2,k)) . b = (IExec (I,P,s)) . b ) & ( for f being FinSeq-Location holds (Comput (P2,s2,k)) . f = (IExec (I,P,s)) . f ) & IC (Comput (P2,s2,k)) = 0 & ( for n being Element of NAT st n <= k holds
IC (Comput (P2,s2,n)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) ) )
hereby ( ( for f being FinSeq-Location holds (Comput (P2,s2,k)) . f = (IExec (I,P,s)) . f ) & IC (Comput (P2,s2,k)) = 0 & ( for n being Element of NAT st n <= k holds
IC (Comput (P2,s2,n)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) ) )
let b be
read-write Int-Location ;
( b <> a implies (Comput (P2,s2,k)) . b = (IExec (I,P,s)) . b )assume A24:
b <> a
;
(Comput (P2,s2,k)) . b = (IExec (I,P,s)) . bthus (Comput (P2,s2,k)) . b =
(Comput ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),((Initialized s) +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))),(LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),((Initialized s) +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))))) . b
by A22
.=
(IExec ((if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))),P,s)) . b
by A10, Th87
.=
(IExec (I1,P,s)) . b
by A15, SCMFSA_3:11
.=
(Exec ((SubFrom (a,(intloc 0))),(IExec (I,P,s)))) . b
by SCMFSA6C:7
.=
(IExec (I,P,s)) . b
by A24, SCMFSA_2:91
;
verum
end;
hereby ( IC (Comput (P2,s2,k)) = 0 & ( for n being Element of NAT st n <= k holds
IC (Comput (P2,s2,n)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) ) )
let f be
FinSeq-Location ;
(Comput (P2,s2,k)) . f = (IExec (I,P,s)) . f
(Comput (P2,s2,((LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1))) . f = (Comput (P2,s2,(LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))))) . f
by A21, SCMFSA_2:95;
hence (Comput (P2,s2,k)) . f =
(Comput ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),((Initialized s) +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))),(LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),((Initialized s) +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))))) . f
by A18, A19, A13, Th109, SCMFSA10:93
.=
(IExec ((if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))),P,s)) . f
by A10, Th87
.=
(IExec (I1,P,s)) . f
by A15, SCMFSA_3:12
.=
(Exec ((SubFrom (a,(intloc 0))),(IExec (I,P,s)))) . f
by SCMFSA6C:8
.=
(IExec (I,P,s)) . f
by SCMFSA_2:91
;
verum
end;
A25: IC (Comput (P2,s2,((LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1))) =
(Exec ((goto 0),(Comput (P2,s2,(LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))))))) . (IC )
by A18, A19, A20, Lm2
.=
0
by SCMFSA_2:95
;
hence
IC (Comput (P2,s2,k)) = 0
; for n being Element of NAT st n <= k holds
IC (Comput (P2,s2,n)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))
hereby verum
let n be
Element of
NAT ;
( n <= k implies IC (Comput (P2,s2,b1)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) )assume A26:
n <= k
;
IC (Comput (P2,s2,b1)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))per cases
( n <= LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))))) or n = (LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1 )
by A26, NAT_1:8;
suppose A27:
n <= LifeSpan (
(P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),
(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))
;
IC (Comput (P2,s2,b1)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))A28:
I1 is_halting_on s,
P
by SCMFSA7B:25;
A29:
I1 is_closed_on s,
P
by SCMFSA7B:24;
then A30:
if=0 (
a,
(Goto 2),
(I ';' (SubFrom (a,(intloc 0)))))
is_closed_on s,
P
by A8, A28, SCMFSA8B:18;
if=0 (
a,
(Goto 2),
(I ';' (SubFrom (a,(intloc 0)))))
is_halting_on s,
P
by A8, A29, A28, SCMFSA8B:18;
then
Comput (
(P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),
(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))),
n),
Comput (
P2,
s2,
n)
equal_outside NAT
by A27, A30, Th109;
then A31:
IC (Comput (P2,s2,n)) = IC (Comput ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))),n))
by SCMFSA8A:6;
IC (Comput ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))),n)) in dom (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))
by A30, SCMFSA7B:def 7, A2;
hence
IC (Comput (P2,s2,n)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))
by A31, FUNCT_4:105;
verum end; suppose A32:
n = (LifeSpan ((P +* (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))),(s +* (Initialize (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))))) + 1
;
IC (Comput (P2,s2,b1)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) card (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))) =
card (dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))))
.=
card (dom (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))
by FUNCT_4:105
.=
card (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0))))))
;
hence
IC (Comput (P2,s2,n)) in dom (loop (if=0 (a,(Goto 2),(I ';' (SubFrom (a,(intloc 0)))))))
by A25, A32, AFINSQ_1:70;
verum end; end;
end;