set J3 = (Goto (insloc 0 )) ';' (Stop SCM+FSA );
set J = Stop SCM+FSA ;
let a be Int-Location ; :: thesis: for I being Program of SCM+FSA
for s being State of SCM+FSA
for k being Element of NAT st I is_closed_on s & I is_halting_on s & k < LifeSpan (s +* (I +* (Start-At (insloc 0 )))) & IC (Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k)) = (IC (Computation (s +* (I +* (Start-At (insloc 0 )))),k)) + 4 & DataPart (Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k)) = DataPart (Computation (s +* (I +* (Start-At (insloc 0 )))),k) holds
( 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)) )
set D = Int-Locations \/ FinSeq-Locations ;
let I be Program of SCM+FSA ; :: thesis: for s being State of SCM+FSA
for k being Element of NAT st I is_closed_on s & I is_halting_on s & k < LifeSpan (s +* (I +* (Start-At (insloc 0 )))) & IC (Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k)) = (IC (Computation (s +* (I +* (Start-At (insloc 0 )))),k)) + 4 & DataPart (Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k)) = DataPart (Computation (s +* (I +* (Start-At (insloc 0 )))),k) holds
( 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)) )
let s be State of SCM+FSA ; :: thesis: for k being Element of NAT st I is_closed_on s & I is_halting_on s & k < LifeSpan (s +* (I +* (Start-At (insloc 0 )))) & IC (Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k)) = (IC (Computation (s +* (I +* (Start-At (insloc 0 )))),k)) + 4 & DataPart (Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k)) = DataPart (Computation (s +* (I +* (Start-At (insloc 0 )))),k) holds
( 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)) )
let k be Element of NAT ; :: thesis: ( I is_closed_on s & I is_halting_on s & k < LifeSpan (s +* (I +* (Start-At (insloc 0 )))) & IC (Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k)) = (IC (Computation (s +* (I +* (Start-At (insloc 0 )))),k)) + 4 & DataPart (Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k)) = DataPart (Computation (s +* (I +* (Start-At (insloc 0 )))),k) implies ( 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)) ) )
set s1 = s +* ((while>0 a,I) +* (Start-At (insloc 0 )));
set sI = s +* (I +* (Start-At (insloc 0 )));
set sK1 = Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k);
set sK2 = Computation (s +* (I +* (Start-At (insloc 0 )))),k;
set l3 = IC (Computation (s +* (I +* (Start-At (insloc 0 )))),k);
set I1 = I ';' (Goto (insloc 0 ));
set i = a >0_goto (insloc ((card (Stop SCM+FSA )) + 3));
reconsider n = IC (Computation (s +* (I +* (Start-At (insloc 0 )))),k) as Element of NAT by ORDINAL1:def 13;
set Mi = ((a >0_goto (insloc ((card (Stop SCM+FSA )) + 3))) ';' (Stop SCM+FSA )) ';' (Goto (insloc ((card (I ';' (Goto (insloc 0 )))) + 1)));
set J2 = (I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA );
A1:
rng I c= the Instructions of SCM+FSA
by AMI_1:118;
assume
I is_closed_on s
; :: thesis: ( not I is_halting_on s or not k < LifeSpan (s +* (I +* (Start-At (insloc 0 )))) or not IC (Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k)) = (IC (Computation (s +* (I +* (Start-At (insloc 0 )))),k)) + 4 or not DataPart (Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k)) = DataPart (Computation (s +* (I +* (Start-At (insloc 0 )))),k) or ( 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)) ) )
then A2:
insloc n in dom I
by SCMFSA7B:def 7;
then
n < card I
by SCMFSA6A:15;
then A3:
n + 4 < (card I) + 6
by XREAL_1:10;
I c= I +* (Start-At (insloc 0 ))
by SCMFSA8A:9;
then A4:
dom I c= dom (I +* (Start-At (insloc 0 )))
by GRFUNC_1:8;
A5: CurInstr (Computation (s +* (I +* (Start-At (insloc 0 )))),k) =
(Computation (s +* (I +* (Start-At (insloc 0 )))),k) . (insloc n)
by AMI_1:def 17
.=
(s +* (I +* (Start-At (insloc 0 )))) . (insloc n)
by AMI_1:54
.=
(I +* (Start-At (insloc 0 ))) . (insloc n)
by A2, A4, FUNCT_4:14
.=
I . (insloc n)
by A2, SCMFSA6B:7
;
assume
I is_halting_on s
; :: thesis: ( not k < LifeSpan (s +* (I +* (Start-At (insloc 0 )))) or not IC (Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k)) = (IC (Computation (s +* (I +* (Start-At (insloc 0 )))),k)) + 4 or not DataPart (Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k)) = DataPart (Computation (s +* (I +* (Start-At (insloc 0 )))),k) or ( 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)) ) )
then A6:
s +* (I +* (Start-At (insloc 0 ))) is halting
by SCMFSA7B:def 8;
assume
k < LifeSpan (s +* (I +* (Start-At (insloc 0 ))))
; :: thesis: ( not IC (Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k)) = (IC (Computation (s +* (I +* (Start-At (insloc 0 )))),k)) + 4 or not DataPart (Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k)) = DataPart (Computation (s +* (I +* (Start-At (insloc 0 )))),k) or ( 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)) ) )
then A7:
I . (insloc n) <> halt SCM+FSA
by A5, A6, AMI_1:def 46;
A8:
(I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA ) = I ';' ((Goto (insloc 0 )) ';' (Stop SCM+FSA ))
by SCMFSA6A:67;
then dom ((I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA )) =
(dom (Directed I)) \/ (dom (ProgramPart (Relocated ((Goto (insloc 0 )) ';' (Stop SCM+FSA )),(card I))))
by FUNCT_4:def 1
.=
(dom I) \/ (dom (ProgramPart (Relocated ((Goto (insloc 0 )) ';' (Stop SCM+FSA )),(card I))))
by FUNCT_4:105
;
then A9:
insloc n in dom ((I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA ))
by A2, XBOOLE_0:def 3;
then
(insloc n) + 4 in { (il + 4) where il is Element of NAT : il in dom ((I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA )) }
;
then A10:
insloc (n + 4) in dom (Shift ((I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA )),4)
by VALUED_1:def 12;
then A11: pi (Shift ((I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA )),4),(n + 4) =
(Shift ((I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA )),4) . ((insloc n) + 4)
by AMI_1:def 47
.=
((I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA )) . (insloc n)
by A9, VALUED_1:def 12
.=
(Directed I) . (insloc n)
by A2, A8, SCMFSA8A:28
.=
I . (insloc n)
by A2, A7, SCMFSA8A:30
;
card (while>0 a,I) = (card I) + 6
by Th5;
then A12:
insloc (n + 4) in dom (while>0 a,I)
by A3, SCMFSA6A:15;
I . (insloc n) in rng I
by A2, FUNCT_1:def 5;
then reconsider j = I . (insloc n) as Instruction of SCM+FSA by A1;
while>0 a,I c= (while>0 a,I) +* (Start-At (insloc 0 ))
by SCMFSA8A:9;
then A13:
dom (while>0 a,I) c= dom ((while>0 a,I) +* (Start-At (insloc 0 )))
by GRFUNC_1:8;
A14: card (((a >0_goto (insloc ((card (Stop SCM+FSA )) + 3))) ';' (Stop SCM+FSA )) ';' (Goto (insloc ((card (I ';' (Goto (insloc 0 )))) + 1)))) =
(card ((a >0_goto (insloc ((card (Stop SCM+FSA )) + 3))) ';' (Stop SCM+FSA ))) + (card (Goto (insloc ((card (I ';' (Goto (insloc 0 )))) + 1))))
by SCMFSA6A:61
.=
(card ((a >0_goto (insloc ((card (Stop SCM+FSA )) + 3))) ';' (Stop SCM+FSA ))) + 1
by SCMFSA8A:29
.=
((card (Macro (a >0_goto (insloc ((card (Stop SCM+FSA )) + 3))))) + (card (Stop SCM+FSA ))) + 1
by SCMFSA6A:61
.=
(2 + 1) + 1
by SCMFSA7B:6, SCMFSA8A:17
.=
3 + 1
;
then
n + 4 >= card (((a >0_goto (insloc ((card (Stop SCM+FSA )) + 3))) ';' (Stop SCM+FSA )) ';' (Goto (insloc ((card (I ';' (Goto (insloc 0 )))) + 1))))
by NAT_1:11;
then A15:
not insloc (n + 4) in dom (((a >0_goto (insloc ((card (Stop SCM+FSA )) + 3))) ';' (Stop SCM+FSA )) ';' (Goto (insloc ((card (I ';' (Goto (insloc 0 )))) + 1))))
by SCMFSA6A:15;
A16: Computation (s +* (I +* (Start-At (insloc 0 )))),(k + 1) =
Following (Computation (s +* (I +* (Start-At (insloc 0 )))),k)
by AMI_1:14
.=
Exec j,(Computation (s +* (I +* (Start-At (insloc 0 )))),k)
by A5, AMI_1:def 18
;
set f = (insloc ((card I) + 4)) .--> (goto (insloc 0 ));
assume A17:
IC (Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k)) = (IC (Computation (s +* (I +* (Start-At (insloc 0 )))),k)) + 4
; :: thesis: ( not DataPart (Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k)) = DataPart (Computation (s +* (I +* (Start-At (insloc 0 )))),k) or ( 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)) ) )
( dom ((insloc ((card I) + 4)) .--> (goto (insloc 0 ))) = {(insloc ((card I) + 4))} & n + 4 <> (card I) + 4 )
by A2, FUNCOP_1:19, SCMFSA6A:15;
then A18:
not insloc (n + 4) in dom ((insloc ((card I) + 4)) .--> (goto (insloc 0 )))
by TARSKI:def 1;
A19:
dom (while>0 a,I) = (dom (if>0 a,(I ';' (Goto (insloc 0 ))),(Stop SCM+FSA ))) \/ (dom ((insloc ((card I) + 4)) .--> (goto (insloc 0 ))))
by FUNCT_4:def 1;
then A20:
insloc (n + 4) in dom (if>0 a,(I ';' (Goto (insloc 0 ))),(Stop SCM+FSA ))
by A18, A12, XBOOLE_0:def 3;
A21: if>0 a,(I ';' (Goto (insloc 0 ))),(Stop SCM+FSA ) =
((((a >0_goto (insloc ((card (Stop SCM+FSA )) + 3))) ';' (Stop SCM+FSA )) ';' (Goto (insloc ((card (I ';' (Goto (insloc 0 )))) + 1)))) ';' (I ';' (Goto (insloc 0 )))) ';' (Stop SCM+FSA )
by SCMFSA8B:def 2
.=
(((a >0_goto (insloc ((card (Stop SCM+FSA )) + 3))) ';' (Stop SCM+FSA )) ';' (Goto (insloc ((card (I ';' (Goto (insloc 0 )))) + 1)))) ';' ((I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA ))
by SCMFSA6A:67
.=
(Directed (((a >0_goto (insloc ((card (Stop SCM+FSA )) + 3))) ';' (Stop SCM+FSA )) ';' (Goto (insloc ((card (I ';' (Goto (insloc 0 )))) + 1))))) +* (ProgramPart (Relocated ((I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA )),4))
by A14
;
then A22:
dom (if>0 a,(I ';' (Goto (insloc 0 ))),(Stop SCM+FSA )) = (dom (Directed (((a >0_goto (insloc ((card (Stop SCM+FSA )) + 3))) ';' (Stop SCM+FSA )) ';' (Goto (insloc ((card (I ';' (Goto (insloc 0 )))) + 1)))))) \/ (dom (ProgramPart (Relocated ((I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA )),4)))
by FUNCT_4:def 1;
then
dom (if>0 a,(I ';' (Goto (insloc 0 ))),(Stop SCM+FSA )) = (dom (((a >0_goto (insloc ((card (Stop SCM+FSA )) + 3))) ';' (Stop SCM+FSA )) ';' (Goto (insloc ((card (I ';' (Goto (insloc 0 )))) + 1))))) \/ (dom (ProgramPart (Relocated ((I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA )),4)))
by FUNCT_4:105;
then A23:
insloc (n + 4) in dom (ProgramPart (Relocated ((I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA )),4))
by A20, A15, XBOOLE_0:def 3;
(Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k)) . (insloc (n + 4)) =
(s +* ((while>0 a,I) +* (Start-At (insloc 0 )))) . (insloc (n + 4))
by AMI_1:54
.=
((while>0 a,I) +* (Start-At (insloc 0 ))) . (insloc (n + 4))
by A12, A13, FUNCT_4:14
.=
((if>0 a,(I ';' (Goto (insloc 0 ))),(Stop SCM+FSA )) +* ((insloc ((card I) + 4)) .--> (goto (insloc 0 )))) . (insloc (n + 4))
by A12, SCMFSA6B:7
.=
((Directed (((a >0_goto (insloc ((card (Stop SCM+FSA )) + 3))) ';' (Stop SCM+FSA )) ';' (Goto (insloc ((card (I ';' (Goto (insloc 0 )))) + 1))))) +* (ProgramPart (Relocated ((I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA )),4))) . (insloc (n + 4))
by A18, A12, A19, A21, FUNCT_4:def 1
.=
(ProgramPart (Relocated ((I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA )),4)) . (insloc (n + 4))
by A20, A22, A23, FUNCT_4:def 1
.=
(IncAddr [(Shift (ProgramPart ((I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA ))),4)],4) . (insloc (n + 4))
by SCMFSA_5:2
.=
(IncAddr (Shift ((I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA )),4),4) . (insloc (n + 4))
by AMI_1:105
.=
IncAddr j,4
by A10, A11, SCMFSA_4:24
;
then A24:
CurInstr (Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k)) = IncAddr j,4
by A17, AMI_1:def 17;
assume A25:
DataPart (Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k)) = DataPart (Computation (s +* (I +* (Start-At (insloc 0 )))),k)
; :: 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)) )
Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),((1 + k) + 1) =
Following (Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k))
by AMI_1:14
.=
Exec (IncAddr j,4),(Computation (s +* ((while>0 a,I) +* (Start-At (insloc 0 )))),(1 + k))
by A24, AMI_1:def 18
;
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 A17, A25, A16, SCMFSA6A:41; :: thesis: verum