Eine aufbereitete Darstellung der Quelle

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


Impressum scmpds_6.miz   Sprache: Mizar

 

:: The Construction and Computation of Conditional Statements for SCMPDS
::  by JingChao Chen
::
:: Received June 15, 1999
:: Copyright (c) 1999-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_1si`in  Euclidjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
      XBOOLE_0, GRAPHSP, XXREAL_0, CIRCUIT2, ARYTM_3, java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 46
      TARSKI            forxbeElement   (a.(i+1) = (a.i + b.i)/2 & b.  .i)holds
      SCMFSA6B, MSUALG_1 c  Real j              r > 0 & Ball(x,r si`
      SCMFSA7B, SCMFSA8B, NAT_1, STRUCT_0, SCMPDS_6, PARTFUN1,java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 17
      ;
 notations TARSKI, XBOOLE_0, SUBSET_1, XCMPLX_0, RELAT_1, FUNCT_1, let  be Element of  java.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
      PARTFUN1, VALUED_1A24:xin si`java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
,AMI_2Sjava.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
      SCMPDS_4, SCMPDS_5, XXREAL_0;
 constructors REAL_1, INT_2 set A=].-infty,.i.[,  =]bi,+infty.[ f = * \    
      DOMAIN_1;
 registrations considerg  that
      ORDINAL1, java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 13
      AMI_3, COMPOS_0;
                g=dom f java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
 definitions SCMPDS_4;
 equalities A26:          for j be stj domf holds g. in .java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
 expansions EXTPRO_1, SCMPDS_4;
 theorems NAT_1, TARSKI, FUNCT_4,1 inSeg.(1=(+i/ )or
      SCMPDS_4, SCMPDS_5, XBOOLE_1, XREAL_1, ORDINAL1, FUNCOP_1, XXREAL_0,
      VALUED_1, PARTFUN1, MEMSTR_0, AFINSQ_1, COMPOS_1, EXTPRO_1, PBOOLE,
      RELAT_1;
 chemesthen 1  byjava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 48

begin :: Preliminaries

reserve m,n for Nat,
  a for Int_position,
  i               . A/ ;
  s,s1,s2 for State of SCMPDS,
  k1 
  loc for Nat,
  I,J,K for Program of SCMPDS;
set A = NAT;
set D = SCM-Data-Loc;

:Stop0 ;
Lm2:  0 in dom Stop SCMPDS bythenreconsiderg1=.1as ExtReal;

reserve P,P1,P2 for Instruction-Sequence java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 19

::$CT 5

theorem Th1:
  card A5: yin ab) by A4x  java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 59
proof
  thus card (i ';' I) = card (Load i ';' I)
    .=card (Load                   then x in  1
    .=card I+1 by  then  in -tuples_on REAL by EUCLID:def 1;
end;

theorem Th2:
  (i ';' I). 0=i
proof
  i ';'                   thenginFuncs(eg1REAL by ,FINSEQ_293
  hence (i ';' I). 0 =(Load i). 0 by AFINSQ_1:def 3
    .=java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
end;

::$CT 3

theorem Th3:
  CurInstr(P +* stop(i ';' I),Initialize s) = i
proof
  set iI=i ';' I, P3 = P +* stop(i ';' I);
A1:  0 A28:g= h and
    IntervalSequencea,).0 in (    
  then
A2:  0 in dom iI by AFINSQ_1:66;
   iI c= stop iI by AFINSQ_1:74;
   then dom A30:rng =REAL FUNCT_2:ef2java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
    y inIntervalSequence(,b. A5S:defthen
  then .REALby A30,FUNCT_1:3;
A4:A8: y  < [.,.. >byDef1
     = (P +*                reconsider g1  Real A28;
  P3.0 = (P +* stop(i ';' I)). 0                 ;
    .= (stop iI).  by,FUNCT_4:java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
    .= iI. 0 by A2,    for t be object st t in t                    be  ;
    .=(Load i ' assume
    .=(Load i). 0 .,.. >t  x)
    .=i;
  hence thesis by A4,MEMSTR_0then t1  t  ofjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 47
end;

theorem Th4:
  for s being State of SCMPDS,m1,m2 then java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 37
   m1 holds ICplusConst(s  t1 REAL   in -1 67java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
proof
  s  of m1  ;
   ex m being Elementby :;
     by SCMPDS_2:def 18;
                      1=MetrStruct(REAL 1Pitag_dist 1java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
end;

theorem Th5:
  for I,Jby EUCLIDUNCT_1:3java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
  stopI'; Jjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
proof
  let Iy product  [a.,bi]*>byDef1
  stop(I ';' J) =I ';' J ';' Stop SCMPDS
    .=I ';' (J ';' Stop SCMPDS) bythus t = rt1;
    .=I ';' (stop J);
  then stop(I ';' J) = I +*                       then consider  be   
  encethesis FUNCT_4:                       rt1 in - REAL EUCLIDef1;
end;

::$CT

theorem
  for s being 0-started State of SCMPDS, i being No-StopCode parahalting
hiftableProgramSCMPDS abeing
  Int_position
     holds IExec(i ';' J,P,s).a = IExec(J,P,Initialize Exec(i,s)).a
proof
  let s be 0-started State of SCMPDS,
      i beA14:fort be  tjava.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 55
  J be parahalting shiftable Program of SCMPDS, aht (      dom    and
  thus IExec(i ';' J,P,s).a = IExec(Load i ';' A15:  dom <*[.a.i,b.i.]*> = Seg 1 by FINSEQ_1:de
    .= IExecJP      1 in Seg 1 by TARSKI in Seg b def1FINSEQ_1;
    .= IExec(J,P,Initialize Exec(i,s)).a by SCMPDS_5:40;
endthen. in < ..ibi]>. A14,;

theoremthus rt1=dom  by A33,,       gin..b.i]byA13
  for a being Int_position,k1,k2 being Integer holds (a,k1)
 k2 <> haltSCMPDS
 proof
  InsCode halt SCMPDS = 0 by COMPOS_1:70;
  hence thesis by SCMPDS_2:16;
 end;

theorem
  for a being Int_position,k1,k2 being Integer
   (k1 =0gotojava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 42
 proof
  InsCode haltjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
     java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 30
 end;

theorem
  for a being Int_position,k1,k2 being Integer
  (,1>_   >
 proof
  InsCode haltconsider rt2beingproof
  hence thesis by SCMPDS_2:18;
end

definition
  let k1 be Integer;
  func Goto k1A38:                    .java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 27
  Load goto k1;
  coherence;
end;

registration
  let n be Nat;
                             = by A37java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
  correctness by SCMPDS_5:21;
  cluster reconsiderS = IntervalSequencea,)as
  correctness by SCMPDS_5:21;
java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 4

registration
  let n be Nat;
  cluster Goto (n+1) -> halt-                         =1- ux&rt1  1- rt2  A37,A39,:;
  correctness;
  cluster Goto -(n+1 then
  correctness;
end;



theorem A18                    .   || java.lang.StringIndexOutOfBoundsException: Range [72, 73) out of bounds for length 72
    dom k1&Goto k1  =gotoby :java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60

begin :: The predicates of is_closed_on and is_halting_on

definition
  let I be Program of SCMPDS;
  let s be State of SCMPDS                                   . .<r  .m0byXREAL_1;
  let P;
  pred I is_closed_onend      then c- r<am0    r byREAL_1:9;

  for ksupposeg1  rt2  0;
    java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 53
  pred I is_halting_on s,P means

  P+*stop I halts_on Initialize s;
end;

theorem       b.m0 c =b.  .by XREAL_1:0
  for I being Program of SCMPDS holds I                             rt2  g1 hen m0c<  ,2java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
  java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 57
proof
  let I be java.lang.StringIndexOutOfBoundsException: Range [28, 13) out of bounds for length 59
  thus I is paraclosed impliesend
  I is_closed_on s,P by FUNCT_4:25;
   assume
A1: for s being State of SCMPDS,P holds I is_closed_on s,P;
    let s be 0-                      hence rt1. fjbyhence .  java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    let k be Nat;
    let P;
A2:  Initialize s = s by MEMSTR_0:44;
    assume stop I c= P;                   end;
    then
A3: P = P +* stop I by FUNCT_4:98;
    I is_closed_on ,  
    hence IC Comput(P,s,k) in dom stop I by A2,A3;
end;

theorem Th12:
  for I theorem Th33:
   for s being State of SCMPDS,P holds I is_halting_on s,P
proof
  Ibe of ;
  thus I is parahalting implies for s be State of SCMPDS, P holds
  I is_halting_on s,P by  holds  ,                nd;
  assume
A1: for sbeingStateofSCMPDS,P holds I  roof
    let s be 0-startedjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
A43            . in    exa, Realst  .,b MEASURE5 3java.lang.StringIndexOutOfBoundsException: Range [52, 53) out of bounds for length 52
    stopI =P;
    then
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
    I 
    hence P halts_on s bynow
end;

theorem Th13:
  for I1I2 nonemptyjava.lang.StringIndexOutOfBoundsException: Range [55, 44) out of bounds for length 59
  DataParts1= DataPart s2 st I =lower_bound holds
   implies I is_closed_on s2,P2
proof
  s1s2  of ,Ibe  SCMPDS;
  set pI=stop I, S1 = Initialize s1, S2 = Initialize s2,
     pro       then  REAL ;
  assume
A1: DataPart s1 = DataPart s2;
A2: Comput(E2,S2,0) = Initialize s2 by EXTPRO_1:2;
A3:Comput(1S                    - REAL : 1java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
  then
A4: DataPart Comput(E1assume
    .= DataPart Comput(E2,S2t  FuncsS1R  ,java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 36
  java.lang.StringIndexOutOfBoundsException: Range [25, 10) out of bounds for length 25
   & CurInstr(E1,Comput(E1,S1,$1)) = CurInstr(E2,Comput(E2,S2,$1))
    DataPart Comput(,,1  ComputE2,21;
A5:  0 in dom pI by COMPOS_1:36;
  assume
A6: I is_closed_on s1,P1;
A7: now
    let k be Nat;
A8:  ex     nondFinSequence REAL st
    assume
A9: P[k];
    then
A10: for a holds Comput(E1,   =  java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
    pI c=                     
    then
A11: pI c= E2;
A12  roof
A13: Comput(E1,S1,k+1) = Following(E1,Comput(E1,S1                   r
    Comput(E1,S1,k) =  Comput(E2,S2,k) by A9 s  nonemptynondecreasing of REALst$  java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
       domD                   r;
A14:  Comput(E1,S1,k+1) =  Comput(E2,                                    g1 dom holds.in divsetDi)java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
   then
A15:  Comput(E1,S1,k+1)
 java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 26
A16: IC Comput(E1S1k+)= Comput(,S2k)A14
A17
:  E1/.IC Comput(E1,S1,k+1)
 = E1.IC Comput(E1,S1,k+1) by PBOOLE:143;
A18:  E2/.IC Comput(E2,S2,k+1)
 = E2.IC Comput(E2,S2,k+1) byPBOOLEjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 11
    pI c= P1 +* pI     S c= REAL* by A1;
    then pI c= E1;
    then CurInstr(E1,Comput(java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 23
     = pI.IC Comput(E1,S1,k+1) by A12,A17,GRFUNC_1:2
      .= CurInstr let be object
byA,GRFUNC_12java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
    hence P[k+1] by A15;
  end;
A19: IC Comput(E2,S2,0) = IC S2:             inBall(x,r);
    .=  0 by MEMSTR_0:def 11    x = 
A20: E1/                    then reconsider  = tdoms= D &
 = E1.IC Comput(E1,S1,0) by PBOOLE:    i    iin sholdss.i in divset(,  A1
A21: E2/.IC Comput(    given s be non em-java.lang.StringIndexOutOfBoundsException: Range [51, 39) out of bounds for length 69
 = E2.IC Comput(E2,S2,0) by PBOOLE:143                    then A3:doms=domD
A22for  Nat i  sholds .i in(,)java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
by A3
    .0by: 11java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
  then CurInstr(E1,Comput(E1,S1,0))
     pI.0by ,FUNCT_413
    .= CurInstr(E2,Comput(E2,S2,0)) by A19,A5,A21,FUNCT_4:13;
  then
A23: P[0] by A22,A19,A4;
  now
    let k be Nat;
eingPkfrom :2(A)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
    IC A46ter:    (,java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 7
    hence IC                     now
java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 6
  hence thesis;
end

theorem
  forA1 for xbe objectxinTD1
  s1 = DataPart s2 holds I is_closed_on                       t = rt1;
   implies I                in REAL 1
proof
  lets1,s2be om  D java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
  set pI=stop I, S1for    java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 59
    E1 = P1 +* pI, java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 38
  defpred P[Nat] means
   IC Comput(E1,S1,$1) = IC Comput(E2,S2,$1) &
   CurInstr(E1,Comput(E1,S1,$A47                   = hand
    & DataPart
  Comput(E1,S1,$1) = DataPart Comput(E2,S2A48:dom h = Seg1and
A1: Comput(E1,S1,0) = Initialize s1 by EXTPRO_1:2;
java.lang.StringIndexOutOfBoundsException: Range [27, 2) out of bounds for length 50
  assume DataPart s1 = DataPart s2;
  then
A3:  Comput(E1,S1,0) =  Comput(E2,S2,0) by A1,A2,MEMSTR_0:80;
:   indom pI by COMPOS_1:java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  assume
A5:I is_closed_on s1;
A6: now
    let k be Nat;
A7: Comput(E2,S2,k+1) = Following(E2,Comput(E2,S2,k)) by java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 39
    assume
A8: P[k];
    then for a holds Comput(E1,S1,k).a                       assume j indom f then
    then
A9:  Comput(E1,S1,k) =  Comput(E2,S2,k) by A8,SCMPDS_4:2;
A10: pI c= E2 by FUNCT_4:25;
A11: IC Comput(E1,S1,k+1) in A50                       TARSKI: 1;
 Comput(E1,S1,k+1)     considerrt2 beingReal  that
    then
A12:  Comput(E1,S1,k+1) =  Comput(E2,S2,k+1) by A8,A9,A7;
    then
=ICComputE2,k+1);
A14: E1/.IC Comput(E1,S1,k+1)
 = E1.IC Comput(E1,S1,k+1) by PBOOLE:143;
A15: E2/.IC Comput(E2,A52:                    .1
 = E2.IC Comput(E2,S2,k+1) by PBOOLE    dom = dom D &
                           .=rt2 by ;
    then CurInstr(E1,Comput(E1,S1,k+1))
=pIICComput                        Realjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
      .= CurInstr(E2,Comput(E2,S2,k+p
       A13AA,FUNC_12;
    hence P[k+1] by A12;
  end;
A16: IClet be;
    .=  0 by MEMSTR_0:def 11;
  assume
Iis_halting_on s1,P1;
  then P1 +* pI halts_on Initialize s1;
  then consider m such that
A17: CurInstr(E1,      A54:      |rx-..   ()*|ux. 11
A18: E1/.IC Comput(E1,S1,0) = E1.                                 .==  s D
A19                       rt2 in A,XXREAL_1:50;    end
 IC    TD2=TD1
    .=  0 by MEMSTR_0:def 11;
  then     proof
          pI. 0by A4,A18,FUNCT_4:13
    .= CurInstr(E2,Comput(E2,S2,0)) by A16,A4,A19,FUNCT_4:13;
  then
A20: P[0] by A3;
  now
    let k be Nat;
A21     holds Pk from sch(A6)
    ICComput(,S1,k) in dom pI by A5;
    hence IC Comput(E2,S2,k) in java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 29
  end;
  hence I is_closed_on s2,P2;
  for k being Nat holds P[                         inA  B
  then CurInstr(E2 end;
   =SCMPDSbyA17
  then P2
  hence thesis;
end;


  for s being State of SCMPDS, end;
  is_closed_on s,P iff I is_closed_on InitializeDhence   by CARD_3:ef ;
proof
  let s be State of SCMPDS,I,J beproof
  DataPart s = DataPart Initialize s by MEMSTR_0                 ;
  hence thesis by Th13;
end;    D Division  ;

theorem Th16:
 for s being 0-started State of SCMPDS
 , 
   st I is_closed_on s,P & I is_halting_on s,P
  holds
    st k < java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 19
utP+ ,)=ICComputP+*stop(I' )s,)java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
      DataPart Comput( end;
    DataPart Comput(P +* stop(I ';' J),
proof
 let s         ence thesis by COMPL_SP:def 3;
  let I,J be java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 11
  assume
A1: I is_closed_on s,P;
2java.lang.StringIndexOutOfBoundsException: Range [17, 14) out of bounds for length 36
  set pI=stop I, pIJ=stop (I ';' J), P1 = P +*  end;
  defpred X[Nat hence thesis:upper_bound,    in[,b A2java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 78
     Comput      =A1java.lang.StringIndexOutOfBoundsException: Range [36, 27) out of bounds for length 36
  assume java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 30
  then
 java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
A4: for m st X[a.i <= b.i.i=.+ .+)<.holds
  proof
    IntervalSequence(a,b) is non-ascending
    let mjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    assume
<=      uppose1 i;
A6: pIJ c= E2 by FUNCT_4:25;
A7: Comput(P1,s,m+1) = Following(P1,Comput(P1,s,m)) by EXTPRO_1:3;
A8: pIJ =I  hence thesis byA3A2,,:for   Natai =. &ai< .i+1  .i1 =.i;
      .=I ';' JS by AFINSQ_1:27;
    domI ' endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      .= dom 
    then
=domI' java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 25
A10: Comput
A11: IC Comput(P1,sjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
A12: P1/:    = m;
 = P1.IC Comput(P1,theorem Th35:
pIc  byFUNCT_4:;
    then
A13: CurInstr(P1,Comput(P1,s,m))
Comput(,m)  A11,A12GRFUNC_12
    assume
A14: m+1 <= LifeSpan   st Iab = .<*  ofIab
    then  <LifeSpan(P1,) by NAT_1:13;
    then pI.IC(Comput(P1,s,m)) <            assume x in product empty closed_interval   java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
    then
 P,,)Ibyjava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 51
A16: E2/.IC Comput(E2,A2A3:     x = and
 = E2.IC Comput(E2,s,m) A4     dom  =    D **>;
    CurInstr(P1,Comput(P1,s,m))
A5 A3:rngDc=Iab
      .=I.IC (Comput(P1,s,m)) by A15,AFINSQ_1:def 3
      .=pIJ.IC(Comput(P1,s,m)) by A15,A8,AFINSQ_1:def 3
      E.(Comput1,m)by A15A8A9,:
      .= CurInstr(E2,Comput(E2,s,m))
       by A5,A14,A16,NAT_1:13      x inrngDjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    thenjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 35
  end;
  Comput(P1, s,0) = s &
CpIJ,s0by2
  then
 X[]java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
mholds    2A,4java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
A19: P +* pI +* pIJ = P +* (pI +* pIJ) by java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 8
            .= P + .lD  *b>then
  thus for k being Nat st k <= java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 9
holds ICComput(sk = ComputP+ pIJ,s)byA18,;
   Comput(P +*              in Seg 1by FINSEQ_1      ()<> defjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
    *stopI,) A18;
  hence
   DataPart Comput(P +* stop I, s, (LifeSpan(P +* stopA10:(<[abm]>. =[a.m,b.m.]java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
     *I;' s,LifeSpan( +  s))java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
end;

theorem java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 8
,beNat java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 38
  is_closed_on s,P java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 6
    k <             java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 55
  holds
proof
  let I             bm< .n y ,A2;
 ss ,   *,
      m             ..,.m]= [a.n,bjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40

A1: I is_closed_on s,P and
A2: I is_halting_on s,P and
A3: k < m;
setSk=Comput(,java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 37
A4: Ik in dom stop(I) by A1;
reconsider ;
A5: stop I c= PP by FUNCT_4:25;
A6:  
A7: now
A8: PP/.IC
    assume
A9: n = card I;
          thenjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 70
       )(+n by A4A5java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 34
m1,Lm2AFINSQ_1:def 3;
    hence contradiction by A3,A6,EXTPRO_1:def 15;
  end;
    hence XXREAL_12;
  then n < card I + 1 by java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 6
  then n <= card I by INT_1:7;
 n  >=dom ;
  hence thesis by AFINSQ_1:66;


theorem Th18:
  for I,J being Program of SCMPDS,
      s beingletabx ;
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
   k < LifeSpan(P +* stop I,s)
 ( +*stop ,ComputP+* stop I, s,k)) =
  CurInstr(P +* stop(I ';' J),Comput(P +* stop(I ';' J),s,k))
proof
  A4iin1 ,d ;
      sbe0started State of SCMPDSk be ;
  set P1 = P +*   def;
  set s3= Comput(P1, s,k), s4= Comput(P2        java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 38
      P3    for y beobject    A6     1 [c,MEASURE5 ;
SS=Stop SCMPDS;
  assume that
A1: I is_closed_on s,P and
A2 I is_halting_ons,P &            ,,1;
A3: Initialize s = s by MEMSTR_0:44;
    then
A4 IC s3 in dom I by A1,A2,Th17;
A5: IC s3= IC s4 by A1,A2,Th16;
A6: IC s3 in dom stop(I)       reconsider g = P as Function
A7: dom        divset
,SCMPDS_5:13;
A8: stop I c=        take g;
:stop (I''J =I           = ;
    .=I ';' (J ';' SS) by  thus domg= dom fA8c=a&   by,:;
A10: P3/.IC .java.lang.StringIndexOutOfBoundsException: Range [26, 26) out of bounds for length 14
A11:  P4/.         **> in divset(B,i) by A8,A6,A5;
  thus           assume y in dom f;
    .=     endjava.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
    .IIC     ;
    .=(stop (I ';' J)).IC s3 by A4,A9,AFINSQ_1:def 3
.=.Cs4 A5,A7G:2
    .A3:        = 1 TARSKI: 1java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
end;

theorem Th19: ::SCMPDS_5:32
 java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 58
  SCMPDS, k beingend;
  I is_halting_on s,P & k <
  (P *  IInitialize)
   holds
  CurInstr(P +* stop I  java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 6
proof
  let I be halt-free Program of SCMPDS,s be State of SCMPDS, k    end;
  set ss=Initialize s, PP = P +*java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      =ComputPP 
  assume
  I is_closed_ontheorem 
  then
:s2   by Th17;
A2:  P2/.IC s2 = P2.IC s2 by PBOOLE:143   =product <*[.a,.]*>holds;
A3: stop I c= PP java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
   I c= stop I by AFINSQ_1:74;
  then I c= PP by A3,XBOOLE_1:1;
  then CurInstr(P2,s2)=I.IC s2 by A1,A2,GRFUNC_1:2;
  hence thesis by A1,COMPOS_1:def 27;
end;

theorem Th20:
  forIbeing -freeofSCMPDSsbeing State of
  SCMPDS st I is_closed_on s,P & I is_halting_on s,P
  holds IC Comput(P +* stop I, Initialize s,
    LifeSpan(P +* stop I,Initialize s)) =  card I
proof
  let I be halt-free Program of SCMPDS,s be State of SCMPDS;
  set s1=Initialize s, P1 = P +* stop I;
  assume 
A1: I is_closed_on s,     =<[.,.]*>
A2: I is_halting_on s,P;
  (P1 s1,LifeSpan(P1,1);
  reconsider n = IC Css as : S is non empty by A1,A2,Th
:stopIc P1 FUNCT_4:;
   I c= stop I by AFINSQ_1:74;
   then
A4: I c= P1 by A3,XBOOLE_1:1;
: P1 halts_on s1  A2;
  now
A6: P1/.IC Css = P1.IC Css by PBOOLE:143;
    
A7: IC(y)< s) holds b -a = s)
    then I.IC Css=P1proof
      .CurInstr(P1,)by t Euclid1  xi S yin java.lang.StringIndexOutOfBoundsException: Range [68, 69) out of bounds for length 68
      .=      .=halt   i    i injava.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 52
java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 46
  end;
  then
A8: n >= card I by java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 4
A9: card stop I =card I + 1      
I Cssin stop()by A1;
  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  then n <= card I by NAT_1:13;
   then   for r being holdsvol { = 0
  thesis
end;

en;
 for I being halt-free Program java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  for ab being Real_Sequencest (ijava.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 69
     st I is_closed_on s,P & I is_halting_on   a is non-decreasing & b is non-increasing ho
holds Comput(+* ( ; Goto cardJ )'J)
s, (LifeSpan(P +* stop I,s) + 1)) =
(card  + cardJ  &
ComputP+  ,s,
 (LifeSpan(P +* stop I,s)))
 = DataPart Comput(Passume   [.lower_bound i java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 68
1) ';' JA1:fori be  .upper_boundI]isnon c REALjava.lang.StringIndexOutOfBoundsException: Range [67, 68) out of bounds for length 67
 *s  )java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
(for k being java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 7
java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 21
 holds CurInstr(P +*stop (I ';' Goto (card J + 1) ' 
   Comput(P +*stop (I ';' Goto (card J + 1) ';' J ),
   s,) <>haltSCMPDS &
IComput( *stop (''  cJ+1 ' ),,
 LifeSpan(P+ stop ,s))
 java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
 P * ( A3  =..by;
  halts_on s &
 LifeSpan(P +* stop ( java.lang.StringIndexOutOfBoundsException: Range [18, 15) out of bounds for length 65
card J      endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10

proof
  letI      java.lang.StringIndexOutOfBoundsException: Range [26, 23) out of bounds for length 76
      s be 0-started State of SCMPDS;

A1: I is_closed_ontake r = a.  ;
  set G1=Goto (card J + 1), SS = Stop SCMPDS, J2 = G1 ';' J ';' SS    java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 62
G1 ';' J        n .I,. java.lang.StringIndexOutOfBoundsException: Range [59, 56) out of bounds for length 77
s  =sjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
  reconsider P2 =        0 in NAT; 
   as InstructionA7     indomaby SEQ_1:1;
  assume
A2 I is_halting_ons,;
A3: Initialize s = s by MEMSTR_0:44;
  set Iac,   emptyclosed_interval  ,
A4: IJ =I ';' (G1 ';' J) by AFINSQ_1:27;
  then
A5: IC Comput(P1, s1,LifeSpan(P1,s1)) =IC sm by A1,A2,Th16;
  hen
A6: IC sm =  cardDcbDivisionof;
A7:  0 in dom G1        then a.0 <<=bassume
:upper_bound()<lower_bound)
    .=G1. 0 by A7,AFINSQ_1:def 3
    .goto (ardJ  funcDac(#  -  empty  FinSequence
  card (G1 ';' J) = card G1 + card J by AFINSQ_1:17
    .=1 + card J by COMPOS_1:54;
  then
A9:A9:  ^Dcbif.1 >upper_boundIac)
    .=halt SCMPDS by Lm1,Lm2,java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 29
A10: card J2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    .=card G1 java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    assume[;
  then
   in  J2AFINSQ_166java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
A12: pJ =I '. <.;
    .=I ';' (G1 ';' J) ';' SS by AFINSQ_1:27
    .=I ';' J2 by AFINSQ_1:27;       java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 50
  then
A13: then .lenDac)<Dcb.1 byA3,2XXREAL_0:1java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
  0 < card J2;
then    <  A13,REAL_1java.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45
  then
A14:  card I in dom pJ by AFINSQ_1:66;
A15: card SS = 1 by AFINSQ_1:34;
A16: card J2 = 1 n
    .= card J + (1 + card SS);
  then card J + 1 < java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 12
  then
A17:  (card J + 1) in dom J2 by AFINSQ_1:66;
  card pJ = card I + card J + 1 + 1 by A13,A16,A15;
  then card I + card J + 1 < card pJ by NAT_1:13;
  then
A18:  (card I + card J + 1) in dom pJ by AFINSQ_1:66;

A19:  P2/.IC Comput(P2,s2,LifeSpan(P1,s1))
 = P2.IC Comput(P2,s2,LifeSpan(P1,s1)) by PBOOLE:143;
A20: CurInstr(P2,Comput(P2,s2,LifeSpan(P1,s1)))
 = P2.card I by A1,A2,A5,Th20,A19,A3

    .= P2. card I
    .= pJ. card I by A14,FUNCT_4:13
    .= (I ';' J2).(0+card I) by A12
    .= goto (card J + 1) by A11,A8,AFINSQ_1:def 3;
A21:now
    let a;
    thus Comput(P2, s2,LifeSpan(P1,s1) + 1).a
       = (Following(      (a.(k+1) = (a.k b.)2& b.(k+1) = b.k)) byA2;
       thesis by ,Th8;
  end;
A22:  P2/.IC Comput(P2, s2,LifeSpan(P1,s1) + 1)
 = P2.IC Comput(P2, s2,LifeSpan(P1,A6:for kbeNat  P[k]from NAT_1sch2A3,4;
 by PBOOLE:143;
  thus IC Comput(P +* pJ, s2,LifeSpan(P1,s1) + 1)
 Following(P2,sm) by EXTPRO_1:3
    .= ICplusConst(sm,card J +1) by A20,SCMPDS_2:54
    .= (card I + (card    ex i  Nat  i = k& a. = b.iby ;
    =c  +  );
  then
A23: CurInstr(P2,
       Comput(P2, s2,LifeSpan(P1,s1) + 1))
 = P2. (card I + card:   <  byFINSEQ_325java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
  + 1) by A22

              /asnon  FinSequence REAL A9,:;
    . J+1)) by A12
    .A13:    Dac()=upper_boundby  2java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
  DataPartComput(P11  dom/1 by,FINSEQ_332; then
sm by A1,A2,A4,Th16;

  A14: (cb^)1=.11  A12,FINSEQdef1java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
DataPart Comput(P +*          dom (cb/  java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 45

  thus
A24:
    =   Th1
    let k be Element of NAT;
    assume
A25: k <=^D/     
    per cases;
    suppose
(P1)java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
CurInstrComputk > by A1A2,Th19,;
      hence CurInstr(P +* pJ,Comput(P +* pJ,s2,k)) <> halt SCMPDS
       byA4:fori  Natholds

java.lang.StringIndexOutOfBoundsException: Range [9, 4) out of bounds for length 8
    seendjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
      LifeSpan(P1,s1) <= k;
      henk =LifeSpan,) by ,XXREAL_0:;
      hence CurInstr(P +* pJ,Comput(P +* pJ,s2,k)) <>
       halt SCMPDS by A20;
    java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
    forIac  f,
      java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 27
   Ijava.lang.StringIndexOutOfBoundsException: Range [18, 15) out of bounds for length 33
  thus
A27:  java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 39
  
    let k beDcb= 

    assume
    CurInstr(P2  .  java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 32
     = halt SCMPDS;
     i)<bi
    hence LifeSpan(P1,s1)+1 <=        proof
  end;  proof
  hence thesis by A23,hencejava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 33
end;

theorem java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 7
  for I,J being Program of SCMPDS,
      s being 0-started State of SCMPDS st I
  is_closed_on     java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
, & I '; A:Dcb.  ower_bound(cb);
proof
  let I,J be Program of SCMPDS,s be 0-started State of Subsetof  1by ORDINAL1def, (/1=len -  RFINSEQ ;
=java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 75
  =top I,P1= *+* P2   *,
  m=LifeSpan(P1,s), SS=Stop SCMPDS,
  s3= Comput(P1, s,m), s4= Comput(P2, s,      then  IntervalSequence2   
  P3= P1, P4 = P2;
 Subset of Euclid ;;
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 8
A3: I c= stop I by 
  pI c= P3 by FUNCT_4:25   upper_bound=lower_bound&
  java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
A4:  java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 73
A5: dom pI c= dom pJ by SCMPDS_5:13;
    = java.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15
  reconsider n = IC  java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
A6 COMPOS_1:55;
  assume
A7: I is_closed_on s,P;
  then IC s3 in dom pI by A1;
thenn   I  1 A6AFINSQ_1:66
  then
A8: n <= card I by A2:lower_bound =lower_bound  (ai1  a.  b.) b.+1i)java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
A9: pJ c= P2  FUNCT_4(I)
A10: pJ =I ';' (G ';' J) ';' SS
    .=I ';    consider a1 beReal that
  then I c= pJ by AFINSQ_1:74;
IPby,;
  then
    assumethat
  
A12:.0 =b.0and
  then
A13: P1 halts_on s by A1;
A14: P3/.IC s3
3. s3 byPBOOLE:java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
  /. s4s4
 = P4.IC s4 by PBOOLE:143;
  er cases;
  suppose
    IC s3 <>  card     (.(i+1) = (.i  b.i)/&bupper_boundI)
    then n < card I by A8java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 21
: . = .0by ;
A16: IC s3 in dom I by AFINSQ_1:66;
A17  =P1s    thus
      .=I.IC s3 by A4A9:b. = 0by;
      .=P4.IC s3 by        then a1 = bi aiby ,A2A3,;
      .(P4,s4) yA7A12Th16,A15;
    then
A18  end;
    hence IJ is_halting_on s,P by A2,A1;
    now
      let k be Nat;
set =IC (,k, C2k= (P2
, s,k);
        for a,b being Real_Sequence st
      
A19:    k <= m;
        C1kfor  being Nat holds
        then C1k in dom pJ by A5;
          indom       nd;
      end;
      suppose
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
set=LifeSpan <  =2byA71
A21:    m2 <= m by A17,A18,EXTPRO_1:def 15;
thenC2kIC ComputP2 ,m2        then C2k=IC Comput(P2, s,m2) 
          .=IC Comput  proof
        then C2k indom byA7          =x1 =b2 by,:java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
hence C2kin pJ byjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
      end;
    end
    hence thesis by A2,    (a.(i+1) = a.i & b.(i)=      nd;
  end;
  suppose
A22: IC s3 = card I;
    then
A23: IC s4= card I by A7,A12,Th16;
A24:  0java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 card SCMPDS=1  AFINSQ_134;
A26: JS =G ';' (J ';' SS) by         rI1, beingnon  Subsetof ,
    then
A27: card JS =card G + A2 P[0  being   I1,2being  ofI2 st
        +card( '; )COMPOS_1java.lang.StringIndexOutOfBoundsException: Range [16, 13) out of bounds for length 36
   
    then
A28:0indomJSiI
    card J + 1 < card JS by A27,NAT_1:13;
    then
A29:  (card         t r0;
    card pJ =      |^0 = 1byNEWTON:4;
      .= card I + card J + 1 + 1;hencethesis;
    then
A30: card I + card J + 1 <A3:for kbe       
    then
A31java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
A32:  P4/.IC s4
  k;
A33:    card pJ = card I + card JS by    lower_bound< upper_boundIacby BORSUK_4;then
0<card ;
 pJ by :,java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
    then
A34:  card I     lower_bound =java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 59
A35: CurInstr(      || 
      .= P2. card I
      .= (I ';' JS).(0+card I) by A10,A9,A34,GRFUNC_1:          r1> 0java.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
      .= JS. 0 by A28,AFINSQ_1:def 3
      .=      econsideri0 = +1 as     ,:9 java.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27
      .=goto (card Jby A1,h37;
card G + card JbyAFINSQ_1:17
      .=1 + card J by COMPOS_1:54;
    
A36: A7   r0 < 0 by  NEWTON:87;
      .=halt SCMPDS by Lm1,Lm2,AFINSQ_1b.i0- a.i0 <= rng  >{java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
:P2/IC Comput(2,,: java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
A38: IC Comput(P2,       .  1=Dcb1
      .= ICplusConst( Dac     .-.)2<  (.0a0r1)2by,XREAL_1;
     =( I +  set   #)
      .= (card             java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
    then
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 34
 = P2. (card I + card J + 1) by A37
     =( ; ).(ard+(ardJ+1)  A10A9A31,:java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
      .= halt SCMPDS     let  berng   Dac /rng  10F:;
    then
A40: P2 halts_on s by       then rng c \    assume java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
       Dacb  byjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
   java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
      let    r0 be java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 24
      set C1k=IC Comput(P1, s,k),:r0byA9java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 29
                       java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 56
      suppose
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 15
        C1k in dom pI by A7,A1;
        then  or , being Real_SequenceSbeing SetSequence    ;
        hence   a.0 <= b.0 & S  IntervalSequence(a,b) & (for i being Nat holds
      end;
      suppose

        m2LifeSpan(P2,s);A14  / (^  
java.lang.StringIndexOutOfBoundsException: Range [8, 2) out of bounds for length 43
        k >= m,be;
        then C2k
          A20     A domjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 33
A21:SegDcb^)=java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 57
      end;
    end;
    thesis         hence;
  end;
end;

java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 13
 for s1 being 0-started State of SCMPDS
  forIbeing  Program  java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
    st stop I c= P1 & I is_closed_on s1,P1
  for nDcb/ <>{ by ,A20;then
   ShiftDcb^ >{
        hencelimdiameter S           dom^1 FINSEQ_3:java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
,,)  P2i 
 CurInstr(P1,Comput(P1,s1,i)) =  +:   .0a<b0 a.by:;
  DataPart Comput(P1:;
proof
 let      proof
letIshiftable f;
  set SI=stop I;
  assume that
A1: SI c=P1and
A2: I is_closed_on s1,P1;
A3: Initialize          -a).i   a)bySEQ_1:10
  let n be Nat;
  defpred P[Nat] means IC .upper_boundbyA18bisdef2
. I A,19java.lang.StringIndexOutOfBoundsException: Range [65, 66) out of bounds for length 65
=CurInstrP2ComputPs,1  &
  DataPart Comput(P1,s1      end;
  assume that
A4: Shift(java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 8
A5  ;
:java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 30
  let i be Nat;
A7: DataPart Comput(P1,s1,0) =  be  empty java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 52
       java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 25
A8:  0   clusterjava.lang.StringIndexOutOfBoundsException: Range [37, 32) out of bounds for length 49
  then
A9:  (0 + n)         java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
A10:
   ..  by java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 13
    .  A1A8GRFUNC_1;
A11: P1        proof
A12: for k being Nat st P[           p  ;
  proof
    let k beNat;
    assume
A13[java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
der m= IC Comput(P1  prproof
    set i = CurInstr(P1,Comput(P1,s1,k));
: java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 69
l = IC(,k+a Nat
A15: IC Comput(P1              b0     be
    then
   domShift(I, VALUED_1:24;
A17:     then. s<r>.java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
A18: IC Comput(P1,s1,k) in dom SI:       2(b.-.0/ )=java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 6
A19 : P1/.IC A18        (2(.0-)p+1+0      X:8;
A20: i = P1.IC Comput(P1,s1,k) by A19
      .= SI.IC Comput(P1,s1,k) by A1,A18,GRFUNC_1:2;
    then
A21java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
i   ASd;
    hence
A23: IC Comput(P1,s1,k+1) + n = IC Comput(P2,rbeing   s1. s1<r  .
by A13,A14,A17,A21,SCMPDS_4:28;
A24:P1/.IC (P1s1,k+java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
 = P1.IC Comput(P1,s1,k+1) by PBOOLE:143;
A25: P2/.IC Comput(P2,s2,k+1)
 = P2.IC Comput(P2,s2,k+1) by PBOOLE:143;
CPC(1,1k+)  . by 
      .= SI.l by A1,A15,GRFUNC_1:2
      . .
    hence CurInstr(P1,Comput(P1,s1,k+java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 10
     = Shift(SI,n).(IC Comput(P2,s2then  =s1^<r>as
    by A23,A15,VALUED_1:def 12
,GRFUNC_1:
      .= CurInstr(P2,Comput(P2,s2,k+1))
       by A25;
    ,A14A17,,,CMPDS_4:8java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
  end;
A26 ICComputP1,s1,0) = IC  by:java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
         A1Tjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
    .=  0 by MEMSTR_0:def 11;
A27: omputjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A28
A29:  P2/.IC s2 = P2.   ,,I  non  closed_intervalA19:       <= mjava.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
1;
  CurInstr(P1,Comput(P1,s1,0))
   CurInstrP1)A27
    .= Shift(SI,n).(0 + n) by A8,A10,A30,VALUED_1hereby
    .= CurInstr(P2,s2) by A4,A5,               mbe Nat;
    .= CurInstr(P2Comput(P2,s2,))
     by A28;
  then
A31: P[0] by A5,java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 7
  for k being Nat holds P[k] from NAT_1:sch 2(A31,A12);
 ;
end;

rng  java.lang.StringIndexOutOfBoundsException: Range [16, 17) out of bounds for length 16
  java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 76
      J being Program of SCMPDS st I is_closed_on s,P & I is_halting_on s,P
h ; Goto(card java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 51
   = card I + card J + 1
proof
let  0A27:          |.S2.mjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 57
      I behalt Program of SCMPDS J be Program of
  ;
  set
ialize,
   G=Goto (card J + 1),
   P2      java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
A1:                     assumethat
  assume
:   ,  I is_halting_on              <>  by :;then
  then P2 halts_on s &:   >1
  then ICResult(P2,s) = IC Comput      lower_bound divset(,j)= .-1)&
    .= card I + card J + 1         upper_bound divset(D, . by A1A2,:def4;
         java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 55
end;

theorem 
  for s being 0-started State of SCMPDS,I being halt-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
SCMPDS, J being Program of SCMPDS st I is_closed_on s,P & I is_halting_on s,            ;
 holds
  (I ' Goto card  +1; ,,java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
 IP) (java.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 59
proof
    letrbe,pq FinSequence  REALREAL;
      I be halt-free Program of SCMPDS, J be Program of
  SCMPDS;
  set P1 = P +.  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
      m= LifeSpan r java.lang.StringIndexOutOfBoundsException: Range [32, 29) out of bounds for length 33
  P2 = P +*   for a,b being Real_Sequence     thesisbyA1java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
  l=  (card I + card J + 1);
  assume that
A1: I is_closed_on  (a.i)=a  i1  (.+iregistration
;
  Initialize s =  -
  then
P1 halts_on   
  P2 halts_on s & LifeSpan(P2,s) = m
   by A1,A2,Lm3;
  then
A4:java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 50
thenDataPart ResultP2) =DataPart  ;
by
java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 6
A5: DataPart Result(P2,sA4 S is non-java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
    limjava.lang.StringIndexOutOfBoundsException: Range [19, 16) out of bounds for length 37
  IC(P2  java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 37
    . =java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
  then
A6:     java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 54
  thus IExec(I ';' G ';' J,P,s) = Result(P2,s)
    . (s *(tart() A6
    .= IExec(I,P,s)  .0< .0&(for i  Natholds
end

theoremTh25java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
  for s being State of SCMPDS,I being halt-free     for i be Nat st i in dom s holds s.i in divset(D,i)
  SCMPDS st I is_closed_on s,P & I is_halting_on s,P
   holds IC IExec(I,P,Initialize s) =   kbeing  st-  
 proof
  let s be State of SCMPDS,I be halt-free Program of SCMPDS;
  set s1=Initialize s, P1 = P +* stop I;
  assumethat
A1: I is_closed_on s,P and
A2Ijava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 15
A3: P1 halts_on s1 by A2;
  (Pjava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 52
    .= IC Comput(P1, s1,LifeSpan(P1,s1)) by A3,EXTPRO_1:23
existence
end;



definition
  let a be Int_position,k be Integer; java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 64
let J Programof ;
   if=(a,kI,J)->ProgramofSCMPDS equals
  (a,k)<>0_goto (card I +2) ';' I ';' Goto (card J+1) ';' J;
,FUNCT_6:ef;
  func 
  (,<=_ card    by:1java.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27
  I ';' Goto (card J+1) ';set f =IntervalSequence(a,b);
  coherence;
 (k)>java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 48
  (a,k
  I ';' Goto (card J+1) ';' J;
  coherence;
end;

definition
  let a be Int_position,k be Integer;
  let I  then in a      java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 20
  func if=0(a,k,I) -> Program of SCMPDS equals
  ak< .  x0. [/[,sjava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
  coherence;
  func if<>0(a,k,I) -> Program of SCMPDS equals
(,<_;  cjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  IA14  forhence thesis;
  coherencehtin    endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  func >(a,,)->  SCMPDS
  (a,k)<=0_goto (card I +1) ';' I;
  coherence;
  func=0(  func if<=0(a,k
  (a,k)<=h39:
  1 ; I
  ;
   .1 .i,.. -java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 66
  (a,k)>=0_goto (card I +1)  then c in .aib.]by A10   =heset all.-,+../ .,.
  coherence;
  func if>0(a,k,I) -> Program of SCMPDS equals
  (a,k)>=0_goto 2 ';' goto (card
  I+1) ';' I;
  coherence;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

Lm4: card (i ';' I ';' Goto n ';' J) = card I + card J +    assume that
proof
to;

  thus card (i ';' I ';' G ';' J) =card (i ';' I ';' A2S   setof         Natstc- .  .  +java.lang.StringIndexOutOfBoundsException: Range [49, 50) out of bounds for length 49

    ;)java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 53
    .=card       .< . .         java.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
    .=      
    .=card I + card J +2;
end;

begin begin :: The computation of "if var=0 then block1 else block2"

theorem
java.lang.StringIndexOutOfBoundsException: Range [37, 2) out of bounds for length 51

theorem
    domif0ak1,)&1in f(,,J
proof
  set ci=card if=0(a,k1,I,J);
  ci=card I + card J +2 by Lm4;
    =by:;
  then 1 < ci by XXREAL_0:2;
  hence byAFINSQ_1:66;
end;

Lm5then a -  a.m0< b.m0 -a.m0 by XREAL_1:9;
proof
:then |b.  a..|  m0-a by ABSVALUEdef 1;
  i ';' I ';' J ';' K =i ';' (I ';' J) ';' K by SCMPDS_4:14
    =' I''J'K bySCMPDS_4:14
    .=Load i ';' (I ';' J ';' K);
then .S.m0- |=b. a0 ,3,;;then
    .=i;
end;

theorem
  if=0(a,k1,I,J). 0 = (a,k1      -am0<=    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8

Lm6: java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 42
proof
  hence thesis  TOPMETR1java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
  cardLoad   end;
  then
A1: Shift(pI,1) c= piI by Th5;
  piI c= P3 by FUNCT_4:25;
  then  b.m0 -c < b.m0 - a.m0   [r,s,.,infty,
  hence thesis;


() +* ( ; e.. / .[,s 
proof
  set pI  xis Elementof[.,.] holdsSis open
  card (i ';' j)=card (Load i ';' Load j)
    .=card Load i + card     let jauge be Function of
    .=1+ card Load j bybegin :: Tagged division
        S  SubsetFamily ofClosed--TSpacer);
  then
A1: Shift(pI,   assume that
  pjI c= P3 by FUNCT_4:25;
  then Shift(pI,2A1:  = s java.lang.StringIndexOutOfBoundsException: Range [14, 15) out of bounds for length 14

end;

theorem Th29:
  for s being 0-started Statedefinition
  SCMPDS   Int_positionk1
is_closed_on                 java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 32
 & if=0:     java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
proof
  let s be 0-started State of SCMPDS, I,J be shiftable Program of SCMPDS, a be
  Int_position,k1 be Integer;
  set b=DataLoc(s.a,k1);
  assume
A1: s.b = 0;
  set i = (a,k1)<>0_goto (card I + 2)    java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 58
  set G=Goto (card J+1);
  set  [r,.]  non emptyby ,:30;
   pI2=stop I2, P2then .s.];
  s4 = Comput(P3,s,1),
  P4 = P3;
A2: Initialize s = s by MEMSTR_0:44;
   then
A3: IC s = 0 by   inXK  ,A4XBOOLE_0 4
A4: IF = i ';'        thenconsider r0 beReal such 
    .= i ';' I2 by SCMPDS_4:14;
  then
A5: Shift:Balltrr)= XKb JORDAN6:,TOPMETR1TOPMETR: ;
A6: Comput(P3, s,0 + 1) = Following(P3,Comput(P3,s,0)) by EXTPRO_1:3
    .= Following(P3,s) by EXTPRO_1:2
    .= Exec(s by Th3,2;
  for a holds s.a= s4.a by A6,SCMPDS_2:55;
  then
A7: DataPart s = DataPart s4 by SCMPDS_4:8;
DataLoc(.ak1=sb
    .=0 by A1;
  then
A8: IC s4 = IC s + 1 by A6,SCMPDS_2:55
1) ;
A9:  0 in dom pIF by COMPOS_1:36;
 
A10: I is_closed_on s,P;
e
A11: I is_halting_on s,P;
  then I2     hence thesis by TOPS_2:def1java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
    ex be non  nondecreasing FinSequence of  st    ex s be non empty non-decreasing FinSequence of REAL st 
forjauge being of[rs,]0,.[,
A13:I2 is_closed_on sP by A10A11Th21
  then
A14: Start-At(0,SCMPDS) c= s & I2 is_closed_on s,P2 by A2,FUNCT_4for   st  in  s      the all]x-augex,jauge.[/[.s]here
A15: card pIF = card IF +1 by COMPOS_1:  x    S   
    . card  +1+by ,
A16:  stop I2 c= P2 by FUNCT_4:25;
  ow
be Nat;
    per cases;
    suppose
       <k;
      then    c=REAL*by A1;
    1 =  by NAT_1:6java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
      reconsider java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 27
rjava.lang.StringIndexOutOfBoundsException: Range [20, 18) out of bounds for length 48
  pIF pI2 C5;
       m in dom pI2 by A13,A2;
      then m < card pI2 dom s domD &
      thenfori  sti in    proof
A19:  m+1 < card pIF by A18,XREAL_1:6;
     IC Comput(P3,s,k) = IC      X  -java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 53
        .=      then c  be java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 54
A4 for  be Nat st i inA2     ]xjaugex0.  [,s.  A1
    ;
    suppose
      k = 0;
      hence IC Comput(P3,s
    end;
  end;
  hence IF is_closed_on s,P by A2;
A20: Comput(P3,s,LifeSpan(P2,s)+1)
 = Comput(P3,Comput(P3,s,1),LifeSpan(P2

by EXTPRO_1:4;
  CurInstr(P3,ex s be non emptyFinSequenceof st
   =CurInstr(P4,    x  s&
    .java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 71
    .for ibent  [rs] holds
  thenforICbeing 
   by A2;
end;

theorem Th30:
  of java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 63
shiftable   len IC impliesdom&
  s. beNatjava.lang.StringIndexOutOfBoundsException: Range [47, 16) out of bounds for length 76
  , =k1 java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 53
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  let IC,]*) not .] S implies
     Int_positionk1  Integer    eexpReal   p&     1=[.p. java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58

  set pJ=stop J, s1 =      st<  <  ex p beingi)  ;
  IF=ifr< p    &q=s&IC.n =.,. java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
  stop IF, s3 = java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 8
  s4 = Comput(P3,s3,1), P4 = P3;
   (,)0oto  2)
  set G =Goto  assume that
A1: IF =    proof
    .= i ';' (I ';' G ';' J) by SCMPDS_4:14;
A2: Comput(P3, s3,0 + 1) = Following(P3,Comput(P3,s3,0) x  of.,]      xin;
.:2
    .= Exec(i,s3) by A1,Th3;
-(SCMPDS :;
  not a in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  then
A4: s3.DataLoc(s3.a,k1)=s3.b by FUNCT_4:11
    .s by java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
A5: IC s3 = 0 by MEMSTR_0:47;
  assume
  s.b <> 0;
  then
A6: IC s4 = ICplusConsttheorem Th42:
    .= (0+(card I + 2)) by A5,Th4;
  assume
A7 is_closed_on,P
 then
A8r< x - x +  =implies
A9: pIF c= P3     ,java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 49
A10: card iG = card (i ';' I) + card G by   r < java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    .=card (i ';' I) + 1  (-t r&x+< implies ].x-t,x+t.[ /\ [.r,s.   Abeing   REAL
    .= I +  roof
    .=card I +(1 +1    rsx  
  then     let A be emptyjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 10
  then
A11:   A;
  assume
  is_halting_on ,P;
  then
    proof
  for      
  then
        let u  object;
A14:  pJ c= P1 by FUNCT_4:25;
  now
  let  be;
    per cases;

      0 < k;
then consider k1  Natthat
A15:  k1 + 1 = k by NAT_1:6;
      reconsider,:; 
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
       m in dom pJ by A7java.lang.StringIndexOutOfBoundsException: Range [17, 12) out of bounds for length 17
      then m A4:  <         per cases by XX;
      then
A16A5:   s  x+t
A17:  card pJ byA3A,6   x-,xt. \[r,.= ]x-,s.]
A18:  card pIF = card IF+1 by COMPOS_1:      
         +J1 AFINSQ_1:17
        .=card I +2 + card pJ         hence by A3,A,INTEGRA1:def ;
      IC ComputA7:     u in ].x-t,x+t.[ .      end
        .=       .-t ujava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 58
      hence ICreconsider u1 = u as Real by A7;
    endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
      k =         Th35:
      then Comput(P3,s3,k) = s3 by EXTPRO_1:2;
      hence IC Comput(P3,s3,k) in dom pIF by A5,COMPOS_1:36;
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  end;
  hence IF  proof
A19:ComputP3s3,LifeSpan(,s1lbe ;
= Comput(P3,Comput(P3,s3,1),LifeSpan(P1,
s1))
 A1: = [.a.]
  CurInstr(P3,
  Comput(P3,s3,LifeSpan(P1,s1)+1))
(java.lang.StringIndexOutOfBoundsException: Range [16, 17) out of bounds for length 16
Comput(,LifeSpan(1s1) by java.lang.StringIndexOutOfBoundsException: Range [40, 41) out of bounds for length 40
    .=CurInstr(P1,
 byA8java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 60
    .= halt SCMPDS by A12,EXTPRO_1:def 15;
thenhalts_on  :29;
  hence thesis;
end;

theorem Th31assume x 
  for s being              { byFINSEQ_1:39
Program of SCMPDS      then x    ;
  being java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 10
 s,
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
=(Is)*Start(  +J+2))
proof
  let s be 0-started State of SCMPDS,
I free    be
  shiftable Program of SCMPDS,a be Int_position,k1 be Integer;
  set b=DataLoc(s.a,k1);
  assume

  set i = (a,k1)<>0_goto (card I + 2);
  set G=hence thesis by A3,A14:    u in ].x-t,x+t.[  .,s.XBOOLE_0: 4;
  set I2 = I ';' G ';' J,  =
    r< + Xjava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 51
  P2 = P +* pI2, P3 = P +* stop IF,
  s4 = Comput(P3,s3,1),       end;
A2: Initialize s = s by MEMSTR_0:44;
  then
A3: IC s3       proof
A4: IF = i ';' (I ';' G) ';' J by java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 24
    .= i ';' I2 java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 14
  then
A5: Shift, c=P4by Lm6java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
:P30 )=Cjava.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 70
    .= Following(P3,s3) by EXTPRO_1:2
    .= Exec(i,s3) by A4,Th3,A2;
 DataLocs3.k=b
    .=0 by A1;

A7: IC s4 = IC s3 + 1 by A6,SCMPDS_2:55
    .= (0+1) by A3;
  for a holds s2.a = s4.a by A6,SCMPDS_2:55;
  then
:DataPart s4by SCMPDS_4:;
  set SAl=  T being Elementofset_of_tagged_Division(D) st
  assume
A9
  assume
A10: java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
  then I2 is_halting_on: -t  java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
  then
A11: P2 halts_on s2 by A2;
java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 37
  then
A12: Start-At(0, A1,XXREAL_1:29;
A13:  stop I2 c= P2 by FUNCT_4:25;
A14: Comput(P3,s3,LifeSpan(P2,s2)+1)
 = Comput(P3,Comput(P3,s3,1),LifeSpan(P2,s2))
by EXTPRO_1:4;
A15: CurInstr(P3,
Comput(P3,s3,LifeSpan(P2,s2)+1      hereby
=P,
 Comput(P3,s4,LifeSpan(P2,s2))) byhencebyjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 35
.P,
    Comput(P2,s2,LifeSpan(P2:i = 1 bydef1
    .= halt SCMPDS by A11,EXTPRO_1:def 15;
  then
16java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A17: CurInstr(P3,s3) = i A6     divset(B,1   java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 51
  now
   l beNatjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
    assume
A18: l < LifeSpan(P2,s2) + 1;
A19 java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 50
    per ;
       

      then     lower_bound XTt  XT= s java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
      CurInstr(P3s3)
       by A19;
      hence CurInstr(P3,Comput(P3,s3,l)) <>
       y ;
    end;
    suppose
       >0;
      then  nbe such that
  +java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 27
      reconsider         A12::;
A21:  n < LifeSpan(P2,s2) by A18,A20,XREAL_1:6;
      assume
A22:  CurInstr(      assume that
A23: Comput(P3,s3,n+1)
 = Comput(P3,Comput(P3,s3,1),n) 13:xt<rand
      CurInstr(P2,Comput(P2,s2A14  s<x+java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
       = CurInstr(P3,Comput(P3,s4,n))
       by A12,A5,      XT = [.r,s.] by[,. A13Th42
        .= halt SCMPDS by A20,A22,      hence lower_bound XT = r & uppe   A15,:19java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
      hence contradiction by java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    end;
  end;
  then for l be Nat st CurInstr(P3  for abbeingst   b is  
  Comput(P3,s3,l)) = halt SCMPDS
  proof
  then
:,s3)=panP2,)+ A15EXTPRO_115java.lang.StringIndexOutOfBoundsException: Range [70, 71) out of bounds for length 70
A25: DataPart Result(P2,s2) = DataPart Comput(P2, s2
,LifeSpan(P2,s2)) by A11,EXTPRO_1:23
    A  =java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
    .
by    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 7
    = Result
A26: now
    let object;
A27: dom SAl =        beingpositive-Fof,REAL I2 c=I1 
    assume
A3: indom s and
    per cases by A28,SCMPDS_4:6;
    suppose
A29:  x is Int_position;
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 41
en
A30:  not x in dom SAl by A27,TARSKI:def 1;
thus   st c in I hold
        .= (Result(P2,s2)).x by   [.lower_bound I, c.] is non empty Subset of REAL &
        .= IExec(I2,P,s).x
.=(IExec(P,) +* .byA30,FUNCT_4:          :def,,A4FINSEQ_12
    end         .   java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 67
java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
:  java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
A32:  IC Result java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 59
.T;
A33:  x in dom SAl by A27,A31,TARSKI:def 1;
   (,) P3).java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
=(s,(,  byA24:
        .= IC Comput(P3, s4,LifeSpan(P2,s2)) by   Daci< Dcb.j  Dcb.1=c Dac. Dac Dcb. Dac.i < Dcb.j) & (Dcb.1 = c implies Dac.len Dac = Dcb.1:19java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
        .= IC Comput(P2, s2,LifeSpan(P2,s2)) + 1
        by A12,5A7,,Th22A13
        .= IC Result(P2,s2) + 1 by A11,EXTPRO_1:23
        .= IC Start-At ((card I:a< <  and
        byA2java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 19
. ((letIac benonempty Subset REAL,
    end;
  end;
  dom IExec(IF,P,s) = the carrier of SCMPDS by PARTFUN1:def 2
    .A5:  in dom Dcbjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
hIExecIFP, = IExecI2P)+ SAl by ,FUNCT_12
    .= IExec(I,P,s) +* Start-At((card I+card J+1),SCMPDS)
    *Start-(card I+card Def4
    .= IExec(I,P,s  Dac ^ Dcb  Dcb.. A3,: ;
end;

theorem Th32:
bStateof, being  SCMPDS,Jjava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
    correctness
  st s.DataLoc(s.a,k1)<> 0 & J is_closed_on s,P & J is_halting_on java.lang.StringIndexOutOfBoundsException: Range [0, 67) out of bounds for length 7
   holds IExec(if=0(      assume
  Start-At((card I + card J + 2),SCMPDS)
proof
  let s be State of SCMPDSA2:   .1n dom  by FINSEQ_1: 33; 
          domDac byFINSEQ_1:3;
  set b=DataLoc(s.a,then Dac.i < c byjava.lang.StringIndexOutOfBoundsException: Range [32, 2) out of bounds for length 60
  set pJ=stop J, s1 = Initialize s, P1 = P +A5   hence Dac. <cb A7,XREAL_0:2;
  P2 = P +*   end;
  IF=if=0(a,k1,I,J), pIF=
stopIFs3 = Initializes P3  P +pIF,
  s4=Comput(3,s3,) P4  P3;
  set i = (a,consider
  set G =Goto (card J+1),A9   i= len &c<Dcb;
   J+2),CMPDS)java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
A1 IF=i ''      c = b by A7,,XXREAL_1:29java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
    =i'' (I ''       in len ,FINSEQ_1 3
A2: Comput(P3, s3,0 + 1) = Following(P3,Comput( thenj =1or.. or j = len Dcb  FINSEQ_1:91;
    .= Following(P3,s3) by EXTPRO_1:2
    .= Exec(i,s3) by A1,Th3;
A3: not b in dom      suppose j 1;
  not a in dom Start-At(0,         thesisbyA9,A6;
  then
A4: s3.DataLoc(s3.a,k1)=s3.b by FUNCT_4:11
    .= s.b by A3,FUNCT_4:11;
A5: IC s3 = 0 by MEMSTR_0:47;
  assume
      now
  then
A6: IC s4 = java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 10
cardI +    end;
  for a holds s1.a= s4.a by A2,SCMPDS_2:55;
  then
A7: DataPart s1 = DataPart s4 by SCMPDS_4:8;
   ( ;  java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 50
    .=card (i ';   >{} then
    .=card I +1 +1 by Th1
    .=theorem Th44:
  then
A8: Shift(pJ,card I+2) c= pIF by Th5;
  pIF c= P3 by FUNCT_4:25;
  then Shift(pJ,card   = =bIac[.         java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 28
  java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
A9:   ,java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 52
  assume
10:   ,P
  then
A11: java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
   Jc  byFUNCT_4:2;
  assume
A13: J is_halting_on s,        indom (/1)by ,FINSEQ_332;
  then
P1h s1java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
A15: Comput(P3A3: Icb=.c,.]
Comput(P3,Comput(s31),LifeSpan(P1,
)
 by:4;
A16: CurInstr(P3,
Comput(P3,s3,P,A:   java.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
=P3
 Comput(P3,s4 byFINSEQ_1:34;
    .=java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 8
   ComputP1,LifeSpan(P1s1))  A11A9A6A7Th22java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
    .= halt SCMPDS by A14,EXTPRO_1:def 15;
  then
A17: java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 6
 CurInstr(P3,s3  end;
  now
    let l be Nat;
    assume
A19: l < LifeSpan(P1   ,,  ,,acclosed_intervalSubset of ,
A20: Comput(P3,s3,0) = s3 by EXTPRO_1:2;
perc;
    suppose
      ac  Division ,,Dcbeing Division of Icbst c < 
CurInstr,P,l)java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
       = CurInstr(P3,s3)
by
      hence CurInstr(P3,Comput(P3,s3,l)) <>
       halt SCMPDS by A18;
   
    suppose
      >java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
      java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
A21:  l = n + 1 by NAT_1:6;
      reconsider n as Nat;
 A19A21XREAL_16
      assume
:(,l)=halt
A24: Comput(P3,s3,n+1) =
Comput(P3,Comput(P3,s3,1),n) by EXTPRO_1:4;
     (,Comput(,
s1,n))
       =CurInstrjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Range [14, 8) out of bounds for length 12
        .= pose
      hence java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 7
    end;
  end;
  then for l be Nat st CurInstr(P3,
  (s3,)=haltSCMPDS
  holds LifeSpan(P1,s1) + 1_bound(I1) andn0 in dom Dcb and
  then
A25: ifeSpanP3s3)= LifeSpan(P1,s1) + 1A16      len Dac =  by ,NAT_1:11;
A26: DataPart Result(then < by :1java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
,: lower_boundI1= a1&upper_bound   b1 byA4,ORDAN5A:9java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
    .= DataPart ComputA7 I2  .b2.]byMEASURE5A21:e2=len  + java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
    by A11,A9,A6,A7,Th22,A12
P1, +1
    by EXTPRO_1:4
    .= DataPart Result(P3,s3) by A17,A25,
A27: now
x be ;
A28: dom SAl = {IC SCMPDS} by FUNCOP_1:13;
    assume
A29: x in dom IExec(IF,P,Initialize s);
rbyA29;
    suppose
A30:   Int_position
      then x <> IC SCMPDS
      then
A31:  notA10:b1<=a2 by A6,,A8A7,JORDAN5A:19;
      thus IExec(IF,P,Initialize s).x = (Result(P3,A25:x  rng;
        .= (Result(P1,s1)).x A26:    rng Dac c= [.a,c.] by Ad java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
        .= IExec(J,P,Initialize s).x
        .= (        then (rng)\ rngDcb) c= [.ac]\[c,.13A26
    end;

A32:  x = IC SCMPDS;
A33:  IC         Dacb c .,b] by A1,XREAL_1:java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
        .=  (card J) by A10,A13,Th25;
34:x  SAl  ,A32TARSKI: 1;
      thus IExec(IF,P,Initialize s).x = (Result(P3,s3))      .(enjava.lang.StringIndexOutOfBoundsException: Range [32, 20) out of bounds for length 32
        .=len     a3bbe such that
        .= IC Comput(P3, s4,LifeSpan(P1,s1)) by A32,EXTPRO_1:4
        .=          Dacb.len)=.len   A29A28,:ef7
                A11,A9,A6,,Th22,
        .= IC Result(P1,s1) + (card I +    a3 = b3  A11,XXREAL_1:29 then
        .= ICStart-At (cardJ+ (card. pper_bound a,.] byA27,ORDAN5A:19
        .= (IExec(J,P,Initialize hence thesisby;
    end;
  end;
   IExecIF,, )=   java.lang.StringIndexOutOfBoundsException: Range [0, 54) out of bounds for length 21
    .= dom (IExec(J,P,Initialize s) +* SAl) by PARTFUN1:def 2;
  hence thesis by A27,FUNCT_1:2;
end;

registration
  let I,J be shiftable parahalting Programfor , being ,Iab being nonempty closed_interval  ofREAL st
  Integer;
  cluster if=0(a,k1,I,J) -> shiftable parahalting;
  correctness
  proof
    set i = (a,k1)<>0_goto (card I + 2), G =Goto (card J+1);
    set IF=if=0(,k1,I,J;
    reconsider IJ=I '
    thus IF is shiftable;
      let s be 0-started State of SCMPDS;
      let P be Instruction-Sequence of SCMPDS;
A1:  Initialize s = s by MEMSTR_0:44;
assume stop IF = ;
      then
A2:   P = P +* stop IF by FUNCT_4:98;
A3:   J is_closed_on s,P & J is_halting_on s,P by Th11,Th12;
A4:   I is_closed_on s,P & I is_halting_on s,P by Th11,Th12;

      suppose
        s.DataLoc(    assume
        then IF2-1<len Dab-1  A1,:3;
        hence P halts_on s by A1,A2;
      end;
      suppose
        s.DataLoc(s.a,k1) <> 0;
        then IF is_halting_on s,P by A3,Th30;
        hence P halts_on s by A1,A2;
      end;
  end;
end;

registration
  let I,J be halt-free Program of SCMPDS, a be Int_position,k1 be Integer;
  cluster if0(ak1,I ExtReal;
  coherence;
end;

theorem
  for s being 0-started State of SCMPDS,I,J being halt-free shiftable
  parahalting Program of SCMPDS,a being Int_position,k1 being Integer holds IC
   java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 56
proof
java.lang.StringIndexOutOfBoundsException: Range [33, 2) out of bounds for length 37
      I,J be halt-free shiftable parahalting Program of
  SCMPDS,a be Int_position,1beInteger;
  set IF=if=0(a,k1,I,J);
:  is_closed_on sP& is_halting_on , by Th11Th12;
A2: I is_closed_on s,P & I is_halting_on s,P by Th11,Th12;
A3: Initialize s = s by MEMSTR_0:44;
  hereby
    per cases;
    suppose
      s.DataLoc(s.a,k1) = 0;
      then
-At(( +cardJ),CMPDS)
      by A2,Th31;
      hence thesis by FUNCT_4:113;
    end;
    suppose
      s.DataLoc(s.a,k1) <> 0;
      then
      IExec(IF,P,s) = IExec(J,P,s) +* Start-At((card I+card J+2),SCMPDS)
      by A1,Th32,A3;
      hence  byFUNCT_4:java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
    end;
  end;
end;

theorem
  for s being        then b1 <= x1 <= b2 by A10,XXREAL_0:2;
  Program of SCMPDS,J      hence thesisby A5;
   being  end;
   IExec(if=0(a,k1,I,J),P,s).b = IExec(I,P,A13:rng cIab
proof
  let s be 0-started State
      I be halt-free shiftable parahalting Program of
  SCMPDS,J be shiftable Program of SCMPDS,a,b be Int_position, k1 be Integer;
  ssume
A1: s.DataLoc(s.a,k1)=0;
A2: not b in domhence thesis by ;
  I         then lower_bound end;
          in  by A12,A11Dlen)=upper_bound 
  IExec(if=0(a,k1,I,J),P,s)     proof
   +* Start-At((card I + cardend
  ;
end;

theorem
  for sbeing State  SCMPDS, beingProgramof SCMPDS, being
  halt-free parahalting shiftable Program of SCMPDS,a,b being Int_position,k1
being Integer st s.DataLoc(s.a,k1)<> 0 holds
=(,,I,,b  IExecJ,, s.b
proof
  let s be State of SCMPDS. , java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 72
proof
  assume
A1:  let  , benon closed_intervalSubset  REAL;
A2: not b in dom Start-At((card I+card J+2),SCMPDS) by SCMPDS_4: assume 
  J      jauge  yielding of.,,  java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
  then
  IExec(ifjava.lang.StringIndexOutOfBoundsException: Range [10, 7) out of bounds for length 7
   = IExec(J,P,Initialize s) +* Start-At((card I + card J
+ 2)SCMPDS)by,;
  hence thesis by A2,FUNCT_4:11;
end;

begin :: The computation of "if var=0 then block"

theorem
  card if=0(a,k1,I) = card I + 1 by Th1;

theorem
   0 in dom if=0(a,k1,I)
proof
  set ci=card if=      let  be 
  ci=card I + 1 by Th1;
    in. ;
end;

theorem
  if=0(a,k1,I). 0 = (a,k1)<>0_goto (card I + 1)     end;

theorem :
  for s being State of SCMPDS, I being shiftable Program of SCMPDS
  , a being Int_position,k1 being Integer st s.DataLoc(s.a,java.lang.StringIndexOutOfBoundsException: Range [0, 61) out of bounds for length 41
is_closed_on s,P & I is_halting_on s,P holds if=0(aA10:  Dacb=Dac ^Dcbby ,Def4;
0(,k1,I is_halting_on s,P
proof
  let s be State of SCMPDS, I be shiftable Program of SCMPDS, a be
 ,  Integer
  set b=A11:  rng Dacb c= I by A5;
  assume
A1 .b  0;
  set i = (a,k1)<>0_goto (card I + 1);
IF,pIstop I,
  s2 = Initialize s, s3 = Initialize s,
  P2 = P +* pI, P3 = P +* pIF,
 =Comput(,s3),  = ;
A2: IC s3 = 0 by MEMSTR_0:47;
A3: not b in dom          =domtjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
thus  Natsti1indom  in  holds
    .= Following(P3,s3) by EXTPRO_1:2
    .= Exec(i,s3) by Th3;
  for holds s2.a = s4.a by A4,SCMPDS_2let  beNat
  then
:DataPart   DataPart s4  SCMPDS_4:8;
 not in  -t(,)by :
  then s3.DataLoc(s3.a,k1)=s3.b by FUNCT_4:11
.=by,,FUNCT_41
  then
:IC          java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
    .= (0+1) by A2;
  assumeA16:  rngDacb c=Iby A5;
A7: I is_closed_on s,P;
  then
A8: I is_closed_on s2,P2;
  ssume
  I is_halting_on s,P;

A9: P2 halts_on s2A     cases;
A10:  0 in dom java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 13
A11: Start-At(0,SCMPDS) c= s2 & Shift(pI,1) c= P4 by Lm6,FUNCT_4:25;
        then Dcb/^1 is empty by FINSEQ_5:32; then
A13: card pIF = card IF +1 by COMPOS_1: then t.i in [.a,b.] by A1,XXREA:1;
    .= card I +1+1 by Th1;
  java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    let k be Nat;
    per cases;
    suppose
      0 < k;
nsider k1 beingNat  that
A14:  k1 + 1 = k by NAT_1:6;
      reconsider k1 as Nat;
 Comput(,      reconsider m = IC Comput(P2, s2
A15:  card pIF = card pI+1 by A13,java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 8
A5:b UpperBound[ab :;
      then m < card pI by AFINSQ_1:66;
      hen
A16:  m+1 < card pIF by   A22:    len (Dcb1  cb-  A18,RFINSEQdef1
      IC Comput   realmemberedA3,,XREAL_2: 10;
          A5A
      ICComputP3
    end;
    suppose
      k  ;
      hence IC Comput(P3,s3,k) in dom pIF by A10,A2,EXTPRO_1:               per  :1;
            java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
  end            4;
  hence IF is_closed_on s,P;
A17: Comput(P3,s3,LifeSpan(P2,s2)+1)
,Comput(,31,(P2
,s2))
 java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 15
  CurInstr(P3,
  Comput(P3,s3,LifeSpan(P2,s2)+1))
   =CurInstr(P3,
   Comput(P3,s4,LifeSpan(P2,s2))) by A17
    =CurInstr(2,
    Comput(P2,s2,LifeSpan(P2,s2))) by A8,A11,A6,A5,Th22,A12
.,: 15java.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
then P3 A9 c  jauge.   byXREAL_1,PARTFUN3::def1;
  hence thesis;
;

theorem Th40:
forend;
  Int_position, k1 being Integer st s.DataLoc(s    end;
  is_closed_on send
proof
java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 74
  Integer;
  =DataLoc(sak1)
  assume
 java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
  set ijava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 60
  set IF=if=0(a,k1,I), pIF T0 emptyof that
  P3 = P +* pIF,
  s4 = Comput(P3,s3,1), P4 = P3;
A2: IC s3 = 0 by MEMSTR_0:47;
A3: not b in dom Start-At(0A13bis  T0.  
  not  in Start-AtA14   java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 24
 
.by :
    .=. by A3FUNCT_411java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  A16: (for i be Nat st i inlet be  empty increasing FinSequenceof ,
     (s3 EXTPRO_1
    .= Exec(i,s3) byjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 23
 T1T0<>java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 24
ICjava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 59
    .= (0+(card I + 1)) by A2,Th4;
A6: card IF=card I+1 by Th1;
      per ;
(I1)in dompIF 
A8:  P3/.IC s4
 = P3.IC s4 by PBOOLE:143;
  pIF c= P3 
  then pIF c= P4;
  pIF(I+1) by A7,java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 13
    
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 6
A9: CurInstr(P3,s4) = halt SCMPDS by 
  now
   let  beNat;
    per cases;
           cin [.a,b.]by java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
            < k;
      then 1+0 <= k by INT_1:7y:16                 non  increasing  java.lang.StringIndexOutOfBoundsException: Range [74, 75) out of bounds for length 74
      hence IC Comput(P3,s3,k) in dom pIF by A7,A5,A9,EXTPRO_1:5;
    end;
    takeT2
      k = 0;
      then Comput for   by :32java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
      hence IC Comput(P3,s3,k) in dom pIF by A2,COMPOS_1:36;
    ;
  end;
  hence java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 67
halts_on  E:java.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35
   thesis;
end;

theorem Th41:
for   of,beinghaltfree 
Program of SCMPDS, a being Int_position,k1 java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 31
0 & I is_closed_on              D2len  =java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
 IExec(if=0(a,k1,I),P,Initialize s) = IExec(I,P,Initialize s)
  +* Start-At((card I+1),SCMPDS)
proof
  let s be State of SCMPDS,I be halt-free shiftable Program of SCMPDS, a be
  Int_position,k1 be Integer;
  set b=DataLoc(                       SeglenbyFINSEQ_1 3;
  assume
A1 .java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 12
  set i = (a,k1)<>0_goto (card. ( T0 len c>  ,:
  set IF=if=0(a,k1,I), pI=stop I, pIF = stop IF,
  s2 = Initialize s, P2java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 34
  s3 = Initialize =dom  A23:
  s4 = Comput(P3, s3,1), P4 = P3;
A2: IC s3 = 0 by MEMSTR_0:47;
A3: not b in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
A4: Comput(P3, s3,0 + 1) = Following(P3,Comput(P3,s3,0)) by EXTPRO_1A3   I1 = [.lower_bound I1,upper_bound I1.] by INTEGRA1:4; then
    .= Following(P3,s3) by A4:lower_bound I1 <= upper_bound java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 26
    . Execi  1 inT0  ex be Nat n1 in <c*)
  -At(,) 18java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
s3s.,k1=b byFUNCT_4
    .=0 by A1,A3,FUNCT_4:11;
  then
A5: IC s4 = IC s3 + 1 by A4,SCMPDS_2:55
    .= (0+1) by A2;
  for a holds s2.a = s4.a by A4,SCMPDS_2:55;
  then
: s2=   java.lang.StringIndexOutOfBoundsException: Range [43, 41) out of bounds for length 44
  assume
A7: I is_closed_on n1inSeg1 ,:
  then
A8: I is_closed_on s2,P2;
   SAl          1byTARSKI1INSEQ_12
A9: Start-                    Divisionofholds
A10:25;
  assume
 is_halting_on,P;
  then
A12proof
A13: Comput(P3,s3,LifeSpan(P2,s2)+1)
P3s3)Ljava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
,s2))
yEXTPRO_14java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
A14:     rng D< {;
Comput(P3,     suppose
trP3,
       u divsetD)=.  def4
    .Cjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 18
    Comput(P2,s2,LifeSpan(                   i-jaugeTi=D0(-) =. byA40A15java.lang.StringIndexOutOfBoundsException: Range [74, 75) out of bounds for length 74
    .=                  hence T2jauge.(.i) (-1)= T2java.lang.StringIndexOutOfBoundsException: Range [63, 64) out of bounds for length 63
  then
A15: P3 halts_on s3 by EXTPRO_1:29;
A16: CurInstr(P3,s3) = i by Th3;
  now
    let l be Nat;
                       =lenT0+2
A17: l < LifeSpan(P2,s2) + 1;
:ComputP3s30 java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 40
    per cases;
   suppose
      l = 0;
     then (,(,s3,))
       = CurInstrjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
       by A18;
      henceCurInstr( byXREAL_113
       halt SCMPDS by                   hence T2 (  <r ^ q  len +   java.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
    end;
    suppose
      l <> 0;
      then consider n:len(p **                 n0be  indom()      
A19:  l = n + 1 by                 then consid Nat
            
:  ( hereby   ;
      assume
)   ;
A22: Comput(P3,s3,n+1)
=Comput,Comput(,,1,n)byEXTPRO_1:4;
      CurInstr(P2,Comput(P2,s2,n)) =
      CurInstr(P3,Comput(P3,s4,n)) by A8,A9,A5,A6,Th22,A10
        .= halt SCMPDS by A19,A21,A22;
      hence contradiction by A12,A20,EXTPRO_1:def 15;
    end;
  end;
  then  lbe   CurInstr(,
  Comput(P3,s3,l)) = halt SCMPDS
  holds LifeSpan(P2,s2) + 1 <= l;
        end;
A23: LifeSpan(P3,s3) = LifeSpan(P2,s2) + 1 by A14,A15,EXTPRO_1:def 15;
A24: DataPart Result(P2,s2) = DataPart Comput(P2, s2
,                 n0beNat such java.lang.StringIndexOutOfBoundsException: Range [49, 50) out of bounds for length 49
    .= DataPart Comput(P3, s4,LifeSpan(P2,s2)) by A8,A9,A5,A6,Th22A51:             =  +n0java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
    .= DataPart Comput(P3, s3,LifeSpan(P2,s2) + 1)
byEXTPRO_1:java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
    .= DataPart Result(P3,s3A54:n0  Seg A50FINSEQ_1:ef;then
A25: now
    let x be                  by 2: 1
A55            . =<**. by A53A51,INSEQ_1:ef7java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
assume
A27: x in dom IExec(IF,P,Initialize s);
    per A56:i  D0 A542: 1java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
    suppose
A28:  x is Int_position;
      then x <> IC SCMPDS by SCMPDS_2:43;
      then
A29:  not x in dom SAl by A26,TARSKI:def 1;
      thus IExec(IF,P,Initialize s).x = (Result(P3,s3)).x
        .= ( dom   .,.: java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
.IExec,P,java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 36
  +)byjava.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 64
    end;
    java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
A30:  x = IC SCMPDS;
A31:  IC Result(P2,s2) = IC IExec(  T2.i< D2i< T2. + jauge(2i
        .=  card I by A7,A11,Th25;
A32:  x in java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 6
      thus IExec(IF,P,Initialize s).x = (Result(P3,s3)).x
        .= Comput(P3, s3,LifeSpan  et be    end;
        .= IC Comput(P3, s4,LifeSpan(P2,s2)) by A30,EXTPRO_1:4
        .= IC   func division_of(TD->Division ofImeans
        by A8,A9,A5,A6,Th22,A10
        = P2s  E:java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
           ;
        .= (IExec(I,P,Initialize s) +* SAl).x by A30,A32,FUNCT_4:13;
    end;
  end;
  dom IExec(IF,P,Initialize s) = the carrier of SCMPDS by PARTFUN1:def 2
    . dom(IP, )+* SAl) by PARTFUN1:def2java.lang.StringIndexOutOfBoundsException: Range [62, 63) out of bounds for length 62
  hence D;
end;

theorem Th42:
  for s being State of SCMPDS,I being Program of SCMPDS,a being
Int_position, k1 being Integer st s.DataLocbegin :: Examples of Division
 holds IExec(if=0(a,k1,I),
proof
  let s be State of SCMPDS,I be Program ofjava.lang.StringIndexOutOfBoundsException: Range [0, 43) out of bounds for length 0

 bD(.k1);
  set IF=if=0(a,k1,I), pIF=stop IF,
  s3 java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 12
3,1 4=P3
  set   proof
  SAl-At((I+)S);
A1: IC s3 = 0 by MEMSTR_0:47;
dom-(,SCMPDS  SCMPDS_4:8;
  not a in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
A3: s3.DataLoc(s3.a,k1)=s3.b bythus
    . sb by A2FUNCT_4:11;
A4: Comput(P3, s3,0 + 1) = Following(P3  xisproof
   is CoverofClosedInterval-TSpace(r,s)
    .= Exec(i,s3) by Th3;
  assume
  s.b <> 0;
hen
A5: IC s4 = ICplusConst(s3 0 <jauge.c byA8,:ef1; 
    .= (0+(card I + 1)) by A1,Th4;
A6: pIF c= P4              =java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 45
A7:  P3/.IC s4
 = P3.IC s4 by PBOOLE:143;
A8: card IF=card I+1 by Th1;
    then;
  then P4.(card I+1) = pIF.(card I+1) by A6,GRFUNC_1:2
    .=halt SCMPDS D2 java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 76
  then
A9: CurInstr(P3,s4) = halt SCMPDS by A5,A7;
  then
     :29;
A11: CurInstr(P3,s3) = i                D2T2java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
  now
    let l               D0  ;
A12: Comput(P3,s3,0) =               then 1 in dom D0 by FINSEQ_3:      x0    byA3PARTFUN1:def 2;
    assume
    ;
    then l1java.lang.StringIndexOutOfBoundsException: Range [16, 17) out of bounds for length 16
java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 25
    then CurInstr(P3,Comput(P3,s3,l))
     = 1 in   :
    hence  then in <*> FINSEQ_1def 8;
     <> halt SCMPDS by A11;
  end;
 Nat CurInstr(,
  Comput(P3,s3, thesis by A5,TARSKI:def 4;
  holds 1 <= l;
   <;
  
s4 sA,23java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43

A15: dom SAl = {IC SCMPDS} by A71:          Seg len D0 = dom T0 by A14:def 
let;
     .=   T0 :def3;
A16: x in dom IExec(IF,P,Initialize s);
       per  by ,SCMPDS_4:;
    suppose
A17.= + FINSEQ_2:
      then java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
      then
A18:  not x in dom SAl byg len(0 ^**>byFINSEQ_216
A19:   xin    .=dom (T0^c> by: ;
      thus IExec(IF,P,Initialize s).x = java.lang.StringIndexOutOfBoundsException: Range [0, 42) out of bounds for length 15
        .= s3.x byA2S  A73            D2 T2
        .= s.x by A19,FUNCT_4:11
        .= (    for P be  Closed--TSpace(,)stPinSleti Nat;
        java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
A74             in java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
A20= 
      A76:            (exA4    =-jauge.0,0jauge.x0[ \.,. by A2;
        .=CIT ClosedIntervalTSpace(r,s)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
    end;
  end;
  dom IExec(IF,P,Initialize s) = the carrier of SCMPDS by java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 47
    .= dom (s +* SAl) by PARTFUN1:def 2;
  hence thesis by A14,FUNCT_1:2;
end;

registration
  let I be shiftable parahalting Program of SCMPDS, a be Int_position,k1 be
 Integer;
  cluster if=0(a,k1,I) -> shiftable parahalting;
  correctness
  proof
    set i =                 ases
    set IF=if=0(a,k1,I);
    thus IF is shiftable;
      let s A79:             T0; then
      let P be Instruction-Sequence of SCMPDS;
A1:  Initialize s = s by MEMSTR_0:44;
      assume
      stop IF c= P;
      then
A2:   P = P +* stop IF by FUNCT_4:98;
A3:   I is_closed_on s,P & I is_halting_on s,P by Th11,Th12;
     perjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
      
        s.DataLoc(s.a,k1)= 0;
        then IF is_halting_on s,P by A3,Th39;
        hence P halts_on end
      end;
      suppose
        s.DataLoc(6:  TopSpaceMetr(CIM)=n  +;
        then IF is_halting_on s,P by Th40;
        hence P halts_on s by A1,A2;
      end;
  end;
end;


  let I  fort  Element of CIM st                       by XREAL_1:1
  cluster if=0(                    T2  jauge(.)=(-1tr=java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
  coherence;


theorem
  for s being 0-started State of SCMPDS,
      -freejava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 63
     a being Int_position,k1 being Integer
h IExeci=0a,,I,s= card +1
proof
                    A74,A1java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
      I be halt-free shiftable parahalting Program          onsider r0beReal such that
  SCMPDS,a be Int_position,k1 be Integer;
  set IF=if=0(a,k1,I);
:  is_closed_on A9:     Ball(tr,r0) = XK by JORDAN6:35,TOPMETR:15,TOPMETRdef ;
A2: Initialize s =A88:T2i= c;
  per cases;
  suppose
    s.DataLoc
    then IExecthenthen   =()<c ,:4java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
    by A1java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 63
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 32
  end;
  suppose
    .(.ak1< 0;
    then IExec(IF,P,s) =s +* Start-At((card I+1),SCMPDS) by Th42,A2;
    hence thesis by FUNCT_4:113;
  end;
end;

theorem
  jauge Function [r,.,.infty.,
      I being halt-free shiftable parahalting
Program ofA89              in T0;java.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35
), s.b=IExec(IInitialize)b
proof
  let s be State of SCMPDS                  .i=.i ,FINSEQ_1:ef;
  , i< T2i jauge(2.  16,A90,;
  assume
:s.DataLoc(s.a,k1)0;
2:bdomjava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 60
  I is_closed_on s,P & I is_halting_on s,P by                   A1: S = the set of all ].x-jaug.,x+x \[r,. 
 thenIExecif0(a,,I,,A91:              n0 in dom (<*c*>)
   +* Startjava.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 34
  by        A2:43java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
  hence thesis by A2,FUNCT_4:11;
end;

theorem
  for s being State of SCMPDS,I being Program of SCMPDS,a,b being
Int_position, k1 being Integer st s.DataLoc(s.a,k1)<> 0
holdsIExec=0ak1)P, s.b = .b
proof
  let s beA101              +./2)  0  +jaugec)+jaugec
  Integer;
  assume
  s.DataLoc(s.a,k1)<>0;
  then
A1: IExec(hencei=. .  java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 59
        ;
  not b in dom Start-At((card I+1),SCMPDS) by SCMPDS_4:18;
                ;
end;

Lm8 ( ;  ' )card+
proof
 thus ( ;  ;  card( ''( ' )by :java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
=ard (;'I+ by
    .=card I+1+1 by Th1
    .=card I+2;
end;

 

theorem
  card if<>0(a,k1,I) = card I + 2 by Lm8;

Lm9:  0 in java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 41
proof
  set ci=card (i ';' j ';' I);
  ci=card    end;
  then 2 <= ci by NAT_1:11;
  then 1 < ci by XXREAL_0:2;
  hence thesis by AFINSQ_1:66;
end;

theorem
   0 in dom if<>0(a,k1,I) &  1 in dom if<>0(a,k1,I) by Lm9;

Lm10: (i ';' j ';' I). 0=i & (i ';' j ';' I). 1=j
proof
   jI= ;Ijava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
A1yieldingof,REALjava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
    .=Load i   TDbeingtagged_divisionof I TD isjauge-fine
   0 in dom Load i by COMPOS_1:50;
 '' )  =Load.0byA1,FINSQ_1 3
    .=i;
:   COMPOS_1:;
  card jI=card I+1 by Th1;
  then
A3card Load= &0in dom  ,54java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
  thus (i ';' j ';' I). A1:a =band
    .=jI. [.a,]by Th33java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    .L j ';'I. 
    .=(Load j). 0 by A2,AFINSQ_1:def 3
    .=j;
end;

theorem
  if<>0(a,k1,I). 0 = (a,k1)<>0    java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 74
java.lang.StringIndexOutOfBoundsException: Range [18, 15) out of bounds for length 33

theorem Th49:
  for s being State of SCMPDS, I being shiftable Program of SCMPDS
  , a being Int_position,k1 being Integer st s.DataLoc(s.a,k1)<>0 & I
is_closed_on s,P & I is_halting_on s,P holds if<>0(aA8 i   i1  t&  indomt
 & if<>0(a
  ,k1,I) is_halting_on s,P
proof
   beStateofSCMPDS  be shiftable Programo SCMPDSa be
  Int_position:  FINSEQ_3
  set b=DataLoc(s.a,k1);
  set IF=if<>0(a,k1,I), pIF=stop IF, pI=stop I,
+* pI
  s3 = Initialize s, P3 = P +* pIF,
s4=Computs1 java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 32
  set i = (a,        end
A1: IF
A2: Comput(P3, s3,0 
    =Following(P3,s3) by EXTPRO_1:2
    .= Exec(i,s3) by A1,Th3;
  for            java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 34
  then
A3: DataPart s2 = DataPart s4A15           ;
A4: not b in dom Start-At(0,SCMPDS)IC= <[.r,.]*>) &(not [r,s.]  in Simplies
    expRealstr <p  p <=.            henceby,java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 42
  then
(ak1=bFUNCT_41java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
    . s    hencethesis by A1,A2,,A12XXREAL_1:1;
A6: IC s3 = 0 by MEMSTR_0:47;
  assume
  s.b <> 0;
  then
A7: IC s4 = ICplusConst(s3,2) by A2,A5,SCMPDS_2:55
    .= (0+2) by A6,Th4;
  assume
A8: I is_closed_on s,P;
  then
A9: I is_closed_on s2,P2;
  assume
  I is_halting_on s,P;
  then
A10: P2 halts_on s2;
A11: Start-At(0,SCMPDS) c= s2 & Shift(pI,2) c= P4 by           nonjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
A12         consider ,2  such 
A13:  0 in dom pIF by java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 23
  now
    let k be Nat;
    per cases;
   
      0 < k;
      then consider k1 being Nat such that
A14:  k1 + 1 = k by NAT_1:6;
      reconsider java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 15
      reconsider m = IC Comput(P2, s2,k1) as Nat;
A15:  card1<  :25A17;then
        1( I2)by Lm8
        .= 1+card I +2
        .=card pI+2 by COMPOS_1:55;
       m in dom pI by A8;
      then m < card pI by AFINSQ_1:66;
      then
A16:  m+2 < card pIF by A15,XREAL_1:6;
       P,k  ComputP,s,  ,:
        .=  (m + 2) by A9,A11,A7,A3,Th22,A12;
      hence IC Comput(P3,s3,k) in dom pIF by A16,AFINSQ_1:66;
    end;
    suppose
      k = 0;
      hence IC Comput(P3,s3,k) in dom              -1  x,21,:,java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
    end;
  end;
  hence IF is_closed_on s,P;
A17: Comput(P3,s3,LifeSpan(P2,s2)+1)
 P3,(s3,,P,
s2))
bysuppos
  CurInstr(P3,
  Comput(P3,s3,LifeSpan(P2,s2)+1))
   perby1java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
   Comput(P3suppose  
    .=CurInstr(P2,
    Comput(P2,s2,LifeSpan(P2,s2))) by A9,A11,A7,A3,Th22,A12
MPDS A10,: java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
  then P3 halts_on  suppose
  hence thesis;
end;

theorem Th50:
  for  =  byA17java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
  Int_position             <e2 A24X2 java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
  A27          domA17:;then
proof
     State SCMPDSI ProgramSCMPDSbe Int_positionk1
  Integer;
  set b=DataLoc(s.a,k1);
  assume
A1: s.b = 0;
  set IF=if<>0(a,k1,I), pIF=stop IF, s3 = Initialize s,
  P3 = P +* pIF,
       java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 49
A2: not b in dom Start            ;
  not a in dom Start-suppose
  then
A3: s3.DataLoc(s3.a,k1)=s3.b by FUNCT_4:11
    .=0 by A1,A2,FUNCT_4:11;
:=P4:java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  set i = (a,k1proof
A5: IF =i ';' (j ';' I)                 f2-1<;
A6: IC s3 = 0 by MEMSTR_0:47;
(P3,s3))by :3
    .= Following(P3,s3) by EXTPRO_1:2
    .=            then f1 = f2 or f2=f1 +  ,:9;
  then
A7: IC s4 = IC s3 + 1 by A3,                hence thesis by A25
    .= (0+1) by A6;
A8:  1 in dom IF by Lm9;
 then1in pIF  COMPOS_162java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
  then
A9: P4. 1 = pIF. 1 by A4,GRFUNC_1:2
    .=IF. 1 by A8,COMPOS_1:63
    .=j by Lm10;
A10: card IF=card I+2 by Lm8;
          end;
A11: (card I+2) in dom pIF by COMPOS_1:64      end;
A12:  P3/.IC s4
 = P3.IC s4 by PBOOLE:143;
  Comput(P3, s3,1 + 1) = Following(P3,s4) by EXTPRO_1:3
    .= Exec(j,s4) by A7,A9,A12;
tjava.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
A13: IC s5 = ICplusConst(s4,card I+1) by SCMPDS_2:54
y A7,h4
    .= (card I+(1+1));
A14:  (P3)/.IC s5
 = P3A30    i in dom sjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
  pIF c= P5 by FUNCT_4:25;
    letjauge be Function of [r,s.,].0+infty.,
    =halt SCMPDS by A10,COMPOS_1:64;
  then
A15: CurInstr(P3,s5) = halt SCMPDS by A13,A14;
  now
     kbe ;
A16: k = 0 or 0 +      isElement  ..];
    per cases by A16,XXREAL_0:1;

      k = 0;
      then Comput(P3,s3        ;
      hence IC java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 10
    end;
    suppose
      k = 1;
      T =t  ElementofD  java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
    end;
    suppose
      1 < k;
      then 1+1 <= k by INT_1:7;
      hence IC Comput(P3,s3,k) in dom pIF
       A11A13,EXTPRO_15java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
    end;
  end;
  hence IF is_closed_on s,P;
  P3 halts_on s3 by A15,EXTPRO_1:29;
  hence thesis;
end;

theorem Th51:
fors   SCMPDSI free
  Program of SCMPDS, a being Int_position,k1
  <> 0 & I is_closed_on s,P & I is_halting_on s,P
        ibeNatst  holds divsetD,)< T.)
  IExec(I,P,Initialize s) +* Start-At((card I+2),SCMPDS)
proof
  let s be State of SCMPDS,I be halt-free shiftable Program of SCMPDS, a be
  Int_position,k1 be Integer;
  set b=DataLoc(s.a,k1);
  set if<(,k1, =topI,  = stop ,
   s2 = Initialize s, P2 = P +* pI,
   s3 =   (x-t < r & s+tjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 62
    *pIF
   java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
  set i = (a,k1)<>0_goto 2, j = goto (card I + 1);
  set SAlA:A1:   = and
A1: IF=i ';' (j ';' I) by SCMPDS_4:16;
A2: Comput(P3, s3,0 + 1)A2:  x+t =s;
    .= Following(P3,s3      ].x-tercases 1
    .= Exec(i,s3) by A1,Th3;
A3: not b in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  notadom  assume
  then
:s3.(s3ak1)=s3. byFUNCT_411
    .= s.b by A3,FUNCT_4:11;
A5: IC s3 = 0 by MEMSTR_0:47;
A6: Start-At(0,SCMPDS) c= s2 & Shift(pI,2) c= P4 by Lm7,FUNCT_4:25;
A7     =P2  FUNCT_4;
  for a holds s2.a = s4.a by A2,SCMPDS_2-<<+ A34
  then
A8: DataPart s2 = DataPart s4 by SCMPDS_4:8;
  assume
  s.b <> 0;
  then
:  =32  24,MPDS_2:55
    .= (0+2) by A5,Th4    end;
  assume
java.lang.StringIndexOutOfBoundsException: Range [4, 2) out of bounds for length 10
  then
A11: I is_closed_on s2,P2A4 r<   and
  assume
A12: I is_halting_on s,P;
  then
A13: P2 halts_on s2;
 3,P2)+java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
 = Computjava.lang.StringIndexOutOfBoundsException: Range [14, 15) out of bounds for length 14
,s2))A7       ].x-txt./ .,s;
by EXTPRO_1:4;
A15: CurInstr(P3,
Comput(P3,s3A44:       .i  tjava.lang.StringIndexOutOfBoundsException: Range [27, 8) out of bounds for length 40
 =CurInstr(P3,
14
    (,
    Comput(P2,s2,LifeSpan(P2,s2))) by A11endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    .= halt SCMPDS by A13,EXTPRO_1:def 15;
  then
A16: P3 halts_on s3 by java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 24
A17: CurInstr(P3,        
  now
    let ljava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 39
    assume
A18:  ,)+1
A19: Comput(P3,s3,0) = s3 by EXTPRO_1:2;            then .iinI A47A48A36 
    cases;
    
       0;
      then CurInstr(P3,Comput(P3,s3,l))
       = CurInstr(P3,s3)
       by A19;
      hence CurInstr henx.h
       <> halt SCMPDS by A17;
    end;
    suppose
      l <> 0;
      then consider n be Nat such that
A20:  l = n + 1 by NAT_1:6;
      reconsider n as Nat;
A21:  n < LifeSpan(P2,s2) by A18,A20,XREAL_1:6;
      assume
A22:  CurInstr(P3,          ;
A23: Comput(P3,s3,n+1)
= Comput(P3,Comput(P3,s3,1),n) by EXTPRO_1:4;
      CurInstr(P2,Comput(P2,s2,n)) =
      CurInstr(P3,Comput(P3,s4,n)) by A11,A6,A9,A8,Th22      assume that
        .= halt SCMPDS by A20,A22,A23;
      hence java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 17
    end;
  
  then for      jauge
  Comput(P3,s3,l let b ;
  holds java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 14
  then
A24: LifeSpan(A14:u .x-,t[&u .,. java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 58
A25 P2,)=P,s2
,LifeSpan(P2,s2)) by A13,EXTPRO_1
    .= DataPart Comput(P3, s4,LifeSpan(P2,s2)) by A11,A6,A9,A8,Th22,A7
    .= DataPart Comput(P3, s3,LifeSpan(P2,s2) + 1)
by EXTPRO_1:4
    .= DataPart Result(P3,s3) by A16,A24,EXTPRO_1:23;
A26: now
    let x be object;
A27: dom Start-At((card I+2),SCMPDS) = {IC SCMPDS} by FUNCOP_1:13;
    assume
A28: x in dom IExec(IF,P,Initialize s);
    per cases by A28,SCMPDS_4 u  .,xt.[
    suppose
A29:  x is Int_position;
      then x <> IC SCMPDS by SCMPDS_2:43;
      then
A30:  not x in dom SAl by A27,TARSKI:def 1;
      thus IExec(IF,P,Initialize s).x = (Result(P3,s3)).x
        .= (Result(P2,s2)).x by A25,A29,SCMPDS_4:8
. (PInitialize s).x
        .= (IExec(I,P,Initialize s) +* SAl).x by A30,FUNCT_4:11;
    end;

        uin]x,+[&u  .,. XXREAL_11java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
A32:  IC Result(P2,s2) = IC IExec(I,P,Initialize s)
        .=  card I by A10,A12,Th25;
A33:  x in dom SAl by A27,A31,TARSKI:def 1;
      thus IExec(IF,P,Initialize s).x = (Result(P3,s3)).x
        .= Comput(P3, s3,LifeSpan(P2,s2) + 1).x by A16,A24,EXTPRO_1:23
        .= IC Comput(P3, s4,LifeSpan(P2,s2)) by A31,EXTPRO_1:4
        .= IC Comput(P2, s2,LifeSpan(P2,s2)) + 2
        by A11,A6,A9,A8,Th22,A7
        .= IC Result(P2,s2) + 2 by A13,EXTPRO_1:23
        .= IC SAl by A32,FUNCOP_172
        .= (IExec(I,P,Initialize s) +* SAl).x by A31,A33,FUNCT_4:13;
    end;
  end;
  dom IExec(IF,P,Initialize s) = the carrier of SCMPDS by PARTFUN1:def 2
    .= dom (IExec(I,P,Initialize s) +* Start-At((card I+2),SCMPDS))
     by PARTFUN1:def 2;
  hence thesis by A26,FUNCT_1:2;
end;

theorem Th52:
  for s being State of SCMPDS,I being Program of SCMPDS,a java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 17
Int_position, k1 being Integer st s.DataLoc(s.a,k1)= 0
 holds IExec(if<>0(a,k1,I),P,Initialize s) = s +* Start-At((card I+2),SCMPDS)
proof
  let s be State of SCMPDS,I be Program of SCMPDS,a be Int_position, k1 be
  Integer;
  set b=DataLoc(s.a,k1);
  assume
A1: s.b = 0;
  set SAl=Start-At((card I+2),SCMPDS);
  set i = (a,k1)<>0_goto 2, j = goto (card I + 1);
  set IF        java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 39
 = *java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
   = Comput(P3,s3,1)P3,32,P4 =P3,   ;
A2: IF =i ';' (j 'e;
A3: pIF c= P3 by FUNCT_4:25;

A4: pIF    end;
A5:end;
A6: not
A7: IC s3 = 0 by MEMSTR_0:47;
A8: Comput(P3, s3,0 + 1) = Following(P3,Comput(P3,s3
. P3,)by EXTPRO_12
    .= Exec(i,s3) by A2,Th3;
  not a in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  then s3.DataLoc(s3.a,k1)=s3.b by FUNCT_4:11
    .=0 by A1,A6,FUNCT_4:11;
  then
A9: IC s4 = IC s3 + 1 by A8,SCMPDS_2:55
    .= (0+1) byXT   java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 48
A10:  1 in dom IF by Lm9;
  then  1 in dom pIF by COMPOS_1:62;
  then
A11: P4.1 = pIF. 1 by A4,GRFUNC_1:2
    .=IF. 1 by A10,COMPOS_1:63
    .=j by Lm10;
A12:  P3/.IC s4
 = P3.IC s4 by PBOOLE:143;
A13: Comput(P3, s3,1 + 1) = Following(P3,s4) by java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 10
    .= Exec(j,A4:   r <= x-t a
  then
I  cardI1  :java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
    .= (card IXT  .,+.A11java.lang.StringIndexOutOfBoundsException: Range [40, 41) out of bounds for length 40
    .= (card I+(1+1));
A15:  (P3)/.IC s5
 = P3.IC s5 by PBOOLE:143;
A16: card IF=card I+2 by Lm8;
  then (card I+2) in dom pIF by COMPOS_1:64;
  then P5.(card I+2) = pIF.(card I+2) by A5,GRFUNC_1:2
    .=halt SCMPDS by A16,COMPOS_1:64;
  then
A17: CurInstr(P3,s5) = halt SCMPDS by A14,A15;
  then
A18: P3 halts_on s3 by EXTPRO_1:29;
A19: CurInstr(P3,s3) = i by A2,Th3;
  now
java.lang.StringIndexOutOfBoundsException: Range [17, 4) out of bounds for length 17
    assume
    l < 1+1;
    then
A20: l <= 1 by NAT_1:13;
A21: Comput(P3,s3,0) = s3 by EXTPRO_1:2;
A22: P3/.IC Comput(P3,s3,l)
 = P3.IC Comput(P3,s3,l) by PBOOLE:143;
    per cases by A20,NAT_1:25;
    suppose
      l=0;
      then CurInstr(P3,Comput(P3,s3,l))
       = CurInstr(P3,s3)
       by A21;
      hence CurInstr(P3,Comput(P3,s3,l))
       <> halt java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 0
    end;
    suppose
      l=1;
hence (P3,(,,l)
       <> halt SCMPDS by A9,A11,A22;
    end;
  
  then for l be Nat st CurInstr(P3,
  Comput(P3,s3,l)) = halt SCMPDS
  holds 2 <= l;
  then LifeSpan(P3,s3) = 2 by A17,A18,EXTPRO_1:def 15;
  then
A23: s5 = Result(P3,s3) by A18,EXTPRO_1:23;
A24: now
A25: dom SAl = {IC SCMPDS} by FUNCOP_1:13;
    let x be object;
    assume
A26: x inA4:  in dom Dac and
    per cases by A26,SCMPDS_4:6;
    suppose
A27:  x is Int_position;
      then x <> IC SCMPDS by SCMPDS_2:43;
      then
A28:  not x in dom SAl by A25,TARSKI:def 1;
A29:   not x in dom Start-At(0,SCMPDS) by A27,java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 29
      thus IExec(IF,P,Initialize s).x = s5.x by A23
        .= s4.x by A13,java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 12
       . .xby A27:
        .= s.x by A29,FUNCT_4:11
        .= (s +* SAl).x by A28,FUNCT_4:11;
    end;
    suppose
A30      hence Dac.  Dcb.j  A7,XREAL_0:2;
      hence IExec(IF,P,Initialize s).x = (card I + 2) by A14,A23
        .= (s +* Start-    thus i = len Dac & c . java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 54
    end;
  end;
  dom IExec(IF,P,Initialize s) = the carrier of SCMPDS by PARTFUN1:def 2
    .= dom (s +* SAl) by PARTFUN1:def 2;
  hence thesis by A24,FUNCT_1:2;
end;

registration
  let I be shiftable parahalting Program of SCMPDS, a be Int_position,k1 be
  Integer;
  cluster if<>0(a,k1,I) -> shiftable parahalting;
  correctness
  proof
    set i = (a,k1)<>0_goto 2, j = goto (card I + 1);
    set IF=if<>0(a,k1,I), pIF = stop IF;
    thus IF is shiftable;
      let s be 0-started State of SCMPDS;
      let P be Instruction-Sequence of SCMPDS;
A1:  Initialize s = s by MEMSTR_0:44;
      assume pIF c= P;
      then
A2:   P = P +* stop IF by FUNCT_4:98;
A3:   I is_closed_on s,P & I is_halting_on s,P by Th11,Th12;
      per cases;
      suppose
        s.DataLoc(s.a,k1)<>0;
        then IF is_halting_on s,P by A3,Th49;
        hence P halts_on s by A1,A2;
      end;
      suppose
        s.DataLoc(s.a,k1) = 0;
 then IF sPby java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
        hence P halts_on s by A1,A2;
      end;
  end;
end;

registration
  let I be halt-free Program of SCMPDS, a be Int_position,k1 be Integer      end;
  cluster if<>0(a,k1,I) -> halt-free;
  coherence;
end;

theorem
  forhence java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 41
Program of SCMPDS,a being Int_position,k1 being Integer
 holds IC IExec(if<>0(a,k1,I),P,Initialize s) = card I + 2
proof
  let s be State of SCMPDS,I be halt-free shiftable parahalting Program of
  SCMPDS,a be Int_position,k1 be Integer;
  set IF=if<>0(a,k1,I);
A1: I is_closed_on s,P & I is_halting_on s,P by Th11,Th12;
  ;
  suppose
    s.DataLoc(s.a,k1) <> 0;
then I,,s)=
     +* Start-At((card I+2),SCMPDS)
    by A1,Th51;
    hence thesis by FUNCT_4:113;
  end;
  suppose
    s.DataLoc(s.a,k1) = 0;
    then 
    hence thesis by FUNCT_4:113;
  
end;

theorem
  for s being State of SCMPDS,I being halt-free shiftable parahalting
Program of SCMPDS,a,b being Int_position,k1 being Integer st s.DataLoc(s.a,k1)
  <> 0 holds IExec(if<>0(a,k1,I),P,Initialize s).b
   = IExec(I,P,Initialize s).b
proof
  let s be State of SCMPDS,I be halt-free shiftable parahalting Program of
  SCMPDS,a,b be Int_position,k1 be Integer;
  assume
A1: s.DataLoc(s.a,k1)<>0;
A2: not b in dom Start-At((card I+2),SCMPDS) by SCMPDS_4:18;
  I is_closed_on s,P & I is_halting_on s,P by Th11,Th12;
  then IExec(if<>0(a,k1,I),P,Initialize s) = IExec(I,P,Initialize s)
   +* Start-At((card I+2),SCMPDS)
   by A1,Th51;
  hence thesis by A2,FUNCT_4:11;
end;

theorem
  for s being State of SCMPDS,I being Program of SCMPDS,a,b being
Int_position, k1 being Integer st s.DataLoc(s.a,k1)= 0
 holds IExec(if<>0(a,k1,I),P,Initialize s).b = s.b
proof
  let s be State of SCMPDS,I be Program of SCMPDS,a,b be Int_position, k1 be
  Integer;
  assume
  s.DataLoc(s.a,k1)=0;
  then
A1: IExec(if<>0(a,k1,I),P,Initialize s)
 = s +* Start-At((card I+2),SCMPDS) by Th52;
  not b in dom Start-At((card I+2),SCMPDS) by SCMPDS_4:18;
   thesisA1,UNCT_411;;
end;

begin :: The computation of "if var>0 then block1 else block2"

theorem
  card if>0(a,k1,I,J) = card I + card J + 2 by Lm4;

theorem
   0 in dom if>0(a,k1,I,J) &  1 in dom if>0(a,k1,I,J)
proof
  set ci=card if>0(a,k1,I,J);
  ci=card I + card J +2 by Lm4;
   assume that
  then 1 < ci by XXREAL_0:2;
  thesisbyAFINSQ_1:;
end;

theorem
  if>0(a,k1,I,J).   Iac = .a,]and

theorem Th59:
  for s being 0-started State of SCMPDS, I,J being shiftable Program of
  SCMPDS, a being Int_position,k1 being Integer st s.DataLoc(s.a,k1)>0 & I
is_closed_on s,P & I is_halting_on s,P holds if>0(a,k1,I,J) is_closed_on s,P
 & if>0(a,k1,I,J) is_halting_on s,P
proof
  let s be 0-started State of SCMPDS, I,J be shiftable Program of SCMPDS, a be
  Int_position,k1 be Integer;
  set b=DataLoc(s.a,k1);
  set G=Goto (card J+1);
  set I2 = I ';' G ';' J, IF=if>0(a,k1,I,J), pIF=stop IF,
   pI2=stop I2let,  java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 27
   P3  *,
   s4 = Comput(P3,s,1), P4 = P3;
  set i = (a,k1)<=0_goto (card I + 2);
A1:  0 in dom pIF by COMPOS_1:36;
 Initialize s = s by MEMSTR_0:44;
   then
A3: IC s = 0 by MEMSTR_0:47;
A4: IF = i ';' (I ';' G) ';' J by SCMPDS_4:14
    .= i ';' I2 by SCMPDS_4:14;
  then
A5: Shift(pI2,1) c= P4 by Lm6;
A6: Comput(P3, s,0 + 1) = Following(P3,Comput(P3,s,0)) by EXTPRO_1:3
    .= Following(P3,s) by EXTPRO_1:2
    .= Exec(i,s) by A4,Th3,A2;
  for a holds s2.a = s4.a by A6,A2,SCMPDS_2:56;
  then
A7 DataPart  s2 = DataParts4by SCMPDS_4:8;
  assume
  s.b > 0;
        hencethesisbyA8,:;
A8:        end;
    .= (0+1) by A3;
  assume
9  is_closed_on sP;
  assume
A10: I is_halting_on s,P;
  then
A11: I2 is_closed_on s,P by A9,Th21;
  then
,s2 &I2  s2,P2 by FUNCT_4:25;
A13:  stop I2 c= P2 by FUNCT_4:25;
  I2 is_halting_on s,P by A9,A10A19:      e1 = len Dac +n1;
  then
A14: P2 halts_on s2;
A15: card pIF = card IF +1 by COMPOS_1:55
    .= card I2 +1+1 by A4,Th1;
  now
java.lang.StringIndexOutOfBoundsException: Range [17, 4) out of bounds for length 17
    per cases;
    suppose
      0 <by,A19,,INSEQ_1def7;
      then consider k1 being Nat such that
A16:  k1 + 1 = k by NAT_1:6;
      reconsider k1 as Nat;
      reconsider m = IC Comput(P2, s2,k1) as Nat;
:   1byC:;
       m in dom pI2 by A11;
      then m < card pI2 by AFINSQ_1:66;
      then
A18:  m+1 < card pIFA29    Seg len Dcb =domDcb byFINSEQ_1: 3;
      IC Comput(P3,s,k) = IC Comput(P3, s4,k1) by A16,EXTPRO_1:4
        .=  (m + 1) by A12,A5,A8,A7,Th22,A13;
      then( ) = Dcb.(len Dcb) by A29A28FINSEQ_1:defjava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
    end;

      k = 0;
      hence IC Comput(P3,s,k) in dom pIF by A1,A3,EXTPRO_1:2;
    end;
  end;
  hence IF is_closed_on s,P by A2;
A19: Comput(P3,s,LifeSpan(P2,s2)+1)
    = Comput(P3,Comput(P3,s,1),LifeSpan(P2,s2)) by EXTPRO_1:4;
  CurInstr(P3,Comput(P3,s,LifeSpan(P2,s2)+1))
   =CurInstr(P3,Comput(P3 for,bbeingRealIabbeing empty  Subset  st
   .P2,
    Comput(P2,s2,LifeSpan(P2,s2))) for Dab being Division of Iab st len Dab = 1 holds Dab = <*b*>
    .= halt SCMPDS by A14,EXTPRO_1:def 15;
  then P3 halts_on s by EXTPRO_1:29;
hence  A2;
end;

theorem A1 a<= b and
  for s being State of SCMPDS,I being Program of SCMPDS,J being
shiftable Program of     let Dab be Division ofjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
  s.a,k1) <= 0 & J is_closed_on s,P & J is_halting_on s,P holds if>0(a,k1,I,J)
  is_closed_on s,P & if>0(a,k1,I,J) is_halting_on s,P
proof
  let s be State of SCMPDS,I be Program of SCMPDS, J be shiftable Program of
  SCMPDS, a be Int_position,k1 be Integer;
  set b=DataLoc(s.a,k1);
  set pJ=stop J, s1 = Initialize s, P1 = P +* pJ,
  IF=if>0(a,k1,I,J), pIF=
  stop IF, s3 = Initialize s, P3 = P +* pIF,
  s4 = Comput(P3,s3,1), P4 = P3;
  set i = (a,k1)<=0_goto (card I + 2);
  set G =Goto (card J+1), iG=i ';' I ';' G;
A1: IF = i ';' (I ';' G) ';' J by SCMPDS_4:14
    .= i ';' (I ';' G ';' J) by SCMPDS_4:14;
 (,s30+) (P3,omput(P3,,) EXTPRO_13
    .= Following(P3,s3) by EXTPRO_1:2
    .= Exec(i,s3) by A1,Th3;
A3: not b in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  not a in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  then
A4: s3.DataLoc(s3.a,k1)=A4: s3.DataLoc(s3
    .= s.b by A3,FUNCT_4:11;
A5: IC s3 = 0 by MEMSTR_0:47;
  assume
  s.b <= 0;
  then
A6: Dab/1 DivisionIab
    .= (0+(card  
  assume
A7: java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 23
  then ,PARTFUN1   Dab be  of ;
:Start-t(    assume
:  stop J  Dab;
10pIF= P3byFUNCT_4:25;
A11: card iG = card (i ';' I) + card G by AFINSQ_1:17
    .=( '; I  1byCOMPOS_1:4
.=java.lang.StringIndexOutOfBoundsException: Range [12, 10) out of bounds for length 25
    .=card   
 (,I2 c   
proof
A12:      2-1 SUALG_4:ef ;
  assume
  J is_halting_on s,P;
  then
 P1halts_ons1
  for a holds s1.a =  . i yMSUALG_5:;
  then
A14        =c by A1,BOOLE3java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28

    let k be Nat;
     cases;
            then   = as  I;
      0 <reconsider a2 e1<java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
      hen  k1 beingNat  that
A15:       by NAT_1:;
      econsider k1 as NatbA6,INSEQ_1:3
      reconsider     EqRelLattM thenne1   in  (en   1)FINSEQ_160 hen
      dom ;
      then m < card pJ    econsider              lenD&ne2  Seg   FINSEQ_1:def3;
      then
 pJ + (card I  2)by XREAL_1:6java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
A17:  card pJ = card J + 1  . id(. E:10
A18:card pIF=cardIF1by COMPOS_1:55
        =cardI2card  1 ,AFINSQ_1:17
        =java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 37
       P3,,k  Comput(,s4,1)by ,4
        .= m+(card +2)by ,,,,,        thesis
       Comput      end
    end;
    suppose
      k = 0;
      then Comput(P3,s3,k) = s3 by EXTPRO_1:2;
      hence IC Comput(P3,s3,k) in dom pIF by A5,COMPOS_1:36;
    end;
  end;
  hence IF is_closed_on s,P;
A19:  hence   A14;
 = Comput(P3,Comput( end;
,s1))
 by EXTPRO_1:4;
  CurInstr(P3,
  Comput(P3,s3,LifeSpan(P1,s1)+1))
   =CurInstr(P3,
   Comput(P3,s4,LifeSpan(P1,s1))) by A19
    .=CurInstr(P1,
    P,s1,(,s1))by,
    .= halt SCMPDS by A13,EXTPRO_1                    = Dab.   ;
  then P3      hence   INTEGRA1d 2java.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
  hence thesis;
end;

theorem Th61:
r =K9.i9,a2=a9.  Equivalence_Relation  Mijava.lang.StringIndexOutOfBoundsException: Range [73, 74) out of bounds for length 73
SCMPDS java.lang.StringIndexOutOfBoundsException: Range [36, 26) out of bounds for length 78
being  .    .]holds ab>is of Iab
  Iis_halting_onsP
holds IExec(java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 6
 *StartAt(card   X Subset   M holds  isSubsetFamily [M,|]
proof
  let s be 0-started State of SCMPDS,
      I be halt-free shiftable Program of SCMPDS, J be
   ProgramofA2I =[,b.;
  set b=DataLoc(      set D = <*a>
   D   increasing
  set I2 = I ';' G ';' J,c=b
         = +* java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
         *pIF s4= Comput(3s1)  P3
  = (,k1 
  set  set m Th46:
A1:   for ETFAM_1:ef1java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27

 IC   ex  beingnonincreasingFinSequence  REAL,t being non empty
: =''(I    inSequence of st
    1 =a&x( x)=b &t. = &
  then
:set    X;
A5:Comput(for eingNat i in  holds t.i <= x.i <= t.i + jauge.(t.i))
. (P3,s)by 2
    .= Exec(i,s) by A3,Th3,A1;
  assume
  s.b > 0;
  then
:IC:
    .= (0+1) by A2;
  for a holds s.a = s4.a by A5,SCMPDS_2:56;
  then
A7: DataPart s = DataPart s4 by java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 19
  ssume
A8: I is_closed_on s,P;
  assume
 I  ,;
 then I2 is_halting_on s  then I2 is_halting_on s, that
  then
A10: P2 halts_on s by A1;
 , A8A9,h21;
  then
A11: Start-AtrQasSubsetFamilyof[.,.: ,: 16java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
now
A13: Comput(P3,s,LifeSpan(P2,s)+1)
 omputP,Comput(3s,1),LifeSpan(P2,
s))
 by EXTPRO_1:4;
:,
Comput;
     end;
 ,s4,LifeSpan(P2,s))) by A13
    .(,
    java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 1
.= halt by EXTPRO_1:def       a .b]by,:;
           java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
s  29java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
A16: CurInstr(P3,s) = i by A3,Th3,A1;
  now
    letlenx=1       q  Y
    assume
 l<LifeSpanP2,s)+;
A18: Comput(P3,s,0) = s by EXTPRO_1:2;
    per ;
    suppose
      l = 0;
      then CurInstr(P3,Comput(P3,s,l))
       = CurInstr(P3,s)
       by A18;
      hence CurInstr(P3,Comput(P3,s,l))
      >halt  by A16;
    end;
    
      l <> 0;
      then consider n be Nat such that
A19:  l = n + 1 by NAT_1:6;
      reconsider n as Nat;
A20:  n < LifeSpan(P2,s) by A17,A19,XREAL_1:6;
      assume
A21:  CurInstr(P3,Comput(P3,s,l)) = halt SCMPDS;
A22: Comput(P3,s,n+1)
 = Comput(P3,Comput(P3,s,1),n) by EXTPRO_1:4;
      CurInstr(P2,Comput(P2,s,n)) =
     CurInstr(,Comput,4,) by ,,6A7,h22,12
        .= halt SCMPDS by A19,A21,A22;
e byA10,,EXTPRO_1:def 15;
    end;
  end;
t forl Natst CurInstr(,
    UpperBound of  A5:;
holds (2s + 1 = l;
  then
A23: LifeSpan(P3,s)     then reconsider  =sup as        hence  = q  Th6
A24:DataPartResult(P2s  DataPartComput(,
let object
. java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 45
    by A11,A4,A6,A7,java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 18
    .=DataPart(P3,s,ifeSpan(,)+1)
by EXTPRO_1:4
    . DataPartResult(s by A15,A23,EXTPRO_1:23
A25: now
let x be object;
A26: dom SAl = {IC SCMPDS} by java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 28
    assume
java.lang.StringIndexOutOfBoundsException: Range [17, 3) out of bounds for length 28
    java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
    suppose
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 24
      then xX& X isnon a, be  of  sta  meet |X1: &b
        let X beofM;
A29:  not x in dom SAl by A26,TARSKIassumethat
      hus (IF,P,s.=(Result(P3,)).x
        .= (Result(P2,s)).x by A3 =meet ::and

        .= (IExec( reconsider c9 =c asEquivalence_Relation  byMSUALG_5def 5
    end;
    uppose
A30:  x = IC SCMPDS;
A31A8:     i  I;
        .  (card I +card J+1) by A8,,Th23;
A32:        hence thesis byA3A2XXREAL_2:4;
      thus IExec(IF        reconsiderz9 = z ElementofEqRelLatt Mby A1,;
        .= Comput(P3, s,LifeSpan(thenc9c= z1 byTh6
        = IC Comput(P3, s4,ifeSpan  thesis  ,:def 3;
        .= IC         .= IC Comput
=IC java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 8
        .= IC Start-At(((card I + card J + 1) +     q9=q as Equivalence_Relation ofby :def5
        .= (IExec(I2,P,s) +* SAl).x by A30,A32,FUNCT_4:A15 for i  Nat i 
    end;
  end;
A16 (for i be Nat st  in  T0 holds
=((I2,)+ )java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
T    *>
     by A25,FUNCT_1:2
    .= IExec(I,P,s) +* Start-At((card I + card J + 1),SCMPDS) +*
     Start-At(
   (card I + card J + 2),SCMPDS) by java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 20
    .= IExec(I,P,s) +* SAl by MEMSTR_0:36;
end;

theorem Th62:
  for s being 0-started State of SCMPDS,I being Program of SCMPDS,J being
  halt-free shiftable Program of SCMPDS,a being Int_position            in[.,b.]
          now
   holds IExec(            reconsider    asnon increasingFinSequence REAL
    = IExec(J,P,s) +* Start-At((card              A20Th1java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25

  let s be 0-started State of SCMPDS,I be Program of SCMPDS,
      J be halt-free                by32java.lang.StringIndexOutOfBoundsException: Range [44, 45) out of bounds for length 44
  Program of SCMPDS,a be Int_position,k1 be Integer;
A1: Initialize s = s by MEMSTR_0:44;
  set b=DataLoc(s.a,k1);
  set pJ=stop J, s1 = s, P1 = P +* pJ,
  IF=if>0(a,k1,I,J), pIF=
  stop IF, s3 = s, P3 = P +* pIF,
  s4 = Comput(P3,s3,1), P4 = P3;
  set i = (a,k1)<=0_goto (card I + 2);
  set G =Goto (card J+1), iG=i ';' I ';' G;
  set SAl=Start-At((card I+card J+2),SCMPDS);
A2: IF = i ';' (I ';' G) ';' J by SCMPDS_4:14
    .= i ';' (I ';' G ';' J) by SCMPDS_4:14;
A3: Comput(P3, java.lang.StringIndexOutOfBoundsException: Range [15, 17) out of bounds for length 0
    .                  .= len D0 +1 1  :39;
    .= Exec(i,s3) by A2,Th3,A1;
A4: IC s3 = 0 by A1,MEMSTR_0:47;
  
  s.b <= 0;
  then
usConst(s3             . D2 ()1by ,INSEQ_1:7
    . (                           ;
  for a holds s1.a= s4.a by A3,SCMPDS_2:56;
  then
A6: DataPart     =( L_meet  L|thecarrier  L9. [a9,]by A1,java.lang.StringIndexOutOfBoundsException: Range [61, 44) out of bounds for length 44
  card iG = card A23           + c> 
.java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 39
    .=card.=dom(^*                  .= dom (T0^<*c
    .=card I +(1 +1);
  
A7: Shift(pJ,card I+2) c= pIF by Th5;
  pIF c= P3 by FUNCT_4:25;
  then
A8: Shift(pJ,card I+2) c= P4 by A7,XBOOLE_1:1;
  assume
A9: J is_closed_on s,P;
  then
A10: Start-AtA26          iin ;
:stopJc  by25;
  assume
A12: J is_halting_on s,P;
  
A13: P1 halts_on s1 by                 implies i = len T0 + 2
A14: Comput(P3,s3,LifeSpan(P1,s1)+1)
 (Comput,Ljava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 40
,s1))
 by   a   let a besuppose
A15A42:i-1  dom;
Comput(P3,s3,LifeSpan(P1,s1)+1))
 C(P3,
 Comput(P3,s4,LifeSpan(P1,s1))) by A14
    .=CurInstr(P1,
Comput(,
    .= haltA2: ais_less_than X;
  then
A16: P3 halts_on s3 by EXTPRO_1:29;
A17: CurInstr(P3,s3) = i by A2,Th3,A1;
  java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
     lbeNat
   java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
:l<ifeSpan(1s1 +;
A19: Comput(P3,s3,0) = s3 by  then T0+2  T0 < T0   - T0
    per            byXREAL_1:13;
    suppose
  0;
      then CurInstr(P3,Comput(P3,s3,l))
       = CurInstr(P3,s3)
       by A19;
      henceCurInstr(P3,Comput(P3,s3,l))
       <> halt SCMPDS by A17;
    end;
    suppose
      l <> 0;
      then consider n be Nat such that
A20:  l = n + 1 by NAT_1:6;
      reconsider n as Nat;
A21:  n < LifeSpan(P1,s1) by A18,A20,XREAL_1:6;
      assume
A22:  CurInstr(P3,Comput(P3,s3,l)) = halt SCMPDS;
A23: P,,n+)
 = Comput(P3,Comput(P3,s3,1),n                then 1 indom **  : 8;
     ComputP,,))
       = CurInstr(P3,
      Comput(P3,s4,n)) by A10,A8,A5,A6,Th22,A11
A23
      hence contradiction   thus  is_less_than  impliesa is_less_than X
    end;

  then for l be Nat st CurInstr(P3,
  Comput(P3,s3,l)) = halt SCMPDS
  holds LifeSpan(P1,s1) + 1 <= l;
  then
A24: LifeSpan(P3,s3) = LifeSpan(P1,s1) + 1 by A15,A16,EXTPRO_1:def 15;
A25: DataPart Result(P1,s1) = DataPart Comput(P1, s1
,LifeSpan(P1,s1)) by A13,EXTPRO_1:23
    .= DataPart Comput(P3, s4,LifeSpan(P1,s1))
    byA10A8A5,A6,Th22
    .= DataPart Comput(P3, s3,LifeSpan(P1A49            T2. = T0. by FINSEQ_1:def 7
by EXTPRO_1:4
    .= DataPart Result(P3,s3) by A16,A24,EXTPRO_1:23;
26 now
    let x be object;
A27: dom SAl = {IC SCMPDS} by FUNCOP_1:13;
    assume
A28: x in dom IExec(IF,P,s);
    per cases by A28,SCMPDS_4:6;
    suppose
A29:   ;
      then x <> IC SCMPDS by SCMPDS_2:43;
      then
A30:  not x in dom SAl by A27,TARSKI:def 1;
      thus IExec(IFLATTICES:;
        java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
        .= IExec(J,P,s).x
 ,:11;
    end;
    suppose
                   A55;
  Result(              end;
        .  c  by ,A12Th25;
A33  x in SAl 
 /"a9= hence P[
        .= Comput(java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 12
        .= IC Comput(P3, s4,LifeSpan(P1,s1)) by A31,p
        .=
I + 2A5:   q nX
A6   q9[=a9 A4;
        =IC Start-(J +( +2,)byjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 12
        .e;
d;
  end;
  dom IExec(IF,P,s) = the carrier of SCMPDS by PARTFUN1:def 2
    .= dom (IExec(J,P,) +* SAl by PARTFUN1:def 2;
  hence thesis by A26,FUNCT_1
end;

letL9 be  of  such that
l ,Jbe parahaltingProgram SCMPDS be Int_position,1be
  Integer;
  cluster if>0(a,k1,I,J) -> shiftable parahalting;
  correctness
  proof
    set i = (a,k1)<=0_goto (card I + 2), G =Goto (card J+1);
    set IF=if>0(a,k1,I,J), pIF = stop IF;
    reconsider IJ=I ';' G ';' J as shiftable Program of SCMPDS;
    thus IF is shiftable;
      let  for b beingElementofL9 stb is_less_than X  b [ a
      let P be Instruction-Sequence of SCMPDS;
A1:  Initialize s = s  is_less_than X by LATTICE3;
      assumepIF c=P;
      then
A2:   P = P +* stop IF by FUNCT_4:98;
A3:   J is_closed_on s,P & J is_halting_on s,P by Th11,Th12;
A4:   I is_closed_on s,P & I is_halting_on s,P by Th11,Th12;
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 16
      suppose
A65 b< ;
        then IF is_halting_on s,P by A4,Th59d [ab.by,A2;
        hence P halts_on s by A1,A2;
      end;
      
        s.DataLoca9h  by A63,def,A61;
        then IF is_halting_on s,P bylet          end;
        hence          d+0<c+jauge.c)/  A10,XXREAL_2:4,A62,XREAL_1:8;
      end
  end;
end;

registration
  let I,J be halt-free Program of SCMPDS, a be Int_position,k1 be Integer;
  cluster if>0(a,k1,I,J) -> halt-free;
  coherence;
end;

hen thesis byLATTICES:4;
  for s being 0-started State of SCMPDS,I,J being halt-free shiftable
  parahalting Program of SCMPDS,a being Int_position,k1 being Integer0 . PARTFUN3 1;then
k1,,J),Ps = card I  card J + 2
proofend;
  let s be 0-started State of SCMPDS,
      I,J be halt-free shiftable parahalting Program of SCMPDS,
      a be Int_position,k1 be Integer;
  set IF=if>0(a,k1,I,J);
A1: I is_closed_on s,P & I is_halting_on s,P by Th11,Th12;
:J is_closed_on s,  J is_halting_on ,Pby Th11,Th12;
  per cases;
  suppose
    s.DataLoc(s.a,k1) > 0;
    then IExec(IF,P,s) = IExec(I,P,s) +* Start-At((card I+card J+2),SCMPDS)
    by A1,Th61;
    hence thesis by FUNCT_4:113;
  end;
  suppose
    s.DataLoc(s.a,k1) <= 0;
then(,,s)= IExec(,Ps + -(card +ardJ2,)
    by A2,Th62;
    hence thesis by FUNCT_4:113;
  endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
end;

theorem
  for s being 0-started State of SCMPDS,I being halt-free shiftable parahalting
  Program of SCMPDS,J being shiftable Program of SCMPDS,a,b being Int_position,
k1 being Integer st s.DataLoc(s.a,k1)>0 holds
 IExec(if>0(a,k1,I,J),P,s).b = IExec(I,P,s).b
proof
  let s be 0-started State of SCMPDS,
      I be halt-free shiftable parahalting Program of
  SCMPDS,J be shiftable Program of SCMPDS,a,b be Int_position, k1 be Integer;
  assume
A1: s.DataLoc(s.a,k1)>0;
A2: not b in dom Start-At((card I+card J+2),SCMPDS) by SCMPDS_4:18;
  I is_closed_on s,P & I is_halting_on s,P by Th11,Th12;
  then
  IExec(if>0(a,k1,I,J),P,s) = IExec(I,P,s)
   +* Start-At((card I + card J + 2),SCMPDS)
   A2FUNCT_411java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
end;

theorem
  for s being 0-started State of SCMPDS,I being Program of SCMPDS,J being
  halt-free parahalting shiftable Program of SCMPDS,a,b being Int_position,k1
 st s.(.a,1 =0holds
 IExec(f>0(a,k1 .= Seg (enT0+1)by,FINSEQ_16
proof
  let s be 0-started State of SCMPDS,I be Program of SCMPDS,
      J be halt-free parahalting
  shiftable Program of SCMPDS,a,b be java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 16
=>0,              by
  assume
A1:
java.lang.StringIndexOutOfBoundsException: Range [27, 2) out of bounds for length 67
  J is_closed_on s,P & J is_halting_on s,P by A76            ex n1 Nats n1in dom <c*   -=len T0  )
  then IExec(IF,  let L be comple Lattice
  by A1,Th62;
  hence thesis by A2,FUNCT_4:11;
end;

 :

theorem
  card if>0(a,k1,I) = then

theorem
   0 in dom if>0(a,k1,I)
proof
  set ci=card if>0(a,k1,I);

  hence thesis by AFINSQ_1theorem
end;

theorem
  java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10

theorem Th69:
  for s being State of SCMPDS, I java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 7
  , a being Int_position,k1 being Integer st s.DataLoc(s.    :A]c :,: by                then java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 67
is_closed_ons, & is_halting_ons, holds if>(k1,)i P
 3:
  ,) java.lang.StringIndexOutOfBoundsException: Range [25, 21) out of bounds for length 25
proof
  let s be State of A6x2= y2
k be Integerjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 29
  set b=DataLoc(s.a,k1);
   =if>(ak1), pIF=stop IF,pIstop I,
   s2 = Initialize s, s3 = Initialize s,
   P2 = P +* pI, P3 = P +* pIF,
   s4 = Comput(P3,s3,1), P4 = P3;
  set:n0inSeg   A83FINSEQ_1: 8; then
A1:  0 in dom pIF by COMPOS_1:36;
A2: IC s3 = 0 by MEMSTR_0:47;
A3: not b in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  not a in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  then
A4: s3.DataLoc(s3.a,k1)=s3.b by                    1in  <*> :8;
    .= s.b by A3,FUNCT_4:11;
A5: Comput(P3java.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
    .= Following(P3,s3) by EXTPRO_1:2
    .= Exec(i,s3) by Th3;
.  .a ,:;;
  then
:hence.-jauge(2)=1 =java.lang.StringIndexOutOfBoundsException: Range [63, 64) out of bounds for length 63
  assume
  s.b > 0;
  then
A7: IC s4 = IC s3 + 1 by A5,A4,SCMPDS_2:56
    .= (0+1) by                 lei be ;
  assume
A8: I is_closed_on s,P;
  then
A9: I is_closed_on s2,P2;
  assume
    ,;
  then
A10 x2   A,ZFMISC_187java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
A11: Start-At(0,SCMPDS) c= s2 & ShiftA13 x2 = y2 and
A12:  stop I c= P2 by FUNCT_4:25;
A13: card pIF = card IF +1 Nat st  indom <c>&i= lenT0+;
    .[,b java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 39
  now
    let k be Nat;
     cases
    
      0 < k;
      reconsider=p,q9= q ElementofR by A18;
A14:  k1 + 1 = k by NAT_1:6;
       k1  ;
      reconsider m = IC Comput(P2, s2,k1)      let,qbeElement  L;
A15:  card pIF = card pIthus"\"q=minreal.(p,q)by A17
       in   A88;
      then m < card pI by AFINSQ_1
      then
  +1                  in  1  FINSEQ_1:1;
      IC Comput      p9=p, q9 dom<*2>by: ;hen
                =minrealA97:D2i= <c2. by ,: java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
      hence IC Computendjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    end;
    suppose

      hence IC Comput(P3,s3,k) in dom pIF by A1,A2,EXTPRO_1. p\"q"/" by A17;
   ;
  end;
IFis_closed_on ,P;
A17: Comput(P3,s3,LifeSpan(P2,s2)+1)
 = Comput(P3,Comput(java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
,s2))
 by4;
 (,
  Comput(P3,s3,LifeSpanA2 carrier of  = .r1,2. by ,;
   =CurInstr(P3,Comput(P3,s4,LifeSpan(P2,s2))) by A17
    .=CurInstr(P2,Comput(P2,s2,sjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
    .= halt SCMPDS by A10,EXTPRO_1:def 15;
  then P3 halts_on s3 byjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
  hence thesis;
end;

theorem Th70:
  for s being State of SCMPDS,I being Program of SCMPDS, a beingassume  X
  Int_position, k1 being Integer st         thenreconsiderb9= as Element  REAL;
         end;
proof
lets e  SCMPDS,  Program  SCMPDSabe ,k1
  Integer;
  set b=DataLoc(s.a,k1);
  assume
A1: s.b <= 0;
  set i = (a,k1)<=0_goto (card Isuppose
  set IF=if>0(a,k1,I)      java.lang.StringIndexOutOfBoundsException: Range [10, 1) out of bounds for length 37
  P3 = P +* pIF,
  s4 = Comput(P3,s3,1), P4 =      
A2: IC s3 = setLB=r1 - 
A3: not b in 
  not a in  assumev ;
  java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
:s3DataLocs3.,)s3b  11
 Fjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 28
  Comput(P3t
        of,holds
    then+nfty  X exbeingagged_division I TDjauge-fine
  then
A5:     I benon emptygin[r1,. by ,: 3
    . 0(   )  A2,
A6: card IF=card IA1<  java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 39
 
A7: (card I+1) in dom           vbe;
A8  /s4
 = P3.IC s4 by PBOOLE:143;
  pIF   by :5
  then end;
  then P4.(card I          =A1by java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 40
    .=halt SCMPDS by A6,COMPOS_1:64;
  then
 CurInstr(P3,4)=A4 .1= java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
  now
Nat
    per cases= java.lang.StringIndexOutOfBoundsException: Range [23, 23) out of bounds for length 19
    suppose
      0 < k;then is  of X1 by def ;
       INT_1:7;
      java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 58
    end;
    suppose
                =b by A21,:def9java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
hen (P3,3k  by EXTPRO_1:2;
      hence IC Comput(P3,s3,k) in dom pIF by java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 33
    end;
  end;
  hence IF is_closed_on s,P;
  P3 halts_on   st L9 \/-inheriting
  hence thesis
end;

java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 13
  for s java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 12
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
,P
 holds IExec(if>0(a,k1,I),P,Initialize s) = IExec(I,P        1 < v1by A11,FINSEQ_3:25;then
rdI+),java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 13
proof
  let s be State            beReal that
1/    y  1java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
  set b=DataLoc(s.a,k1);
  set IF=;
   s2 = Initialize s, s3 = Initialize s,
   P2 = P +* pI, P3 = P +* pIF,
   s4 = Comput(P3, s3,1), OOE_0:def 3java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
    ,k1<0_goto (   1)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
  set SAl          ;
A1: IC s3 = 0 by MEMSTR_0:47;
:notbin dom Start-Atby             hence thesis by A1,A2,A5,A12,XXREAL_1java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
  a domStart-          java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
  then
A3    end;
    .= s.b by A2,FUNCT_4:11;
by EXTPRO_1:java.lang.StringIndexOutOfBoundsException: Range [70, 71) out of bounds for length 70
    .= Following(P3,s3) by EXTPRO_1:2
    =Execis3)by Th3;
  
sb>
  then
A5: java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    .= 0+)by A1
  java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
  then
arts4 8java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
  assume
A7: I is_closed_on shence  in  RCOMP_1:1;
  then
e;
A9: 
A10:  stop I c= P2 by FUNCT_4:25;
  assume
A11: I is_halting_on s etx9java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
  
A12: P2 halts_on s2;
A13: Comput(P3,s3,x1in0;
 = Comput(P3,Comput(P3java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 12
        suppose
A14: A14: CurInstr(P3,Comput(P3,s3,LifeSpan
     =CurInstr(P3 1 <= e2 by FINSEQ_325,A17 then
=(,,,s2            x9  0or.x9in where iseal 12
    .= halt SCMPDS by A12,EXTPRO_1:def 15;
  then
A15: P3 halts_on s3endjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
A16: CurInstr(P3,s3) = i bythen              A4A22:A19A6java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
  java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5

    assume
A17: l < LifeSpan(P2,s2) + 1;
:Comput(P3,0  s3byEXTPRO_1:2;
    per cases;

      l = 0;
      then CurInstr(P3,Comput(P3,s3,l))
      strs3)
       
                 A33:        1/2 < y2&y2<=1java.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
       <            .x9 =Mi [x1x2] by A21,A22,FUNCT_1:49
    end;
   
      l <> 0;
thenconsider n  NatNatsuch 
A19:  l = n                        per ases
      n Nat
A20:  n < java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 8
      assume
A21:  CurInstr(P3,Comput(P3,
s3,l)) = assume
     y2 be Real such that
=P3Computend
      CurInstr(P2,Comput(P2,s2,n)) =
      CurInstr=(, A40java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 53
.SCMPDS ,java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 38
      hence contradiction by       hence contradiction by A12 s holds s. suppose
    end;
  end;
  then for l be Nat st per cases by A1,A38,XBOOLE_0:def 3;
  Comput(P3,s3,l)) = halt SCMPDS
  java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 33
  then
A23: LifeSpanA31:divset(,)=[d1,2.  : 3;thenx9 =   =by :;
A24: DataPart A32:   d1< by,java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 36
,:23
.DataPartend
    .=             x2 in{xwherexis Real : 1/2 <x        uppose
by EXTPRO_1:4
    .= DataPart Result(P3,s3) by            lower_bound(D)=lower_bound I&
 now
    let x be object;
A26: dom SAl = {IC SCMPDS} by FUNCOP_1:13;
    assume
A27: x in dom IExec(IF,P,Initialize s);
    per cases ,A48;
    suppose
A28:  x is Int_position;
      then x <> IC SCMPDS by java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 8
      
A29  not xin dom SAl by ,TARSKI:def ;
      thus IExec(IF,P,Initialize s).x = (Result(P3,s3)).x
        = (Result(,).x by A24,A28,SCMPDS_4:java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
        =P s).x
        .= (IExec(I,P,Initialize s) +* SAl).x by A29,FUNCT_4:11      =(axreal|A).[,b FUNCT_1:49
    end;
    suppose
A30:   = IC SCMPDS;
A31:  IC Result(P2,s2) = IC IExec(I,P,Initialize s)
        .=  card I by A7,A11,Th25;
A32:  x in dom SAl by A26,A30A: now
      thus IExec(IF,P,Initialize s).x = (Result(P3,s3)).x
        .= Comput(P3, s3,LifeSpan(P2,s2) +java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 13
       . IC Comput(P3,s4,(P2s) EXTPRO_14
        .= IC Comput(P2, s2,LifeSpan(P2,s2)) + 1
        by A8,A9,A5,A6,Th22,A10
        .= IC Result
        .=              (,i =. by ,,INTEGRA1:ef4;then
         IExecIPInitializes *SAl).x by ,A32FUNCT_4:13;
    end;
  end;
java.lang.StringIndexOutOfBoundsException: Range [36, 2) out of bounds for length 72
    .= dom (IExec(I,P,Initializeend;
  hence thesis by A25,FUNCT_1:2;
end;

          .i-)= s. = D.by ,,java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
  for s being. maxreal.(p9)
Int_position, k1 being Integer st s.DataLoc(s.a,k1) <= 0
 holds IExec(if>(a,1IPInitialize s =  -(card +)SCMPDS)
proof
  let s be State of SCMPDS,I be Program of SCMPDS,a be Int_position,    end;
  Integer;
  set b=DataLoc(s.a,k1);
  set java.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 6
  P3 = P +* pIF,
  p/"  (,q A49
  set i = (a,k1)<=0_goto (card I + 1);
);
java.lang.StringIndexOutOfBoundsException: Range [4, 2) out of bounds for length 49
A2   in -At0SCMPDS) SCMPDS_418java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
  not a in dom Start-At(0,java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 8
  then
A3: s3.DataLoc(s3.a,k1)=s3.b by FUNCT_4:11
    .= s      . minreal.(p,(,r)byjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
 .=minreal.("\q) 
    . Following(P3,3)byEXTPRO_1:java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
.(i  Th3java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
  assume
  s.b<=0;
  
d +) ,,:java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
    .=then"/ (      upper_bound (,i =v A3719;
  pIF c= P3 by FUNCT_4:25;
  then
A6: pIF c= P4;
A7:  P3/.IC s4      assume
 = P3.IC s4 by PBOOLE:143;
 IF=I+1 by Th1java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
java.lang.StringIndexOutOfBoundsException: Range [6, 2) out of bounds for length 44
  then P4.(A41:        vol(,)=    INTEGRA1 5
.SCMPDSbyA8,OMPOS_164;
  then
A9: CurInstr(P3,s4)reconsider z1   as Real;
  then
A10 idom bydefjava.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 54
A11: CurInstr|A).z"/ (,L)
  now
    et l beNat;
A12: Comput(P3,s3,0) = s3 by EXTPRO_1:2;
    assume
    l< 1;
                 that
    =01;
    then CurInstr          .,1  ;
     = CurInstr(P3,s3) by A12;
hence (P3,Comput(,s3A66        r1eand
     <> halt SCMPDS by A11;                        reconsider e= A36,:8;

  thenA49:       . in dom   FUNCT_2def java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
  Comput(P3,s3,l          end;
  holds 1 <= l;
  then LifeSpan(P3,s3) = 1 by A9,A10,EXTPRO_1:def               by , by ,:ef21java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53

A13: s4 = Result(P3java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
A14: now
15 dom =I } by FUNCOP_1:13;
    let x be object;
    assume
 xinIFP, 
    per cases by A16,SCMPDS_4endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    suppose
  is Int_position
java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
      then
18  inb def java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
A19    x  -At(0SCMPDS  java.lang.StringIndexOutOfBoundsException: Range [57, 54) out of bounds for length 58
      x&x < 1}byTARSKI:def ;
        .= s3.x by A4,A17,SCMPDS_2:56
        .= s.x by A19,FUNCT_4:11
        s+)xbyA1811;
    end;
    
A20:  x = IC SCMPDS;
      hence IExec(IF,P,Initialize s).x = (card I + 1) by A5,A13
        .= ( * SAl). by ,FUNCT_4:113:113;
    end;
  end;
  dom IExec(IF,P,Initialize s) = the carrier of SCMPDS java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 39
    .= dom (s +* SAl) by PARTFUN1:def 2;
  java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 32
end;

registration
  let I be shiftable parahalting Program of java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 43
  Integer;
  if>(,, - parahalting;
  correctness
  proof
    set i = (a,k1)<=0_gotolet beElementofLjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
    set IF=if>0(a,k1,I), pIF = stop IF;
    thus IF is shiftable;
      let s be 0-started State of       then q {r : 0 <=  & r<1}by :def1
      let P be Instruction-Sequence of SCMPDS;
A1:  Initialize s = s by MEMSTR_0:44;
      assume pIF c= P;
      then
A2:   P.= minreal.zq)
A3:   I is_closed_on s,P & I is_halting_on s,P by Th11,Th12;
      per cases;
      
(sk1)  ;
        then IF is_halting_on slet  beobject;
        java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 12
      ;
      suppose
        .sjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
        then         hence by XBOOLE_0def3;
        hence P halts_on s by A2,A1;
        x1in     & < /  def2java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
  end;
end;

registration
  let I be halt-free Program of SCMPDS, a be Int_positionhence ;
  cluster java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 6
  coherence;
end;


  for s being 0-started State of SCMPDS,
      I being halt-free shiftable parahalting Program of SCMPDS,
             thenx1in 01  : 2
 holds IC IExec(if>0(a,k1,I),P,s) = card I + 1
proof
  let s be 0-started State of SCMPDS,
      I be halt-free shiftable parahalting Program of
  SCMPDS,a be Int_position,k1 be Integer;
  set IF=if>0(a,k1,I);
A1   P&Iis_halting_on ,P byTh11,Th12java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
A2end;
  per cases;
  suppose
s.a,k1)>0java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    then IExec(IF,P,s) =IExec(I,P,s) +* Start-At((card I+1),SCMPDS)
    by A1,Th71,A2;
    hence thesis byFUNCT_4:113;
  end;
  suppose
    DataLocs.,k1)<= 0;
    then IExec(IF,P,s) =s +* Start-At((card I+1),SCMPDS) by Th72,A2;
    hence thesis by FUNCT_4:113;
  end;
end   reconsider, BinOp   

theorem
  for s being State of SCMPDS,I beingjava.lang.StringIndexOutOfBoundsException: Range [37, 7) out of bounds for length 7
Program of SCMPDS,a,b being Int_position,k1 being Integer st x1in {;
  0 holds          x1  by TARSKI: 1;
proof
  let s be  suppose
 a, beInt_position,be Integer;
  assume
A1: s.DataLoc( y<1/;
A2: not b in dom Start-At((card I+1),SCMPDS) by SCMPDS_4:18;
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 56
  then IExec(if>0(a,k1,I),P,Initialize s) = IExec(I,P,Initialize s)
   +end;
  by A1,Th71;
  henceendjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
end;

theorem
  for s being State of SCMPDS,I being Program of SCMPDS,a,b being
Int_position, k1 being Integer st s.DataLoc(s.a,k1) <= 0
 holds IExec(ifA20:dom ma = [B: byFUNCT_2:ef 1
proof
  let s be State of SCMPDS,I be Program of assume
  ;
  
  s.DataLoc(s.a,k1) <= 0;
  then
A1: IExec(if>0(a       casesby A1,25XBOOLE_0:def 3
 by Th72;
  not b in dom Start-At((card I+1),SCMPDS) by SCMPDS_4:18;
  hence thesis by A1,FUNCT_4:11;
end;

begin :: The computation of "if var<=0 then block"

theorem
  card if<=0(a,k1,I) = card I +  .= maxreal.(x1,x2) byA19,A22,FUNCT_1:49

theorem
   0 in dom if<=0(a,k1,I) &  1 in dom if<=0(a,k1,I) by Lm9;

theorem
  if<=0(a,k1,I). 0 = (a,k1)<=0_goto 2 & if          
  goto (card I + 1) by Lm10;

theorem Th79:
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
  SCMPDS, a beingsuppose
is_closed_ons  s  if=(,,)sP
 & if<= then  y1 Realsuch 
  ,k1,I) is_halting_on s,P
proof
  let s be State of SCMPDS, I be shiftable Program of SCMPDS, a be
  Int_position,k1 be Integer;
  set        now
set IF=if<0ak1,) pIF=stop IF,pI=stop I,
   s2 = Initialize s,x2in {}
   P2 = P +* pI, P3 = P +* pIF,
   s4 = Comput(P3,s3,1), P4 = P3;
  seti= (,1<=_goto 2 j = goto(card I +1);
A1:  stop I c= P2 by FUNCT_4:25;
A2: IF = i ';' (j ';' I) by SCMPDS_4:16;
A3: Comput(P3, s3,0 + 1) = Following(P3,Comput(P3,s3,0)) by EXTPRO_1:3
    .= Following(P3,s3) by EXTPRO_1:2
    .= Exec(i,s3) by A2,Th3;
  for a holds s2.a = s4.a by A3,SCMPDS_2:56;
  then
A4: DataPart s2 = DataPart s4 by SCMPDS_4:8;
A5: not b in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  not a            x = Ma xx2]by ,FUNCT_1:
  then
: s3.DataLoc(3a,=.by11
. .b ,FUNCT_4:11;
A7: IC s3 = 0 by MEMSTR_0:47;
  assume
  s.b <= 0;
  then
A8: IC s4 = ICplusConst(s3,2) by          ;
   =(0+)byA7,h4;
  assume
end;
  then
A10: I is_closed_on s2,P2;
  assume
  is_halting_on sP;
  then
A11: P2 halts_on s2;
A12: Startx1 in 1;
A13:  0 in dom pIF by COMPOS_1:36;
  
    let k be Nat;
    per cases;
    suppose
      0 < k;
eingNat
: k1+1=k  NAT_1:6;
      reconsider k1 as Nat;
      reconsider m = IC Comput(P2, s2,k1) as Nat;
15  card pIF = 1+ card  by COMPOS_1:55
        .= 1+(card I +2) by Lm8
        .= 1+card I +2
        .=card pI+2 by COMPOS_1:55;
       m in dom pI by A9;
      A44:    <  & y2< /;
      then
A16 .  .[x1 A37java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
       mix9  orx9  y2 byXXREAL_0:15;
        .=  (m + 2) by A10,A12,A8,A4,Th22,A1;
      hence IC Comput(P3,s3,k) in dom pIF             mix9 in Bby A8,XBOOLE_0:def 3;
    end;
    suppose
      k = 0;
      hence IC Comput(P3,s3,k) in dom pIF by A13,A7,EXTPRO_1:2;
    end;
  end
  hence IF is_closed_on s,P;
A17: Comput(P3,s3,LifeSpan(P2,s2        now
 = Comput(P3,Comput(P3,s3,1),LifeSpan(P2
,s2))
bythen
  A47        x2=  TARSKIdef1
  ComputP3s3,(P2,s2)+)java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
   =CurInstr(P3,
   P3,s4,P,))byA17
    .=CurInstr(P2,
s2))) by A12,A8,A4,Th22,A1
    .= halt SCMPDS by A11,EXTPRO_1:def 15;
lts_ons3 EXTPRO_1:29;
  hence thesis;
end;

theorem Th80java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
  for s being State of SCMPDS,I being Program of SCMPDS, a being
  Int_position, k1 being Integer st s.DataLoc(s.a,k1) > 0 holds if<=0mi.   x1,x2 A37A38FUNCT_1:49
  is_closed_on s,P & if<=0(a,. min(1,)by A,:1
proof
  let s             then mix9in {x where x is :0< &x  / java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
  Integer;
  set b=DataLoc(s.a,k1);
  assume
A1:end;
  set i = (a,k1)<=0_goto 2, j = goto (java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 21
  set IF=if<=0(  reconsiderLascomplete Latticeby Th20java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
  P3 = P +* pIF,
  s4 = Comput(P3,s3,1), s5 = Comput(P3,s3,2), P4 = P3, P5 = P3;
A2: IF =i ';' (j ';' I) by SCMPDS_4:16;
A3: not b in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  not a in dom Start-At(0,SCMPDS) by java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 39
  then
A4: s3.DataLoc(s3.a,k1)=s3.b by FUNCT_4:11
    .= s.b by A3,FUNCT_4:11;
A5:IC s3 =0 by MEMSTR_0:47java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
  Comput(P3, s3,0 + 1) = Following(P3,Comput(P3,s3,0)) by java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 8
    .= Following(P3,java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 8
    .= Exec(i,s3) by A2,Th3;
  then
A6: IC s4 = IC s3 + 1 by A1,A4,SCMPDS_2:56
    .= (0+1) by A5;
A7: pIF c= P3 java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 6
  then
   java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
A9:  1 in dom IF by Lm9;
  then  1 in dom pIF by COMPOS_1      =minreal.(,(p9,9)) A50
  then
A10: P4. 1 = pIF. 1 by A8,GRFUNC_1:A56:now
    .=IF. 1 by A9,COMPOS_1:63
    .= Lm10;
A11: card IF=card I+2 by Lm8;
  then
A12: (card I+2) in dom pIF by COMPOS_1:64;
A13:  P3/java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 29
 = P3.IC s4 by PBOOLE:143;
  Comput(P3, s3,1 + 1) = Following(P3,s4) by EXTPRO_1:3
    .= Exec(j,s4) by A6,A10,A13;
  then
A14: IC s5 = ICplusConst(s4,card I+1) by SCMPDS_2:54
    .= (card I+1+1) by A6,Th4java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 53
    . . java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 41
A15:  (P3
 = .s5by:java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
  pIF c= P5 by A7;
  then P5.(card I+2) = pIF.(card I+2) by A12,GRFUNC_1:java.lang.StringIndexOutOfBoundsException: Range [0, 55) out of bounds for length 50
   =alt  byA11,:64java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
  then
A16: CurInstr(P3,s5) = halt SCMPDS by A14,A15;
  now
    let k be Nat;
A17: k = 0 or 0 + 1 <= k by INT_1:7;
    per cases by A17,XXREAL_0:1;
    suppose
      k = 0;
      then Comput(P3,s3,k)   ake L9
      hence IC Comput(P3,s3,k) in dom pIF by A5,COMPOS_1:36 /\ X,)in carrierof java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
    endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8

      k = 1;
      hence IC Comput(P3,s3,k) inA60:y="\"XL and
    end;
    suppose
      1 < k;
      then 1+1 <= k
      hence IC Comput(P3,s3,k) in dom pIF
      by A12,A14,A16,EXTPRO_1A62  ot X,L) in the carrier of L9;
    endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  end;
  hence IF is_closed_on s,P1/2 <=   ,61;
  P3letz9 object;
  hence thesis;
end;

theorem Th81:
  for s A65:    "/\"XL)[=z A59A64
  Program of SCMPDS, a being Int_position,k1 being Integer st s.DataLoc(s.a,k1)
  <= 0 & min(1,)= minreal.z1,/"(,)byA60,REAL_LAT:ef1
   holds IExec(if<=0(          = (minreal||A) [z,/\ X)]  ,FUNCT_149
 (,,java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 56

  let s be State of SCMPDS,I TICES:;
  Int_position,k1 be Integer;
  set b=DataLoc(s.a,k1);
setIF=if<0a,I, pIF = stop IF,pI  stopI
   s2 = Initialize s, s3 = Initialize s,
   P2 = P +* pI, P3 = P +* pIF,
   s4 = Comput(P3, s3,1), P4 = P3        thennot in {x where x   :0<x&x </ }
  set i = (a,k1)<=0_goto 2, j = goto (card I + 1);
  set SAl=Start-At((card Ithen
A1:  stop I c= P2 by FUNCT_4:25;
A2: IF=i ';' (j ';' I) byr1"\ w  (|)(r1w A11,: 
A3: Comput(P3, s3,0 + 1) = Following(P3,Comput(P3,s3,0)) by              = minreal(1,)
.= P3, :
    .= Exec(i,s3) by A2,Th3;
A4: not b in dom Start-At(0,SCMPDS) by java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
  not a in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  then
A5:s3DataLoc(s3.,k1)=s3.b by FUNCT_4:11
    .= s.b by A4,FUNCT_4:11;
A6: IC s3 = 0 by MEMSTR_0:47;
A7: Start-At(0,SCMPDS) c= s2 & Shift(pI,   ,:3
  for a holds s2.a = s4.a by A3,SCMPDS_2:56;
  
:DataPart s2 =  by SCMPDS_4:8java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
  assume
  s.b <= 0;
  then
A9: IC s4        contradiction
    .=  java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 6

A10: I is_closed_on s,P;
  then
A11: I is_closed_on s2,P2;
  assume
A12: I is_halting_on sA71:( 12in1) /    where is  :0<
  then
A13: P2 halts_on s2;
(,s2)1)
 = Comput(P3,    1 / 2 } holds x in  A8,:def 3
,s2))
by EXTPRO_1:4;
A15: CurInstr(P3,
Comput(P3,s3,LifeSpan(P2,s2)+1))
 =CurInstr(P3,
 Comput(P3,s4,LifeSpan(P2,s2))) by A14A73:  b = b9 and
    .=CurInstr(P2,
    Comput(P2,s2,LifeSpan(P2,s2))) by A11,A7,A9,A8,Th22,A1
    .= halt SCMPDS by A13,EXTPRO_1:def 15      proof
  then
A16: P3 halts_on s3 by EXTPRO_1:29;
A17: CurInstr(P3,s3) = i by A2,Th3;
  now
    java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 17
    assume
A18: l < java.lang.StringIndexOutOfBoundsException: Range [9, 17) out of bounds for length 12
A19: Comput(P3,s3,0) = s3 by EXTPRO_1:2;
    per cases;
    suppose
 0java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
      then CurInstr(P3,Comput(P3,s3,l))
       = (s3
       by A19;
      hence CurInstr(P3,Comput(P3,s3,l))
       <> halt SCMPDS by A17          =(inreal||A)(c,)by A11LATTICES:def 
    end;
    suppose
      l <> 0;
      then consider n be Nat such that
      ndjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      reconsider n as Nat;
A21:  n < LifeSpan(P2,s2) by A18,A20,XREAL_1:6;
      assume
        .= z by XXREAL_0:ef9;
A23: Comput(P3,s3,n+1)
 = Comput(P3,Comput(P3,s3,1),n) by EXTPRO_1:4;
P2,(s2n)=
      CurInstr(P3,Comput(P3,s4,n))
       by A11,A7,A9,A8,Th22,A1
        .= halt SCMPDS A81:  ex y be Real st q =&0=y& y< 1/;
hence contradictionby A13A,def 15java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
    end;
  end;
  then for l be Nat st CurInstr(P3,
java.lang.StringIndexOutOfBoundsException: Range [18, 2) out of bounds for length 32
  holds LifeSpan = java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 43
  then
A24: LifeSpan(P3,s3) =java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
A25: DataPart Result(P2,s2) = DataPart Comput(P2,s2,
LifeSpan(P2,s2)) by A13,EXTPRO_1:23
    .= DataPart Comput(P3, s4,LifeSpan(P2,s2)) by A11,A7,A9,A8,Th22,A1
    .= DataPart Comput(P3, s3,LifeSpan(P2,s2) + 1)
by EXTPRO_1:4
    .= DataPart java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 0
  ex be complete , beSubLattice of L st L9/-
    let x be
 -((card 2,SCMPDS) ={  byFUNCOP_1:13;
    assume
A28: x in dom IExec(IF,P,Initialize s);
    per cases by A28,SCMPDS_4:6;
    suppose
A29:  x is Int_position;
      then x <> IC SCMPDS by SCMPDS_2:43;
      then
A30:  not x in dom SAl by A27,TARSKI:def 1;
      thus IExec(IF,P,Initialize s).x = (Result(P3,s3)).x
        .= (Result(P2,s2)).x by A25,A29,SCMPDS_4:8
        .= IExec(I,P,Initialize s).x
        .= (IExec(I,P,Initialize s) +* SAl).x by A30,FUNCT_4:11;
    end;
    suppose
A31:  x = IC SCMPDS;
A32:  IC Result(P2,s2) = IC IExec(I,P,Initialize s)
        .=  card I by A10,A12,Th25;
A33:  x in dom SAl by A27,A31,TARSKI:def 1;
      thus IExec(IF,P,Initialize s).x = (Result(P3,s3)).x
        .= Comput(P3, s3,LifeSpan(P2,s2) + 1).x by A16,A24,EXTPRO_1:23
        .= IC Comput(P3, s4,LifeSpan(P2,s2)) by A31,EXTPRO_1:4
        .= IC Comput(P2, s2,LifeSpan(P2,s2)) + 2
        by A11,A7,A9,A8,Th22,A1
        .= IC Result(P2,s2) + 2 by A13,EXTPRO_1:23
        .= IC SAl by A32,FUNCOP_1:72
        .= (IExec(I,P,Initialize s) +* SAl).x by A31,A33,FUNCT_4:13;
    end;
  end;
  dom IExec(IF,P,Initialize s) = the carrier of SCMPDS by PARTFUN1:def 2
    .= dom (IExec(I,P,Initialize s)
     +* Start-At((card I+2),SCMPDS)) by PARTFUN1:def 2;
  hence thesis by A26,FUNCT_1:2;
end;

theorem Th82:
  for s being State of SCMPDS,I being Program of SCMPDS,a being
Int_position, k1 being Integer st s.DataLoc(s.a,k1) > 0
 holds IExec(if<=0(a,k1,I),P,Initialize s)
  = s +* Start-At((card I+2),SCMPDS)
proof
  let s be State of SCMPDS,I be Program of SCMPDS,a be Int_position, k1 be
  Integer;
  set b=DataLoc(s.a,k1);
  set IF=if<=0(a,k1,I), pIF=stop IF, s3 = Initialize s,
  P3 = P +* pIF,
  s4 = Comput(P3,s3,1), s5 = Comput(P3,s3,2), P4 = P3, P5 = P3;
  set i = (a,k1)<=0_goto 2, j = goto (card I + 1);
  set SAl=Start-At((card I+2),SCMPDS);
A1: IF =i ';' (j ';' I) by SCMPDS_4:16;
A2: not b in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  not a in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  then
A3: s3.DataLoc(s3.a,k1)=s3.b by FUNCT_4:11
    .= s.b by A2,FUNCT_4:11;
A4: IC s3 = 0 by MEMSTR_0:47;
A5: pIF c= P3 by FUNCT_4:25;
  then
A6: pIF c= P4;
A7: pIF c= P5 by A5;
A8: Comput(P3, s3,0 + 1) = Following(P3,Comput(P3,s3,0)) by EXTPRO_1:3
    .= Following(P3,s3) by EXTPRO_1:2
    .= Exec(i,s3) by A1,Th3;
  assume
  s.b > 0;
  then
A9: IC s4 = IC s3 + 1 by A8,A3,SCMPDS_2:56
    .= (0+1) by A4;
A10:  1 in dom IF by Lm9;
  then  1 in dom pIF by COMPOS_1:62;
  then
A11: P4.1 = pIF. 1 by A6,GRFUNC_1:2
    .=IF. 1 by A10,COMPOS_1:63
    .=j by Lm10;
A12:  P3/.IC s4
 = P3.IC s4 by PBOOLE:143;
A13: Comput(P3, s3,1 + 1) = Following(P3,s4) by EXTPRO_1:3
    .= Exec(j,s4) by A9,A11,A12;
  then
A14: IC s5 = ICplusConst(s4,card I+1) by SCMPDS_2:54
    .= (card I+1+1) by A9,Th4
    .= (card I+(1+1));
A15:  (P3)/.IC s5
 = P3.IC s5 by PBOOLE:143;
A16: card IF=card I+2 by Lm8;
  then (card I+2) in dom pIF by COMPOS_1:64;
  then P5.(card I+2) = pIF.(card I+2) by A7,GRFUNC_1:2
    .=halt SCMPDS by A16,COMPOS_1:64;
  then
A17: CurInstr(P3,s5) = halt SCMPDS by A14,A15;
  then
A18: P3 halts_on s3 by EXTPRO_1:29;
A19: CurInstr(P3,s3) = i by A1,Th3;
  now
    let l be Nat;
    assume
    l < 1+1;
    then
A20: l <= 1 by NAT_1:13;
A21: Comput(P3,s3,0) = s3 by EXTPRO_1:2;
A22: P3/.IC Comput(P3,s3,l)
 = P3.IC Comput(P3,s3,l) by PBOOLE:143;
    per cases by A20,NAT_1:25;
    suppose
      l=0;
      then CurInstr(P3,Comput(P3,s3,l))
       = CurInstr(P3,s3)
       by A21;
      hence CurInstr(P3,Comput(P3,s3,l))
       <> halt SCMPDS by A19;
    end;
    suppose
      l=1;
      hence CurInstr(P3,Comput(P3,s3,l))
       <> halt SCMPDS by A9,A11,A22;
    end;
  end;
  then for l be Nat st CurInstr(P3,
  Comput(P3,s3,l)) = halt SCMPDS
  holds 2 <= l;
  then LifeSpan(P3,s3) = 2 by A17,A18,EXTPRO_1:def 15;
  then
A23: s5 = Result(P3,s3) by A18,EXTPRO_1:23;
A24: now
A25: dom SAl = {IC SCMPDS} by FUNCOP_1:13;
    let x be object;
    assume
A26: x in dom IExec(IF,P,Initialize s);
    per cases by A26,SCMPDS_4:6;
    suppose
A27:  x is Int_position;
      then x <> IC SCMPDS by SCMPDS_2:43;
      then
A28:  not x in dom SAl by A25,TARSKI:def 1;
A29:   not x in dom Start-At(0,SCMPDS) by A27,SCMPDS_4:18;
      thus IExec(IF,P,Initialize s).x = s5.x by A23
        .= s4.x by A13,A27,SCMPDS_2:54
        .= s3.x by A8,A27,SCMPDS_2:56
        .= s.x by A29,FUNCT_4:11
        .= (s +* SAl).x by A28,FUNCT_4:11;
    end;
    suppose
A30:  x = IC SCMPDS;
      hence IExec(IF,P,Initialize s).x = (card I + 2) by A14,A23
        .= (s +* Start-At((card I+2),SCMPDS)).x by A30,FUNCT_4:113;
    end;
  end;
  dom IExec(IF,P,Initialize s) = the carrier of SCMPDS by PARTFUN1:def 2
    .= dom (s +* SAl) by PARTFUN1:def 2;
  hence thesis by A24,FUNCT_1:2;
end;

registration
  let I be shiftable parahalting Program of SCMPDS, a be Int_position,k1 be
  Integer;
  cluster if<=0(a,k1,I) -> shiftable parahalting;
  correctness
  proof
    set i = (a,k1)<=0_goto 2, j = goto (card I + 1);
    set IF=if<=0(a,k1,I), pIF = stop IF;
    thus IF is shiftable;
      let s be 0-started State of SCMPDS;
      let P be Instruction-Sequence of SCMPDS;
A1:  Initialize s = s by MEMSTR_0:44;
      assume pIF c= P;
      then
A2:   P = P +* stop IF by FUNCT_4:98;
A3:   I is_closed_on s,P & I is_halting_on s,P by Th11,Th12;
      per cases;
      suppose
        s.DataLoc(s.a,k1) <= 0;
        then IF is_halting_on s,P by A3,Th79;
        hence P halts_on s by A2,A1;
      end;
      suppose
        s.DataLoc(s.a,k1) > 0;
        then IF is_halting_on s,P by Th80;
        hence P halts_on s by A2,A1;
      end;
  end;
end;

registration
  let I be halt-free Program of SCMPDS, a be Int_position,k1 be Integer;
  cluster if<=0(a,k1,I) -> halt-free;
  coherence;
end;

theorem
  for s being 0-started State of SCMPDS,
      I being halt-free shiftable parahalting
Program of SCMPDS,a being Int_position,k1 being Integer
 holds IC IExec(if<=0(a,k1,I),P,s) = card I + 2
proof
  let s be 0-started State of SCMPDS,
  I be halt-free shiftable parahalting Program of
  SCMPDS,a be Int_position,k1 be Integer;
  set IF=if<=0(a,k1,I);
A1: I is_closed_on s,P & I is_halting_on s,P by Th11,Th12;
A2: Initialize s = s by MEMSTR_0:44;
  per cases;
  suppose
    s.DataLoc(s.a,k1) <= 0;
    then IExec(IF,P,s) =IExec(I,P,s) +* Start-At((card I+2),SCMPDS)
    by A1,Th81,A2;
    hence thesis by FUNCT_4:113;
  end;
  suppose
    s.DataLoc(s.a,k1) > 0;
    then IExec(IF,P,s) =s +* Start-At((card I+2),SCMPDS) by Th82,A2;
    hence thesis by FUNCT_4:113;
  end;
end;

theorem
  for s being State of SCMPDS,I being halt-free shiftable parahalting
Program of SCMPDS,a,b being Int_position,k1 being Integer st s.DataLoc(s.a,k1)
  <= 0 holds IExec(if<=0(a,k1,I),P,Initialize s).b = IExec(I,P,Initialize s).b
proof
  let s be State of SCMPDS,I be halt-free shiftable parahalting Program of
  SCMPDS,a,b be Int_position,k1 be Integer;
  assume
A1: s.DataLoc(s.a,k1) <= 0;
A2: not b in dom Start-At((card I+2),SCMPDS) by SCMPDS_4:18;
  I is_closed_on s,P & I is_halting_on s,P by Th11,Th12;
  then IExec(if<=0(a,k1,I),P,Initialize s) = IExec(I,P,Initialize s)
   +* Start-At((card I+2),SCMPDS)
   by A1,Th81;
  hence thesis by A2,FUNCT_4:11;
end;

theorem
  for s being State of SCMPDS,I being Program of SCMPDS,a,b being
Int_position, k1 being Integer st s.DataLoc(s.a,k1) > 0
 holds IExec(if<=0(a,k1,I),P,Initialize s).b = s.b
proof
  let s be State of SCMPDS,I be Program of SCMPDS,a,b be Int_position, k1 be
  Integer;
  assume
  s.DataLoc(s.a,k1) > 0;
  then
A1: IExec(if<=0(a,k1,I),P,Initialize s) = s +* Start-At((card I+2),SCMPDS)
 by Th82;
  not b in dom Start-At((card I+2),SCMPDS) by SCMPDS_4:18;
  hence thesis by A1,FUNCT_4:11;
end;

begin :: The computation of "if var<0 then block1 else block2"

theorem
  card if<0(a,k1,I,J) = card I + card J + 2 by Lm4;

theorem
   0 in dom if<0(a,k1,I,J) &  1 in dom if<0(a,k1,I,J)
proof
  set ci=card if<0(a,k1,I,J);
  ci=card I + card J +2 by Lm4;
  then 2 <= ci by NAT_1:12;
  then 1 < ci by XXREAL_0:2;
  hence thesis by AFINSQ_1:66;
end;

theorem
  if<0(a,k1,I,J). 0 = (a,k1)>=0_goto (card I + 2) by Lm5;

theorem Th89:
  for s being 0-started State of SCMPDS, I,J being shiftable Program of
  SCMPDS, a being Int_position,k1 being Integer st s.DataLoc(s.a,k1)<0 & I
is_closed_on s,P & I is_halting_on s,P holds if<0(a,k1,I,J) is_closed_on s,P
 & if<0(a
  ,k1,I,J) is_halting_on s,P
proof
  let s be 0-started State of SCMPDS, I,J be shiftable Program of SCMPDS, a be
  Int_position,k1 be Integer;
  set b=DataLoc(s.a,k1);
  set G=Goto (card J+1);
  set I2 = I ';' G ';' J, IF=if<0(a,k1,I,J), pIF=stop IF,
   pI2=stop I2, P2 = P +* pI2, P3 = P +* pIF,
   s4 = Comput(P3,s,1), P4 = P3;
  set i = (a,k1)>=0_goto (card I + 2);
A1:  0 in dom pIF by COMPOS_1:36;
A2: Initialize s = s by MEMSTR_0:44;
  then
A3: IC s = 0 by MEMSTR_0:47;
A4: IF = i ';' (I ';' G) ';' J by SCMPDS_4:14
    .= i ';' I2 by SCMPDS_4:14;
  then
A5: Shift(pI2,1) c= P4 by Lm6;
A6: Comput(P3, s,0 + 1) = Following(P3,Comput(P3,s,0)) by EXTPRO_1:3
    .= Following(P3,s) by EXTPRO_1:2
    .= Exec(i,s) by A4,Th3,A2;
  for a holds s.a = s4.a by A6,SCMPDS_2:57;
  then
A7: DataPart s = DataPart s4 by SCMPDS_4:8;
  assume
  s.b < 0;
  then
A8: IC s4 = IC s + 1 by A6,SCMPDS_2:57
    .= (0+1) by A3;
  assume
A9: I is_closed_on s,P;
  assume
A10: I is_halting_on s,P;
  then
A11: I2 is_closed_on s,P by A9,Th21;
  then
A12: Start-At(0,SCMPDS) c= s & I2 is_closed_on s,P2 by A2,FUNCT_4:25;
A13:  stop I2 c= P2 by FUNCT_4:25;
  I2 is_halting_on s,P by A9,A10,Th21;
  then
A14: P2 halts_on s by A2;
A15: card pIF = card IF +1 by COMPOS_1:55
    .= card I2 +1+1 by A4,Th1;
  now
    let k be Nat;
    per cases;
    suppose
      0 < k;
      then consider k1 being Nat such that
A16:  k1 + 1 = k by NAT_1:6;
      reconsider k1 as Nat;
      reconsider m = IC Comput(P2, s,k1) as Nat;
A17:  card pIF = card pI2+1 by A15,COMPOS_1:55;
       m in dom pI2 by A11,A2;
      then m < card pI2 by AFINSQ_1:66;
      then
A18:  m+1 < card pIF by A17,XREAL_1:6;
      IC Comput(P3,s,k) = IC Comput(P3, s4,k1) by A16,EXTPRO_1:4
        .=  (m + 1) by A12,A5,A8,A7,Th22,A13;
      hence IC Comput(P3,s,k) in dom pIF by A18,AFINSQ_1:66;
    end;
    suppose
      k = 0;
      hence IC Comput(P3,s,k) in dom pIF by A1,A3,EXTPRO_1:2;
    end;
  end;
  hence IF is_closed_on s,P by A2;
A19: Comput(P3,s,LifeSpan(P2,s)+1)
 = Comput(P3,Comput(P3,s,1),LifeSpan(P2,s))
 by EXTPRO_1:4;
  CurInstr(P3,
  Comput(P3,s,LifeSpan(P2,s)+1))
   =CurInstr(P3,Comput(P3,s4,LifeSpan(P2,s))) by A19
    .=CurInstr(P2,Comput(P2,s,LifeSpan(P2,s))) by A12,A5,A8,A7,Th22,A13
    .= halt SCMPDS by A14,EXTPRO_1:def 15;
  then P3 halts_on s by EXTPRO_1:29;
  hence thesis by A2;
end;

theorem Th90:
  for s being State of SCMPDS,I being Program of SCMPDS,J being
shiftable Program of SCMPDS,a being Int_position,k1 being Integer st s.DataLoc(
  s.a,k1) >= 0 & J is_closed_on s,P & J is_halting_on s,P holds if<0(a,k1,I,J)
  is_closed_on s,P & if<0(a,k1,I,J) is_halting_on s,P
proof
  let s be State of SCMPDS,I be Program of SCMPDS, J be shiftable Program of
  SCMPDS, a be Int_position,k1 be Integer;
  set b=DataLoc(s.a,k1);
  set pJ=stop J, s1 = Initialize s, P1 = P +* pJ,
  IF=if<0(a,k1,I,J), pIF=
  stop IF, s3 = Initialize s, P3 = P +* pIF,
  s4 = Comput(P3,s3,1), P4 = P3;
  set i = (a,k1)>=0_goto (card I + 2);
  set G =Goto (card J+1), iG=i ';' I ';' G;
A1: IF = i ';' (I ';' G) ';' J by SCMPDS_4:14
    .= i ';' (I ';' G ';' J) by SCMPDS_4:14;
A2: Comput(P3, s3,0 + 1) = Following(P3,Comput(P3,s3,0)) by EXTPRO_1:3
    .= Following(P3,s3) by EXTPRO_1:2
    .= Exec(i,s3) by A1,Th3;
A3: not b in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  not a in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  then
A4: s3.DataLoc(s3.a,k1)=s3.b by FUNCT_4:11
    .= s.b by A3,FUNCT_4:11;
A5: IC s3 = 0 by MEMSTR_0:47;
  assume
  s.b >= 0;
  then
A6: IC s4 = ICplusConst(s3,card I + 2) by A2,A4,SCMPDS_2:57
    .= (0+(card I + 2)) by A5,Th4;
  assume
A7: J is_closed_on s,P;
  then
A8: Start-At(0,SCMPDS) c= s1 & J is_closed_on s1,P1 by FUNCT_4:25;
A9:  stop J c= P1 by FUNCT_4:25;
A10: pIF c= P3 by FUNCT_4:25;
A11: card iG = card (i ';' I) + card G by AFINSQ_1:17
    .=card (i ';' I) + 1 by COMPOS_1:54
    .=card I +1 +1 by Th1
    .=card I +(1 +1);
  then Shift(pJ,card I+2) c= pIF by Th5;
  then Shift(pJ,card I+2) c= P3 by A10,XBOOLE_1:1;
  then
A12: Shift(pJ,card I+2) c= P4;
  assume
  J is_halting_on s,P;
  then
A13: P1 halts_on s1;
  for a holds s1.a = s4.a by A2,SCMPDS_2:57;
  then
A14: DataPart s1 = DataPart s4 by SCMPDS_4:8;
  now
    let k be Nat;
    per cases;
    suppose
      0 < k;
      then consider k1 being Nat such that
A15:  k1 + 1 = k by NAT_1:6;
      reconsider k1 as Nat;
      reconsider m = IC Comput(P1, s1,k1) as Nat;
       m in dom pJ by A7;
      then m < card pJ by AFINSQ_1:66;
      then
A16:  m + (card I + 2) < card pJ + (card I + 2) by XREAL_1:6;
A17:  card pJ = card J + 1 by COMPOS_1:55;
A18:  card pIF = card IF+1 by COMPOS_1:55
        .=card I +2 +card J +1 by A11,AFINSQ_1:17
        .=card I +2 + card pJ by A17;
      IC Comput(P3,s3,k) = IC Comput(P3, s4,k1) by A15,EXTPRO_1:4
        .=  (m + (card I + 2)) by A8,A14,A12,A6,Th22,A9;
      hence IC Comput(P3,s3,k) in dom pIF by A18,A16,AFINSQ_1:66;
    end;
    suppose
      k = 0;
      then Comput(P3,s3,k) = s3 by EXTPRO_1:2;
      hence IC Comput(P3,s3,k) in dom pIF by A5,COMPOS_1:36;
    end;
  end;
  hence IF is_closed_on s,P;
A19: Comput(P3,s3,LifeSpan(P1,s1)+1)
 = Comput(P3,Comput(P3,s3,1),LifeSpan(P1,s1)) by EXTPRO_1:4;
  CurInstr(P3,
  Comput(P3,s3,LifeSpan(P1,s1)+1))
   =CurInstr(P3,Comput(P3,s4,LifeSpan(P1,s1))) by A19
    .=CurInstr(P1,Comput(P1,s1,LifeSpan(P1,s1))) by A8,A14,A12,A6,Th22,A9
    .= halt SCMPDS by A13,EXTPRO_1:def 15;
  then P3 halts_on s3 by EXTPRO_1:29;
  hence thesis;
end;

theorem Th91:
  for s being 0-started State of SCMPDS,I being halt-free shiftable
Program of SCMPDS, J being shiftable Program of SCMPDS,a being Int_position,k1
  being Integer st s.DataLoc(s.a,k1) < 0 & I is_closed_on s,P
   & I is_halting_on s,P
holds IExec(if<0(a,k1,I,J),P,s) = IExec(I,P,s)
 +* Start-At((card I + card J+ 2),SCMPDS)
proof
  let s be 0-started State of SCMPDS,
      I be halt-free shiftable Program of SCMPDS, J be
  shiftable Program of SCMPDS,a be Int_position,k1 be Integer;
  set b=DataLoc(s.a,k1);
  set G=Goto (card J+1);
  set I2 = I ';' G ';' J, IF=if<0(a,k1,I,J), pIF = stop IF,
      pI2=stop I2, P2 = P +* pI2, P3 = P +* pIF,
s4 = Comput(P3,s,1), P4 = P3;
  set i = (a,k1)>=0_goto (card I + 2);
  set SAl= Start-At((card I+card J+2),SCMPDS);
A1: Initialize s = s by MEMSTR_0:44;
  then
A2: IC s = 0 by MEMSTR_0:47;
A3: IF = i ';' (I ';' G) ';' J by SCMPDS_4:14
    .= i ';' I2 by SCMPDS_4:14;
  then
A4: Shift(pI2,1) c= P4 by Lm6;
A5: Comput(P3, s,0 + 1) = Following(P3,Comput(P3,s,0)) by EXTPRO_1:3
    .= Following(P3,s) by EXTPRO_1:2
    .= Exec(i,s) by A3,Th3,A1;
  assume
  s.b < 0;
  then
A6: IC s4 = IC s + 1 by A5,SCMPDS_2:57
    .= (0+1) by A2;
  for a holds s.a = s4.a by A5,SCMPDS_2:57;
  then
A7: DataPart s = DataPart s4 by SCMPDS_4:8;
  assume
A8: I is_closed_on s,P;
  assume
A9: I is_halting_on s,P;
  then I2 is_halting_on s,P by A8,Th21;
  then
A10: P2 halts_on s by A1;
  I2 is_closed_on s,P by A8,A9,Th21;
  then
A11: Start-At(0,SCMPDS) c= s & I2 is_closed_on s,P2 by A1,FUNCT_4:25;
A12:  stop I2 c= P2 by FUNCT_4:25;
A13: Comput(P3,s,LifeSpan(P2,s)+1)
 = Comput(P3,Comput(P3,s,1),LifeSpan(P2
,s))
 by EXTPRO_1:4;
A14: CurInstr(P3,Comput(P3,s,LifeSpan(P2,s)+1))
     =CurInstr(P3,Comput(P3,s4,LifeSpan(P2,s))) by A13
    .=CurInstr(P2,Comput(P2,s,LifeSpan(P2,s))) by A11,A4,A6,A7,Th22,A12
    .= halt SCMPDS by A10,EXTPRO_1:def 15;
  then
A15: P3 halts_on s by EXTPRO_1:29;
A16: CurInstr(P3,s) = i by A3,Th3,A1;
  now
    let l be Nat;
    assume
A17: l < LifeSpan(P2,s) + 1;
A18: Comput(P3,s,0) = s by EXTPRO_1:2;
    per cases;
    suppose
      l = 0;
      then CurInstr(P3,Comput(P3,s,l))
       = CurInstr(P3,s)
       by A18;
      hence CurInstr(P3,Comput(P3,s,l))
       <> halt SCMPDS by A16;
    end;
    suppose
      l <> 0;
      then consider n be Nat such that
A19:  l = n + 1 by NAT_1:6;
      reconsider n as Nat;
A20:  n < LifeSpan(P2,s) by A17,A19,XREAL_1:6;
      assume
A21:  CurInstr(P3,Comput(P3,s,l)) = halt SCMPDS;
A22: Comput(P3,s,n+1)
 = Comput(P3,Comput(P3,s,1),n) by EXTPRO_1:4;
      CurInstr(P2,Comput(P2,s,n)) =
      CurInstr(P3,Comput(P3,s4,n)) by A11,A4,A6,A7,Th22,A12
        .= halt SCMPDS by A19,A21,A22;
      hence contradiction by A10,A20,EXTPRO_1:def 15;
    end;
  end;
  then for l be Nat st CurInstr(P3,
  Comput(P3,s,l)) = halt SCMPDS
  holds LifeSpan(P2,s) + 1 <= l;
  then
A23: LifeSpan(P3,s) = LifeSpan(P2,s) + 1 by A14,A15,EXTPRO_1:def 15;
A24: DataPart Result(P2,s) = DataPart Comput(P2,s,
LifeSpan(P2,s)) by A10,EXTPRO_1:23
    .= DataPart Comput(P3, s4,LifeSpan(P2,s))
    by A11,A4,A6,A7,Th22,A12
    .= DataPart Comput(P3, s,LifeSpan(P2,s) + 1)
by EXTPRO_1:4
    .= DataPart Result(P3,s) by A15,A23,EXTPRO_1:23;
A25: now
    let x be object;
A26: dom SAl = {IC SCMPDS} by FUNCOP_1:13;
    assume
A27: x in dom IExec(IF,P,s);
    per cases by A27,SCMPDS_4:6;
    suppose
A28:  x is Int_position;
      then x <> IC SCMPDS by SCMPDS_2:43;
      then
A29:  not x in dom SAl by A26,TARSKI:def 1;
      thus IExec(IF,P,s).x = (Result(P3,s)).x
        .= (Result(P2,s)).x by A24,A28,SCMPDS_4:8
        .= IExec(I2,P,s).x
        .= (IExec(I2,P,s) +* SAl).x by A29,FUNCT_4:11;
    end;
    suppose
A30:  x = IC SCMPDS;
A31:  IC Result(P2,s) = IC IExec(I2,P,s)
        .=  (card I + card J + 1) by A8,A9,Th23;
A32:  x in dom SAl by A26,A30,TARSKI:def 1;
      thus IExec(IF,P,s).x = (Result(P3,s)).x
        .= Comput(P3, s,LifeSpan(P2,s) + 1).x by A15,A23,EXTPRO_1:23
        .= IC Comput(P3, s4,LifeSpan(P2,s)) by A30,EXTPRO_1:4
        .= IC Comput(P2, s,LifeSpan(P2,s)) + 1 by A11,A4,A6,A7,Th22,A12
        .= IC Result(P2,s) + 1 by A10,EXTPRO_1:23
        .= IC Start-At ((card I + card J + 1) + 1,SCMPDS)
        by A31,FUNCOP_1:72
        .= (IExec(I2,P,s) +* SAl).x by A30,A32,FUNCT_4:13;
    end;
  end;
  dom IExec(IF,P,s) = the carrier of SCMPDS by PARTFUN1:def 2
    .= dom (IExec(I2,P,s) +* SAl) by PARTFUN1:def 2;
  hence IExec(IF,P,s) = IExec(I2,P,s) +* SAl
            by A25,FUNCT_1:2
    .= IExec(I,P,s) +* Start-At((card I + card J + 1),SCMPDS) +*
    Start-At(
   (card I + card J + 2),SCMPDS) by A8,A9,Th24
    .= IExec(I,P,s) +* SAl by MEMSTR_0:36;
end;

theorem Th92:
  for s being State of SCMPDS,I being Program of SCMPDS,J being
  halt-free shiftable Program of SCMPDS,a being Int_position,k1 being Integer
  st s.DataLoc(s.a,k1) >= 0 & J is_closed_on s,P & J is_halting_on s,P
   holds IExec(if<0(a,k1,I,J),P,Initialize s)
    = IExec(J,P,Initialize s) +* Start-At((card I+card J+2),SCMPDS)
proof
  let s be State of SCMPDS,I be Program of SCMPDS,J be halt-free shiftable
  Program of SCMPDS,a be Int_position,k1 be Integer;
  set b=DataLoc(s.a,k1);
  set pJ=stop J, s1 = Initialize s, P1 = P +* pJ,
  IF=if<0(a,k1,I,J), pIF=
  stop IF, s3 = Initialize s, P3 = P +* pIF,
  s4 = Comput(P3,s3,1), P4 = P3;
  set i = (a,k1)>=0_goto (card I + 2);
  set G =Goto (card J+1), iG=i ';' I ';' G;
  set SAl=Start-At((card I+card J+2),SCMPDS);
A1: IF = i ';' (I ';' G) ';' J by SCMPDS_4:14
    .= i ';' (I ';' G ';' J) by SCMPDS_4:14;
A2: Comput(P3, s3,0 + 1) = Following(P3,Comput(P3,s3,0)) by EXTPRO_1:3
    .= Following(P3,s3) by EXTPRO_1:2
    .= Exec(i,s3) by A1,Th3;
A3: not b in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  not a in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  then
A4: s3.DataLoc(s3.a,k1)=s3.b by FUNCT_4:11
    .= s.b by A3,FUNCT_4:11;
A5: IC s3 = 0 by MEMSTR_0:47;
  assume
  s.b >= 0;
  then
A6: IC s4 = ICplusConst(s3,card I + 2) by A2,A4,SCMPDS_2:57
    .= (0+(card I + 2)) by A5,Th4;
  for a holds s1.a = s4.a by A2,SCMPDS_2:57;
  then
A7: DataPart s1 = DataPart s4 by SCMPDS_4:8;
  card iG = card (i ';' I) + card G by AFINSQ_1:17
    .=card (i ';' I) + 1 by COMPOS_1:54
    .=card I +1 +1 by Th1
    .=card I +(1 +1);
  then
A8: Shift(pJ,card I+2) c= pIF by Th5;
  pIF c= P3 by FUNCT_4:25;
  then Shift(pJ,card I+2) c= P3 by A8,XBOOLE_1:1;
  then
A9: Shift(pJ,card I+2) c= P4;
  assume
A10: J is_closed_on s,P;
  then
A11: Start-At(0,SCMPDS) c= s1 & J is_closed_on s1,P1 by FUNCT_4:25;
A12:  stop J c= P1 by FUNCT_4:25;
  assume
A13: J is_halting_on s,P;
  then
A14: P1 halts_on s1;
A15: Comput(P3,s3,LifeSpan(P1,s1)+1)
 = Comput(P3,Comput(P3,s3,1),LifeSpan(P1
,s1))
by EXTPRO_1:4;
A16: CurInstr(P3,Comput(P3,s3,LifeSpan(P1,s1)+1))
     =CurInstr(P3,Comput(P3,s4,LifeSpan(P1,s1))) by A15
    .=CurInstr(P1,Comput(P1,s1,LifeSpan(P1,s1))) by A11,A9,A6,A7,Th22,A12
    .= halt SCMPDS by A14,EXTPRO_1:def 15;
  then
A17: P3 halts_on s3 by EXTPRO_1:29;
A18: CurInstr(P3,s3) = i by A1,Th3;
  now
    let l be Nat;
    assume
A19: l < LifeSpan(P1,s1) + 1;
A20: Comput(P3,s3,0) = s3 by EXTPRO_1:2;
    per cases;
    suppose
      l = 0;
      then CurInstr(P3,Comput(P3,s3,l))
       = CurInstr(P3,s3)
       by A20;
      hence CurInstr(P3,Comput(P3,s3,l))
       <> halt SCMPDS by A18;
    end;
    suppose
      l <> 0;
      then consider n be Nat such that
A21:  l = n + 1 by NAT_1:6;
      reconsider n as Nat;
A22:  n < LifeSpan(P1,s1) by A19,A21,XREAL_1:6;
      assume
A23:  CurInstr(P3,Comput(P3,s3,l)) = halt SCMPDS;
A24: Comput(P3,s3,n+1)
 = Comput(P3,Comput(P3,s3,1),n) by EXTPRO_1:4;
      CurInstr(P1,Comput(P1,s1,n))
       = CurInstr(P3,
      Comput(P3,s4,n)) by A11,A9,A6,A7,Th22,A12
        .= halt SCMPDS by A21,A23,A24;
      hence contradiction by A14,A22,EXTPRO_1:def 15;
    end;
  end;
  then for l be Nat st CurInstr(P3,
  Comput(P3,s3,l)) = halt SCMPDS
  holds LifeSpan(P1,s1) + 1 <= l;
  then
A25: LifeSpan(P3,s3) = LifeSpan(P1,s1) + 1 by A16,A17,EXTPRO_1:def 15;
A26: DataPart Result(P1,s1) = DataPart Comput(P1, s1
,LifeSpan(P1,s1)) by A14,EXTPRO_1:23
    .= DataPart Comput(P3, s4,LifeSpan(P1,s1))
    by A11,A9,A6,A7,Th22,A12
    .= DataPart Comput(P3, s3,LifeSpan(P1,s1) + 1)
by EXTPRO_1:4
    .= DataPart Result(P3,s3) by A17,A25,EXTPRO_1:23;
A27: now
    let x be object;
A28: dom SAl = {IC SCMPDS} by FUNCOP_1:13;
    assume
A29: x in dom IExec(IF,P,Initialize s);
    per cases by A29,SCMPDS_4:6;
    suppose
A30:  x is Int_position;
      then x <> IC SCMPDS by SCMPDS_2:43;
      then
A31:  not x in dom SAl by A28,TARSKI:def 1;
      thus IExec(IF,P,Initialize s).x = (Result(P3,s3)).x
        .= (Result(P1,s1)).x by A26,A30,SCMPDS_4:8
        .= IExec(J,P,Initialize s).x
        .= (IExec(J,P,Initialize s) +* SAl).x by A31,FUNCT_4:11;
    end;
    suppose
A32:  x = IC SCMPDS;
A33:  IC Result(P1,s1) = IC IExec(J,P,Initialize s)
        .=  (card J) by A10,A13,Th25;
A34:  x in dom SAl by A28,A32,TARSKI:def 1;
      thus IExec(IF,P,Initialize s).x = (Result(P3,s3)).x
        .= Comput(P3, s3,LifeSpan(P1,s1) + 1).x by A17,A25,EXTPRO_1:23
        .= IC Comput(P3, s4,LifeSpan(P1,s1)) by A32,EXTPRO_1:4
        .= IC Comput(P1, s1,LifeSpan(P1,s1)) + (card
I + 2) by A11,A9,A6,A7,Th22,A12
        .= IC Result(P1,s1) + (card I + 2) by A14,EXTPRO_1:23
        .= IC Start-At (card J + (card I + 2),SCMPDS) by A33,FUNCOP_1:72
        .= (IExec(J,P,Initialize s) +* SAl).x by A32,A34,FUNCT_4:13;
    end;
  end;
  dom IExec(IF,P,Initialize s) = the carrier of SCMPDS by PARTFUN1:def 2
    .= dom (IExec(J,P,Initialize s) +* SAl) by PARTFUN1:def 2;
  hence thesis by A27,FUNCT_1:2;
end;

registration
  let I,J be shiftable parahalting Program of SCMPDS, a be Int_position,k1 be
  Integer;
  cluster if<0(a,k1,I,J) -> shiftable parahalting;
  correctness
  proof
    set i = (a,k1)>=0_goto (card I + 2), G =Goto (card J+1);
    set IF=if<0(a,k1,I,J), pIF = stop IF;
    reconsider IJ=I ';' G ';' J as shiftable Program of SCMPDS;
    thus IF is shiftable;
      let s be 0-started State of SCMPDS;
      let P be Instruction-Sequence of SCMPDS;
A1:  Initialize s = s by MEMSTR_0:44;
      assume pIF c= P;
      then
A2:   P = P +* stop IF by FUNCT_4:98;
A3:   J is_closed_on s,P & J is_halting_on s,P by Th11,Th12;
A4:   I is_closed_on s,P & I is_halting_on s,P by Th11,Th12;
      per cases;
      suppose
        s.DataLoc(s.a,k1) < 0;
        then IF is_halting_on s,P by A4,Th89;
        hence P halts_on s by A2,A1;
      end;
      suppose
        s.DataLoc(s.a,k1) >= 0;
        then IF is_halting_on s,P by A3,Th90;
        hence P halts_on s by A2,A1;
      end;
  end;
end;

registration
  let I,J be halt-free Program of SCMPDS, a be Int_position,k1 be Integer;
  cluster if<0(a,k1,I,J) -> halt-free;
  coherence;
end;

theorem
  for s being 0-started State of SCMPDS,I,J being halt-free shiftable
  parahalting Program of SCMPDS,a being Int_position,k1 being Integer holds IC
  IExec(if<0(a,k1,I,J),P,s) = card I + card J + 2
proof
  let s be 0-started State of SCMPDS,
      I,J be halt-free shiftable parahalting Program of
  SCMPDS,a be Int_position,k1 be Integer;
  set IF=if<0(a,k1,I,J);
A1: I is_closed_on s,P & I is_halting_on s,P by Th11,Th12;
A2: J is_closed_on s,P & J is_halting_on s,P by Th11,Th12;
A3: Initialize s = s by MEMSTR_0:44;
  per cases;
  suppose
    s.DataLoc(s.a,k1) < 0;
    then IExec(IF,P,s) = IExec(I,P,s) +* Start-At((card I+card J+2),SCMPDS)
    by A1,Th91;
    hence thesis by FUNCT_4:113;
  end;
  suppose
    s.DataLoc(s.a,k1) >= 0;
    then IExec(IF,P,s) = IExec(J,P,s) +* Start-At((card I+card J+2),SCMPDS)
    by A2,Th92,A3;
    hence thesis by FUNCT_4:113;
  end;
end;

theorem
  for s being 0-started State of SCMPDS,I being halt-free shiftable parahalting
  Program of SCMPDS,J being shiftable Program of SCMPDS,a,b being Int_position,
k1 being Integer st s.DataLoc(s.a,k1)<0
 holds IExec(if<0(a,k1,I,J),P,s).b
 = IExec(I,P,s).b
proof
  let s be 0-started State of SCMPDS,
      I be halt-free shiftable parahalting Program of
  SCMPDS,J be shiftable Program of SCMPDS,a,b be Int_position, k1 be Integer;
  assume
A1: s.DataLoc(s.a,k1)<0;
A2: not b in dom Start-At((card I+card J+2),SCMPDS) by SCMPDS_4:18;
  I is_closed_on s,P & I is_halting_on s,P by Th11,Th12;
  then
  IExec(if<0(a,k1,I,J),P,s) = IExec(I,P,s)
   +* Start-At((card I + card J + 2),SCMPDS) by A1,Th91;
  hence thesis by A2,FUNCT_4:11;
end;

theorem
  for s being State of SCMPDS,I being Program of SCMPDS,J being
  halt-free parahalting shiftable Program of SCMPDS,a,b being Int_position,k1
being Integer st s.DataLoc(s.a,k1) >= 0
 holds IExec(if<0(a,k1,I,J),P,Initialize s).b = IExec(J,P,Initialize s).b
proof
  let s be State of SCMPDS,I be Program of SCMPDS,J be halt-free parahalting
  shiftable Program of SCMPDS,a,b be Int_position, k1 be Integer;
  set IF=if<0(a,k1,I,J);
  assume
A1: s.DataLoc(s.a,k1) >= 0;
A2: not b in dom Start-At((card I+card J+2),SCMPDS) by SCMPDS_4:18;
  J is_closed_on s,P & J is_halting_on s,P by Th11,Th12;
  then IExec(IF,P,Initialize s) =IExec(J,P,Initialize s)
   +* Start-At((card I+card J+2),SCMPDS)
  by A1,Th92;
  hence thesis by A2,FUNCT_4:11;
end;

begin :: The computation of "if var<0 then block"

theorem
  card if<0(a,k1,I) = card I + 1 by Th1;

theorem
   0 in dom if<0(a,k1,I)
proof
  set ci=card if<0(a,k1,I);
  ci=card I + 1 by Th1;
  hence thesis by AFINSQ_1:66;
end;

theorem
  if<0(a,k1,I). 0 = (a,k1)>=0_goto (card I + 1) by Th2;

theorem Th99:
  for s being State of SCMPDS, I being shiftable Program of
  SCMPDS, a being Int_position,k1 being Integer st s.DataLoc(s.a,k1) < 0 & I
is_closed_on s,P & I is_halting_on s,P holds if<0(a,k1,I) is_closed_on s,P
 & if<0(a,
  k1,I) is_halting_on s,P
proof
  let s be State of SCMPDS, I be shiftable Program of SCMPDS, a be
  Int_position,k1 be Integer;
  set b=DataLoc(s.a,k1);
  set IF=if<0(a,k1,I), pIF=stop IF, pI=stop I,
   s2 = Initialize s, s3 = Initialize s,
   P2 = P +* pI, P3 = P +* pIF,
   s4 = Comput(P3,s3,1), P4 = P3;
  set i = (a,k1)>=0_goto (card I + 1);
A1:  stop I c= P2 by FUNCT_4:25;
A2:  0 in dom pIF by COMPOS_1:36;
A3: IC s3 = 0 by MEMSTR_0:47;
A4: not b in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  not a in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  then
A5: s3.DataLoc(s3.a,k1)=s3.b by FUNCT_4:11
    .= s.b by A4,FUNCT_4:11;
A6: Comput(P3, s3,0 + 1) = Following(P3,Comput(P3,s3,0)) by EXTPRO_1:3
    .= Following(P3,s3) by EXTPRO_1:2
    .= Exec(i,s3) by Th3;
  for a holds s2.a = s4.a by A6,SCMPDS_2:57;
  then
A7: DataPart s2 = DataPart s4 by SCMPDS_4:8;
  assume
  s.b < 0;
  then
A8: IC s4 = IC s3 + 1 by A6,A5,SCMPDS_2:57
    .= (0+1) by A3;
  assume
A9: I is_closed_on s,P;
  then
A10: I is_closed_on s2,P2;
  assume
  I is_halting_on s,P;
  then
A11: P2 halts_on s2;
A12: Start-At(0,SCMPDS) c= s2 & Shift(pI,1) c= P4 by Lm6,FUNCT_4:25;
A13: card pIF = card IF +1 by COMPOS_1:55
    .= card I +1+1 by Th1;
  now
    let k be Nat;
    per cases;
    suppose
      0 < k;
      then consider k1 being Nat such that
A14:  k1 + 1 = k by NAT_1:6;
      reconsider k1 as Nat;
      reconsider m = IC Comput(P2, s2,k1) as Nat;
A15:  card pIF = card pI+1 by A13,COMPOS_1:55;
       m in dom pI by A9;
      then m < card pI by AFINSQ_1:66;
      then
A16:  m+1 < card pIF by A15,XREAL_1:6;
      IC Comput(P3,s3,k) = IC Comput(P3, s4,k1) by A14,EXTPRO_1:4
        .=  (m + 1) by A10,A12,A8,A7,Th22,A1;
      hence IC Comput(P3,s3,k) in dom pIF by A16,AFINSQ_1:66;
    end;
    suppose
      k = 0;
      hence IC Comput(P3,s3,k) in dom pIF by A2,A3,EXTPRO_1:2;
    end;
  end;
  hence IF is_closed_on s,P;
A17: Comput(P3,s3,LifeSpan(P2,s2)+1)
 = Comput(P3,Comput(P3,s3,1),LifeSpan(P2
,s2))
by EXTPRO_1:4;
  CurInstr(P3,
  Comput(P3,s3,LifeSpan(P2,s2)+1))
   =CurInstr(P3,
   Comput(P3,s4,LifeSpan(P2,s2))) by A17
    .=CurInstr(P2,
    Comput(P2,s2,LifeSpan(P2,s2))) by A10,A12,A8,A7,Th22,A1
    .= halt SCMPDS by A11,EXTPRO_1:def 15;
  then P3 halts_on s3 by EXTPRO_1:29;
  hence thesis;
end;

theorem Th100:
  for s being State of SCMPDS,I being Program of SCMPDS, a being
  Int_position, k1 being Integer st s.DataLoc(s.a,k1) >= 0 holds if<0(a,k1,I)
  is_closed_on s,P & if<0(a,k1,I) is_halting_on s,P
proof
  let s be State of SCMPDS,I be Program of SCMPDS, a be Int_position,k1 be
  Integer;
  set b=DataLoc(s.a,k1);
  assume
A1: s.b >= 0;
  set i = (a,k1)>=0_goto (card I + 1);
  set IF=if<0(a,k1,I), pIF=stop IF, s3 = Initialize s,
  P3 = P +* pIF,
  s4 = Comput(P3,s3,1), P4 = P3;
A2: IC s3 = 0 by MEMSTR_0:47;
A3: not b in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  not a in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  then
A4: s3.DataLoc(s3.a,k1)=s3.b by FUNCT_4:11
    .= s.b by A3,FUNCT_4:11;
  Comput(P3, s3,0 + 1) = Following(P3,Comput(P3,s3,0)) by EXTPRO_1:3
    .= Following(P3,s3) by EXTPRO_1:2
    .= Exec(i,s3) by Th3;
  then
A5: IC s4 = ICplusConst(s3,card I + 1) by A1,A4,SCMPDS_2:57
    .= (0+(card I + 1)) by A2,Th4;
A6: card IF=card I+1 by Th1;
  then
A7: (card I+1) in dom pIF by COMPOS_1:64;
A8:  P3/.IC s4
 = P3.IC s4 by PBOOLE:143;
  pIF c= P3 by FUNCT_4:25;
  then pIF c= P4;
  then P4.(card I+1) = pIF.(card I+1) by A7,GRFUNC_1:2
    .=halt SCMPDS by A6,COMPOS_1:64;
  then
A9: CurInstr(P3,s4) = halt SCMPDS by A5,A8;
  now
    let k be Nat;
    per cases;
    suppose
      0 < k;
      then 1+0 <= k by INT_1:7;
      hence IC Comput(P3,s3,k) in dom pIF by A7,A5,A9,EXTPRO_1:5;
    end;
    suppose
      k = 0;
      then Comput(P3,s3,k) = s3 by EXTPRO_1:2;
      hence IC Comput(P3,s3,k) in dom pIF by A2,COMPOS_1:36;
    end;
  end;
  hence IF is_closed_on s,P;
  P3 halts_on s3 by A9,EXTPRO_1:29;
  hence thesis;
end;

theorem Th101:
  for s being State of SCMPDS,I being halt-free shiftable
Program of SCMPDS, a being Int_position,k1 being Integer st s.DataLoc(s.a,k1) <
0 & I is_closed_on s,P & I is_halting_on s,P
 holds IExec(if<0(a,k1,I),P,Initialize s) = IExec(I,P,Initialize s)
  +* Start-At((card I+1),SCMPDS)
proof
  let s be State of SCMPDS,I be halt-free shiftable Program of SCMPDS, a be
  Int_position,k1 be Integer;
  set b=DataLoc(s.a,k1);
  set IF=if<0(a,k1,I), pIF = stop IF, pI=stop I,
   s2 = Initialize s, s3 = Initialize s,
   P2 = P +* pI, P3 = P +* pIF,
   s4 = Comput(P3, s3,1), P4 = P3;
  set i = (a,k1)>=0_goto (card I + 1);
  set SAl=Start-At((card I+1),SCMPDS);
A1:  stop I c= P2 by FUNCT_4:25;
A2: IC s3 = 0 by MEMSTR_0:47;
A3: not b in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  not a in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  then
A4: s3.DataLoc(s3.a,k1)=s3.b by FUNCT_4:11
    .= s.b by A3,FUNCT_4:11;
A5: Comput(P3, s3,0 + 1) = Following(P3,Comput(P3,s3,0)) by EXTPRO_1:3
    .= Following(P3,s3) by EXTPRO_1:2
    .= Exec(i,s3) by Th3;
  assume
  s.b < 0;
  then
A6: IC s4 = IC s3 + 1 by A5,A4,SCMPDS_2:57
    .= (0+1) by A2;
  for a holds s2.a = s4.a by A5,SCMPDS_2:57;
  then
A7: DataPart s2 = DataPart s4 by SCMPDS_4:8;
  assume
A8: I is_closed_on s,P;
  then
A9: I is_closed_on s2,P2;
A10: Start-At(0,SCMPDS) c= s2 & Shift(pI,1) c= P4 by Lm6,FUNCT_4:25;
  assume
A11: I is_halting_on s,P;
  then
A12: P2 halts_on s2;
A13: Comput(P3,s3,LifeSpan(P2,s2)+1)
= Comput(P3,Comput(P3,s3,1),LifeSpan(P2,
s2))
 by EXTPRO_1:4;
A14: CurInstr(P3,
Comput(P3,s3,LifeSpan(P2,s2)+1))
 =CurInstr(P3,
 Comput(P3,s4,LifeSpan(P2,s2))) by A13
    .=CurInstr(P2,
    Comput(P2,s2,LifeSpan(P2,s2))) by A9,A10,A6,A7,Th22,A1
    .= halt SCMPDS by A12,EXTPRO_1:def 15;
  then
A15: P3 halts_on s3 by EXTPRO_1:29;
A16: CurInstr(P3,s3) = i by Th3;
  now
    let l be Nat;
    assume
A17: l < LifeSpan(P2,s2) + 1;
A18: Comput(P3,s3,0) = s3 by EXTPRO_1:2;
    per cases;
    suppose
      l = 0;
      then CurInstr(P3,Comput(P3,s3,l))
       = CurInstr(P3,s3)
       by A18;
      hence CurInstr(P3,Comput(P3,s3,l))
       <> halt SCMPDS by A16;
    end;
    suppose
      l <> 0;
      then consider n be Nat such that
A19:  l = n + 1 by NAT_1:6;
      reconsider n as Nat;
A20:  n < LifeSpan(P2,s2) by A17,A19,XREAL_1:6;
      assume
A21:  CurInstr(P3,Comput(P3,s3,l)) = halt SCMPDS;
A22: Comput(P3,s3,n+1)
 = Comput(P3,Comput(P3,s3,1),n) by EXTPRO_1:4;
      CurInstr(P2,Comput(P2,s2,n)) =
      CurInstr(P3,Comput(P3,s4,n)) by A9,A10,A6,A7,Th22,A1
        .= halt SCMPDS by A19,A21,A22;
      hence contradiction by A12,A20,EXTPRO_1:def 15;
    end;
  end;
  then for l be Nat st CurInstr(P3,
  Comput(P3,s3,l)) = halt SCMPDS
  holds LifeSpan(P2,s2) + 1 <= l;
  then
A23: LifeSpan(P3,s3) = LifeSpan(P2,s2) + 1 by A14,A15,EXTPRO_1:def 15;
A24: DataPart Result(P2,s2) = DataPart Comput(P2,s2,
LifeSpan(P2,s2)) by A12,EXTPRO_1:23
    .= DataPart Comput(P3, s4,LifeSpan(P2,s2)) by A9,A10,A6,A7,Th22,A1
    .= DataPart Comput(P3, s3,LifeSpan(P2,s2) + 1)
by EXTPRO_1:4
    .= DataPart Result(P3,s3) by A15,A23,EXTPRO_1:23;
A25: now
    let x be object;
A26: dom SAl = {IC SCMPDS} by FUNCOP_1:13;
    assume
A27: x in dom IExec(IF,P,Initialize s);
    per cases by A27,SCMPDS_4:6;
    suppose
A28:  x is Int_position;
      then x <> IC SCMPDS by SCMPDS_2:43;
      then
A29:  not x in dom SAl by A26,TARSKI:def 1;
      thus IExec(IF,P,Initialize s).x = (Result(P3,s3)).x
        .= (Result(P2,s2)).x by A24,A28,SCMPDS_4:8
        .= IExec(I,P,Initialize s).x
        .= (IExec(I,P,Initialize s) +* SAl).x by A29,FUNCT_4:11;
    end;
    suppose
A30:  x = IC SCMPDS;
A31:  IC Result(P2,s2) = IC IExec(I,P,Initialize s)
        .=  card I by A8,A11,Th25;
A32:  x in dom SAl by A26,A30,TARSKI:def 1;
      thus IExec(IF,P,Initialize s).x = (Result(P3,s3)).x
        .= Comput(P3, s3,LifeSpan(P2,s2) + 1).x by A15,A23,EXTPRO_1:23
        .= IC Comput(P3, s4,LifeSpan(P2,s2)) by A30,EXTPRO_1:4
        .= IC Comput(P2, s2,LifeSpan(P2,s2)) + 1
        by A9,A10,A6,A7,Th22,A1
        .= IC Result(P2,s2) + 1 by A12,EXTPRO_1:23
        .= IC SAl by A31,FUNCOP_1:72
        .= (IExec(I,P,Initialize s) +* SAl).x by A30,A32,FUNCT_4:13;
    end;
  end;
  dom IExec(IF,P,Initialize s) = the carrier of SCMPDS by PARTFUN1:def 2
    .= dom (IExec(I,P,Initialize s) +* SAl) by PARTFUN1:def 2;
  hence thesis by A25,FUNCT_1:2;
end;

theorem Th102:
  for s being State of SCMPDS,I being Program of SCMPDS,a being
Int_position, k1 being Integer st s.DataLoc(s.a,k1) >= 0
 holds IExec(if<0(a,k1,I),P,Initialize s) = s +* Start-At((card I+1),SCMPDS)
proof
  let s be State of SCMPDS,I be Program of SCMPDS,a be Int_position, k1 be
  Integer;
  set b=DataLoc(s.a,k1);
  set IF=if<0(a,k1,I), pIF=stop IF, s3 = Initialize s,
  P3 = P +* pIF,
  s4 = Comput(P3, s3,1), P4 = P3;
  set i = (a,k1)>=0_goto (card I + 1);
  set SAl=Start-At((card I+1),SCMPDS);
A1: IC s3 = 0 by MEMSTR_0:47;
A2: not b in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  not a in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  then
A3: s3.DataLoc(s3.a,k1)=s3.b by FUNCT_4:11
    .= s.b by A2,FUNCT_4:11;
A4: Comput(P3, s3,0 + 1) = Following(P3,Comput(P3,s3,0)) by EXTPRO_1:3
    .= Following(P3,s3) by EXTPRO_1:2
    .= Exec(i,s3) by Th3;
  assume
  s.b >= 0;
  then
A5: IC s4 = ICplusConst(s3,card I + 1) by A4,A3,SCMPDS_2:57
    .= (0+(card I + 1)) by A1,Th4;
  pIF c= P3 by FUNCT_4:25;
  then
A6: pIF c= P4;
A7:  P3/.IC s4
 = P3.IC s4 by PBOOLE:143;
A8: card IF=card I+1 by Th1;
  then (card I+1) in dom pIF by COMPOS_1:64;
  then P4.(card I+1) = pIF.(card I+1) by A6,GRFUNC_1:2
    .=halt SCMPDS by A8,COMPOS_1:64;
  then
A9: CurInstr(P3,s4) = halt SCMPDS by A5,A7;
  then
A10: P3 halts_on s3 by EXTPRO_1:29;
A11: CurInstr(P3,s3) = i by Th3;
  now
    let l be Nat;
A12: Comput(P3,s3,0) = s3 by EXTPRO_1:2;
    assume
    l < 1;
    then l <1+0;
    then l=0 by NAT_1:13;
    then CurInstr(P3,Comput(P3,s3,l))
     = CurInstr(P3,s3) by A12;
    hence CurInstr(P3,Comput(P3,s3,l))
     <> halt SCMPDS by A11;
  end;
  then for l be Nat st CurInstr(P3,
  Comput(P3,s3,l)) = halt SCMPDS
  holds 1 <= l;
  then LifeSpan(P3,s3) = 1 by A9,A10,EXTPRO_1:def 15;
  then
A13: s4 = Result(P3,s3) by A10,EXTPRO_1:23;
A14: now
A15: dom SAl = {IC SCMPDS} by FUNCOP_1:13;
    let x be object;
    assume
A16: x in dom IExec(IF,P,Initialize s);
    per cases by A16,SCMPDS_4:6;
    suppose
A17:  x is Int_position;
      then x <> IC SCMPDS by SCMPDS_2:43;
      then
A18:  not x in dom SAl by A15,TARSKI:def 1;
A19:   not x in dom Start-At(0,SCMPDS) by A17,SCMPDS_4:18;
      thus IExec(IF,P,Initialize s).x = s4.x by A13
        .= s3.x by A4,A17,SCMPDS_2:57
        .= s.x by A19,FUNCT_4:11
        .= (s +* SAl).x by A18,FUNCT_4:11;
    end;
    suppose
A20:  x = IC SCMPDS;
      hence IExec(IF,P,Initialize s).x = (card I + 1) by A5,A13
        .= (s +* SAl).x by A20,FUNCT_4:113;
    end;
  end;
  dom IExec(IF,P,Initialize s) = the carrier of SCMPDS by PARTFUN1:def 2
    .= dom (s +* SAl) by PARTFUN1:def 2;
  hence thesis by A14,FUNCT_1:2;
end;

registration
  let I be shiftable parahalting Program of SCMPDS, a be Int_position,k1 be
  Integer;
  cluster if<0(a,k1,I) -> shiftable parahalting;
  correctness
  proof
    set i = (a,k1)>=0_goto (card I +1);
    set IF=if<0(a,k1,I), pIF = stop IF;
    thus IF is shiftable;
      let s be 0-started State of SCMPDS;
      let P be Instruction-Sequence of SCMPDS;
A1:  Initialize s = s by MEMSTR_0:44;
      assume pIF c= P;
      then
A2:   P = P +* stop IF by FUNCT_4:98;
A3:   I is_closed_on s,P & I is_halting_on s,P by Th11,Th12;
      per cases;
      suppose
        s.DataLoc(s.a,k1) < 0;
        then IF is_halting_on s,P by A3,Th99;
        hence P halts_on s by A2,A1;
      end;
      suppose
        s.DataLoc(s.a,k1) >= 0;
        then IF is_halting_on s,P by Th100;
        hence P halts_on s by A2,A1;
      end;
  end;
end;

registration
  let I be halt-free Program of SCMPDS, a be Int_position,k1 be Integer;
  cluster if<0(a,k1,I) -> halt-free;
  coherence;
end;

theorem
  for s being State of SCMPDS,I being halt-free shiftable parahalting
, Integer
 holds,FOMODEL0 ABIAN ,POWER ,,XBOOLE_0
proof
  java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 11
  SCMPDS
  set IF=:      (  i,)by
A1java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 17
  per     :::: repeated

    sSS      byjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 35
    then IExec(end
     +
    by    java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
    k= by13
;
  suppose
    s.A0: 1 < k;
    then suppose k;
    hence   ,java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 61
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 6



  for s beingjava.lang.StringIndexOutOfBoundsException: Range [15, 13) out of bounds for length 20
Program java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 0
  < 0 holds IExec(if<0(java.lang.StringIndexOutOfBoundsException: Range [2, 24) out of bounds for length 6

    ;
  Fib  Fib   java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
  assume
A1: s.DataLoc(s.a,k1) < 0;
A2: not b in dom Start-At((card I+1),SCMPDS) by SCMPDS_4:18;
  I is_closed_on s,P & IA1 m<&m>;
         1asofby:A1;
*( I1,java.lang.StringIndexOutOfBoundsException: Range [33, 34) out of bounds for length 33
  by A1,Th101;
      m    by;
end;

theorem
fI ab
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
 holds IExec(if<0(a,k1,I),P,Initialize s).b = s.b
proof
  let s be State of SCMPDS,I be Program of SCMPDS,a,b be Int_position, k1 be
  Integer;
  assume
  s.DataLoc(s.a,k1) >= 0;
  then
A1: IExec(if<0(a,k1,I),P,Initialize s) = s +* Start-At((card I+1),SCMPDS)
      by Th102;
  not b in dom Start-At((card I+1),SCMPDS) by SCMPDS_4:18;
  hence thesis by A1,FUNCT_4:11;
end;

begin :: The computation of "if var>=0 then block"

theorem
  card if>=0(a,k1,I) = card I + 2 by Lm8;

theorem
0  >0k,)&   if=ak1I Lm9


  if>=0(a,k1
  goto (card I + 1beingNat

theorem java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
 bejava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
  SCMPDS, a being Int_positionn+  21
is_closed_on s,P & I is_halting_on being fn .  Fibonacci
 & if - 
  ,fi f 
A3fi=  i java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
  let s behenceMOEBIUS221java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
  Int_position,k1 be Integer;
  set java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
  set IF=if>=0(a, 
   s2 =  divides-  java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 35
e;
   s4 = Comput(
  ak>0goto2,j= card +;
ajava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
:   ;j ; )SCMPDS_4:;
A3: Comput(P3, s3,0 + 1) = Following(P3,Comput(P3,s3,0)) by EXTPRO_1:3
    .= Following(P3,4*k+;
. is3  Th3
  for a holds s2.a s
  then
:java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 44
:  in-0) :;
  not a in dom Start-At(0    
  then
A6java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 29
 11java.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
A7: IC s3 = 0 java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 7
  assume
  s;
  then
:s4 java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 50
    .= (0+2) by A7,Th4;

A9: InSeg  java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 42
  then
A10: I is_closed_on s2,java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4
  assume
  s;
java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
A11: P2 halts_on s2;
A12: Start-At(0A3:l-k =m-k S1,XREAL_113java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
;
  now
    let k be Nat;
    per cases;
    suppose

      then consider     set f = ArProg (n! + 1, n!);
A14:  k1 + 1 = k by NAT_1:6;
      reconsider k1 as Nat;
      .= n!++!   
 being      holds
    <=n; 
. + 2
        .=t2 ( n  java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 28
       m in dom pI by A9;
<pIby:java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
      then
  +2 pIFbyA15:java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
      IC Comput
        .:: an increasing arithmetic progression.
      Computs3 domA1666;
    for x, java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24

      k = 0;
      hence IC Comput(t0    =*xby :;
    end;
  endjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 21
  hence IF is_closed_on   *,,*  is  is   :
:P3,P2+)
 = Comput(P3,Comput(P3,s3;
)
by EXTPRO_1:4;
  CurInstr(P3,
  Comput(P3,s3,      x * (x + 1), y * x+)   y  )*( 1  java.lang.StringIndexOutOfBoundsException: Range [60, 61) out of bounds for length 60
   =CurInstr(P3,
   Comput(P3,s4,LifeSpan(P2,    [xx : (;
.(,
    Comput(P2,s2,LifeSpan(P2 x1,x2 be object;
    .= halt SCMPDS by A11,EXTPRO_1:def 15;
  then P3 halts_on s3 by EXTPRO_1:29;
 java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 15
end:: Problem 55

eorem Th110:
 java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 64
  Int_position, k1 being Integer ,bbe;
  is_closed_on s,P & if>=0(a,k1,I) is_halting_on s,P
proof
  let s be State of SCMPDS,I be Program of SCMPDS, a be Int_position,k1 be
  Integer;
  set b=DataLoc(s.a,k1);
  assume
:.  ;
    a>_,= (   )java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
  set IF=if>=0 b=4 *  b ,89 java.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
  P3 = P +* pIF,
  s4 = C1 b ;
A2: IF =i ';' (j ';' 
A3: not b :: difference, formed of positive integers and containing no triangular number.
  not a in:  2*)java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
  then
A4: s3.DataLoc(s3.a,k1)=s3.b by FUNCT_4:11
    .= s.b by A3,FUNCT_4:11;
A5: IC s3 = 0 by MEMSTR_0:47;
  Comput(P3, s3,0 + 1) = Following(P3,Comput(P3,s3,0)) by EXTPRO_1:3
    .= Following(P3,s3) by EXTPRO_1:2
    .= Exec(i,s3) by A2,Th3;
  then
A6     +1 A1S57
    .= (0+1) by A5;
A7: pIF c= P3 by FUNCT_4:25;
  then
A8: pIF c= P4;
A9:  1 in dom IF by  3 3*)
  a1 3*  )*(  ) 
      proof
A10: P4.1 = pIF.        java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 21
    .=IF. 1 by A9,COMPOS_1:63
    .=j by Lm10java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 23
:c 2 java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
  then
A12: (card I+2) java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 13
A13:  P3/.IC s4 = P3.IC s4 by PBOOLE:143;
  Comput(P3, s3endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
    .= Exec(j,    
  then
A14: IC s5 = ICplusConst(s4,card I+1)       19 
    .= (card Ijava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 17
A15  2        by,java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 50
=. s5PBOOLEjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26

),RFUNC_1:java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
    .=halt SCMPDS by A11,COMPOS_1:64a4(,1.(*+)      m  2*m+1)by;
  then
A16: CurInstr(P3,s5) = halt SCMPDS by A14,A15;
  now
    let k be Nat;
: k       =INT_1;
    per cases by A17,XXREAL_0:1;
    suppose
:4m  (*  m+   19
     java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 46
      hence IC Comput(P3,s3,k) in dom pIF*(  + X ,,;
    end;
    suppose
      k = 1;
by,,java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
    end;
    suppose
<;
      then 1+1 <= k by INT_1:7;
      hence IC Comput(P3,s3,k) in dome;
 by,14,16EXTPRO_1:5;
        assu (.-;
  end;
  hence e;
  P3 halts_on s3 by A16,EXTPRO_1:29 
  hence thesis;
end;

Th111
forsbeing   ,- 
  Program of SCMPDS, a being Int_position,k1 being Integer st s.DataLoc:k=3  
  >= 0 & Ibegin:: java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
   holds
Ps *(c I2S
proof
  let s be State of SCMPDS,  let s be State of SCMPDS,I
  Int_position,k1 be Integer;
  set b=DataLoc(s.a,k1);
  set IF=if>=0(a,k1,I), java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
   s2 =     4 divides n |^
       ajava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 22
   s4 = Comput(P3, s3,1), P4 = P34divides( |^)byNEWTON0584;
  set i = (a,k1)>=0_goto 2, j en
  set SAl=Start-At((card    consider x  ,k   
A1: IF=i ';' (j ';'  2dividesxbyINT_2:,NAT_35,A1,BIAN:ef 1
A2:  stop Itheorem:
A3: Comput(P3,     4 * k + 2 is  perfect_power
    .= Following(P3,s3) by EXTPRO_1:2
    .= Exec(i,s3) by A1,Th3;
A4: not b in dom Start-java.lang.StringIndexOutOfBoundsException: Range [0, 25) out of bounds for length 0
  not a in dom Start-At(0,SCMPDS) by SCMPDS_4:18;
  then
A5: s3.DataLoc(s3.a,k1)=s3.b by FUNCT_4:11
        p =x  | k
     I:4Njava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
A7: Start-At(0,SCMPDS) c= s2 & Shift(pI,2) c= P4 by Lm7,FUNCT_4:25;
  for a holds s2.a = s4.a by A3,SCMPDS_2:57;
  then
:DataPart   by8
  assume
  s.b >= 0;
  then
A9: IC s4        ^81java.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
    .= (0+2) by A6,Th4;
  assume
A10: I is_closed_on s,P;
  then
A11: I is_closed_on s2,P2;
  assume
A12: I is_halting_on s,P;

A13: P2 halts_on s2;
A14: Comput(P3,s3,LifeSpan(P2,s2)+1)
 = Comput(P3,Comput( hence  A1Four2NotPerfect
,s2))
 by EXTPRO_1:4;
A15: CurInstr(P3    
Comput:: Find all increasing arithmetic progressions formed of three terms
 =CurInstr(P3,
 Comput(P3,s4,LifeSpan(P2,s2))) by A14
    .=                  )&
    Comput>     -2&=l+  :: niekoniecznie, dla k = 2 jest OK
     by A11,A7,A9,A8,java.lang.StringIndexOutOfBoundsException: Range [0, 25) out of bounds for length 21
    .= halt SCMPDS by A13A1:       
  then
A16:      >=1 + by NAT_1:13; then
A17: CurInstr(P3
  now
let;
    assume
A18:l> + by NAT_1:13 
 (,0   by2java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
    per cases;
    suppose
      l = :m NAT by ORDINAL1def java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
P3P3,java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
       = CurInstr(P3,s3)
      by A19;
      hence CurInstr(P3,Comput(
P3,s3,l))
       <> halt SCMPDS by A17;
    end;
    suppose
      l <> 0;
      then consider n be Nat such that
A20:  l = n + 1 by NAT_1:6;
       nas ;
A21:  n < LifeSpan(P2,s2) by A18,A20,XREAL_1:6;
      assume
A22:  CurInstr(P3x2:   Fib (l1+1+1) = Fib (l1+1) + Fib l1 by PRE_FF:1;
s3,l)) = halt SCMPDS;
A23: Comput(P3,s3,n+1)
 = Comput(P3,Comput(P3,s3,1),n) by EXTPRO_1:4;
      CurInstr(P2,Comput(P2,s2,n))
P3C(P3n)
       by A11,A7,A9,A8,Th22,A2
. by ,java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
      hence contradiction by       
    end;
  end;
  then for l be Nat st CurInstrX2      l11+)  l+)+Fib;
  Comput   <  XXREAL_0:
,s2+ =ljava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
  then
,)+by A, 15java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
A25: DataPart Result(P2,s2) = DataPart Comput(P2,s2,
LifeSpan(P2,s2)) by A13,EXTPRO_1:23
    .= DataPartproof
     java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 50
by -= 4 - Fib 1 by FIB_NUM2:23,PRE_FF:1,Fib5;
    .= DataPart Result(P3,s3) by A16,A24,EXTPRO_1:23;
A26: now
    let x be object;
A27: dom Start-Atl-k>; 
    assume
:x indom IExec(F,,nitialize);
    per cases by A28,java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 11
    suppose
A29:  x is Int_position;
      then x <> IC SCMPDS by SCMPDS_2:43;
      then
:x  : java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
      thus IExec(IF,P,Initialize s).x = (Result(java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 49
        .= (Result(P2,s2)).x by A25,A29,SCMPDS_4:8
        .= IExec(I,P,SU:     k = 2 & l = 3 & mjava.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35
        .= (IExec(I,P,Initialize s)       
    end;
    suppose
A31:  x = IC SCMPDS;
A32:  IC Result(:: Find all arithmetic progressions with difference 10 formed of more
        .=  card I by A10,A12,   fbeingjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
:inSAlA27A31: ;
      thus IExec(
        .= 
p1 &p2=(+   (2;
        .=A2 =fi& .i+  3=f(+)A1java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
        by A11,A7,A9,A8,Th22,A2
.(s2   EXTPRO_1:23
        .= IC SAl by A32,FUNCOP_1:72
        .= (IExecC3: ot3divides p2
    end;
  end;
  dom IExec(IF,P
    .= dom (IExec(I,P,Initialize s)
 I2),SCMPDS) by PARTFUN1:def 2java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
  hence thesis by A26,FUNCT_1:2;
end;

theorem Th112:
  for s being State of SCMPDS,I being Program of SCMPDSp1=i    .)&p3 .2   .i)
Int_position, k1 being Integer st s.DataLoc(s.a,k1) < 0
:    byA2,java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 48
proof
  let s be State of SCMPDS,I be Program    java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 60
     =;
  set b=DataLoc(s.a,k1);
  set IF=if>=0(a,k1,I), pIF=stop IF, s3 = Initialize s,
  P3 = P +* pIF,
  s4 = Comput(P3,s3,1), s5  java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
 =ak1>0goto ,=cI+1)java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
  set SAl
A1: IF =i ';' (j ';' I) by SCMPDS_4:16;
A2: not
  not a in     difference=100&

A3: s3.DataLoc(s3.a,k1)=s3.b by A1:java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 61
    .= sf-java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 77
A4: IC s3 = 0           .   fi1   .2  ;
A5: pIF c= P3 by FUNCT_4:25-p2= difference  byA2,LemmaDiffConst;

A6: pIF c= P4;
A7: pIF c= P5 by A5;
A8: Comput(P3, s3,0 + 1) = Following(P3,Comput(P3hence AAb,java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
.= Following,s3:
    .= Exec(i,s3) by A1,Th3;
  assume
  s.b < 0;
  then
A9: IC s4 = IC s3 + 1 by  =1000 java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
    .= (0+1) by A4;

  then  1 in dom pIF by COMPOS_1:62;
  then
A11: P4.1 = pIF. 1 by A6,GRFUNC_1b1    java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 48
y,63
    .=j by Lm10;
A12:  P3/.IC s4 = P3.IC s4       =17* ;
A13: java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
    .= Exec(j,s4) by A9,A11,A12;
  then
:IC=card+  54
    .= (card I+1+1) by A9,        ;
    .= (card I+(  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
A15:  (P3)/.IC s5
 = P3ition  be;
A16: card  p1,p2 being Prime st
  then (card I+2
  then P5.(card I+2  f
    .=halt SCMPDS by A16,java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 4
  then
A17: CurInstr(P3,s5) = halt SCMPDS by A14      (  )
  then
A18: P3 halts_on s3 by EXTPRO_1:29;
A19: CurInstr(P3,s3) = i by A1,Th3;
  now
    let l be Nat;
    assume
    l < 1+1;
    then
A20: l <= 1 by NAT_1:13;
A21: Comput(P3,s3,0) = s3 by EXTPRO_1:2;
A22: P3/.IC Comput(P3,s3,l)
 = P3.IC Comput(P3,s3,l) by PBOOLE:143;
    per cases by A20,NAT_1:25;
    suppose
      l=0;
      then CurInstr(P3,Comput(P3,s3,l))
       = CurInstr(P3,s3)
       by A21;
      hence CurInstr(P3,Comput(P3,s3,l))
       <> halt SCMPDS by A19;
    end;
    suppose
      l=1;
      hence CurInstr(P3,Comput(P3,s3,l))
       <> halt SCMPDS by A9,A11,A22;

  end;
  then for l be Nat st CurInstr(P3,
  Comput(P3,s3,l)) = halt SCMPDS
  holds 2 <= l;
  then LifeSpan(P3,s3) = 2 by A17,A18,EXTPRO_1:def 15;
  then
A23: s5 = Result(P3,s3) by A18,EXTPRO_1:23;
A24: now
A25: dom SAl = {IC SCMPDS} by FUNCOP_1:13;
    let x be object;
    assume
A26: x in dom IExec(IF,P,Initialize s)          
    per cases by A26,SCMPDS_4:6;
    suppose
A27:
      then x <  end;
      then

A29:   not x  
      thus IExec(IF,Pl ibejava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
        .= s4.x by A13,A27,SCMPDS_2:java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 17
        .= s3.x by A8,A27,SCMPDS_2:57
        .= s.x by A29,FUNCT_4:11
        .= (s +* SAl).x by A28,FUNCT_4:11;
    end;
    suppose
A30:  x = IC SCMPDS;
      hence IExec(IF,P,Initialize s).x = (card I + 2) by A14,A23
        .= (s +* Start-At((card I+2),SCMPDS)).x by A30,FUNCT_4:113;
    end;
  end;
  dom IExec(IF,P,Initialize s) = the carrier of SCMPDS by PARTFUN1:def 2
    .= dom (s +* SAl) by PARTFUN1:def 2;
  hence thesis by A24,FUNCT_1:2;
end;

registration
  let I be shiftable parahalting Program of SCMPDS, a be Int_position,k1 be
  Integer;
  cluster if>=0(a,k1,I) -> shiftable parahalting;
  correctness
  proof
    set i = (a,k1)>=0_goto 2, j = goto (card I + 1);
    set IF=if>=0(a,k1,I), pIF = stop IF;
    thus IF is shiftable;
      let s be 0-started State of SCMPDS;
      let P be Instruction-Sequence of SCMPDS;
A1:  Initialize s = s by MEMSTR_0:44;
      assume pIF c= P;
      then
A2:   P = P +* stop IF by FUNCT_4:98;
A3:   I is_closed_on s,P & I is_halting_on s,P by Th11,Th12;
      per cases;
      suppose
        s.DataLoc(s.a,k1) >= 0;
        then IF is_halting_on s,P by A3,Th109;
        hence P halts_on s by A2,A1;
      end;
      suppose
        s.DataLoc(s.a,k1) < 0;
        then IF is_halting_on s,P by Th110;
        hence P halts_on s by A2,A1;
      end;
  end;
end;

registration
  let I be halt-free Program of SCMPDS, a be Int_position,k1 be Integer;
  cluster if>=0(a,k1,I) -> halt-free;
  coherence;
end;

theorem
  for s being 0-started State of SCMPDS,I being halt-free shiftable parahalting
Program of SCMPDS,a being Int_position,k1 being Integer
 holds IC IExec(if>=0(a,k1,I),P,s) = card I + 2
proof
  let s be 0-started State of SCMPDS,
      I be halt-free shiftable parahalting Program of
  SCMPDS,a be Int_position,k1 be Integer;
  set IF=if>=0(a,k1,I);
A1: I is_closed_on s,P & I is_halting_on s,P by Th11,Th12;
A2: Initialize s = s by MEMSTR_0:44;
  per cases;
  suppose
    s.DataLoc(s.a,k1) >= 0;
    then IExec(IF,P,s) =IExec(I,P,s) +* Start-At((card I+2),SCMPDS)
    by A1,Th111,A2;
    hence thesis by FUNCT_4:113;
  end;
  suppose
    s.DataLoc(s.a,k1) < 0;
    then IExec(IF,P,s) =s +* Start-At((card I+2),SCMPDS) by Th112,A2;
    hence thesis by FUNCT_4:113;
  end;
end;

theorem
  for s being State of SCMPDS,I being halt-free shiftable parahalting
Program of SCMPDS,a,b being Int_position,k1 being Integer st s.DataLoc(s.a,k1)
  >= 0 holds IExec(if>=0(a,k1,I),P,Initialize s).b = IExec(I,P,Initialize s).b
proof
  let s be State of SCMPDS,I be halt-free shiftable parahalting Program of
  SCMPDS,a,b be Int_position,k1 be Integer;
  assume
A1: s.DataLoc(s.a,k1) >= 0;
A2: not b in dom Start-At((card I+2),SCMPDS) by SCMPDS_4:18;
  I is_closed_on s,P & I is_halting_on s,P by Th11,Th12;
  then IExec(if>=0(a,k1,I),P,Initialize s) = IExec(I,P,Initialize s)
   +* Start-At((card I+2),SCMPDS)
   by A1,Th111;
  hence thesis by A2,FUNCT_4:11;
end;

theorem
  for s being State of SCMPDS,I being Program of SCMPDS,a,b being
Int_position, k1 being Integer st s.DataLoc(s.a,k1) < 0
 holds IExec(if>=0(a,k1,I),P,Initialize s).b = s.b
proof
  let s be State of SCMPDS,I be Program of SCMPDS,a,b be Int_position, k1 be
  Integer;
  assume
  s.DataLoc(s.a,k1) < 0;
  then
A1: IExec(if>=0(a,k1,I),P,Initialize s) = s +* Start-At((card I+2),SCMPDS)
 by Th112;
  not b in dom Start-At((card I+2),SCMPDS) by SCMPDS_4:18;
  hence thesis by A1,FUNCT_4:11;
end;

theorem
  for s being State of SCMPDS,I being Program of SCMPDS
   holds I is_closed_on s,P iff I is_closed_on Initialize s,P;

theorem
  for s being State of SCMPDS,I being Program of SCMPDS
   holds I is_halting_on s,P iff I is_halting_on Initialize s,P;


Messung
CHZG
8010010093

¤ Dauer der Verarbeitung: 0.341 Sekunden  ¤

*Bot Zugriff







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

letze Version des Elbe Quellennavigators


letze Version des Demonstrationsprogramms Goedel
letze Version des Bille Abgleichprogramms
Version

Jenseits des Üblichen ....

Besucher

Besucher

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