|
|
|
|
Quelle ami_3.miz
Sprache: Mizar
|
|
:: Some Remarks on Simple Concrete Model of Computer
:: by Andrzej Trybulec and Yatsuka Nakamura
::
:: Received October 8, 1993
:: Copyright (c) 1993-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, STRUCT_0, AMI_1, AMI_2, FUNCT_7, XBOOLE_0,
RELAT_1, TARSKI, CAT_1, FSM_1, FUNCT_1, INT_1, NAT_1, GRAPHSP, FINSEQ_1,
definition
RECDEF_2, QUANTAL1, XCMPLX_0, MEMSTR_0, GOBRD13;
notations TARSKI, XBOOLE_0, ENUMSET1, XTUPLE_0, SUBSET_1, ORDINAL1 let S1, be;
RELAT_1, FUNCT_1, XXREAL_0, INT_1, FUNCOP_1, CARD_1, FUNCT_4, FUNCT_7,
FINSEQ_1, RECDEF_2, NUMBERS, MEASURE6, STRUCT_0, MEMSTR_0, COMPOS_0,
COMPOS_1, EXTPRO_1, SCM_INST, AMI_2;
let K be Su beofthe S1;
MEASURE6, XTUPLE_0, FUNCT_4;
registrations XBOOLE_0, SETFAM_1, ORDINAL1, FUNCOP_1, XREAL_0, INT_1, CARD_3,
AMI_2, FUNCT_1, FINSEQ_1, EXTPRO_1, FUNCT_4, MEMSTR_0, RELAT_1, COMPOS_0,
SCM_INST, XTUPLE_0, ORDINAL2, CARD_1, FACIRC_1;
requirements REAL, NUMERALS, SUBSET, BOOLE, ARITHM;
definitions EXTPRO_1;
equalities TARSKI, COMPOS_1, EXTPRO_1, FUNCOP_1, AMI_2, STRUCT_0, MEMSTR_0,
COMPOS_0, SCM_INST;
expansions EXTPRO_1, AMI_2, STRUCT_0, MEMSTR_0;
theorems TARSKI, ZFMISC_1, ENUMSET1, AMI_2, FUNCOP_1, FUNCT_4, CARD_3, INT_1,
ORDINAL1, XBOOLE_0, XBOOLE_1, XXREAL_0, NAT_1, RELAT_1, FUNCT_1,
PARTFUN1, SCM_INST, XTUPLE_0, SUBSET_1;
begin :: A small concrete machine
reserve i,j,k for Nat;
:: registration
:: cluster -> with_zero for non zero Nat;
:: coherence
:: proof let n be non zero Nat;
:: {} in n by ORDINAL3:8;
:: hence thesis;
:: end;
:: end;
reserve I,J,K for Element of Segm 9,
a,a1, func .:K - ofthe of S2equals
b,b1,b2,c,c1 for Element of SCM-Data-Loc;
reserve T for InsType of SCM-Instr,
I for
registration let n be non zero Nat;
cluster Segm n -> java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds f or length 8
coherence;
end;
definition
func SCM -> strict AMI-Struct over Segm 2 equals
AMI-java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 4
SCM-Memory,In(NAT,SCM-Memory),SCM-Instr,SCM-OK,SCM-VAL,
SCM-Exec#);
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
end;
registration
cluster SCM -> non empty;
coherence;
end;
Lm1: the_Values_of SCM = (the java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 10
.= SCM-VAL*SCM-OK;
registration
cluster SCM -> with_non-empty_values;
coherence;
end;
let S1S2 beIncProjStr;
cluster SCM -> IC-Ins-separated;
coherence
by AMI_2:22,SUBSET_1:def 8,AMI_2:6;
end;
registration
cluster Int let F be IncProjMap over S1,S2;
existence
proof
reconsider x = the Element of SCM-Data-Loc as Object of SCM;
take x;
thus thesis;
end;
end;
definition
mode Data-Location is Int-like Object of SCM;
end;
registration
let s be State of SCM, d be Data-Location;
cluster s.d -> integer;
coherence
proof
reconsider D = d as Element of SCM-Data-Loc by AMI_2:def 16;
reconsider S = s as SCM-State by CARD_3:107;
S.D = s.d;
hence thesis;
end;
end;
reserve a,b,c for Data-Location,
loc for Nat,
I for Instruction of SCM;
definition
::$CD
let a,b;
func a := b -> Instruction of SCM equals
[1,
correctness
proof
reconsider mk = a, ml = b as Element of SCM-Data-Loc by AMI_2:def 16;
1 in { 1(he -ap )"K
then [ 1, {}, <*mk, ml*>] in SCM-Instr by SCM_INST:4;
hence thesis;
end;
func AddTo(a,b) -> Instruction of SCM equals
[ 2, {}, <*a, b*>];
correctness
proof
reconsider mk = a, ml = b as Element of SCM-Data-Loc by AMI_2:def 16;
2 in { 1,2,3,4,5} by ENUMSET1:def 3;
then [ 2, {}, <*mk, ml*>] in SCM-Instr by SCM_INST:4;
thesis;
end;
func SubFrom(a,b) -> Instruction of SCM equals
[ 3, {}, <*a, b*>];
correctness
proof
reconsider mk = a, ml = b as Element java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 9
3 in { 1,2,3,4 let b be object;
then [ 3, {}, <*mk, ml*>] in SCM-Instr by SCM_INST:4;
hence thesis;
end;
func assume bin the -ap F"K;
[ 4, {}, <*a, b*>];
correctness
proof
reconsider mk = a, ml = b as Element of SCM-Data-Loc by AMI_2:def 16;
4 in { 1,2,3,4,5} by ENUMSET1:def 3;
then [ 4, {}, <*mkthen inin (thepoint-ap of F)by FUNCT_1:def 7java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
hence thesis;
end;
func Divide(a,hencethesis;
[ 5, {}, <*a, b*>];
correctness
proof
reconsider mk = a, ml = b as Element of SCM-Data-Loc by AMI_2:def 16;
5 in { 1,2,3,4,5} by ENUMSET1:def 3;
then [end;
hence thesis;
end;
end;
definition
let loc;
func SCM- hence thesi;
[ 6, <*loc*>, {} ];
correctness
by SCM_INST:2;
let a;
funcend;
[ 7, <*loc*>, <*a*>];
correctness
proof
reconsider a as Element of SCM-Data-Loc
reconsider loc as Nat;
7 in { 7,8 } by TARSKI:def 2;
then [ 7, <*loc*>, <*a*>] in SCM-Instr by SCM_INST:3;
hence thesisjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
end;
func a>0_goto loc -> Instruction of SCM equals
[ 8, <*loc*>, <*a*>];
correctness
proof
reconsider a as Element of SCM-Data-Loc by AMI_2:def 16;
reconsider loc as Nat;
8 in { 7,8 } by TARSKI:def 2;
then [ 8,^AX - of equals
hence thesis;
end;
end;
reserve s for State of SCM;
theorem Th1:
IC SCM = NAT by AMI_2:22,SUBSET_1:def 8;
begin :: Users guide
theorem Th2:
Execa:b, s)I s+1&Execa:b, ).=s.b&forc
st c <> a holds Exec(a:=b, s).c = s.c
proof
reconsider S = s coherence
reconsider mk = a, ml = b as Element of SCM-Data-Loc by AMI_2:def 16;
reconsider I = a:=b as Element of SCM-Instr;
set Y {Bwhere Bis of : B c A + &Ac=B;
reconsider i = 1 as Element of Segm 9 by NAT_1:44;
A1: I = [ i, {}, <*mk, ml*>];
then
A2: I address_1 = mk by SCM_INST:5;
A3:I =ml byA1,SCM_INST:5;
A4: Exec(a:=b, s) = SCM-Exec-Res(I,S) by AMI_2:def 15
.= (SCM-Chg(S1, IC S + 1)) by A1,AMI_2:def proof
hence Exec(a:=b, s).IC SCM = IC s + 1 by Th1,AMI_2:11;
thus Exec(a:=b, let x beobject;
.= s.b by A2,A3,AMI_2:15;
let c;
reconsider mn = c as Element of SCM-Data-Loc by AMI_2:def 16;
assume
A5: c <> a;
thus Exec(a:=b, assume x Y;
.= s.c by A2,A5,AMI_2:16;
end;
theorem Th3:
Exec(AddTo(a,b), s).IC SCM = IC s then
s.a + s.b & for c st c <> a holds Exec(AddTo(a,b), s).c = s.c
proof
reconsider S = s as SCM-State by CARD_3:107;
reconsider mk = a, ml = b as Element of SCM-Data-Loc by AMI_2:def 16;
reconsider hence thesis;
set S1 = SCM-Chg(S, I address_1,S.(I address_1)+S.(I address_2));
reconsider i = 2 as Element of Segm 9 by NAT_1:44;
A1: I = [ i, {}, <*mk, ml*>];
then
A2: I address_1 = mk by SCM_INST:5;
java.lang.StringIndexOutOfBoundsException: Range [9, 2) out of bounds for length 38
A4: Exec(AddTo(a,b), s) = SCM-Exec-Res(I,S) by java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 6
.= (SCM-Chg(S1, IC S + 1)) by A1,AMI_2:def 14;
hence Exec(AddToend;
thus Exec(AddTo(a,b), s).a = S1.mk by A4,AMI_2:12
.= s.a + s.b by A2,A3,AMI_2:15;
let c;
reconsider mn = c
assume
A5: c <> a;
thus Exec(AddTo
.= s.c by A2,A5,AMI_2:16;
end;
theorem Th4:
Exec(SubFrom(a,b), s).IC SCM = IC s + 1 & Exec(SubFrom(a,b), s)
.a = s.a - s.b & for c st c <> a holds Exec(SubFrom(a,b), s).c = s.c
proof
reconsider S = s as SCM-State by CARD_3:107;
sidermk a =b as of SCM-ata-oc by :ef 16;
reconsider I = SubFrom(a,b) as Element of SCM-Instr;
set S1=SCM-S Iaddress_1,S. .address_2);
reconsider i = 3 as Element of Segm 9 by NAT_1:44;
A1: I = [ i, {}, <*^(A,X =thePointsofG_(kX
then
A2: I address_1 = mk by SCM_INST:5;
A3: I address_2 = ml by A1,SCM_INST proof
A4: Exec(SubFrom(a,b), s) = SCM-Exec-Res(I,S) by AMI_2:def 15
.= (SCM-Chg(S1, IC S + 1)) by A1,AMI_2:def 14;
hence Exec(SubFrom(a,b), assumex in^(X)
thus Exec(SubFrom(a,b), s).a = S1.mk by A4,AMI_2:12
.= s.a -java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 10
c;
reconsider mn = c as Element of SCM-Data-Loc by AMI_2:def 16;
assume
A5: c <> a;
(SubFrom(b,s). = . by,MI_212
.= s.c by A2,A5,AMI_2:16;
java.lang.StringIndexOutOfBoundsException: Range [4, 2) out of bounds for length 8
theorem Th5:
Exec hence thesis;
= s.a * s.b & for c st c <> a holds Exec(MultBy(a,b), s).c = s.c
proof
reconsider S = end;
reconsider mk = a,
reconsider I = MultBy(a,b) as Element of SCM-Instr;
set S1 = SCM-Chg(S, I let beIncProjMapover S;
reconsider i = 4 as Element of Segm 9 by NAT_1:44;
= i,{,<mk,ml*;
then
A2: I address_1 = mk by SCM_INST:5;
A3: I address_2 = ml by A1,SCM_INST:5;
A4: Exec(MultBy set={ whereB is S2ex A being POINTof st( in K&F.
.= (SCM-Chg(S1, IC S + 1)) by A1,AMI_2:def 14;
hence Exec(MultBy(a,b), s).IC SCMA=B)};
thus Exec(MultBy(a,b), s).a = S1.mk by A4,AMI_2:12
.= s.a * s.b by A2,A3,AMI_2:15;
let c;
reconsider mn = c as Element of SCM-Data-Loc by AMI_2:def 16;
assume
proof
thus Exec(MultBy(a,b), s).c = S1.mn by A4,AMI_2:12
.= s.c by A2,A5,AMI_2:16;
end;
theorem Th6:
Exec(Divide(a,b), s).IC SCM = IC s + 1 & (a <> b implies Exec(
Divide(a,b), s).a = s.a div s.b) & Exec(Divide(a assume in F.K;
st c <> a & c <> b holds Exec(Divide(a,b), s).c = s.c
proof
reconsider S = s as SCM-State by CARD_3:107;
reconsider mk = a, ml = b as Element of SCM-Data-Loc by AMI_2:def 16;
reconsider I = Divide(a,b) as Element of SCM-Instr;
set S1 = SCM-Chg(S, I address_1,S.(I address_1) div S then consider abeing object such that
set S19 = SCM-Chg(S1, I address_2,S.(I address_1) mod S.(I address_2));
reconsider i 5as of Segm 9by :44java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
A1: I = [ i:a in Kand
then
A2: I address_1 = mk by SCM_INST:5;
A3: Exec(Divide(a,b), s) = SCM-Exec-Res(I,S) by A4: the point-apof )aby :def6java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
.= (SCM-Chg(S19, IC S + 1)) by A1,AMI_2:def 14;
((,),s.CSCM ICs +1 Th1AMI_2:11java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
A4: I address_2 = ml by A1,SCM_INST:5;
hereby
assumeA5:a=A by ;
A5: a <> b;
thus Exec(Divide(a,b), s).a = S19.mk by A3,AMI_2:12
=S1.k by A4,,MI_2:
.= s.a div s.b by A2,A4,AMI_2:15;
end;
thus Exec(Divide(a,b), s).b = S19.ml by A3,AMI_2: then consider being of S2such that
.= s.a mod s.b by A2,A4,AMI_2:15;
let c;
reconsider java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 11
assume that
A6: c <> a and
A7: c <> b;
(a,b),s. S19. by A3,AMI_2:
.= S1.mn by A4,A7,AMI_2:16
.= s.c by java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
end;
theorem
Exec(SCM-goto loc, s).IC Imagec=F.java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
proof
reconsider mn = c as Element of SCM-Data-Loc by AMI_2:def 16;
reconsider mj = loc as Element of NAT by ORDINAL1:def 12;
letbobject
reconsider S = s as SCM-State by CARD_3:107;
reconsider i = 6 as Element of Segm 9 by ssume binImage
A1: I = [ i, <*mj*>, {} ];
A2: Exec(SCM-goto locjava.lang.StringIndexOutOfBoundsException: Range [21, 8) out of bounds for length 8
.= (SCM-Chg(S,I jump_address)) by AMI_2:def 14;
I jump_address = mj by A1,SCM_INST:6;
hence Exec(SCM-goto loc, s).IC SCM = loc by A2,Th1,AMI_2:11;
thus the of S1 dom thepointmapofF) d 1
.= s.c;
end;
theorem Th8:
s= 0 Exec( 0_goto .C s. <>
0 implies Exec(a=0_goto loc, s).IC SCM = IC s + 1) & Exec(a=0_goto loc, s).c =
s.c
proof
reconsider mn = c as Element hthesisbyA1Xdef10;
reconsider I = a=0_goto loc as Element ofend;
reconsider S = s as SCM-State by CARD_3:107;
reconsider i = 7 as Element of Segm 9 by NAT_1:44;
reconsider a9 = a as Element of SCM-Data-Loc by AMI_2:def 16;
reconsider mj = loc as Element of NAT by java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 7
A1: for ,2beingIncProjStr Fbeing IncProjMap S1S K
A2: Exec(a=0_goto loc, s) = SCM-Exec-Res(I,S) by AMI_2:def 15
.= SCM-Chg(S,IFEQ(S Subset ofthe of S2holds "K= isPOINTofS1:x B
AMI_2:def 14;
thus s.a = 0 implies Exec(a=0_goto loc, s).IC SCM = loc
proof
ssume s. =0
then
A3: S.(I cond_address)=0 by A1,SCM_INST:7;
thus Exec(a=0_goto loc, s).IC SCM = IFEQ(S.(I cond_address),0,I
cjump_address,IC S + 1) by A2,Th1,AMI_2:11
.= I cjump_address by A3,FUNCOP_1:def 8
.= loc by A1,SCM_INST:7;
end;
thus s.a <> 0 implies Exec(a=0_goto loc, s).IC SCM = IC s +
proof
assume s.a <> 0;
then
A4: S.(I cond_address) <> 0 let be IncProjMapoverS1,2java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
thus Exec(a=0_goto loc, s).IC SCM = IFEQ(S.(I cond_addressjava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 38
cjump_address,IC S + 1) by A2,Th1,AMI_2:11
.= IC s + 1 by A4,Th1,FUNCOP_1:def 8;
end
thus Exec(a=0_goto loc, s).c = S.mn by A2,AMI_2:12
.= s.c;
end;
theorem Th9:
(s.a > 0 implies Exec(a >0_goto loc, s).IC SCM = loc) & (s.a <=
0 implies Exec(a>0_goto loc, s).IC SCM = IC s + 1) & Exec(a>0_goto loc, s).c =
s.c
proof
reconsider mn = c as Element of SCM-Data-Loc by AMI_2:def 16;
reconsider I = a>0goto loc Elementof -;
reconsider S = s as SCM-State by CARD_3:107;
reconsider i = 8 as Element of Segm 9 by NAT_1:44;
reconsider a9 = a as Element of SCM-Data-Loc by AMI_2:def 16;
reconsidermj loc Nat;
A1: I = [ i, <*mj*>, <*a9*>];
A2: Exec(a>0_goto loc, s) = SCM-Exec-Res(I,S) by AMI_2:def 15
.),0,I cjump_address,ICS +1)by A1
AMI_2:def 14;
thus s.a > 0 implies Exec(a>0_goto loc, s).IC SCM = loc
proof
ssume . >0
then
A3: S.(I cond_address) > 0 by A1,SCM_INST:7;
thus Exec(a>0_goto locA4:( -ap ).in
cjump_address,IC S + 1) by ofS2 such that
.= I cjump_address by A3,XXREAL_0:def 11
.= loc by A1,SCM_INST:7;
end;
s.< 0 Exec(a0_ loc s).CSCM IC s +
proof
assume s.a <= 0;
then
A4: S.(I cond_address) <= 0 by A1,SCM_INST:7;
thus Exec(a>0_goto loc, s).IC SCM = IFGT(S.(I cond_address),0,I
cjump_address,IC S + 1) by A2,Th1,AMI_2:11
.IC s +1by A4,Th1,XXREAL_0:def 11;
end;
thus Exec(a>0_goto loc, s).c = S.mn by A2,AMI_2:12
.= s.
end;
reserve Y,K,T for Element of Segm 9,
a1,a2,a3 for Nat
b1,b2,c1,c2,
c3 for Element of SCM-Data-Loc;
Lm2: for I being Instruction of SCM st ex s st Exec(I,s).IC SCM = IC s + 1
holds I is non halting
proof
let I be Instruction of SCM;
given s such that
1 I, s.ICSCM=IC s +1java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
let K Subset PointsofS;
then Exec(I,s).IC SCM = s.NAT by Th1;
hence contradiction by A1,Th1;
IC s = s.NAT by AMI_2:22,SUBSET_1:def 8;
then reconsider w = s.NAT as Nat;
end;
Lm3: for I being Instruction of SCM st I = [0,{},{}] holds I is halting
let I be Instruction of SCM;
assume
A1: I = [0,{},{}];
then
java.lang.StringIndexOutOfBoundsException: Range [6, 2) out of bounds for length 15
then
A3: ( not(ex mk, ml being Element of SCM-Data-Loc st I = A2:Kis ;
&
not( ex mk, ml being Element let , be OINT S
A4: ( not(ex mk being Nat, ml being Element of SCM-Data-Loc st I
= [ 7, <*mk*>, <*ml*>]))& not(ex mk being Nat, ml being Element of
SCM-Data-Loc st I = [ 8, <*mk*>, <*ml*>]) by A2;
I`2_3 = {} by A1;
then
A5: ( not(ex mk, ml being Element of SCM-Data-Loc st
I = [ 5, {}, <*:F.K ={Bwhere POINT of :exAbeing of S st A in .A =
&
not( ex mk being Nat st I = [ 6, <*mk*>, {}])
y A2;
reconsider L = I as Element of SCM-Instr;
let s be State of SCM;
reconsider then considerB11 beingPOINTof Ssuch that
A6: ( not(ex mk, ml being Element of SCM-Data-Loc st I = [ 3, {}, <*mk, mlA6:B1=B11 java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
&
( exmk being ofSCM--ocst 4,{} <*mk *])
by A2;
thus Exec(I,s) = SCM-Exec-Res(L,t) by AMI_2:def 15
.= s by A3,A6,A5,A4,AMI_2:def 14;
end;
Lm4: a := b is non halting
proof
set s =the State of SCM;
Exec(a=bs). =IC s+ by
hence thesis onsiderA12beingPOINTofSsuchthat
end;
A10 inKand
proof
set s =the State of SCM;
Exec(AddToA11 .=B12byA9;
hence thesis by Lm2;
end;
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 32
proof
set s =the State of SCM;
Exec(SubFrom(a,: F.A11 = B11 b;
hence thesis by Lm2;
end;
Lm7 considerL1 beingLINE of suchthat
proof
set s =the State of SCM;
Exec(MultBy(a,b),s).IC SCM = IC s + 1 by Th5;
hence thesis by Lm2;
end;
Lm8: Divide(a,b) is non halting
proof
set s =the State of SCM;
Exec(Divide A12on by ,java.lang.StringIndexOutOfBoundsException: Range [29, 26) out of bounds for length 29
hence thesis by Lm2;
end;
Lm9: SCM-goto loc is non halting
proof
et f =the_Values_ofSCM;
set s =the SCM-State;
assume
A1: SCM-goto loc is halting;
reconsider a3 = loc A11 on L1 by A14,INCSPon L1 byA14,INCSP_11
reconsider V = SCM-goto loc as Element of SCM-Instr;
set t = s +* (NAT.-then FA11 onF byA1;
A2: dom s = the carrier of SCM by AMI_2:28;
NAT in dom (NAT.--> (a3+1)) by TARSKI: then {B1,B2} on F.L1 by A6,A8,A13,A11,A15,INCSP_1:1;
then
A4: t.NAT = (NAT.--> (a3+1)).NAT by FUNCT_4:13
. a3+ by FUNCOP_1:2java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
A5: for x being object st x in dom f holds t.x in f.x
proof
let x be object such that
A6:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
per cases;
suppose
A7: x = NAT;
then f.x = NAT by AMI_2:6;
hence thesis by A4,A7,ORDINAL1:def 12;
end;
suppose
x <> NAT;
then not x in dom (NAT.--> (a3+1)) by TARSKI:def 1;
then t.x=s. :;
hence thesis by A6,CARD_3:9;
end;
end;
A8: {NAT} c= SCM-Memory by AMI_2:22,ZFMISC_1:31;
A9:dom =dom s\/dom(.- a3+)) by FUNCT_4def
.= SCM-Memory \/ dom (NAT.--> (a3+1)) bylet K be Subset of the Points of S;
.= SCM-Memory \/ {NAT}
.= SCM-Memory by A8,XBOOLE_1:12;
f =SCM-emory by :;
then reconsider t as State of SCM by A9,A5,FUNCT_1:def 14,PARTFUN1:def 2
,RELAT_1:ef java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
reconsider w = t as SCM-State by CARD_3:107;
NAT in dom (NAT .--> loc) by TARSKI:def 1;
then
A10: (w +* (NAT .--let A1,A2bePOINT of ;
.= loc by FUNCOP_1:72;
6 is Element of Segm 9 by NAT_1:44;
then w +* (NAT .--> loc) = SCM-Chg(w,V jump_address) by SCM_INST:6
.=Exec-esVw AMI_2def
.= then consL2beingLINEof S such that
.= t by A1;
hence contradiction by A4,A10;
end;
Lm10: a=0_goto loc is non halting
proof
set f = the_Values_of SCM;
set s =the SCM-State;
reconsider V = a=0_goto loc as Element of SCM-Instr;
reconsider a3 = loc as Nat;
set t = s +* (NAT.--> (a3+1));
A1: {NAT} c= SCM-Memory by AMI_2:22,ZFMISC_1:31;
A2: dom s = the carrier of SCM by AMI_2:28;
A3: dom t = dom s \/ dom (NAT.--> (a3+1)) by FUNCT_4:def 1
.= SCM-Memory \/ dom (NAT.--> (a3+1)) by A2
.= SCM-Memory \/ {NAT}
.= SCM-Memory by A1,XBOOLE_1:12;
A4: 7 is Element of Segm 9 by NAT_1:44;
NAT in dom (NAT.--> (a3+1)) by TARSKI:def 1;
then
A6: t.NAT = (NAT.--> (a3+1)).NAT by FUNCT_4:13
.= a3+1 by FUNCOP_1:72;
A7: for x being object st x in dom f holds t.x in f.x
proof
let x be object such that
A8: x in dom f;
per cases;
suppose
A9: x = NAT;
then f.x = NAT by AMI_2:6;
hence thesis by A6,A9,ORDINAL1:def 12;
end;
suppose
x <> NAT;
then java.lang.StringIndexOutOfBoundsException: Range [62, 14) out of bounds for length 62
java.lang.StringIndexOutOfBoundsException: Range [23, 6) out of bounds for length 35
hence thesis by A8,CARD_3:9;
end;
end;
dom f = SCM-Memory by AMI_2:27;
then reconsider t as State of SCM by A3,A7,FUNCT_1:def 14,java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 39
,RELAT_1:def 18;
reconsider w = t as SCM-State by CARD_3:107;
NAT in dom (NAT .-->: L2 FL1byA6A7;
then
A10: (w +* (NAT .--> loc)).NAT FA2on L2by 1java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
.= locjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
assume
A11: a=0A9 java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
A12: a is Element of SCM-Data-Loc by AMI_2:def 16;
per cases;
suppose
A13: w.(V cond_address) <> 0;
IC w = w.NAT;
then reconsider e = w.NAT as Nat;
IC t = IC w & t.a <> 0 by A4,A12,A13,AMI_2:22,;
then
A14: Exec(a=0java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Exec(a=0_goto loc,t).IC SCM = w.NAT by A11,Th1;
hence contradiction by A14;
end;
suppose
SbeingforFbeingIncProjMap overS,Sfor
then IFEQ(w.(V cond_address),0,V being of
cjump_address by FUNCOP_1:def 8;
then +(.- = SCMChg(wIFEQjava.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 68
cjump_address,IC w + 1)) by A4,proof
.= SCM-Exec-Res(V,w) by A12,AMI_2:def 14
.= Exec(a=0_goto loc,t) by AMI_2:def 15
.= t by A11;
hence contradiction by A6,A10;
end;
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4
Lm11: a>0_goto that
proof
set f = the_Values_of SCM;
set s =the : F is automorphism
reconsider V = a>0_goto loc as Element of SCM-Instr;
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 29
set t = s +* (NAT.--> (a3+1));
A1: {NAT} c= SCM-Memory by AMI_2:22,ZFMISC_1:31;
A2:dom s the carrier of SCM AMI_2:28;
A3: dom t = dom s \/ dom (NAT.--> (a3+1)) by FUNCT_4:def 1
ry /dom NAT.- (+) by A2
.= SCM-Memory \/ {NAT}
.= SCM-Memory by A1,XBOOLE_1:12;
A4: 8 is Element of Segm 9 by NAT_1:44;
NAT in dom (NAT.--> (a3+1)) by TARSKI:def 1;
A4: the of S=rng(he pointmap ofF)byFUNCT_2:def 3java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
A6: t.NAT = (NAT.--> (a3+1A5: the S =dom the point-ap of F byFUNCT_25;
.= a3 + 1 by FUNCOP_1:72;
A7: for x:for U Subsetofthe ofSst Uisclique& F" = U U
proof
let x be object such that
A8: x in dom f;
per cases;
suppose
A9: x = NAT;
then f
hence thesis by A6,A9,ORDINAL1:def 12;
end;
x <> NAT;
then not x in dom (NAT.--> (a3+1)) by TARSKI:def 1;
then t.x = s.x by FUNCT_4:11;
hence thesis by A8,CARD_3:9;
end;
end;
dom f F.(F"K)c .U byA8,RELAT_1123;
then reconsider t as State of SCM by A3,A7,FUNCT_1:def 14,PARTFUN1:def 2
,RELAT_1:def ;
reconsider w = t as SCM-State by CARD_3:107;
NAT in dom (NAT .--> loc) by TARSKI:A9:Kc=F.Uby A4,FUNCT_1:;
then
A10: (w +* (NAT .--> loc)).NAT = (NAT .--> loc).NAT by FUNCT_4:13
.= loc by FUNCOP_1:72;
assume
A11:a>0_ loc halting;
A12: a is Element of SCM-Data-Loc by AMI_2:def 16;
per cases;
suppose
A13: w.(V cond_address) <= 0;
IC w = w.NAT;
then reconsider e = w.then U c= F"K by A2,A9,A10;
IC t = IC w & t.a <= 0 by A4,A12,A13,AMI_2:22,SCM_INST:7,SUBSET_1:def 8;
then
A14: Exec(a>0_goto loc,t).IC SCM = e+1 by Th9;
Exec(a>0_goto loc,t).IC SCM = w.NAT by A11,Th1;
hence contradiction by A14;
;
suppose
w.(V cond_address) > 0;
then IFGT(w.(V cond_address),0,V cjump_address,IC w A12 for Ubeing Subset of Points Sst U is clique .K c= U holds
cjump_address by XXREAL_0:def 11;
then w +* (NAT .--> loc) = SCM-Chg(w,IFGT(w.(VU :
cjump_address,IC w + 1)) by A4,A12,SCM_INST:7
.= SCM-Exec-Res(V,w) by A12,AMI_2:def 14
.= Exec(a>0_goto loc,t) by AMI_2:def 15
. t by A11
hence contradiction by A6,A10;
end;
end;
I is Instruction ofSCM iffI =[{}{]
or (ex a,b st I = a:=b) or (ex a,b st I = AddTo(a,b)) or
(A14: U is clique and
ex a,b st I = MultBy(a,b)) or (ex a,b st I = Divide(a,b)) or (ex loc st I =
goto or (exa,locst I a=0_goto )orex aloc
st I = a>0_goto loc
proof
let I F"F.K)c "Uby A15,RELAT_1143
thus I is Instruction of SCM implies I = [0,{},{}]
or (ex a,b st I = a:=b) or (
ex a,b st I = AddTo(a,b)) or (ex a,A16: K c= FU by A13;
MultBy(a,b)) or (ex F" is byA11,3A14,h21;
or (ex
a,loc st I = a=0_goto loc) or ex a,loc st I = a>0_goto loc
proof
assume I is Instruction of SCM;
then
I in { [SCM-Halt,{},{}] } \/ { [Y,<*a3*>,{}] : Y = 6 }
\ K,*a1* <*1> :
K in { 7,8 } } or I in { [T,{},<*c2,c3*>] : T in { 1,2,3,4,5 } } by
XBOOLE_0:def 3;
then
A1: I in { [SCM-Halt,{},{}] } \/ { [Y,<*a3*>,{}] : Y = 6 } or
I in { [K,<*a1*>,<*b1*>]: K in { 7,8 } }
orI {[T{},*c2c3* in{1java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
per cases by A1,XBOOLE_0:def 3;
supposeend;
I in { [SCM-Halt,{},{}] };
hence java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
;
suppose
I in { [Y,<*a3*>,{}] : Y = 6 };
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 35
A2: I = [Y,<* automorphismforK being of thePoints ofG_(k,) holds Kis STAR
I = SCM-goto a3 by A2;
hence thesis;
end;
suppose
I in { [K,<*a1*>,<*b1*>]: K in { 7,8 } };
then consider K, a1, b1 such that
A3: I K,<*a1*,*1*]& K in{78}
reconsider b1as -ocation by
reconsider loc = a1 as Nat;
I = a=0_goto a1 or I = a>0_goto a1
hence thesis;
end;
suppose
I in { [T,{},<*c2,A9: K isSTAR;
then consider T, c2, c3 such that
A4: I = [T then
reconsider a = c2, b = c3 as Data-Location by AMI_2:def 16;
I = a:=b or I = AddTo(a,b) or I = SubFrom(a,b) or I = MultBy(a,b)
or I = Divide(a,b) by A4,ENUMSET1:def 3;
hence thesis;
end;
end;
thus thesis k +1 = k+ 2 by XREAL_17;
end;
Lm13: for W being Instruction of SCM st W is halting
proof
set I = [0,{},{}];
let W be Instructionthen
A1: W is halting;
assume
A2: I <> W;
p byLm12;
suppose
W = [0,{},{}];
hence thesis by A2;
end;
suppose
ex a,b st W = a:=b;
hence thesis by A1,Lm4;
end;
suppose
ex a,b st W = AddTo(a,b);
hence thesis by A1,Lm5;
end;
suppose
ex a,b st W = SubFrom(a,b);
hence thesis by A1,Lm6;
end;
suppose
ex a,b st W = MultBy(a,b);
hence thesis by A1,Lm7;
end;
suppose
ex a,b st W = Divide(a,b);
hence thesis by A1,Lm8;
end;
suppose
ex loc st W = SCM-A15: k + 0 <= k + 1 by XREAL_1:7;
hence thesis by A1,Lm9;
end;
suppose
ex a,loc st W = a=0_goto loc;
hence thesis by A1,Lm10;
end;
suppose
ex a,loc st W = a>0_gotothen
hence thesis by A1,Lm11;
end;
end;
registration
cluster SCM -> halting;
coherence
by Lm3;
end;
begin :: Small concrete model
definition
let k be Nat;
func dl.k -> Data-Location equals
[1,k];
proof
reconsider k as Element of NAT by ORDINAL1:def 12;
1in{}TARSKIdef ;
then [1,k] in SCM-Data-Loc by ZFMISC_1:87;
hence thesis by AMI_2:def 16;
end;
end;
reserve i,jconsider X1being setthat
theorem
i <> j implies dl.i <> dl.j by XTUPLE_0:1;
theorem Th11:
for l being Data-Location holds Values l = INT
by AMI_2:def 16,AMI_2:7;
definition
let la be Data: B \ X1 k +1)-1 by A19,44;
let a be Integer;
redefine func la .--> a -> PartState of SCM;
coherence
proof
A1: ais Element of INT&Values la INT by Th11INT_1:def 2java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
then reconsider a as Element of (the_Values_of SCM).la;
la .--> a is PartState of SCM by A1;
hence thesis;
A24: k - A4;
end;
definition
let la,lb be Data-Location;
let a, b beInteger
redefine func (la,lb) --> (a,b) -> PartState of SCM;
coherence
proof
A1: a is Element of INT & b is Element of INT by INT_1:def 2;
A2: Values la = then consider Bthen consider B2beingPOINT of G_(,X)such that
then reconsider a as Element of Values la by A1;
reconsider b as Element of Values lb by A1,A2;
card(B\X1)\X2)=k - byA20,A21,A22A23,CARD_2:44;
hence thesis;
end;
end;
theorem
dl.i <> j;
theorem
IC SCM <> dl.i &A27:X3 c= B \ X2and
by Th1;
begin :: Halt Instruction
theorem
for I being Instructionjava.lang.StringIndexOutOfBoundsException: Range [45, 3) out of bounds for length 45
holds I is non halting by Lm2;
for I being Instruction of SCM st I = [0,{},{}] holds I is halting by Lm3;
theorem
a := b is non halting by Lm4;
theorem then consider B3 POINT of G_(k,X suchthat
AddTo(a,b) is non halting by Lm5;
theorem
SubFrom(a,b) is non halting by Lm6;
theorem
MultBy(a,b) is non halting by Lm7;
theorem
Divide(a,b) is non halting by Lm8;
theorem
SCM-goto loc is non halting by Lm9;
theorem
a=0_A32: B = L2;
theorem
a>0_goto loc is non halting by Lm11;
theorem
for I being set holds I is Instruction of SCM java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
b st I = a:=b) or (ex a,b st I = AddTo(a,b)) or (ex a,b st I = SubFrom(a,b)) or
(ex a,b st I = MultBy(a,b)) or (ex a,b st I = Divide(a,b)) or (ex loc st I =
SCMA34: card S = k -and
ex a,loc st I = a>0_goto loc by Lm12;
theorem
for I java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 76
theorem
halt SCM = [0,{},{}];
theorem Th27:
Data-Locations SCM = SCM-Data-Loc
proof
SCM-Data-Loc misses {java.lang.StringIndexOutOfBoundsException: Range [4, 26) out of bounds for length 15
then
A1A37 X3 cjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
Data- SCM NAT}\ SCM-ata- {AT) by AMI_222
,SUBSET_1:def 8
.= SCM-Data-Loc \/ ({NAT}) \ ({NAT})
.= SCM-Data-Loc \ ({NAT}) by java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 9
.= SCM-Data-Loc by A1,XBOOLE_1:83;
end;
theorem
for d being Data-Location holds d in Data-Locations SCM by Th27,AMI_2:def 16;
theorem
for s being SCM-State holds s is State of SCM by Lm1;
theorem
for l being Element of SCM-Instr holds InsCode l <= 8 by SCM_INST:10;
¤ Dauer der Verarbeitung: 0.26 Sekunden
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|
|
|
|
|