Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Impressum scmfsa6b.miz   Interaktion und
PortierbarkeitMizar

 

:: On the compositions of macro instructions, Part II
::  by Noriko Asamoto , Yatsuka Nakamura , Piotr Rudnicki and Andrzej Trybulec
::
:: Received July 22, 1996
:: Copyright (c) 1996-2026 Association of Mizar Users
::           (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
:: This code can be distributed under the GNU General Public Licence
:: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
:: License version 3.0 or later, subject to the binding interpretation
:: detailed in file COPYING.interpretation.
:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
:: licenses, or see http://www.gnu.org/licenses/gpl.html and
:: http://creativecommons.org/licenses/by-sa/3.0/.

environ

 vocabularies NUMBERS, SUBSET_1, AMI_1, SCMFSA_2, FSM_1, CARD_1, TARSKI,
      SCMFSA6A, FUNCT_4, RELAT_1, XBOOLE_0, FUNCT_1, MSUALG_1, CIRCUIT2, AMI_3,
      ARYTM_3(Qthe ResultSort )xbyA12,A13,A18;
      VALUED_1, FUNCOP_1, SCMFSA6B, PARTFUN1, EXTPRO_1, RELOC, SCMFSA6C,
      COMPOS_1, AMISTD_1;
 notations TARSKI, XBOOLE_0, SUBSET_1, SETFAM_1, CARD_1, ORDINAL1, NUMBERS,
      XCMPLX_0, XXREAL_0, NAT_1, FUNCT_7, INT_1, RELAT_1, FUNCT_1, PARTFUN1,
      AFINSQ_1, PBOOLE, FINSEQ_1, FUNCOP_1, FUNCT_4, VALUED_1, STRUCT_0,end
      MEMSTR_0, COMPOS_0, COMPOS_1, EXTPRO_1, SCMFSA_2, AMISTD_1, AMISTD_2,
      SCMFSA6A, SF_MASTR, SCMFSA_M;
 constructors XXREAL_0, SCMFSA6A, SF_MASTR, AMISTD_1, AMISTD_2, MEMSTR_0,
      RELSET_1, PRE_POLY, AMISTD_5, DOMAIN_1, PBOOLE, AMI_3, FUNCT_7, SCMFSA_1,
      SCMFSA_M;
 registrations java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
      EXTPRO_1, SCMFSA_4, PRE_POLY, FUNCT_7, FUNCT_4, STRUCT_0, MEMSTR_0,
      AMI_3, COMPOS_0, SCMFSA_M, AMISTD_1, AFINSQ_1;
 requirementsthen( Arity  S)o  <*, &
 definitions EXTPRO_1, AMISTD_1;
 equalities FUNCOP_1, SCMFSA6A, COMPOS_1, EXTPRO_1, MEMSTR_0, SCMFSA_M;
 theorems RELAT_1, FUNCT_7, FUNCT_4, FUNCT_1, FUNCOP_1, TARSKI, NAT_1,
      SCMFSA_2, MEMSTR_0, GRFUNC_1, SCMFSA6A, SF_MASTR, XBOOLE_0, XBOOLE_1,
      XREAL_1, ORDINAL1, XXREAL_0, VALUED_1, PBOOLE, PARTFUN1, AFINSQ_1,
      FINSEQ_4          ( of)=the -sortofS&
      AMI_2, COMPOS_0, SCMFSA_M;
 schemes NAT_1;

begin ::  General theory

reserve m, n for Nat,
  x for set,
  i for Instruction of SCM+FSA,
  I for Program of SCM+FSA,
  a for Int-Location,
  f for FinSeq-Location,
  l, l1 for Nat,
  s,s1,s2 for           <*J,J*in thecarrier ofS*by,A14FINSEQ_1def ;
  P,P1,P2 for Instruction-Sequence of SCM+FSA;

  set SA0 = Start-At(0,SCM+FSA);

definition
  let I be Program of SCM+FSA, s be State of SCM+FSA;
  let P be Instruction-Sequence of SCM+FSAjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 14
  func IExec(I,P,s) -> State of SCM+FSA equals
  ResultA19          )(the Arity of S).o) = product ((the Sorts of A)*
  coherence;
end;

definition
  let I be  of SCM+FSA;
::$CD 2
  attr I is keeping_0 means
  :Def2:
  for s being 0-started State of SCM+FSA
  for P being Instruction-Sequence of SCM+FSA st I c= P
  for k being Nat holds Comput(P,s,k).intloc 0 = s.intloc 0;
end;

registration
 cluster Stop SCM+FSA -> parahalting java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 20
 coherence
   proof
     set m = Stop SCM+FSA;
A1:  0 in dom m by COMPOS_1:3;
    thus Stop SCM+FSA is parahalting
proof
  let s be 0-started State of SCM+FSA;
A2 Start-0SCMFSA)c sbyMEMSTR_0:29;
  let P be Instruction-Sequence of SCM+FSA such that
A3: m c= P;
A4: IC SCM+FSA in dom (SA0) by TARSKI:def 1;
  take 0;
A5: dom P = NAT by PARTFUN1:def 2;
 hence IC Comput(P,s,0) in dom P;
  CurInstr(P,Comput(P,s,0)) = P.IC s by A5,PARTFUN1:def 6
    .= P.IC Start-At(0,SCM+FSA) by A2,A4,GRFUNC_1:2
    .= P.0 by FUNCOP_1:72
    .=.byA1,2
    .= halt SCM+FSA;
 hence CurInstr(P, Comput(P,s,0)) = halt SCM+FSA;
end;
    let s be 0-started State of SCM+FSA;
A6: Start-At(0,SCM+FSA) c= s by MEMSTR_0:29;
    let P;
    assume
A7: m c= P;
    let k be Nat;
A8: s = Comput(P,s,0);
 dom P = NAT by PARTFUN1:def 2;
    then
A9:  P/.IC s = P.IC s by PARTFUN1:def 6;
    CurInstr(P,s) = P.0 by A6,A9,MEMSTR_0:39
      .= m.0 by A1,A7,GRFUNC_1:2
      .= halt SCM+FSA;
    hence Comput(P,s,k).intloc 0 = s.intloc 0 by A8,EXTPRO_1:5;
   end;
end;

registration
  cluster really-closed parahalting keeping_0 for MacroInstruction of SCM+FSA;
  existence
   proof
    take Stop SCM+FSA;
    thus thesis;
   end;
end;

theorem Th1:
  for s being 0-started State of SCM+FSA
  for being parahalting Program of SCM+FSA
  for P being Instruction-Sequence of SCM+FSA
   st I c= P
  holds P halts_on s by AMISTD_1:def 11;

theorem Th2:
  for s being State of SCM+FSA
  for I being parahalting Program of SCM+FSA
   st Initialize((intloc 0).-->1) c= s
  for P being Instruction-Sequence of SCM+FSA
   st I c= P
  holds P halts_on s
proof
 State ofSCM+FSAjava.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
  let I be parahalting Program of SCM+FSA;
A1: Start-At(0,SCM+FSA) c= Initialize((intloc 0).-->1) by FUNCT_4:25;
  assume
A2: Initialize((intloc 0).-->1) c= s;
  let P be Instruction-Sequence of SCM+FSA
  such that
A3: I           (Sorts A)*<J*
   Start-At(0,SCM+FSA) c= s by A2,A1,XBOOLE_1:1;
   then s is 0-started by MEMSTR_0:29;
  hence  A3AMISTD_1: 11;
end;

Lm1:
 for P being Instruction-Sequence of SCM+FSA
   holds not P +*(IC s, goto IC s) halts_on s
proof
 let P be Instruction-Sequence of SCM+FSA;
  set Q = P +*(IC s, goto IC s);
  defpred X[Nat] means IC Comput(Q,s,$1) = IC s;
A1:  dom P = NAT by PARTFUN1:def 2;
A2: dom P = dom Q by FUNCT_7:30;
A3: now
    let n;
    assume X[n];
    then
A4: CurInstr(Q,Comput(Q,s,n)) = Q.IC s by A2,A1,PARTFUN1:def 6
      .= goto IC s by A1,FUNCT_7:31;
    IC Comput(Q,s,n+1)
       = IC Following(Q,Comput(Q,s,n)) by EXTPRO_1:3
      .= IC s by A4,SCMFSA_2:69;
    hence X[n+1];
  end;
  let n be Nat;
A5: X[0];
 assume
A6: IC Comput(Q,s,n) in dom Q;
   reconsider n as Element of NAT by ORDINAL1:def 12;
A7 for n  [n from NAT_1:sch 2(A5A3;
  CurInstr(Q,Comput(Q,s,n))
     = Q.IC Comput(Q,s,n) by A6,PARTFUN1:def 6
    .= Q.IC s by A7
    .= goto IC s by A1,FUNCT_7:31;
  hence thesis;
end;

theorem
  for I being really-closed parahalting Program of SCM+FSA,
      a being read-write Int-Location
  holds not a in UsedILoc I implies IExec(I,P,s).a = s.a
proof
  let  . is Function of (Q#*the Arity of S).x,
      a be read-write Int-Location;
  assume
A1: not a in UsedILoc I;
A2: I c= P+*I by FUNCT_4:25;
A3:  Initialize((intloc 0).-->1) c= s +* Initialize((intloc 0).-->1)
    :25;
  then P+*I halts_on s +* Initialize((intloc 0).-->1) by Th2,A2;
  then consider n such that
A4: Result(P+*I,s +* Initialize((intloc 0).-->1))
 = Comput(P+*I,s +* java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 12
  CurInstr(P+*I,
   Result(P+*I,s +* Initialize((intloc 0).-->1))) = halt SCM+FSA by
EXTPRO_1:def 9;
A5: dom Initialize      end;
      dom((intloc 0).-->1) \/ dom Start-At(0,SCM+FSA) by FUNCT_4:def 1;
A6: not a in dom Start-At(0,SCM+FSA) by SCMFSA_2:102;
    not a in {intloc 0} by TARSKI:def 1;
    then not a suppose
    then
A7: not a in dom Initialize((intloc 0).-->1) by A5,A6,XBOOLE_0:def 3;
  for m st m < n
   holds IC Comput(P+*I,s+*Initialize((intloc 0).-->1),m) in dom I
   proof
     IC(s+*Initialize((intloc 0).-->1)) = 0 by A3,MEMSTR_0:47;
     then IC(s+*Initialize((intloc 0).-->1)) in dom I by AFINSQ_1:65;
    hence thesis by A2,AMISTD_1:21;
   end;
  hence (IExec(I,P,s)).a = (s +* Initialize((intloc 0).-->1)).a
   by A1,A4,FUNCT_4:25,SF_MASTR:61
    .= s.a by A7,FUNCT_4:11;
end;

theorem
  for Ibeingparahalting really-closed Program SCM+SA
   holds not f in UsedI*Loc I implies (IExec(I,P,s)).f = s.f
proof
  let I be parahalting really-closed Program of SCM+FSA;
  assume
A1: not f in UsedI*Loc I;
A2: I c= P+*I by FUNCT_4:25;
A3:  Initialize((intloc 0).-->1) c= s +* Initialize((intloc 0).-->1)
   by FUNCT_4:;
  then P+*I halts_on s +* Initialize((intloc 0).-->1) by Th2,A2;
  then consider n such that
A4: Result(P+*I,s +* Initialize((intloc 0).-->1))
      = Comput(P+*I,s +* Initialize((intloc 0).-->1),n) and
  CurInstr(P+*I,Result(      hence (In(  S.,    ) A0{
   = halt SCM+FSA by EXTPRO_1:def 9;
A5: dom Initialize((intloc 0).-->1) =
      dom((intloc 0).-->1) \/ dom Start-At(0,SCM+FSA) by FUNCT_4:def 1;
A6: not f indom Start-(0,SCM+FSA by SCMFSA_2:;
    f <> intloc 0 by SCMFSA_2:58;
    then not f in {intloc 0} by TARSKI:def 1;
    then not f in dom((intloc 0).-->1);
    then
A7: not f in dom Initialize((intloc 0).-->1) by A5,A6,XBOOLE_0:def 3;
  for m st m < n
   holds IC Comput(P+*I,s+*Initialize let x,y  booleanobject;
   proof
     IC(s+*Initialize((intloc 0).-->1)) = 0 by A3,MEMSTR_0:47;
     then IC(s+*Initialize((intloc 0).-->1)) in dom I by AFINSQ_1:65;
    hence thesis by A2,AMISTD_1:21;
   end;
  hence (IExec(I,P,s)).f = (s +* Initialize((intloc 0).-->1)).f
   by A1,A4,FUNCT_4:25       2 < lenthe connectives of Sby XXREAL_0:2
    .= s.f by A7,FUNCT_4:11;
end;

theorem
  IC s = l & P.l = goto l implies not P halts_on s
proof
  assume that
A1: IC s = l and
A2: P.l = goto l;
A3:  P/.IC s = P.IC s by PBOOLE:143;
  defpred X[Nat] means  Comput(P,s,$1) = s;
A4: for m st X[m] holds X[m+1]
  proof
    let m;
A5: for f being FinSeq-Location holds Exec(goto l,s).f = s.f by SCMFSA_2:69;
A6: IC Exec(goto l,s) = IC s & for a being Int-Location holds Exec(goto l,
    s).a = s.a by A1,SCMFSA_2:69;
    assume
A7:    Comput(P,s,m) =  s;
    thus  Comput(P,s,m+1)
      =  Following(P,s) by A7,EXTPRO_1:3
     .=  s by A1,A2,A6,A5,A3,SCMFSA_2:104;
  end;
  let mm be Nat;
   reconsider m=mm as Element of NAT by ORDINAL1:def 12;
A8: X[0];
 for m holds X[m] from NAT_1:sch 2(A8,A4);
 then
A9: X[m];
 assume IC Comput(P,s,mm) in dom P;
 thus CurInstr(P, Comput(P,s,mm)) <> halt SCM+FSA by A1,A2,A9,PBOOLE:143;

end;

registration
  cluster parahalting -> non empty for Program of SCM+FSA;
  coherence;
end;

theorem Th6:
 for s1 being 0-started State of SCM+FSA
 for P,Q being Instruction-Sequence of SCM+FSA
for    cjava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 66
 for n being Nat st Reloc(J,n) c= Q
  & IC s2 = n & DataPart s1 = DataPart s2
 for i being  then
  IC Comput(P,s1,i) + n = IC Comput(Q,s2,i) &
  IncAddr(CurInstr(P,Comput(P,s1,i)),n) = CurInstr(Q,Comput(Q,s2,i)) &
  DataPart Comput(P,s1,i) = DataPart Comput(Q,s2,i)
proof
 let s1 be 0-started State of SCM+FSA;
 let P,Q be Instruction-Sequence of SCM+FSA;
  let J be parahalting really-closed Program of SCM+FSA;
A1: Start-At(0,SCM+FSA) c= s1 by MEMSTR_0:29;
  assume that
A2: J c= P;
  set JAt = Start-At(0,SCM+FSA);
A3:  0 in dom A25:   In((the of )2 java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 54
A4: IC SCM+FSA in dom JAt by MEMSTR_0:15;
  then
A5: P.IC s1 = P.IC JAt by A1,GRFUNC_1:2
    .= P. 0 by FUNCOP_1      =the connectives of )2bySUBSET_1: 8,:102;
    .= J. 0 by A3,A2,GRFUNC_1:2;
A6: IC Comput(P,s1,0) = IC s1
    .= IC JAt by A1,A4,GRFUNC_1:2
    .=  0 by FUNCOP_1:72;
A7:  0 in dom J by AFINSQ_1:65;
  let n be Nat;
  assume that
A8: Reloc(J,n) c= Q and
A9: IC s2 =  n and
A10: DataPart s1 = DataPart s2;
A11:DataPart Comput(,s1,0) =DataPart s2 by A10
    .= DataPart Comput(Q,s2,0);
  defpred P[Nat] means
   IC Comput(P,s1,$1) + n = IC Comput(Q,s2,$1) &
   IncAddr(CurInstr(P,Comput(P,s1,$1)),n) = CurInstr(Q,Comput(Q,s2,$1)) &
   DataPart Comput(P,s1,$1) = DataPart Comput(Q,s2,$1);
A12: for k being Nat st P[k] holds P[k + 1]
  proof
    let k A26:   In((t connectives of )2 the ' ofSjava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
A13: Comput(P,s1,k+1)
       = Following(P,Comput(P,s1,k)) by EXTPRO_1:3
      .= Exec(      in(the  of S.: 10  A24A25FUNCT_1: 6;
    reconsider l = IC Comput(P,s1,k+1) as Element of NAT;
    reconsider j = CurInstr(P,Comput(P,s1,k+1)) as Instruction of SCM+FSA;
A14: Comput(Q,s2,k+1)
       = Following(Q,Comput(Q,s2,k)) by EXTPRO_1:3
      .=       then De(In(the connectives of).2, the carrier  S,A0
     IC s1 = 0 by MEMSTR_0:def 11;
     then IC s1 in dom J by AFINSQ_1:65;
     then
A15: IC Comput(P,s1,k+1) in dom J by A2,AMISTD_1:21;
    assume
A16: P[k];
    hence IC Comput(P,s1,k+1) + n = IC Comput(Q,s2,k+1) by A13,A14,SCMFSA6A:8;
    then
A17: IC Comput(Q,s2,k+1) in dom Reloc(J,n) by A15,COMPOS_1:46;
A18: l in dom J by A15;
A19:  dom(P) = NAT by PARTFUN1:def 2;
A20:  dom(Q) = NAT by PARTFUN1:def 2;
   j = P.IC Comput(P,s1,k+1) by A19,PARTFUN1:def 6
      .= J.l by A15,A2,GRFUNC_1:2;
    hence
     IncAddr(CurInstr(P,Comput(P,s1,k+1)),n)
     = Reloc(J      (t S.) ,FUNCT_413
      .= (Reloc(J,n)).(IC Comput(Q,s2,k+1)) by A16,A13,A14,SCMFSA6A:8
      .= Q.IC Comput(Q,s2,k+1) by A17,A8,GRFUNC_1:2
      .= CurInstr(Q,Comput(Q,s2,k+1))
       by java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
    thus n)
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 6
 java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
   0n=  java.lang.StringIndexOutOfBoundsException: Range [28, 25) out of bounds for length 29
  then
A21: 0 + n in dom Relocthen
A22: dom Q = NATby,A1Th10,2;
   dom P =: (t  of) t ofS.: 10
      then
     = java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 61
. . Comput(1java.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27
    .=java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6

  for k being Nat holds P[k] from NAT_1:sch 2(A23,A12);
  hence thesis;
end

theorem Th7:
  0-java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 40
  for I being parahalting=(((the connectivesS)3  ,,1
for being  holds
    Comput(P1,s,k) = Comput(P2,s,k) &
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 60
proof
java.lang.StringIndexOutOfBoundsException: Range [20, 5) out of bounds for length 38
let I parahalting really-closedProgram of+FSA
that
A1: I c=  java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 49
A2  = P2;
  hereby
    let k be Nat;
    IC s = 0 by java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 74
    then
java.lang.StringIndexOutOfBoundsException: Range [12, 7) out of bounds for length 13
    then
A4: IC Comput(P1,   -of+st PI 
A5java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 44
    mjava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 28
     ICComputP2,m    be -  of+;
    
:P1k  sk  ,210;
    thus java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
=Computsk java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 41
       .IC(,,)A5,GRFUNC_1
.=P1 Comput(1s) ,java.lang.StringIndexOutOfBoundsException: Range [3, 2) out of bounds for length 30
      .= CurInstr(P1java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
  end;
end;

theorem Th8:
  for s being 0 java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
  java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
    st I c= P1 & I c= P2
holds(P1)=(2s  
proof
  let s be 0-
  let I be parahalting CurInstr(P+*I,Comput(P+*I,s,m))
  java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 13
A1: I c= P1 and
A2  ;
A3: P2     (* ",((")s,)java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
A4: P1 java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 10
:
    let l
    assume
A6: CurInstr(P2,Comput(P2,s
 ;
    CurInstr(P1,Comput(P1,s,l))
    ,)
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
    hence LifeSpanjava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 78
  end;
  CurInstr,I)=P
   =CurInstrP1,(P1
    by Th7,   (++Jjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 68
    .=   -java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 33

A7:   java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 8
A8=m1 +m3 Elementof ORDINAL1def12
       by A7,Th1,A2  
(s  java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 55
  hence thesis by A8,Th7=java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 56
end;

::$CT 2

theorem
  for I beingDataPart((intloc-1 java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
   holds IExecDataPartPA:(the java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 54
proof
  let I be keeping_0 parahalting Program of SCM+FSA;
s *SA0 java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 46
  FUNCT_4;
A2: I c= P+*I by FUNCT_4:25;
  P+*I halts_on s +* Psm1  java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 77
hjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
  then
A3:
ex+*I,s +* Initialize((intloc 0).-->1))
   = Comput(P+*I  Initialize(intloc 0)>1)n)&
   CurInstr(P+*I,Result(P+*I,s +* Initialize((intloc 0).--> :(java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 65
    = halt SCM+FSA by EXTPRO_1:def 9;
  thus IExec(I,P,s).intloc 0
     = (Initialized s)java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 27
    .= 1 by SCMFSA_M:9;
end;

begin :: The composition of macroinstructions

  (In(connectives S5thecarrierS,A0java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
  for s being 0-started State of SCM+FSA
  for I being really-closed Program of SCM+FSA, J being Program of SCM+FSA
  for P being Instruction-Sequence of SCM+FSA
   st I c= P & P halts_on s
 for m st m <= LifeSpan(P,s)
  then
proof
   sstarted StateSCMFSA;
  let I be   hence s4.intloc  s3intloc  by F:49
  letP java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 52
A1: m1+)  ComputPP,,+1,       Den((the ), carrier' S) )
  assume that
A2  IncAddrCurInstrP+*I+JP*+,m3)
  defpred X[    (       FUNCT_149
    Comput(tjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
A3: for m st X[m] java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
  
    let A30
    assumekElementofNAT      hence In( of)4+1,
A4: java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 26
  java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
y :39;
A6: {} c= Comput(P+*(IA33: InsCodehalt SCMFSA=0  COMPOS_1:
     dom  java.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 58
:P1  java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 63
Comput( ; )sjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
       = Following(P+*(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
       MEMSTR_0:11;
    then IC s in dom I by AFINSQ_1:65;
    then
A9: IC     java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 51
domP = PARTFUN1def;
    then
A10: a
=P java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 45
    .=     .= I
    ,java.lang.StringIndexOutOfBoundsException: Range [39, 36) out of bounds for length 40
A11: m+1 <= LifeSpan(P, of 25;
A12: I ";" J c= P+*(I ";" J)java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 34
 by: 
    (, 
    then
  IP)=mjava.lang.StringIndexOutOfBoundsException: Range [29, 25) out of bounds for length 50
    then
  CurInstr(P,Comput(P,java.lang.StringIndexOutOfBoundsException: Range [32, 29) out of bounds for length 38
 ,) A10
    .= (java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    .= CurInstr(P+*(I ";";
by java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 45
    C(Ps+ = + ; )s+1java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
        byA7A8,A11,NAT_113
  end;
A14:.= (,4m3.0by :java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
  thus for java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
end;

theorem Th11:
 for     Pjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
 for P being Instruction-Sequence of SCM+FSA
 java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 46
 java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 39
 holds IC java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 8
proof
 let s be 0-( )
 *, java.lang.StringIndexOutOfBoundsException: Range [38, 34) out of bounds for length 71
      (the java.lang.StringIndexOutOfBoundsException: Range [27, 24) out of bounds for length 55
  assume that
A1: P+*Is=0java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 31
P;
A3: I c= P+*I by FUNCT_4:25java.lang.StringIndexOutOfBoundsException: Range [3, 2) out of bounds for length 30
  set s2 = s;
  set m = LifeSpan(P+*I,s);
  set l1 = :java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 33
A4 IP+Ijava.lang.StringIndexOutOfBoundsException: Range [27, 24) out of bounds for length 28
    =0byjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 32
    then :I; c=P*thejava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 50
    then
A5: l1 : CurInstrP+,java.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36
    set s1 IIC (+I 4<lenof ;
+( ; )=P+(+ I ""I) SCMFSA6A18
     .= P+*I     ( ".((+*sm)
 now
let  ;
    defpred X[Nat] means $1 <= k implies
Comput ( of

A7  
A8: for n being J- ofSCM;
proof
      let n be Nat JSA0=StartAt0SCMjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 33
a
A9:  n <= k implies
       Comput(  java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
:+,,+  java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 61
java.lang.StringIndexOutOfBoundsException: Range [33, 6) out of bounds for length 41
        .=java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 17
Comput+I,,n)java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
A11:  Comput(P+*java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 59
),s1) by EXTPRO_1:java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
. (P+I "I,(P("")n),
        Computjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
A12:  n <= n  (java.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 72
      assume
A13:  n + 1 <= k;
     IC   0  : 11java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
     then
A14:   IC s in dom I    java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 38
      n <= k by A13,A12A:    J 21A11
    then
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    ,A7,:;
      then IC Comput(P+*(I ";" I),s1,n) in dom I by A3,AMISTD_1:21,A14;
      then
 dom Directed I
by A13,A9,A12,FUNCT_4:99,XXREAL_0:2;
    domPDirected I) =  by PARTFUN1def2
    then. IncAddrJ., I)bydef 21;
A16       (ncAddrJ,card) card I   + I java.lang.StringIndexOutOfBoundsException: Range [69, 70) out of bounds for length 69
      = (P+*Directed I).IC Comput(P+*Directed I,s2,n) by PARTFUN1
A17: dom(java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 8
  Directed I c= P+*Directed I by FUNCT_4:25;
  then
A18 (+I,sLifeSpan(PI,s+1)
       = (      hence Den(In
:domjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 32
      java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 29
      Comput:fcarrier'f) ).*,> i A9
      Comput(P+*(I ";"  byA19,,XTPRO_13;
A20    =IC CRk1 java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 46
*(I"I  java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 41
      then Directed I c=  ,,:61
      hence  ( c SCM)by:;
       by A9,A13,A12,A18,A11,java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
    end;
A21: Xjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
java.lang.StringIndexOutOfBoundsException: Range [46, 41) out of bounds for length 56
ComputI";"Is1k   (PIk;
    hence  Comput(P+*I java.lang.StringIndexOutOfBoundsException: Range [12, 9) out of bounds for length 36
      by A7,
  end;
  then
A22:  Comput(P+*I,s,m) =  Comput (I; )java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 61
A23: dom(P+*I) = NAT by PARTFUN1:def 2;
  I c=  k Nat holds[]fromNAT_1(A27;
  then
A24: +) java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
     (+I(+Isjava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 60
    .= halt SCM+FSA    Seg10
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
  then
A25: (P +* Directed  let  0-java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 40
  java.lang.StringIndexOutOfBoundsException: Range [40, 6) out of bounds for length 40
A26 =LifeSpanP*,);
A27java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 51
  Comput(P+=(   A)(S  )java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
     = Following(P+*Directed I,Comput(P+*Directedconsider r being java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
    .= Exec(goto card I, Comput(P+*dom SA0 = {IC SCM+FSA} & intloc 0+SA56;
           by A27,A22,java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
   PsP*,s)+    java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
   by A26,SCMFSA_2:69;
end;

theorem Th12:
-java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 39
  for P being Instruction-Sequence of SCMdom StartI ((+I*,
  for  java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 46
        card I,SCM+SA  < FSA
 holds DataPart         the carrier ) )*j    byjava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 28
   = DataPart Comput(P,s,LifeSpan(P+*I,s)+ 1)
proof
 java.lang.StringIndexOutOfBoundsException: Range [64, 4) out of bounds for length 64
  let P be Instruction-Sequence of   :Jc +*I*J  25;
  let I beComputP*I*Jjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 55
  java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
1 P*I halts_onse of FINSEQ_3:;
A2: Directed I c= P;
A3: I    java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 66
  set    .= sintloc Def2A2java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  set l1 = java.lang.StringIndexOutOfBoundsException: Range [15, 13) out of bounds for length 55
A14:+I halts_ons
  then IC s let kbe
  then
A4: l1=( java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 64
 now
    let k be Nat;
    defpred X[Nat] means $1 <= k implies
  PI+*I";" I)s$)=ComputPs,);
    assume
A5: k <= java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 69
    proof
A7      
      let n be Nat;
A8:  dom I c= dom (I ";  P*Is+*(i0)->)+1 P*+J,
      assume
A9P+Is+ A51:   (the connectives of S). t java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 66
        Comput(P+*I+*(I ";" I),s,n) =  Comput(P,s,n);
A10:  Comput(P,s,
        .=       by A49,FUlet   java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 66
 (P*+I""I),+)=
        Following  ""c (" :25;
by3
        .= Exec(CurInstr(P+*I+*(I ";" I),Comput(P+*I+*(I ";" I),s,n)),
Comput+*+(I"; )sn;
A12:  n <= n )()java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 61
      assume
A13:  n +PI "")+I, java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 68
    s    : ;
     then
A14:   IC s in dom Result(P+*(I JI
n< kby,XXREAL_0;
   then
    Comput(P ,;
by,java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 40
      then
A15:  IC Comput(P+*I+*(I ";java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 43
      then
A16:   (Result **java.lang.StringIndexOutOfBoundsException: Range [52, 43) out of bounds for length 61
A17:    P java.lang.StringIndexOutOfBoundsException: Range [42, 33) out of bounds for length 51
:CurInstr(Comput(P,s,n))
     = P.IC Comput(P,s,n) by A17,PARTFUN1:def 6
    .= (Directed I).IC Comput(P,s,n) by A16,A2,byTh8A5;
 hence(Inthe java.lang.StringIndexOutOfBoundsException: Range [38, 35) out of bounds for length 72
      CurInstr(P+*I+*(I ";" I),java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 4
       = (P+*Ijava.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
        .= (I ";" I).IC    ;
        letbe keeping_0parahalting really- ProgramofSCMjava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
byA7A,,,2X:;
      hence thesis
      by A9,A13,A12,A18      <i,=ijTset  +Initializei 0.->1,
    end  =P+ ;
A20: X[0];
  = +I25;
    then Comput(P  Initializei 0.->)java.lang.StringIndexOutOfBoundsException: Range [44, 45) out of bounds for length 8
CT_4:25;
  end;
  then
    domthe  = carrier S PARTFUN1:def2
A22: dom(P+*I) = NAT     ,s1)java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
    P*byjava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 26
  
A23: I.l1 = (P+*(""J FUNCT_4;
     (+IComput(*  
    .= halt    (,*java.lang.StringIndexOutOfBoundsException: Range [38, 36) out of bounds for length 53
  IC Comput(Pjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
A24 P.l1 Directed )l1 byA2,GRFUNC_1
    .= goto  card=+ (I; )+(";"))SCMFSA6A18java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
A25: dom P = NAT by = P +* (I +* (I ";" J*("J))by :java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
  Comput(P,s,m+1) = Following(P,Comput(Pjava.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
    java.lang.StringIndexOutOfBoundsException: Range [19, 16) out of bounds for length 19
  then
  ( for:Jc*+Jbyjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 33
     Location (,,m+f=
         Comput(P,s,m). f by SCMFSA_2:69;
  hence thesis by SCMFSA_M:2;
end;

theorem Th13:
  for I being parahalting really-closed Program of SCM+FSA st
   I c= P & Initialize((A23: Result(java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
holds for k being Nat st k <= = DataPart Comput(P3,s3,m3) by4
 holds CurInstr(P+*Directed I,
 Comput(P+*Directed I,s,A26  (I"Ps
proof
  java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 56
  set java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
  assumethat
A1: I c= P           T,7,java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
A2: Initialize((intloc -( byTARSKIjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
A3: Start- IExecJP
    then s is 0-IExec(I,PI,+java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  then>SCMFSAby57;     'B= thecarrierS\theconnectives C        
    reconsider s1 = s as 0-started State of SCM+FSA by A3IExec "P.x IExec(,,IExec(I,sx
          the  'o Cthe java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 50
      java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
A5java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 33
A6: now
    let k be Nat;
    defpred X[Nat] means $1 <= k implies
     P* ;,)        x }TARSKI ;
    assume
A7: k <= m;
A8: for n being Nat st X[n] holds X[        thus IExec(I ";" J,P,s).x = (Sta+)SCM
    proof
A9:   Directed I c= I ";" I by SCMFSA6A:16;     connectivesjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 62
      let n be Nat;
A10:   dom I c= dom (I ";" I) by SCMFSA6A
          end
A11:   n <= k     dom IExec(II;s  theof +  java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 69
       Comput*Start(ICIExecJ,,(Is)+
A12:  ComputI) java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 34
Following(P+*Directed I,Comput(P+*Directed I,s,n))
 by EXTPRO_1:3
        
        Comput(P+*Directed I,java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 0
 P SequenceFSA
Following(P+*(I ";" I),Comput   P+(IC IC  by
        .= Exec(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
        Comput(P+*(I ";" I),s1,n));
A14:  n <= n + 1 by NAT_1:12;
      assume
A15:  n + 1 <= k;
      n <= k by A15,A14,XXREAL_0:2;
      then  Comput(P,s,n) =  Comput(P+*(I ";" I),s1,n)
       by A4,A1,Th10,A7,XXREAL_0:2;
      then
A16:  IC Comput(P+*(I ";" I),s1,n) in dom I by A1,AMISTD_1:21,A5;
      then
A17:  IC Comput(P+*Directed I,s,n) in dom Directed I
         by A15,A11,A14,FUNCT_4:99,XXREAL_0:2;
 dom(P+*Directed I) = NAT by PARTFUN1:def 2;
    then
A18:  CurInstr(P+*Directed I,Comput(P+*Directed IA    Bas4,)integer -  nonvoid
 = (P+*Directed I).IC Comput(P+*Directed I,s,n) by PARTFUN1:def 6
        .= (Directed I).IC Comput(P+*Directed I,s,n) by A17,FUNCT_4:13;
    dom(P+*(I ";" I)) = NAT by PARTFUN1:def 2;
    then
      CurInstr(P+*(I ";" I),Comput(P+*(I ";" I),s1,n))
       = (P     C(,,)   non 
        .= (I ";" I).IC Comput(P+*(I ";" I),s1,n) by A10,A16,FUNCT_4:13
        .= (Directed I).IC Comput(P+*(I ";" I),s1,n)
         by A9,A15,A11,A14,A17,GRFUNC_1:2,XXREAL_0:2;
      hence thesis by A11,A15,A14,A18,A13,A12,XXREAL_0:2;
    end;
A19:X0;
    for n being Nat holds X[n] from NAT_1:sch 2(A19,A8);
    then Comput(P+*(I ";" I),s1,k) =  Comput(P+*Directed I,s,k);
    hence  Comput(P,s,k) =  Comput(P+*Directed I,s,k) by A4,A7,Th10,A1;
  ndjava.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
    let k be Nat;
    set lk = IC Comput(P,s,k);
A20:  dom I = dom Directed I by FUNCT_4:99;
A21:    then  =len   byXXREAL_02;
    then
A22: (Directed I).lk in rng Directed I by A20,FUNCT_1:def 3;
A23: dom(P+*Directed I) = NAT by PARTFUN1:def 2;
    assume k <= LifeSpan(P,s);
    then lk = IC Comput(P+*Directed I,s,k) by A6;
    then
A24: CurInstr(P+*Directed I,Comput(P+*Directed I,s,k))
      = (P+*DirectedA2: 2 in dom the connectives of C by FINSEQ_3:25;
      .= (Directed I).lk by A20,A21,FUNCT_4:13;
    thus CurInstr(P+*Directed I,Comput(P+*Directed I,s,k)) <> halt SCM+FSA
      by A24,A22,SCMFSA6A:1;
end;

theorem Th14:
 for s being 0-started State of SCM+FSA
f  being -equenceof +FSA
 for I being really-closed Program of SCM+FSA st P+*I halts_on s
 for J being Program of SCM+FSA, k being Nat
      k<=(+*)
   holds Comput(P+*I,s,k) = Comput(P+*(I ";" J), s,k)
proof
 let s be 0-started State of SCM+FSA;
 let PA4  =    &<   J >K&
  let I be really-closed Program of SCM+FSA;
  assume
A1: P+*I halts_on s;
  let J be Program of SCM+FSA;(  )1  *K>  &
A2: I c= P+*I by FUNCT_4:25;
  defpred X[Nat] means $1 <= LifeSpan(P+*I,s) implies
    Comput    (he of )(+) <*,,L,Jjava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
A3: for m st X[m] holds X[m+1]
  proof
    dom(I ";" J) = dom I \/ dom Reloc(J, card I) by SCMFSA6A:39;
    then
A4: dom I c= dom(I ";" J) by XBOOLE_1:7;
 mjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    assume
A5: m <= LifeSpan(P+*I,s) implies
        Comput(P+*I,s,m) =  Comput(P+by A4;
A6: Comput(P+*I,s,m+1)
       = Following(P+*I,Comput(P+*I,s,m)) by EXTPRO_1:3
      .= Exec(CurInstr(P+*I,Comput(P+*I,s,m)),Comput(P+*I,s,m));
A7: Comput(P+*(I ";" J),s,m+1)
       = Following(P+*(I ";" J),Comput(P+*(I ";" J),s,m)) by EXTPRO_1:3
      .= Exec(CurInstr(P+*(I ";" J),Comput(P+*(I ";" J),s,m)),
      Comput(P+*(I ";" J),s,m));
    IC s = 0 by MEMSTR_0:def 11;
    then IC s in dom I by AFINSQ_1:65;
    then
A8: IC Comput(P+*I,s,m) in dom I by A2,AMISTD_1:21;
A9:    I c= P+*I by FUNCT_4:25;
    dom(P+*I) = NAT by PARTFUN1:def 2;
    then
A10: CurInstr(P+*I,Comput(P+*I,s,m))
     = (P+*I).IC Comput(P+*I,s,m) by PARTFUN1:def 6
    .= I.IC Comput(P+*I,s,m) by A8,A9,GRFUNC_1:2;
    assume
A11: m+1 <= LifeSpan(P+*I,s);
A12: I ";" J c= P+*(I ";" J) by FUNCT_4:25;
A13: dom(P+*(I ";" J)) = NAT by PARTFUN1:def 2;
    m < LifeSpan(P+*I,s) by A11,NAT_1:13;
    then I.IC( Comput(P+*I,s,m)) <> halt SCM+FSA by A1,A10,EXTPRO_1:def 15;
    then
       CurInstr(P+*I,Comput(P+*I,s,m))
     = (I ";" J).IC( Comput(P+*I,s,m)) by A8,A10,SCMFSA6A:15
    .= (P+*(I ";" J)).IC Comput(P+*(I ";" J),s,m)
      by A11,A8,A4,A12,A5,GRFUNC_1:2,NAT_1:13
    .= CurInstr(P+*(I ";" J),Comput(P+*(I ";" J),s,m))
           by A13,PARTFUN1:def 6;
    hence thesis by A6,A7,A5,A11,NAT_1:13;
  end;
A14: X[0];
  thus for k being Nat holds X[k] from NAT_1:sch 2(A14, A3);
end;

Lm2: for I being keeping_0 parahalting really-closed Program of SCM+FSA,
         J being parahalting really-closed Program of SCM+FSA,
         s being State of SCM+FSA
          st I ";" J c= P &Initialize((intloc 0).-->1) c= s
holds IC Comput(P,s,LifeSpan(P+*I,s) + 1) = card I &
DataPart Comput(P,s,LifeSpan(P+*I,s) + 1)
 = DataPart (Comput(P+*I,s,LifeSpan(P+*I,s)) +* Initialize((intloc 0).-->1)) &
 Reloc(J,card I) c= P &
 Comput(P,s,LifeSpan(P+*I,s) + 1).intloc 0 = 1 & P halts_on s &
   LifeSpan(P,s) = LifeSpan(P+*I,s) + 1 +
   LifeSpan(P+*I+*J,Result(P+*I,s) +* Initialize((intloc 0).-->1)) &
     (J is keeping_0 implies (Result(P,s)).intloc 0 = 1)
proof
  set D = Data-Locations SCM+FSA;
  let I be keeping_0 parahalting really-closed Program of SCM+FSA;
  let J be parahalting really-closed Program of SCM+FSA;
  let s be State of SCM+FSA;
  set s3 = Comput(P+*I,s,LifeSpan(P+*I,s)) +* Initialize((intloc 0).-->1);
  set m1 = LifeSpan(P+*I,s);
  set m3 = LifeSpan(P+*I+*J,s3);
A1: dom Directed I = dom I by FUNCT_4:99;
  assume that
A2: I ";" J c= P and
A3: Initialize((intloc 0).-->1) c= s;
A4: Start-At(0,SCM+FSA) c=Initialize((intloc 0).-->1) by FUNCT_4:25;
  then
A5: SA0 c= s by A3,XBOOLE_1:1;
A6: Directed I c= I ";" JA6: the of  (  of )^he of java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
A7: P +* Directed I = P by A6,A2,FUNCT_4:98,XBOOLE_1:1;
A8: P = P +*(I ";" J) by A2,FUNCT_4:98;
A9: s is 0-started State of SCM+FSA by A5,MEMSTR_0:29;
  then
A10: P+*I halts_on s by Th1,FUNCT_4:25;
  hence
A11: IC Comput(P,s,LifeSpan(P+*I,s) + 1) = card I by Th11,A6,A2,A9,XBOOLE_1:1;
A12: now
    let x be object;
A13: dom DataPart Initializeby A1,h51;
       c= dom Initialize((intloc 0).-->1) by RELAT_1:60;
    assume
A14:   x in dom DataPart Initialize((intloc 0).-->1);
:x D RELAT_1:57;
A16: I c= P+* I by FUNCT_4:25;
    per cases by A14,A13,SCMFSA_M:11,TARSKI:def 2;
    suppose
A17:  x = intloc 0;
     then
A18: x in dom Initialize((intloc 0).-->1) by SCMFSA_M:11,TARSKI:def 2;
      thus (DataPart Initialize((intloc 0).-->1)).x
         = 1 by A17,A15,FUNCT_1:49,SCMFSA_M:12
        .= s.x by A3,A18,A17,GRFUNC_1:2,SCMFSA_M:12
        .= (Comput(P+*I,s,m1)).x by A17,Def2,A16,A9
        .= (DataPart Comput(P+*I,s,m1)).x by A15,FUNCT_1:49;
    end;
    suppose
   x = IC SCM+FSA;
       then not x in Data-Locations SCM+FSA by STRUCT_0:3;
      hence (DataPart (Initialize((intloc 0).-->1))).x
         = (DataPart Comput(P+*I,s,m1)).x
         by A14,RELAT_1:57;
    end;
  end;
  set s4 = Comput(P,s,m1+1);
      <> thebool-ofS;
A19: Initialize((intloc 0).-->1) c= s3 by FUNCT_4:25;
  J c= P+*I+*J by FUNCT_4:25;
  then
A20: P+*I+*J halts_on s3 by A19,Th2;
A21: dom      java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 40
       c= the carrier of SCM+FSA by RELAT_1:def 18;
  java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 42
   = dom Initialize((intloc 0).-->1) /\ D by RELAT_1:61;
  then dom DataPart     (the connectives of C).(1+ carrier  
       c= (the carrier of SCM+FSA) /\ D by A21,XBOOLE_1:26;
  then dom DataPart Initialize((java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 13
   c= dom ( Comput(P+*I,s,m1)) /\ D
by:def java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
  then dom DataPart Initialize((intloc 0).-->1)
   c= dom DataPart Comput(P+*I,s,m1)
by RELAT_1:61;
  then
DataPart   DataPart P*,,)+
      DataPart Initialize((intloc 0).-->1) &
  DataPart Initialize((intloc 0).-->1)
      c= DataPart Comput(P+*I,s,m1) by A12A10 is(1-  A2java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 68
  then
A22: DataPart Comput(P+*I,s,m1) = DataPart s3 by FUNCT_4    by A9Th56
  s = s +* SA0 by A4,A3,FUNCT_4:98,XBOOLE_1:1;
   then DataPart Comput(P,s,m1) = DataPart s3 by        B)+A2 as  MSAlgebra S A1
  hence
A23: DataPart Comput(P,s,m1+1) = DataPart s3 by A10,Th12,A6,A2,A9,XBOOLE_1:1;
     Reloc(J,card I) c= I ";" J by SCMFSA6A:38;
  hence
A24:    Reloc(J,card I) c= P by A2,XBOOLE_1:1;
  intloc 0 in Int-Locations by AMI_2:def 16;
  then
A25: intloc 0 in D by    then( (BA+.java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 65
  hence s4.intloc 0 = (DataPart s3).intloc 0 by A23,FUNCT_1:49
=intloc ,49
    .= 1 by FUNCT_4:13,SCMFSA_M:10,12;
A26: Comput(P,s,m1+1+m3) = Comput(P,Comput(P,s,m1+1),m3) by EXTPRO_1: =&
A27: J c= P+*I+*J by FUNCT_4:25;
  then IncAddr(CurInstr(P+*I+*J,Comput(P+*I+*J,s3,m3  ,yboolean java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 35
   = CurInstr(P,Comput(P,s4,m3)) by A11,A23,Th6,A24;
  
A28: CurInstr(P,Comput(P,s,m))
 = IncAddr (halt SCM+FSA,card I) by A20,A26,EXTPRO_1:def 15

    .= halt SCM+FSA by COMPOS_0:4;
  hence
A29: P halts_on s by EXTPRO_1:29;
A30: now
    let k be Element of NAT;
    ++  ;
    then
A31: k < m3 by XREAL_1:6;
    assume
A32: CurInstr(P,Comput(P,s,m1+1+k)) = halt SCM+FSA;
     70java.lang.StringIndexOutOfBoundsException: Range [46, 47) out of bounds for length 46
    IncAddr(CurInstr(P+*I+*J,Comput(P+*I+*J,s3,k)),card I)
     =     ((  of., java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 71

      .= halt SCM+FSA by A32,EXTPRO_1:4;

    then InsCode CurInstr(P+*I+*J,Comput(P+*I+*J,s3,k)) = 0
     C:9

    then CurInstr(P+*I+*J,Comput(P+*I+*J,s3,k))
     = halt SCM+FSA by SCMFSA_2:95;
    hence contradiction by A20,A31,EXTPRO_1:def 15;
  end;
 
    let k be Nat;
    assume
A34: k < m;
    per cases;
    suppose
A35:    k <= m1;
 P+*I+*Directed    ((theofS)3,the carrier  S,.*y>=''y
      hence CurInstr(P,Comput(P,s,k)) <> halt SCM+FSA
           by A3,Th13,A35,A7,FUNCT_4:25;
    end;
    suppose
      m1 < k;
      then m1 + 1 <= k by NAT_1:13;
      then consider kk being Nat such that
A36:  m1 + 1 + kk = k by NAT_1:10;
      kk in NAT by ORDINAL1:def 12;
      hence CurInstr(P,Comput(P,s,k))
    the A=BA1+non
      by A30,A34,A36;
    end;
  end;

  then
stCPs)= +java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
       holds m <= k;
  then
A38: LifeSpan(P,s) = m by A28,A29,EXTPRO_1:def 15;
   P+*I halts_on s by Th2,A3,FUNCT_4:25;
   P*,LifeSpan*)
      = Result(P+*I,s) by EXTPRO_1:23;
  hence LifeSpan(P,s) = LifeSpan(P+*I,s) + 1 +
   LifeSpan(P+*I+*J,Result(P+*I    hence is111 A1java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 45
    Initialize((intloc 0).-->1)) by A37,A28,A29,EXTPRO_1:def 15;
  hereby
A39: DataPart Comput(P+*I+*J,s3,m3) = DataPart Comput(P,s4,m3)
    by A11,A23,Th6,A27,A24;
A40: J c= P+*I+*J by FUNCT_4:25;
    assume
A41: J is keeping_0;
    thus (Result(P,s)).intloc 0 = Comput(P,s,m).intloc 0 by A29,A38,EXTPRO_1:23
      .= Comput(P,s4,m3).intlocend;
      .= Comput(P+*I+*J,s3,m3).intloc 0 by A39,SCMFSA_M:2
      .= s3.intloc 0 by A41,A40
      .= 1 by A19,GRFUNC_1:2,SCMFSA_M:10,12;
  end;
end;

registration
  let I, J be parahalting really-closed Program of SCM+FSA;
  cluster I ";" J -> parahalting;
  coherence
 proof
    set D = Data-Locations SCM+FSA;
    let s be 0-started State of SCM+FSA;
    let P be Instruction-Sequence of SCM+FSA
    such that
A1:  I ";" J c= P;
    set JAt = Start-At(0,SCM+FSA);
    set s3 = Initialize Comput(P+*I,s,LifeSpan(P+*I,s));
    set m1 = LifeSpan(P+*I,s);
    set m3 = LifeSpan(P+*I+*J,s3);
    reconsider kk = DataPart JAt as Function;
A2: now
      let x be object;
      assume x in dom DataPart JAt;
      then
A3:   x in dom JAt /\ D by RELAT_1:61;
      x in dom JAt by A3,XBOOLE_0:def 4;
      then x in {IC SCM+FSA};
      then x = IC SCM+FSA by TARSKI:def 1;
      then not x in Data-Locations SCM+FSA by STRUCT_0:3;
     hence kk.x = (DataPart Comput(P+*I,s,m1)).x by A3,XBOOLE_0:def 4;
    end;
    JAt c= s3 by FUNCT_4:25;
    then dom JAt c= dom s3 by GRFUNC_1:2;
    then
A4: dom JAt c= the carrier of SCM+FSA by PARTFUN1:def 2;
    dom DataPart JAt = dom JAt /\ D by RELAT_1:61;
    then dom DataPart JAt c= (the carrier of SCM+FSA) /\ D by A4,XBOOLE_1:26;
    then dom DataPart JAt c= dom ( Comput(P+*I,s,m1)) /\ D by PARTFUN1:def 2;
    then dom DataPart JAt c= dom DataPart Comput(P+*I,s,m1) by RELAT_1:61;
    then s3 | D = (DataPart Comput(P+*I,s,m1)) +* kk & DataPart JAt
        c= DataPart Comput(P+*I,s,m1) by A2,FUNCT_4:71,GRFUNC_1:2;
    then
A5: DataPart Comput(P+*I,s,m1) = DataPart s3 by FUNCT_4:98;
    reconsider m = m1 + 1 + m3 as Element of NAT by ORDINAL1:def 12;
A6: Reloc(J,card I) c= I ";" J by SCMFSA6A:38;
    take m;
    set s4 = Comput(P,s,m1+1);
A7: Directed I c= I ";" J by SCMFSA6A:16;
A8: P+*I halts_on s by Th1,FUNCT_4:25;
    then
A9: IC Comput(P,s,LifeSpan(P+*I,s) + 1) = card I by Th11,A7,A1,XBOOLE_1:1;
A10: P+*(I ";" J) = P by A1,FUNCT_4:98;
A11: DataPart Comput(P,s,m1) = DataPart s3
        by A5,A10,Th14,A8;
A12: Comput(P,s,m1+1+m3) = Comput(P,Comput(P,s,m1+1),m3)by EXTPRO_1:4;
A13:  DataPart Comput(P,s,m1+1) = DataPart s3
        by A11,Th12,A7,A8,A1,XBOOLE_1:1;
A14:   J c= P+*I+*J by FUNCT_4:25;
A15: Reloc(J,card I) c= P by A6,A1,XBOOLE_1:1;
A16:  IncAddr(CurInstr(P+*I+*J,Comput(P+*I+*J,s3,m3)),card I)
     = CurInstr(P,Comput(P,s4,m3)) by Th6,A14,A13,A9,A15;
    dom P = NAT by PARTFUN1:def 2;
   hence IC Comput(P,s,m) in dom P;
A17:    J c= P+*I+*J by FUNCT_4:25;
    P+*I+*J halts_on s3 by A17,AMISTD_1:def 11;
    then CurInstr(P,Comput(P,s,m))
     = IncAddr (halt SCM+FSA,card I) by A16,A12,EXTPRO_1:def 15
      .= halt SCM+FSA by COMPOS_0:4;
   hence CurInstr(P, Comput(P,s,m)) = halt SCM+FSA;
  end;
end;

theorem Th15:
  for s being 0-started State of SCM+FSA
  for I being keeping_0 really-closed Program of SCM+FSA
   st not P+* I halts_on s
   for J being Program of SCM+FSA, k being Nat holds
    Comput(P+*I,s,k) =  Comput(P+*(I ";" J),s,k)
proof
  let s be 0-started State of SCM+FSA;
  let I be keeping_0 really-closed Program of SCM+FSA;
  assume
A1: not P+*I halts_on s;
  let J be Program of SCM+FSA;
  defpred X[Nat] means Comput(P+*I,s,$1) =  Comput(P+*(I ";" J),s,$1);
A2: for m st X[m] holds X[m+1]
  proof
    dom(I ";" J) = dom I \/ dom Reloc(J, card I) by SCMFSA6A:39;
    then
A3: dom I c= dom(I ";" J) by XBOOLE_1:7;
    let m;
A4: Comput(P+*I,s,m+1) = Following(P+*I,Comput(P+*I,s,m)) by EXTPRO_1:3
      .= Exec(CurInstr(P+*I,Comput(P+*I,s,m)),
      Comput(P+*I,s,m));
A5: Comput(P+*(I ";" J),s,m+1) =
Following(P+*(I ";" J),Comput(P+*(I ";" J),s,m))
 by EXTPRO_1:3
      .= Exec(CurInstr(P+*(I ";" J),
      Comput(P+*(I ";" J),s,m)),Comput(P+*(I ";" J),s,m));
   IC s = 0 by MEMSTR_0:def 11;
   then
A6: IC s in dom I by AFINSQ_1:65;
A7:   I c= P+*I by FUNCT_4:25;
    then
A8: IC Comput(P+*I,s,m) in dom I by AMISTD_1:21,A6;
    assume
A9:  Comput(P+*I,s,m) =  Comput(P+*(I ";" J),s,m);
   dom(P+*I) = NAT by PARTFUN1:def 2;
   then
A10:  (P+*I)/.IC Comput(P+*I,s,m)
 = (P+*I).IC Comput(P+*I,s,m) by PARTFUN1:def 6;
   dom(P+*(I ";" J)) = NAT by PARTFUN1:def 2;
   then
A11:  (P+*(I ";" J))/.IC Comput(P+*(I ";" J),s,m)
 = (P+*(I ";" J)).IC Comput(P+*(I ";" J),s,m) by PARTFUN1:def 6;
A12: I ";" J c= P +*(I ";" J) by FUNCT_4:25;
A13: CurInstr(P+*I,Comput(P+*I,s,m))
   = I.IC( Comput(P+*I,s,m)) by A8,A10,A7,GRFUNC_1:2;
    then I.IC( Comput(P+*I,s,m)) <> halt SCM+FSA by A1,EXTPRO_1:29;
    then CurInstr(P+*I,Comput(P+*I,s,m))
     = (I ";" J).IC( Comput(P+*I,s,m)) by A8,A13,SCMFSA6A:15
      .= CurInstr(P+*(I ";" J),Comput(P+*(I ";" J),s,m))
       by A9,A8,A3,A11,A12,GRFUNC_1:2;
    hence thesis by A9,A4,A5;
  end;
A14: X[0];
  thus for k being Nat holds X[k] from NAT_1:sch 2(A14, A2 );
end;

theorem Th16:
 for s being 0-started State of SCM+FSA
  for I being keeping_0 really-closed Program of SCM+FSA st P+*I halts_on s
for J being really-closed Program of SCM+FSA st I ";" J c= P
 for k being Element of NAT holds
   IncIC(Comput(P+*I+*J, Initialize Result(P+*I,s),k),card I)
  = Comput(P+*(I ";" J),s,(LifeSpan(P+*I,s)+1+k))
proof
 let s be 0-started State of SCM+FSA;
  let I be keeping_0 really-closed Program of SCM+FSA;
  assume
A1: P+*I halts_on s;
  let J be really-closed Program of SCM+FSA;
  set RI = Result(P+*I,s);
  set JSA0 = Start-At(0,SCM+FSA);
  set RIJ = RI +* JSA0;
  defpred X[Nat] means IncIC(Comput(P+*I+*J,RIJ,$1),card I)
   =  Comput(P+*(I ";" J),s,LifeSpan(P+*I,s)+1+$1);
  assume
A2: I ";" J c= P;
   then
A3: P +* (I ";" J) = P by FUNCT_4:98;
A4: for n being Nat st X[n] holds X[n+1]
  proof
    let k be Nat;
    set k1 = k+1;
    set CRk = Comput(P+*I+*J,RIJ,k);
    set CRSk = IncIC(CRk,card I);
    set CIJk = Comput(P+*(I ";" J),s,LifeSpan(P+*I,s)+1+k);
    set CRk1 = Comput(P+*I+*J,RIJ,k1);
    set CRSk1 = IncIC(CRk1, card I);
    set CIJk1 = Comput(P+*(I ";" J),s,LifeSpan(P+*I,s)+1+k1);
    assume
A5: IncIC(Comput(P+*I+*J,RIJ,k),card I)
    =  Comput(P+*(I ";" J),s,LifeSpan(P+*I,s)+1+k);
A6: IncAddr(CurInstr(P+*I+*J,CRk), card I) = CurInstr(P+*(I ";" J),CIJk)
    proof
A7:  I ";" J c= P+*(I ";" J) by FUNCT_4:25;
      Reloc(J, card I) c= I ";" J by SCMFSA6A:38;
      then
A8:  Reloc(J, card I) c= P+*(I ";" J) by A7,XBOOLE_1:1;
A9: dom(P+*(I ";" J)) = NAT by PARTFUN1:def 2;
A10:  CurInstr(P+*(I ";" J),CIJk) = (P+*(I ";" J)).IC CRSk
         by A5,A9,PARTFUN1:def 6
        .= (P+*(I ";" J)).(IC CRk + card I) by FUNCT_4:113;
      reconsider ii = IC CRk as Element of NAT;
     IC RIJ = 0 by MEMSTR_0:def 11;
     then
A11:   IC RIJ in dom J by AFINSQ_1:65;
     J c= P+*I+*J by FUNCT_4:25;
     then
A12:  IC CRk in dom J by AMISTD_1:21,A11;
      then
A13:  IC CRk in dom IncAddr(J, card I) by COMPOS_1:def 21;
      then
A14:  Shift(IncAddr(J, card I), card I).(IC CRk + card I) = IncAddr(J,
      card I).ii by VALUED_1:def 12
        .= IncAddr(J/.ii, card I) by A12,COMPOS_1:def 21;
      dom Shift(IncAddr(J, card I), card I) = { il+card I where il is
      Nat: il in dom IncAddr(J, card I)} by VALUED_1:def 12;
      then
A15:  ii + card I in dom Shift(IncAddr(J, card I), card I) by A13;
A16:   J c= P+*I+*J by FUNCT_4:25;
A17:   J/.ii = J.ii by A12,PARTFUN1:def 6;
      thus
      IncAddr(CurInstr(P+*I+*J,CRk), card I)
         = IncAddr((P+*I+*J).IC CRk,card I) by PBOOLE:143
        .= Reloc(J,card I).(IC CRk + card I) by A14,A16,A17,A12,GRFUNC_1:2
        .= CurInstr(P+*(I ";" J),CIJk) by A10,A8,A15,GRFUNC_1:2;
    end;
A18:  Exec(CurInstr(P+*(I ";" J),CIJk), CIJk)
    =  IncIC(Following(P+*I+*J,CRk),card I) by A6,A5,AMISTD_5:4;
    CIJk1 =Comput(P+*(I ";" J),s,LifeSpan(P+*I,s)+1+k+1);
    then
A19: CIJk1 = Following(P+*(I ";" J),CIJk) by EXTPRO_1:3;
A20: for a being Int-Location holds CRSk1.a = CIJk1.a
         by A19,A18,EXTPRO_1:3;
A21: for f being FinSeq-Location holds CRSk1.f = CIJk1.f
              by A19,A18,EXTPRO_1:3;
    IC CRSk1 = IC CRk1 + card I by FUNCT_4:113
      .= IC Following(P+*I+*J,CRk) + card I by EXTPRO_1:3;
    then IC CRSk1 = IC CIJk1 by A19,A18,FUNCT_4:113;
    hence thesis by A20,A21,SCMFSA_2:61;
  end;
A22:  Directed I c= I ";" J by SCMFSA6A:16;
A23: now
    set s2 = Comput(P+*(I ";" J),s,LifeSpan(P+*I,s)+1+0);
    set s1 = IncIC(RIJ,card I);
    thus IC s1 = IC RIJ + card I by FUNCT_4:113
      .= 0+card I by FUNCT_4:113
      .= IC s2 by A1,A22,Th11,A3,A2,XBOOLE_1:1;
A24: DataPart Comput(P,s,LifeSpan(P+*I,s)) =
    DataPart Comput(P,s,LifeSpan(P+*I,s)+1)
     by A1,A22,Th12,A2,XBOOLE_1:1;
    set o = LifeSpan(P+*I,s);
    hereby
      let a be Int-Location;
A25:  not a in dom JSA0 by SCMFSA_2:102;
      not a in dom Start-At (IC RIJ + card I,SCM+FSA) by SCMFSA_2:102;
      hence s1.a = RIJ.a by FUNCT_4:11
        .= RI.a by A25,FUNCT_4:11
        .= Comput(P+*I,s,LifeSpan(P+*I,s)).a by A1,EXTPRO_1:23
        .= Comput(P+*(I ";" J),s,LifeSpan(P+*I,s)).a by Th14,A1
        .= s2.a by A24,A3,SCMFSA_M:2;
    end;
    let f be FinSeq-Location;
A26: not f in dom JSA0 by SCMFSA_2:103;
    not f in dom Start-At (IC RIJ + card I,SCM+FSA) by SCMFSA_2:103;
    hence s1.f = RIJ.f by FUNCT_4:11
      .= RI.f by A26,FUNCT_4:11
      .= Comput(P+*I,s,LifeSpan(P+*I,s)).f by A1,EXTPRO_1:23
      .= Comput(P+*(I ";" J),s,LifeSpan(P+*I,s)).f by Th14,A1
      .= s2.f by A24,A3,SCMFSA_M:2;
  end;
A27: X[0] by A23,SCMFSA_2:61;
  for k being Nat holds X[k] from NAT_1:sch 2(A27, A4);
  hence thesis;
end;

registration
  let I, J be keeping_0 really-closed Program of SCM+FSA;
  cluster I ";" J -> keeping_0;
  coherence
  proof
    let s be 0-started State of SCM+FSA;
    let P such that
A1:  I ";" J c= P;
A2:  I c= P+*I by FUNCT_4:25;
A3: P = P +* (I ";" J) by A1,FUNCT_4:98;
    per cases;
    suppose
A4:   P+*I halts_on s;
      let k be Nat;
      hereby
        per cases;
        suppose
A5:       k <= LifeSpan(P+*I,s);
          Comput(P+*I,s,k).intloc 0 = s.intloc 0 by Def2,A2;
          hence thesis by A3,Th14,A4,A5;
        end;
        suppose
A6:      k > LifeSpan(P+*I,s);
          set LS = LifeSpan(P+*I,s);
          consider p being Element of NAT such that
A7:      k = LS + p and
A8:      1 <= p by A6,FINSEQ_4:84;
          consider r being Nat such that
A9:      p = 1 + r by A8,NAT_1:10;
          dom SA0 = {IC SCM+FSA} & intloc 0 <> IC SCM+FSA by SCMFSA_2:56;
          then
A10:      not intloc 0 in dom Start-At(0,SCM+FSA) by TARSKI:def 1;
          reconsider r as Element of NAT by ORDINAL1:def 12;
          dom Start-At (IC ((Comput(P+*I+*J,
          Initialize Result(P+*I,s),r)))
            + card I,SCM+FSA) = {IC SCM+FSA} & intloc 0 <> IC SCM+FSA
             by SCMFSA_2:56;
          then
A11:      not intloc 0 in dom Start-At (IC ((Comput(P+*I+*J,
          Initialize Result(P+*I,s),r))) + card I,SCM+FSA) by TARSKI:def 1;
A12:   IncIC(Comput(P+*I+*J,Initialize Result(P+*I,s),r),card I)
      = Comput(P+*(I ";" J),s,(LS+1+r)) by A4,Th16,A1;
A13: J c= P+*I+*J by FUNCT_4:25;
  Comput(P+*I+*J,Initialize Result(P+*I,s),r). intloc 0
    = (Initialize Result(P+*I,s)).intloc 0 by Def2,A13
   .= (Result(P+*I,s)).intloc 0 by A10,FUNCT_4:11
   .= Comput(P+*I,s,(LifeSpan(P+*I,s))).intloc 0 by A4,EXTPRO_1:23
   .= s.intloc 0 by Def2,A2;
   hence thesis by A7,A9,A12,A3,A11,FUNCT_4:11;
        end;
      end;
    end;
    suppose
A14:  not P+*I halts_on s;
      let k be Nat;
       Comput(P+*I,s,k).intloc 0 = s.intloc 0 by Def2,A2;
      hence thesis by A3,A14,Th15;
    end;
  end;
end;

theorem Th17:
  for I being keeping_0 parahalting really-closed Program of SCM+FSA,
      J being parahalting really-closed Program of SCM+FSA holds
   LifeSpan(P+*(I ";" J),s +* Initialize((intloc 0).-->1)) =
  LifeSpan(P+*I,s +* Initialize((intloc 0).-->1)) + 1 + LifeSpan(P+*I+*J,
   Result(P+*I,s +* Initialize((intloc 0).-->1)) +*
    Initialize((intloc 0).-->1))
proof
  let I be keeping_0 parahalting really-closed Program of SCM+FSA;
  let J be parahalting really-closed Program of SCM+FSA;
A1: I ";" J c= P +* (I ";" J) by FUNCT_4:25;
 Initialize((intloc 0).-->1) c= s +* Initialize((intloc 0).-->1) by FUNCT_4:25;
  then
A2: LifeSpan(P+*(I ";" J),s +* Initialize((intloc 0).-->1)) =
    LifeSpan(P+*(I ";" J)+*I,s +* Initialize((intloc 0).-->1)) + 1 +
    LifeSpan(P+*(I ";" J)+*I +* J,
       Result(P+*(I ";" J)+*I,
              s +* Initialize((intloc 0).-->1)) +* Initialize((intloc 0).-->1))
               by Lm2,A1;
A3: J c= P+*(I ";" J) +* I +* J by FUNCT_4:25;
A4: J c= P+*I+*J by FUNCT_4:25;
A5: I c= P +* (I ";" J) +* I by FUNCT_4:25;
A6: I c= P+* I by FUNCT_4:25;
A7: (Result(P+*(I ";" J)+*I,s +* Initialize((intloc 0).-->1))
       +* Initialize((intloc 0).-->1))
   = (Result(P+*I,s +* Initialize((intloc 0).-->1))
    +* Initialize((intloc 0).-->1)) by Th8,A5,A6;
A8:   LifeSpan(P+*I,s +* Initialize((intloc 0).-->1)) =
    LifeSpan(P+*(I ";" J)+*I,s +* Initialize((intloc 0).-->1))
            by Th8,A5,A6;
  thus thesis by A7,Th8,A3,A4,A2,A8;
end;

theorem
  for I being keeping_0 parahalting really-closed Program of SCM+FSA,
      J being parahalting really-closed Program of SCM+FSA
 holds IExec(I ";" J,P,s) = IncIC(IExec(J,P,IExec(I,P,s)),card I)
proof
  set D = (Int-Locations \/ FinSeq-Locations);
  set A = NAT;
  let I be keeping_0 parahalting really-closed Program of SCM+FSA;
  let J be parahalting really-closed Program of SCM+FSA;
  set s1 = s +* Initialize((intloc 0).-->1),
      P1 = P +* I;
A1: I c= P+*I by FUNCT_4:25;
  set s2 = s +* Initialize((intloc 0).-->1),
      P2 = P +* (I ";" J);
  set s3 = Comput(P1,s1,LifeSpan(P1,s1)) +* Initialize((intloc 0).-->1),
      P3 = P1 +* J;
  set m1 = LifeSpan(P1,s1);
  set m3 = LifeSpan(P3,s3);
A2:Initialize((intloc 0).-->1) c= s2 by FUNCT_4:25;
A3: I c= P2 +* I by FUNCT_4:25;
A4:   I ";" J c= P+*(I ";" J) by FUNCT_4:25;
A5: LifeSpan(P2 +* I,s2) = m1 by Th8,A1,A3;
A6: Reloc(J,card I) c= P+*(I ";" J) by A2,Lm2,A4;
A7: I c= P1 by FUNCT_4:25;
A8: Initialize((intloc 0).-->1) c= s1 by FUNCT_4:25;
A9: s3 = Result(P1,s1) +* Initialize((intloc 0).-->1)
        by Th2,A7,A8,EXTPRO_1:23;
A10: P+*(I ";" J)+*I+*(I ";" J)
    = P+*(I ";" J)+*(I+*(I ";" J)) by FUNCT_4:14
   .= P+*((I ";" J)+*(I+*(I ";" J))) by FUNCT_4:14
   .= P +* ((I ";" J) +* (I ";" J)) by SCMFSA6A:18;
A11: P+*I+*(I ";" J)
  = P +* (I +* (I ";" J)) by FUNCT_4:14
 .= P +* ((I ";" J) +* (I ";" J)) by SCMFSA6A:18;
A12: P+*(I ";" J)+*I halts_on s2 by Th1,FUNCT_4:25;
  DataPart Comput(P+*(I ";" J)+*I,s2,m1)
    = DataPart Comput(P +* ((I ";" J) +* (I ";" J)),
           s +* Initialize((intloc 0).-->1),m1) by A10,A12,Th10,A5,FUNCT_4:25
    .= DataPart Comput(P+*I,s1,m1) by A11,A7,A8,Th10,Th2;
  then
A13: DataPart( Comput(P2+*I,s2,m1)+* Initialize((intloc 0).-->1))
     = DataPart Comput(P1,s1,m1) +* DataPart Initialize((intloc 0).-->1)
      by FUNCT_4:71
    .= DataPart s3 by FUNCT_4:71;
A14:  J c= P+*I+*J by FUNCT_4:25;
A15: IC Comput(P2,s2,m1+1) =  card I
            by A2,A5,Lm2,A4;
A16: DataPart Comput(P2,s2,m1+1) = DataPart s3 by A13,A2,A5,Lm2,A4;
  then
A17: DataPart Comput(P+*(I ";" J),Comput(P+*(I ";" J),s2,m1+1),m3)
    = DataPart Comput(P+*I+*J,s3,m3 ) by Th6,A14,A6,A15;
A18: IC Comput(P+*(I ";" J),Comput(P+*(I ";" J),s2,m1+1),m3)
       = IC Comput(P+*I+*J,s3,m3) + card I by A15,Th6,A6,A14,A16;
A19: J c= P3 by FUNCT_4:25;
A20: Initialize((intloc 0).-->1) c= s3 by FUNCT_4:25;
A21: J c= P1 +* J by FUNCT_4:25;
A22: J c= P+*J by FUNCT_4:25;
A23: Result(P +* J,IExec(I,P,s) +* Initialize((intloc 0).-->1))
     = Result(P3,s3) by Th8,A22,A19,A9;
A24: I ";" J c= P2 by FUNCT_4:25;
  then
  IExec(I ";" J,P,s) = Comput(P2,s2,LifeSpan(P2,s2))
       by A2,Th2,EXTPRO_1:23
    .= Comput(P2,s2,m1+1+m3) by A9,Th17;
  then
A25: DataPart IExec(I ";" J,P,s)
     = DataPart Comput(P3,s3,m3) by A17,EXTPRO_1:4
    .= DataPart IExec(J,P,IExec(I,P,s)) by A20,A23,Th2,A19,EXTPRO_1:23;
A26: IC IExec(I ";" J,P,s)
     = IC Comput(P2,s2,LifeSpan(P2,s2)) by A24,A2,Th2,EXTPRO_1:23
    .= IC Comput(P2,s2,m1+1+m3) by A9,Th17
    .= IC Comput(P3,s3,m3) + card I by A18,EXTPRO_1:4
    .= IC Result(P3,s3) + card I by A20,Th2,A19,EXTPRO_1:23
    .= IC Result(P1 +* J,
    Result(P1,s1) +* Initialize((intloc 0).-->1)) + card I
           by A8,Th2,A7,EXTPRO_1:23
    .= IC IExec(J,P,IExec(I,P,s)) + card I by A21,A22,Th8;
  hereby
    reconsider l = IC IExec(J,P,IExec(I,P,s)) + card I as Element of NAT;
A28: now
      let x be object;
      assume
A29:  x in dom IExec(I ";" J,P,s);
      per cases by A29,SCMFSA_M:1;
      suppose
A30:    x is Int-Location;
        then x <> IC SCM+FSA by SCMFSA_2:56;
        then
A31:    not x in dom Start-At(l,SCM+FSA) by TARSKI:def 1;
        IExec(I ";" J,P,s).x = IExec(J,P,IExec(I,P,s)).x
         by A25,A30,SCMFSA_M:2;
        hence
        IExec(I ";" J,P,s).x = (IExec(J,P,IExec(I,P,s))
         +* Start-At (IC IExec(J,P,
         IExec(I,P,s)) + card I,SCM+FSA)).x by A31,FUNCT_4:11;
      end;
      suppose
A32:    x is FinSeq-Location;
        then x <> IC SCM+FSA by SCMFSA_2:57;
        then
A33:    not x in dom Start-At(l,SCM+FSA) by TARSKI:def 1;
        IExec(I ";" J,P,s).x = IExec(J,P,IExec(I,P,s)).x
         by A25,A32,SCMFSA_M:2;
        hence
        IExec(I ";" J,P,s).x = (IExec(J,P,IExec(I,P,s)) +*
          Start-At (IC IExec(J,P,
         IExec(I,P,s)) + card I,SCM+FSA)).x by A33,FUNCT_4:11;
      end;
      suppose
A34:    x = IC SCM+FSA;
        then x in {IC SCM+FSA} by TARSKI:def 1;
        then
A35:    x in dom Start-At(l,SCM+FSA);
        thus IExec(I ";" J,P,s).x = (Start-At(l,SCM+FSA)).IC SCM+FSA
         by A26,A34,FUNCOP_1:72
          .= (IExec(J,P,IExec(I,P,s)) +*
           Start-At (IC IExec(J,P,IExec(I,P,s)) + card
        I,SCM+FSA)).x by A34,A35,FUNCT_4:13;
      end;
    end;
    dom IExec(I ";" J,P,s) = the carrier of SCM+FSA by PARTFUN1:def 2
      .= dom (IExec(J,P,IExec(I,P,s))
         +* Start-At (IC IExec(J,P,IExec(I,P,s)) + card
    I,SCM+FSA)) by PARTFUN1:def 2;
    hence thesis by A28,FUNCT_1:2;
  end;
end;

theorem
 for P being Instruction-Sequence of SCM+FSA
   holds not P +*(IC s, goto IC s) halts_on s by Lm1;


Messung
CHZG
8010010093

¤ Dauer der Verarbeitung: 0.68 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,058
#Domains=861,604