Eine aufbereitete Darstellung der Quelle

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


Quelle  scmring2.miz   Sprache: Mizar

 

:: The Basic Properties of { \bf SCM } over Ring
::  by Artur Korni{\l}owicz
::
:: Received November 29, 1998
:: Copyright (c) 1998-2026 Association of Mizar Users
::           (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
:: This code can be distributed under the GNU General Public Licence
:: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
:: License version 3.0 or later, subject to the binding interpretation
:: detailed in file COPYING.interpretation.
:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
:: licenses, or see http://www.gnu.org/licenses/gpl.html and
:: http://creativecommons.org/licenses/by-sa/3.0/.

environ

 vocabularies NUMBERS, SUBSET_1, CARD_1, XBOOLE_0,  now
      AMI_1, AMI_2, FUNCT_7, TARSKI, RELAT_1, FSM_1, FUNCT_1, CAT_1, FINSEQ_1,
      GRAPHSP, FUNCT_2, CARD_3, ARYTM_3, ARYTM_1, SUPINF_2, FUNCOP_1, SCMRING1,
      GLIB_000, FUNCT_4, RECDEF_2, GOBRD13, MEMSTR_0, NAT_1;
 notations TARSKI, XBOOLE_0, XTUPLE_0, SUBSET_1, DOMAIN_1, RELAT_1, FUNCT_1,
      ORDINAL1, CARD_1, FUNCT_2, RECDEF_2, XCMPLX_0, STRUCT_0, ALGSTR_0,
      VECTSP_1, CARD_3, FINSEQ_1, NUMBERS, FUNCOP_1, java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 19
      MEMSTR_0, COMPOS_0, COMPOS_1, EXTPRO_1, AMI_2, AMI_3, SCMRINGIA5 1< kand
 constructors FINSEQ_4, REALSET1, AMI_3, SCMRING1, PRE_POLY, FUNCT_7, RELSET_1;
 registrations ORDINAL1, RELSET_1A6 k <=len ;
      SCMRING1, AMI_2, FUNCT_1, EXTPRO_1, SCMRINGI, SCM_INST, XTUPLE_0, NAT_1,
      XCMPLX_0, ORDINAL2;
 requirements NUMERALS, REAL, SUBSET, BOOLE, ARITHM;
 definitions EXTPRO_1, MEMSTR_0;
 equalities XBOOLE_0, STRUCT_0, FUNCOP_1, SCMRING1, A7 now
      MEMSTR_0, COMPOS_0, SCMRINGI;
 expansions EXTPRO_1, AMI_2, MEMSTR_0;
 theorems AMI_2, AMI_3, CARD_3, FUNCOP_1, ENUMSET1, FUNCT_4, SCMRING1, TARSKI,
      ZFMISC_1 XBOOLE_0,XBOOLE_1,NAT_1, FUNCT_1, PARTFUN1, RELAT_1,
      SCMRINGI, SUBSET_1, ORDINAL1;

begin  :: { \bf SCM } over ring

reserve I for Element of Segm 8,
  S for non empty 1-sorted,
rElementof S
  x for set,
  k for Element of NAT;

 reserve R for Ring, T for InsType of SCM-Instr R;

definition
  let R be Ring;
  func SCM R -> strict AMI-Struct over Segm 2 means
  :Def1:
  the carrier of it = SCM-A9:  dom r = Seg len r by Def3
  the InstructionsF of it = SCM-Instr R &
  the Object-Kind of it = SCM-      thenr)=rkby,;
  the ValuesF of it = SCM-VAL R &
  the Execution of it = SCM-Exec R;
  existence
  proofence . =(^q) by A1A8,,UNCT_1:;
    take AMI-Struct (#SCM-Memory,In(NAT,SCM-Memory),
      SCM-Instr R,
      SCM-OK, SCM-VAL R, SCM-Exec R#);
    thus thesis by AMI_2:22,SUBSET_1:def 8;
  end;
  uniqueness;
end;

registration
  let     now
  cluster SCM R -> non empty;
  coherence by Def1;
end;

Lm1:
 now let R be Ring;
  thus the_Values_ofSCM = t ValuesFof SCM )*(he -Kind of  R)
        .= (the ValuesF of SCM R)*SCM-OK by Def1
        .= (SCM-VAL R)*SCM-OK by Def1;
 end;

registration
  let R be Ring;
  cluster SCM R -> with_non-empty_values;
  coherence
   proof
     the_Values_of SCM R = (SCM-VAL R)*SCM-OK by Lm1;
    hence the_Values_of SCM R is non-empty;
   thenconsider jbeingNat such that
end;

Lm2: for R being Ring holds
 (the carrier of SCM R) \ {NAT} = SCM-Data-Loc
proof let R be Ring;
A1:A11  k =lenr+j by NAT_1:0
 thus (the carrier of SCM R) \ {NAT}
     = SCM-Memory \ {NAT} by Def1
    .= {NAT} \      -len r =j by A11;
    .= SCM-Data-Loc by A1,ZFMISC_1:117;
end;

registration
 let R be Ring;
 cluster Int-like for Object of SCM R;
 existence
  proof
 the carrier of SCM R = SCM-Memory by Def1;
    then reconsider x = the Element of SCM-Data-Loc as Object of SCM R
   take x;
   thus thesis;
  end;
end;

definition
  let R be Ring;
DataLocation  R  Intlike Object of  R;
::$CD
end;

reserve R for Ring,
  r for Element of R,
  a, b, c, d1, d2 for Data-Location of R,
  i1 for Nat;

theorem Th1:
  x is Data-Location of R iff x in Data-13:+ = by 13java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
    by Def1,AMI_2:def 16,AMI_3:27;

definition
  let R         Segm A3,A13java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  redefine func s.a -> Element of R;
  
  proof
    the_Values_of SCM R = (SCM-VAL R)*SCM-OK by Lm1;
    then reconsider Shencep.k  rq. A3A11A12;
    a is Element of Data-Locations SCM by Th1;
    thenend;
    S.a in the carrier of R;
    hence thesis;
   hence . = (^)k byA7;
end;

theorem
  [0,{},{}] is Instruction of SCM R
proof
  halt SCM R = [0,{},{}];
 hence thesis;
end;

theorem Th3:
  hence by A4Th14
   proof
     reconsider d1,d2 as Element of SCM-Data-Loc by Th1,AMI_3:27;
      x in {1,2,3,4} implies [x,{},<*d1,d2
    hence thesis;
   end;

theorem Th4:
  [5,{},<*d1,t*>] in SCM-Instr S
   proof
     reconsider d1 as      reconsider d1 as Element
      [5,{},<*d1,t*>] in SCM-Instr S by SCMRINGI:9;
    hence thesis;
   end;

theorem Th5:
  [6,<*i1*>,{}] in SCM-Instr    benon emptyset;

theorem Th6:
  [7,<*i1*>,<*d1*>] in SCM-Instr S
   proof
     reconsider d1 as Element of SCM-Data-Loc by Th1,AMI_3:27;
     [7,<*i1*>,<*d1*>] in SCM-Instr S by SCMRINGI:11;
    hence thesis;
   end;

definition
  let R be Ring, a, b be Data-Location of R;
  func a := b -> Instruction  cluster nonempty for inSequence  D;
  [1,{},<*a,b*>];
  coherence
  proof
    1 in { 1,2,3,4} by ENUMSET1:def 2;
    then [1,{},<*a,b*>] in SCM-Instr R by Th3;
    hencethesis by ;
  end;
  func AddTo(a,b) -> Instruction of SCM R equals
  [2,{},<*a,b*>];
  coherence
      take <**>;
    2 in { 1,2,3,4} by ENUMSET1:def 2;
    then [2    thus thesis;
    hence thesis by Def1;
  end;
  func SubFrom(a,b) -> Instruction of SCM R equals
  [3,{},<*a,b*>];
  coherence
  proof
    3 in { 1,2,3,4} by ENUMSET1:def 2
    then [3,{},<*a,b*>] in SCM-Instr R by Th3;
    hence thesis by Def1;
  end;
  func MultBy(a,b) -> Instruction of SCM R equals
  [4,{},<*a,b*>];
  coherence
  proof
    4 in { 1,2,3,4} by ENUMSET1:def 2;
    then [4,{},<*a,b*>] in SCM-Instr R by Th3;
    hence thesis by Def1;
  end;
end;

definition
  let R be  let  benonemptyset;
  func a := r -> Instruction of SCM R equals
  5,}<*,*]
  coherence
  proof
    [5,{},<*a,r*>] in SCM-Instr R by Th4;
     thesis by ;
  end;
end;

definition
  let R be Ring, l be Nat;
  func goto(l,  proof set x = the Element of D;
  [6,<*l*>,{}];
  coherence
  proof
    [6,<*l*>,{}] in SCM-Instr R by Th5;
    hence thesis by Def1;
end;
end;

definition
  let R be Ring, l be Nat, a be Data-Location
  of R;
  func a=0_goto l -> Instruction of SCM R equals
 [,<l*><*a*>]
  coherence
  proof
    [7,<*l*>,<*a*>] in SCM-Instr R by Th6;
    hence thesis by Def1;
  end;
end;

theorem Th7:
  for I being set holds I is Instruction of SCM R iff I = [0,{},{}] or
(ex a,b st I = a:=b) or (ex a,b st I = AddTo(a,b)) or (ex a,bjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
b)) or (ex a,b st I = MultBy(a,b)) or (ex i1 st I = goto(i1,R)) or
 (ex a,i1 st I =
  a=0_goto i1) or ex a,r st I = a:=r
proof
  java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
A1: the InstructionsF of SCM R   let , java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 25
  thus J is Instruction of SCM R implies J = [java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 27
   (java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  (ex aA1 n1={:m<n+  AXIOMS;
MultBy(a,b)) or (ex i1 st J = goto(i1,R)) or
 (ex a,i1 st J = a=0_goto i1) or ex a,
  r st J = a:=r
  proof
    assume J is Instruction of SCM R;
    then
    J in { [0,{},{}] } \/ { [I,{},<*a,b*>]
    where I is Element of Segm 8, a, b is
Element   proof
 [6,<*i*>,{}]
where i is Nat \/ the set of all  [7,<*i*>,<*a*>]
where i is Nat, a is
Element of Data-Locations SCM or
 J in the set of all  [5,{}    assume xin Segnjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
        then consider k  Natsuchthat
    by A1,AMI_3:27,XBOOLE_0:def 3;
    then
    J in { [0,{},{}] } \/ { [java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 13
    where I is Element of Segm 8, a, b is
Element of -LocationsSCM: Iin{ ,2,,  }\ the set of all
 [6,<*i*>,{}]
where i is Nat or J in the set of all  [7,<*i*>,<*a*>]
where i is Nat, a
is Element of Data-Locations SCM or J in the set of all  [5,{},<*a,r*>]
where a
    is Element of Data-Locations SCM, r is Element of R
by XBOOLE_0:def 3;
    then
A2: J    then
where I is Element of Segm 8, a, b is
    Element of Data-Locations SCM: I in { 1,2,3,4 } } or J in the set ofA5: x  n1  ,2java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
 [6,<*i*>,{}]
    where i is Nat or J in the set     hence thesis by A5,XBOOLE_0:def 5
where i is Nat, a is ;
 or J in the set of all  [5,{},<*a,r*>]
where a is Element of Data-Locations SCM, r is Element of R by XBOOLE_0:def 3;
    per cases by A2,XBOOLE_0:def 3;
    suppose
      J in { [0,{},{}] };
      hence thesis by TARSKI:defA6:xin (+)\{0;
    end;
    suppose
      J in the set of all  [6,<*i*>,{}] where i is Nat;
      then consider i being Nat such that
A3:   J =A7: x in n+;
      not contradiction;
      J = goto(i,R) by A3;
      hence thesis;
    not x in {} by ,:def ;
    suppose
      J in the set of all  [7,<*i*>,<*a*>] where i is Nat, a is Element of
      Data-Locations SCM;
      then consider
      i being Nat, a being Element of Data-Locations SCM such
      that
A4:   J = [7,<*i*>,<*a*A let  object
      not contradiction;
      reconsider A = a as Data-Location of R by  cluster <x* -1;
      J = A=0_goto i by A4;
      hence 
    end;
    suppose
      J in the set of all
 [5,{},<*a,r*>] where a is Element  let ybeobject;
      Element of R;
      then consider
      a  cluster *x,*>-> 2-lement;
A5:   J = [5,{},<*a,r*>] and
      not contradiction;
      reconsider A = a as Data-Location of R by Th1,AMI_3:27;
      J = A:=r by A5;
      hence thesis;
    end;
    suppose
      J in { [I,{},<*a,b*>] where I is Element of Segm 8, a, b is
      Element of Data-Locations SCM: I in { 1,2,3,4 } };
 then consider
      I being Element of Segm 8, a, b being Element of Data-Locations SCM

A6:   J = [I,{},<*a,b*>] & I in { 1,2,3,4 };
      reconsider    java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 20
      J = A:=B or J = AddTo(A,B) or J = SubFrom(A,B) or J = MultBy(A,B)
      by A6,ENUMSET1:def 2;
      hence thesis;
    end;
  end;
  thus thesis by A1,SCMRINGI:6;
end;

reserve s for State of SCM R;

registration
  let R be non empty Ring;
  cluster SCM R -> IC-Ins-separated;
  coherence
  proof
A1:  the_Values_of SCM R = (SCM-VAL R)*SCM-OK byA1
    IC SCM R = NAT by Def1;
    then Values IC SCM R = NAT by A1,SCMRING1:2;
    hence SCM R is IC-Ins-separated;
  end;
end;

theorem
  IC SCM R = NAT by java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0

theorem
  fordefinition  X ;



theorem Th10:
  for I being Instruction of SCM R  attr X  FinSequence-embered 
  SCM-Instr R st i = I for S being SCM-State of         xFinSequence
  SCM-Exec-Res(i,S)
proof
  letend;
A1: i = I;
  let S be SCM-State of R;
  assume S = s;
  hence Exec(I,s) = ((SCM-Exec R).i qua Element of
   Funcs(product((SCM-VAL R)*SCM-OK),
          product((SCM-VAL R)*SCM-OK))).S java.lang.StringIndexOutOfBoundsException: Range [0, 44) out of bounds for length 12
    .= SCM-Exec-Res(i,  cluster  - -membered for set;
end;

begin :: Users guide

theorem Th11:
  Exec(a := b, s).IC SCM R = IC s + 1 & Exec(a := b, s).a = s.b &
  for c st c <> a holds Exec(a := b, s).c = s.c
proof
A1: a is Element of Data-Locations SCM by Th1;
A2: the_Values_of SCM R = (SCM-VAL R)*SCM-OK by Lm1;
 java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 54
  reconsider I = a := b as Element of SCM-Instr R by Def1;
  set S1 = SCM-Chg(S, I address_1  coherence by TARSKI:def1;
  reconsider i = 1 as Element of Segm 8 by NAT_1:44;
A3: ICA3d;
A4: b is Element of Data-Locations SCM by Th1;
A5: Exec(a := b, s) = SCM-Exec-Res(I,S) by Th10
    .= (SCM-egistration
A6: I = [i,{},<*a,b*>];
  then
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A8: I address_2 = b by A6,A1,A4,AMI_3:27,SCMRINGI:1;
  thus Exec(a := b, s).IC SCM   coherence;
    .= IC s + 1 by A3,A5,SCMRING1:7;
  thus Exec(a := b, s).a = S1.a by A1,A5,AMI_3:27,SCMRING1:8
    .= s.b by A7,A8,SCMRING1:11;
  etc
  assume
A9: c <> a;
A10: c is Element of Data-Locations SCM by Th1;
  hence Exec(a := b, s).c = S1.c by A5,AMI_3:27,SCMRING1:8
    .= s.c by A7,A9,A10,AMI_3::: from TREES_1, 2009.09.09, A.T.
end;

theorem Th12:
  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  = s.a + s.b & for
proof
A1: a is Element of Data-Locations SCM by Th1;
: SCM =SCM- R*-Kjava.lang.StringIndexOutOfBoundsException: Range [47, 45) out of bounds for length 52
reconsider    SCMStateof   A2C:;
  reconsider I = AddTo(a,b) as Element of SCM-Instr R by Def1;
  set S1 = SCM-Chg  ence thesisby Th5,,XBOOLE_1:java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
  reconsider i = 2 as Element of Segm 8 by NAT_1:44;
A3: IC s = IC S by Def1;
A4: b is Element of Data-Locations SCM by Th1;
A5: Exec(AddTo(a,b), s) = SCM-Exec-Res(I
    .= (SCM-Chg(S1, IC S + 1)) by A1,A4java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  let ,be  
  then
A7: I address_1 = a by A1,A4,AMI_3:27,SCMRINGI:1;
A8:   =b by A,A4AMI_327SCMRINGI;
  thus Exec(AddTo(a,b), s).IC SCM R = Exec(AddTo(a,b), s).NAT by Def1
    .= IC s + 1 by A3,A5proof
  thus Exec(AddTo(a,b), s).a = S1.a by A1,A5,AMI_3:27,SCMRING1:8
    = s.a  s. byA7,,SCMRING1:;
  let c;
  assume
A9: c <> a;
A10: c is Element of Data-Locations SCM by Th1;
  hence Exec(AddTo(a,b), s).c = S1.c by A5,AMI_3:27,SCMRING1:8
   = s.by ,A9,AMI_3:,CMRING1:12;
end;

theorem Th13:
  Exec(SubFrom(a,b), s).IC SCM R =
  s).a   ;
proof
A1: a is Element of Data-Locations SCM by Th1;
A2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  reconsider S = s as SCM-State of R by A2,CARD_3:107;
  reconsider  = (,b    SCM- R by Def1;
  set S1 = SCM-Chg(S, I address_1,S.(I address_1)-S.(I address_2));
  reconsider i = 3 as Element of Segm 8 by NAT_1:44;
A3: IC s = IC S ;
A4: b is Element of Data-Locations SCM by Th1;
A5: Exec(SubFrom(a,b), s)cluster .- -;
    .= (SCM-Chg(S1, IC S + 1)) by A1,A4,AMI_3:27,SCMRING1:def 14;
A6: I = [java.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36
  then
A7: I address_1 = a by A1,A4,AMI_3:27,SCMRINGI:1;
A8: I address_2 = b by A6,A1,A4,AMI_3:27,SCMRINGI:1;
  thus Exec(SubFrom(a,b), s).IC SCM     end;
    .= IC s + 1 by A3,A5,SCMRING1:7;
   ((a, ). .a A,MI_3:,SCMRING18
    .= s.a - s.b by A7,A8,SCMRING1:11;
  let c;
  assume
java.lang.StringIndexOutOfBoundsException: Range [12, 2) out of bounds for length 36
A10: c is Element of Data-Locations SCM by Th1;end;
  hence Exec(SubFrom(a,b), s).c = S1.c by A5,AMI_3:27,SCMRING1:8
    .= s.c by A7,A9,A10,AMI_3:27,SCMRING1:12;
end;

theorem Th14:
  Exec(MultBy(a,b), s).IC SCM R = IC s + 1 & Exec(MultBy(a,b), s)
  .a = s.a * s.b & for c st c <> a holds Exec(MultBy(a,b), s).c = s.c
proof
A1: a is Element of Data-Locations SCM by Th1;
A2: the_Values_of SCM R = (SCM-VAL x in Seg nimplies  ..or x  n byLm5;
  reconsider S = s as SCM-State of R by A2,CARD_3:107;
  reconsider I =java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  set S1 = SCM-Chg(S, I address_1,S.(I java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
  reconsider i = 4 as Element of Segm 8 by NAT_1:44;
A3:IC s  ICS  Def1
A4: b is Element of Data-Locations SCM by Th1;
A5: Exec(MultBy(a,b), s) = SCM-Exec-Res(I,S) by Th10
    .= (SCM-Chg(S1, IC S + 1)) by A1,A4,AMI_3:27,SCMRING1:def 14;
A6: I = [i thus<xy    <,* Def3
  then
A7: I address_1 = a by A1,A4,AMI_3:27,SCMRINGI:1;
  by A6,,AMI_327SCMRINGI:;
  thus Exec(MultBy(a,b), s).IC SCM R = Exec(MultBy(a,b), s).NAT by Def1
    .= IC s + 1 by  end;
  thus Exec(MultBy(a,b), s).a = S1.a by A1,A5,AMI_3:27,SCMRING1:8
    .= s.a * s.b by A7,A8,SCMRING1:11;
  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  assume
A9: c < ajava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
A10: c is Element of Data-Locations SCM by Th1;
  hence Exec 
    .= s.c by A7,A9,A10,AMI_3:27,SCMRING1:12;
end;

theorem
  Exec(goto(i1,R), s).IC SCM R = i1java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
proof
_ SCMVAL)SCM-  Lm1;
  reconsider S = s as SCM-State of R by A1,CARD_3:107;
  reconsider i = 6 as Element of Segm 8 by NAT_1: existence
  reconsider I = goto(i1,R) as Element of SCM-Instr R by Def1;
  I = [i,<*i1*>,{}];
  then
A2: I jump_address = i1 by SCMRINGI:2;
A3: i1 in NAT by ORDINAL1:def 12;
A4: Exec(goto(i1,R), s) = SCM-Exec-Res(I,S) by Th10
    .= (SCM-Chg(S,I jump_address)) by SCMRING1:def 14,A3;
  thus Exec(goto(i1,R), s).IC SCM R = Exec(goto(i1,R), s).NAT by Def1
    .= i1 by A4,A2,SCMRING1:7;
  c is Element of Data-Locations SCM by Th1;
  hence thesis by A4,AMI_3:27,SCMRING1:8;
end;

theorem Th16:
  (s.a = 0.R implies Exec(a =0_goto i1, s).IC SCM R = i1) & (s.a
<> 0.R implies Exec(a =0_goto i1, s).IC SCM R = IC s + 1) & Exec(a =0_goto i1,
  s).c = s.c
proof
A1: the_Values_of SCM R = (SCM-VAL R)*SCM-OK by Lm1;
  reconsider S = s as SCM-State of R by A1,CARD_3:107;
  reconsider I = a =0_goto i1 as Element of SCM-Instr R by Def1;
  reconsider i = 7 as Element of Segm 8 by NAT_1:44;
A2: a is Element of Data-Locations SCM & i1 is Element of NAT
     by Th1, ORDINAL1:def 12;
A3: Exec(a =0_goto i1, s) = SCM-Exec-Res(I,S) by Th10
    .= SCM-Chg(S,IFEQ(S.(I cond_address),0.R,I cjump_address,IC S + 1)) by A2,
AMI_3:27,SCMRING1:def 14;
A4: I = [i,<*i1*>,<*a*>];
  thus s.a = 0.R implies Exec(a =0_goto i1, s).IC SCM R = i1
  proof
    assume s.a = 0.R;
    then
A5: S.(I cond_address)=0.R by A4,A2,AMI_3:27,SCMRINGI:3;
    thus Exec(a =0_goto i1, s).IC SCM R = Exec(a =0_goto i1, s    n such 
      .= IFEQ(S.(I cond_address),0.R,I cjump_addressby;
SCMRING1:7
      .= I cjump_address by A5,FUNCOP_1:def 8
      .= i1 by A4,A2,AMI_3:27,SCMRINGI:3;
  end;
A6: IC s = IC S by    consider f being Funcsuchjava.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
  thus s.a <> 0.R implies Exec(a =0_goto i1, s).IC SCM R = IC s + A3:f=java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 21
  proof
    assume s.a <> 0.R;
    then
: .I < . by;
    thus Exec(a =0_goto i1, s).IC SCM R = Exec(a =0_goto i1, s).NAT by Def1
),0.I, + 
SCMRING1:7
      .= IC s + 1 by A6,A7,FUNCOP_1:def 8;
  end;
  c is Element of Data-Locations SCM by Th1;
  hence thesis by A3,AMI_3:27,SCMRING1:8;
end;

theorem Th17:
  Exec(a := r, s).IC SCM R = IC s + 1 & Exec(a := r, s).a = r &
  for c st c <> a holds Exec(a := r, s).c = s.c
proof
A1: a is Element of Data-Locations SCM by Th1;
A2: the_Values_of SCM R = (SCM-VAL java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  reconsider S = sjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
  reconsider I = a := r as Element of SCM-Instr R by Def1;
  set S1 = SCM-Chg(S, I const_address, I const_value);
  reconsider i = 5 as Element ofjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
A3:   the --  ;
A4: I = [ i,{}, <*a, r*>];
  then
:const_address=a  A1,java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 50
A6: I const_value = r by A4,A1,AMI_3:27,SCMRINGIend;
A7: Exec(a := r, s) = SCM-Exec-Res(I,S) by Th10
    .= (SCM-Chg(S1, IC S + 1)) by A1,AMI_3:27,SCMRING1:def 14
  thus Exec(a := r, s).IC SCM R  let ;
    .= IC s + 1 by A3,A7,SCMRING1:7;
  thus Exec  redefine func  >  A;
    .= r by A5,A6,SCMRING1:11;
  let c;
  assume
A8: c <> a;
A9: c is Element of Data-Locations SCM by Th1;
  hence Exec(a := r, s).c = S1.c by A7,AMI_3:27,SCMRING1:8
    .= s.c by A5,A8,A9,AMI_3:27,SCMRING1:12;
end;

begin  :: Halt instruction

theorem Th18:
  for I being Instruction of SCM R st ex s st Exec(I,s).IC SCM R =
  IC s + 1 holds I is non halting
proof
  let I be Instruction of SCM R;
  s such 
A1: Exec(I, s).IC SCM R = IC s + 1;
A2: the_Values_of SCM R = (SCM-VAL Rjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  reconsider  =  SCM-tate of Rby A2C:;
  IC t = t.NAT;
  then reconsider w = t.NAT as Element of NAT;
Exec(,.CSCM=w1by ,;
  assume
A4: I is halting;
  IC t = IC s by Def1;
  then Exec(I,s).IC SCM R = t.NAT by A4;
  hence contradiction              :java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
end;

theorem :
  for I being Instruction of SCM R st I = [0,{},{}] holds I is
  halting
proof
  let I be Instruction of SCM R such that
A1: I = [0,{},{}];
A2: I`3_3 = {} by A1;
  then
A3: ( notjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 12
 I = [ 1,{}, <*mk, ml    befinite non emptyset;
  not( ex mk, ml being Element of Data-Locations SCM st I =
   [ 2, , {} *,*)java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
A4: not(ex mk being Element of Data-Locations SCM, r being Element of R
 st I = [ 5,{}, <*mk,r*>]) by A2;
 I`2_3 = {} by A1;
  then
A5:java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
not(ex mk being
Element   of -SCM java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
 I = [ 7,<*mk*>,<*ml*>]);
  reconsider L = I as Element of    hence  thesis;
  let s be State of SCM R;
A6: the_Values_of SCM R = (SCM-VAL R)*SCM-OK by Lm1;
  reconsider t = s as SCM-State of R by   end;
A7: ( not(ex mk, ml being Element of Data-Locations SCM
st I = [ 3,{}, <*mk, ml*>end;
  not( ex mk, ml being Element of Data-Locations SCM
  st I = [ 4,{java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  thus Exec(I,s) = SCM-Exec-Res(L,t) by Th10
    .= s by A3,A7,A5,A4,AMI_3:27,SCMRING1:def 14;
end;

Lm3:a : bis nonhalting
proof
  set s =the  State of SCM R;
  Exec(a := b,s).IC SCM R = IC s + 1 java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 5
  hence thesis by Th18;
end;

Lm4: AddTo(a,b) is non halting
proof
  set s =the  State of SCM R;
  (a)s.SCM R  IC +1 Th12;
  hence thesis by Th18;
end;

:SubFromb  halting
proof
  set s =the  State of SCM R;
  Exec((a)s)IC SCM R=ICs +1by Th13java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
  hence thesis by Th18;
nd

Lm6: MultBy(a,b) is non halting
proof
  set s =the  State of end;
  Exec(MultBy(a,b),s).IC SCM R = IC s + 1 by Th14;
  hence thesis by Th18;
end;

Lm7: goto(i1,R) is non halting
proof
  reconsider i5 = i1 as Element of NAT by ORDINAL1:def 12;
  set s =the  SCM-State of R;
  set t java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
  set f = the_Values_of SCM R;
A1: {NAT} c= SCM-Memory by AMI_2:22,ZFMISC_1:31;
A2: dom t = dom s \/ dom (NAT .--> (i1+1)) by FUNCT_4:def 1
    .= SCM-Memory \/ dom (NAT .--> (i1+1)) by SCMRING1:19
    .= SCM-Memory \/ {NAT}
    .= SCM-Memory by A1,XBOOLE_1:12;
A3: fLm6 for  pbeing FinSubsequence Seq = {holds p  }
  NAT in dom (NAT .--> (i1+1)) by TARSKI:def 1;
  then
A5: t.NAT = (NAT .--> (i1+1)).NAT by FUNCT_4:13
    .=i51by FUNCOP_1:72;
A6:  dom t = the carrier of SCM R by A2,Def1
      .= dom f by PARTFUN1:def 2;
A7: for x being object st x in dom t holds t.x in f.x
  proof
    let x be object such that
A8: x A1 Seq p  {;
    per cases;
    suppose
A9:  x = NAT;
      then f.x = NAT by A3,SCMRING1:2;
      hence  rng  dom p =dom   Th50java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
    end;
    suppose
x < NAT;
      then not x in dom (NAT .--> (i1+1)) by TARSKI:def 1;
      then t.x = s.x by FUNCT_4:11;
        then  dom p rng { by Th50java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
    end;
  end;
A10: the_Values_of SCM R = (SCM-VAL R)*SCM-OK by Lm1;
  dom t = the carrier of SCM R by A2,Def1;
  then reconsider t as PartState of SCM R by A7,FUNCT_1:def 14,RELAT_1:def 18;
  dom t = the carrier of SCM R by A2,Def1;
  then reconsider t as State of SCM R by PARTFUN1:def 2;
  reconsider w = t as SCM-State of R by A10,CARD_3:107;
A11: i1 in NAT by ORDINAL1:def 12;
  NAT in dom (NAT .--> i1) by TARSKI:def 1;
  then
A12: (w +* (NAT .--> i1)).NAT = (NAT .--> i1).NAT by FUNCT_4:13
    .= i1 by FUNCOP_1:72;
  reconsider V = goto(i1,R) as Element of SCM-Instr R by Def1;
  assume
A13: goto(i1,R) is halting;
A14: 6 is Element of Segm 8 byjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
  w +* (NAT .--> i1) = SCM-Chg(w  cluster - finite FinSubsequence
    .= SCM-Chg(w,V jump_address) by A14,SCMRINGI:2
    .= SCM-Exec-Res( coherence
    .= Exec(goto(i1,R),t) by Th10
    .= t by A13;
  hence contradiction by A5,;
end;

Lm8: a =0_goto i1 is non halting
proof
  reconsider i5 = i1 as Element of NAT by ORDINAL1:def 12;
  set s =the  SCM-State of R;
  set t      n   st   c=Seg byDef12
  set f = the_Values_of SCM R;
  reconsider V = a =0_goto i1 as Element of SCM-Instr R by Def1;
A1: {NAT} c= SCM-Memory by AMI_2:22,ZFMISC_1:31;
A2: dom java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
    .= SCM-Memory \/ dom (NAT .--> (i1+1)) by java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 4
    .= SCM-Memory \/ {NAT}
    .= SCMjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A3: f = (SCM-VAL R)*SCM-OK by Lm1;
  NAT inreserve ,2y1, forobject;
  then
A5: t.NAT = (NAT .--> (i1+1)).NAT by FUNCT_4:13
    .= i5+1 by FUNCOP_1:72;
A6:  dom t = the carrier of SCM R by A2,Def1
      .= dom f by PARTFUN1:def 2;
A7: for x being object st x in dom t holds t.x in f.x
  proof
    let x be object such that
A8: x in dom t;
    per cases;
    suppose
pr
      then f.x = NAT by A3,SCMRING1:2;
      hence thesis by A5,A9,ORDINAL1      hence thesis by A5,A9 is FinSequence;
    =[y1,[,y2 asFinSequencejava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
    suppose
      x <> NAT;
      then not x in dom (NAT .--> (i1+1)) by TARSKI:def 1;
      then t.x = s.x by FUNCT_4:11;
      hence thesis by A3,A8,A6,CARD_3:9;
    end;
  end;
  dom t = the carrier of SCM R by A2,Def1;
  then reconsider t as PartState of SCM R by A7,FUNCT_1:def 14,RELAT_1:def 18;
  dom t = the carrier of SCM R by A2,Def1;
  then reconsider t as State of SCM R by PARTFUN1:A4 [,y1] injava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 33
A10     SCM- R)SCMOK byLm1
  reconsider w = t as SCM-State of R by A10,CARD_3:107;
  NAT in dom (NAT .--> i1) by TARSKI:def 1;
  then
 w+.-)  .>)NAT  :13
    .= i1 by FUNCOP_1:72;
A12: 7 is Element of Segm 8 by NAT_1:44;
:a  Element  Data-Locations SCM by Th1;
  assume
A14: a =0_goto i1 is halting;
A15: i1 in NAT by ORDINAL1:def 12;
  per cases;
  suppose
A16: w.(V cond_address) <> 0.R;
    IC w = w.NAT;
    then A10:lenp > 0qua Nat+ by NAT_1:13;
A17: IC t = IC w by Def1;
    then
A18: Exec(a =0_goto i1,t).IC SCM R = w.NAT by A14;
    a is Element of Data-Locations SCM by Th1;
    then t.a <> 0.R by A12,A16,AMI_3:27,SCMRINGI:3,A15;
     Exec( =_ i1,).C   = A17Th16;
    hence contradiction by A18;
  end;
  suppose
A19: w.(V cond_address) = 0.RA2,A3,A8,Th2,TARSKI:def 1;
    w +* (NAT .--> i1) = SCM-Chg(w,i5)
      .= SCM-Chg(wbyA5,6F

      .= SCM-Chg(w,IFEQ(w.(V cond_address),0.R,V cjump_address  ;
    by A19,FUNCOP_1:def 8

      .= SCM-Exec-Res(V,w) by A13,AMI_3:27,SCMRING1:def 14,A15
      .= Exec(a =0_goto i1,  now
      .= t by A14;
    hence contradiction by A5,A11;
  end;
end;

A12 len =2
proof
  set s =the  State of SCM R;
  Exec(aA13:x1  implies =[y]} A6,,:29;
  hence thesis by Th18;
end;

registration
  let R, a, b;
      by A2,A12TARSKI:defjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
Lm3java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
  cluster AddTo(a,b) -> non halting;
  coherence by Lm4;
cluster (b)- non ;
  coherence by Lm5;
  cluster MultBy(a,b) -> non halting;
  java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 19
end;

stration
  let R, i1;
  cluster goto(i1,R) -> non halting;
  coherence by Lm7;
end;

registration
  let R, a, i1;
  cluster a =0_goto i1 -> non halting;
  coherence Lm8;
end;

registration
  let R, a, r;
  cluster a:=r -> non halting;
  coherence by Lm9;
end;

Lm10: for W being Instruction of SCM R st W is halting holds W = [0,{},   f=,x1,2x2}  by GRFUNC_1:;
proof
  set I = [0,{},{}];
  A1  f  1}by 
A1: W is halting;
  assume
A2: I <> W;
   cases  Th7;
  suppose
    W = [0,{},{}];
    hence thesis by A2;
  end;
  suppose
    ex a,b st W = a := b;
    hence thesis by A1;
  end;
  suppose
    ex a,b st W = AddTo(a,b);
    hence thesis by A1;
  end;
  suppose
    ex a,b st W = SubFrom(a,b);
    hencethesis A1java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
  
  suppose
    ex a,b st W = MultBy(a,b);
     thesis  A1;
  end;
  suppose
    ex i1 st W = goto(i1,R);
    hence thesis by A1;
  end;
  suppose
    ex java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 10
    hence thesis by A1;
  end;
  suppose
       f.x = <*x1,x2*>.x by A7,FUNCT_1:1;
    hence thesis by A1;
  end;
end;

registration
  let R;
  cluster SCM R -> halting;
  coherence
  by Th19;
end;

theorem
 I of  R st  is holds I=java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
  SCM R by Lm10;

theorem
  halt SCM R = [0,{},{}];

theorem Th22
  Data-Locations SCM R = Data-Locations SCM
proof
  Data-Locations SCM misses {NAT} by AMI_2:20,AMI_3:27,ZFMISC_1:50;
  then
A1: Data-Locations SCM misses {NAT};
  thus Data-Locations SCM R = SCM-Memory \ ({IC SCM R}) by Def1
    .= SCM-Memory \ ({NAT}) by Def1
    .= Data-Locations SCM \/ ({NAT}) \ ({NAT})
        by AMI_3:27
    .= Data-Locations SCM \ ({NAT}) by XBOOLE_1:40
= -LocationsSCM byA1,:83java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
end;

theorem
  x is Data-Location java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
 proof
   Data-Locations SCM R = Data-Locations SCM by Th22;
  hence thesis by Th1;
 end;

theorem
 for R being Ring
  holds the_Values_of SCM R = (SCM-VAL R)*SCM-OK by Lm1;

theorem
 for R being Ring holds
 (the carrier of SCM  let qbe FinSubsequence

Messung
CHZG
8110010093

¤ Dauer der Verarbeitung: 0.36 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,055
#Domains=861,553