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 st I is_closed_on s & I is_halting_on s & IC (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) = (IC (Computation (s +* (I +* (Start-At (insloc 0 )))),(LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) + 4 holds
CurInstr (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) = goto (insloc ((card I) + 4))
let I be Program of SCM+FSA ; :: thesis: for s being State of SCM+FSA st I is_closed_on s & I is_halting_on s & IC (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) = (IC (Computation (s +* (I +* (Start-At (insloc 0 )))),(LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) + 4 holds
CurInstr (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) = goto (insloc ((card I) + 4))
let s be State of SCM+FSA ; :: thesis: ( I is_closed_on s & I is_halting_on s & IC (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) = (IC (Computation (s +* (I +* (Start-At (insloc 0 )))),(LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) + 4 implies CurInstr (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) = goto (insloc ((card I) + 4)) )
set s1 = s +* ((while=0 a,I) +* (Start-At (insloc 0 )));
set sI = s +* (I +* (Start-At (insloc 0 )));
set life = LifeSpan (s +* (I +* (Start-At (insloc 0 ))));
set sK1 = Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 ))))));
set sK2 = Computation (s +* (I +* (Start-At (insloc 0 )))),(LifeSpan (s +* (I +* (Start-At (insloc 0 )))));
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 )))),(LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) 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 );
while=0 a,I c= (while=0 a,I) +* (Start-At (insloc 0 ))
by SCMFSA8A:9;
then A1:
dom (while=0 a,I) c= dom ((while=0 a,I) +* (Start-At (insloc 0 )))
by GRFUNC_1:8;
I c= I +* (Start-At (insloc 0 ))
by SCMFSA8A:9;
then A2:
dom I c= dom (I +* (Start-At (insloc 0 )))
by GRFUNC_1:8;
assume
I is_closed_on s
; :: thesis: ( not I is_halting_on s or not IC (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) = (IC (Computation (s +* (I +* (Start-At (insloc 0 )))),(LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) + 4 or CurInstr (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) = goto (insloc ((card I) + 4)) )
then A3:
insloc n in dom I
by SCMFSA7B:def 7;
then
n < card I
by SCMFSA6A:15;
then A4:
n + 4 < (card I) + 6
by XREAL_1:10;
assume
I is_halting_on s
; :: thesis: ( not IC (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) = (IC (Computation (s +* (I +* (Start-At (insloc 0 )))),(LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) + 4 or CurInstr (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) = goto (insloc ((card I) + 4)) )
then A5:
s +* (I +* (Start-At (insloc 0 ))) is halting
by SCMFSA7B:def 8;
CurInstr (Computation (s +* (I +* (Start-At (insloc 0 )))),(LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) =
(Computation (s +* (I +* (Start-At (insloc 0 )))),(LifeSpan (s +* (I +* (Start-At (insloc 0 )))))) . (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 A3, A2, FUNCT_4:14
.=
I . (insloc n)
by A3, SCMFSA6B:7
;
then A6:
I . (insloc n) = halt SCM+FSA
by A5, AMI_1:def 46;
A7:
(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 A8:
insloc n in dom ((I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA ))
by A3, 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 A9:
insloc (n + 4) in dom (Shift ((I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA )),4)
by VALUED_1:def 12;
then A10: 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 A8, VALUED_1:def 12
.=
(Directed I) . (insloc n)
by A3, A7, SCMFSA8A:28
.=
goto (insloc (card I))
by A3, A6, SCMFSA8A:30
;
set f = (insloc ((card I) + 4)) .--> (goto (insloc 0 ));
assume A11:
IC (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) = (IC (Computation (s +* (I +* (Start-At (insloc 0 )))),(LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) + 4
; :: thesis: CurInstr (Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) = goto (insloc ((card I) + 4))
( dom ((insloc ((card I) + 4)) .--> (goto (insloc 0 ))) = {(insloc ((card I) + 4))} & n + 4 <> (card I) + 4 )
by A3, FUNCOP_1:19, SCMFSA6A:15;
then A12:
not insloc (n + 4) in dom ((insloc ((card I) + 4)) .--> (goto (insloc 0 )))
by TARSKI:def 1;
A13: 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 A14:
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;
card (while=0 a,I) = (card I) + 6
by Th4;
then A15:
insloc (n + 4) in dom (while=0 a,I)
by A4, SCMFSA6A:15;
A16:
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 A17:
insloc (n + 4) in dom (if=0 a,(I ';' (Goto (insloc 0 ))),(Stop SCM+FSA ))
by A12, A15, XBOOLE_0:def 3;
A18: 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 1
.=
(((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 A13
;
then A19:
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 A20:
insloc (n + 4) in dom (ProgramPart (Relocated ((I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA )),4))
by A17, A14, XBOOLE_0:def 3;
(Computation (s +* ((while=0 a,I) +* (Start-At (insloc 0 )))),(1 + (LifeSpan (s +* (I +* (Start-At (insloc 0 ))))))) . (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 A15, A1, FUNCT_4:14
.=
((if=0 a,(I ';' (Goto (insloc 0 ))),(Stop SCM+FSA )) +* ((insloc ((card I) + 4)) .--> (goto (insloc 0 )))) . (insloc (n + 4))
by A15, 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 A12, A15, A16, A18, FUNCT_4:def 1
.=
(ProgramPart (Relocated ((I ';' (Goto (insloc 0 ))) ';' (Stop SCM+FSA )),4)) . (insloc (n + 4))
by A17, A19, A20, 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 (goto (insloc (card I))),4
by A9, A10, SCMFSA_4:24
.=
goto (insloc ((card I) + 4))
by SCMFSA_4:14
;
hence
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 A11, AMI_1:def 17; :: thesis: verum