Impressum scmpds_6.abs
Interaktion und PortierbarkeitMizar
|
|
:: 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_1, SCMPDS_2, AMI_1, FSM_1, INT_1, AMI_2, RELAT_1,
XBOOLE_0, GRAPHSP, XXREAL_0, CIRCUIT2, ARYTM_3, CARD_1, FUNCT_1, FUNCT_4,
TARSKI, TURING_1, SCMFSA_7, SCMPDS_4, AMISTD_2, COMPLEX1, VALUED_1,
SCMFSA6B, MSUALG_1, SCMPDS_5, SCMFSA8A, AMI_3, ARYTM_1, UNIALG_2,
SCMFSA7B, SCMFSA8B, NAT_1, STRUCT_0, SCMPDS_6, PARTFUN1, EXTPRO_1,
SCMFSA6C, COMPOS_1;
notations TARSKI, XBOOLE_0, SUBSET_1, XCMPLX_0, RELAT_1, FUNCT_1, CARD_1,
PARTFUN1, VALUED_1, ORDINAL1, NUMBERS, COMPLEX1, FUNCT_4, INT_1, NAT_1,
STRUCT_0, MEMSTR_0, COMPOS_0, COMPOS_1, EXTPRO_1, AMI_2, SCMPDS_2,
SCMPDS_4, SCMPDS_5, XXREAL_0;
constructors REAL_1, INT_2, SCMPDS_4, SCMPDS_5, FUNCT_4, PRE_POLY, RELSET_1,
DOMAIN_1;
registrations XXREAL_0, XREAL_0, NAT_1, INT_1, SCMPDS_2, SCMPDS_4, SCMPDS_5,
ORDINAL1, XBOOLE_0, MEMSTR_0, AFINSQ_1, COMPOS_1, FUNCT_4, RELAT_1,
AMI_3, COMPOS_0;
requirements NUMERALS, REAL, SUBSET, ARITHM;
begin :: Preliminaries
reserve m,n for Nat,
a for Int_position,
i,j for Instruction of SCMPDS,
s,s1,s2 for State of SCMPDS,
k1 for Integer,
loc for Nat,
I,J,K for Program of SCMPDS;
reserve P,P1,P2 for Instruction-Sequence of SCMPDS;
::$CT 5
theorem :: SCMPDS_6:6
card (i ';' I)= card I + 1;
theorem :: SCMPDS_6:7
(i ';' I). 0=i;
::$CT 3
theorem :: SCMPDS_6:11
CurInstr(P +* stop(i ';' I),Initialize s) = i;
theorem :: SCMPDS_6:12
for s being State of SCMPDS,m1,m2 being Nat st IC s=
m1 holds ICplusConst(s,m2)= m1+m2;
theorem :: SCMPDS_6:13
for I,J being Program of SCMPDS holds Shift(stop J,card I) c=
stop(I ';' J);
::$CT
theorem :: SCMPDS_6:15
for s being 0-started State of SCMPDS, i being No-StopCode parahalting
Instruction of SCMPDS,J being parahalting shiftable Program of SCMPDS, a being
Int_position
holds IExec(i ';' J,P,s).a = IExec(J,P,Initialize Exec(i,s)).a;
theorem :: SCMPDS_6:16
for a being Int_position,k1,k2 being Integer holds (a,k1)
<> 0_goto k2 <> halt SCMPDS;
theorem :: SCMPDS_6:17
for a being Int_position,k1,k2 being Integer
holds (a,k1) <= 0_goto k2 <> halt SCMPDS;
theorem :: SCMPDS_6:18
for a being Int_position,k1,k2 being Integer
holds (a,k1) >= 0_goto k2 <> halt SCMPDS;
definition
let k1 be Integer;
func Goto k1 -> Program of SCMPDS equals
:: SCMPDS_6:def 1
Load goto k1;
end;
registration
let n be Nat;
cluster goto (n+ 1) -> No-StopCode;
cluster goto -(n+ 1) -> No-StopCode;
end;
registration
let n be Nat;
cluster Goto (n+ 1) -> halt-free;
cluster Goto -(n+ 1) -> halt-free;
end;
theorem :: SCMPDS_6:19
0 in dom Goto k1 & (Goto k1). 0 = goto k1;
begin :: The predicates of is_closed_on and is_halting_on
definition
let I be Program of SCMPDS;
let s be State of SCMPDS;
let P;
pred I is_closed_on s,P means
:: SCMPDS_6:def 2
for k being Nat holds
IC Comput(P+*stop I,Initialize s,k) in dom stop I;
pred I is_halting_on s,P means
:: SCMPDS_6:def 3
P+*stop I halts_on Initialize s;
end;
theorem :: SCMPDS_6:20
for I being Program of SCMPDS holds I is paraclosed iff
for s being State of SCMPDS, P holds I is_closed_on s,P;
theorem :: SCMPDS_6:21
for I being Program of SCMPDS holds I is parahalting iff
for s being State of SCMPDS,P holds I is_halting_on s,P;
theorem :: SCMPDS_6:22
for s1,s2 being State of SCMPDS, I being Program of SCMPDS st
DataPart s1 = DataPart s2 holds I is_closed_on s1,P1
implies I is_closed_on s2,P2;
theorem :: SCMPDS_6:23
for s1,s2 being State of SCMPDS,I being Program of SCMPDS st DataPart
s1 = DataPart s2 holds I is_closed_on s1,P1 & I is_halting_on s1,P1
implies I is_closed_on s2,P2 & I is_halting_on s2,P2;
theorem :: SCMPDS_6:24
for s being State of SCMPDS, I,J being Program of SCMPDS holds I
is_closed_on s,P iff I is_closed_on Initialize s,P+*J;
theorem :: SCMPDS_6:25
for s being 0-started State of SCMPDS
for I,J being Program of SCMPDS
st I is_closed_on s,P & I is_halting_on s,P
holds ( for k being Nat
st k <= LifeSpan(P +* stop I,s) holds
IC Comput(P +* stop I,s,k) = IC Comput(P +* stop(I ';' J),s,k)) &
DataPart Comput(P +* stop I,s,LifeSpan(P +* stop I,s)) =
DataPart Comput(P +* stop(I ';' J),s,LifeSpan(P +* stop I,s));
theorem :: SCMPDS_6:26
for I being Program of SCMPDS,k be Nat st I
is_closed_on s,P & I is_halting_on s,P &
k < LifeSpan(P +* stop I,Initialize s)
holds IC Comput(P +* stop I,Initialize s,k) in dom I;
theorem :: SCMPDS_6:27
for I,J being Program of SCMPDS,
s being 0-started State of SCMPDS, k being
Nat st I is_closed_on s,P & I is_halting_on s,P &
k < LifeSpan(P +* stop I,s)
holds CurInstr(P +* stop I, Comput(P +* stop I, s,k)) =
CurInstr(P +* stop(I ';' J),Comput(P +* stop(I ';' J),s,k));
theorem :: SCMPDS_6:28 ::SCMPDS_5:32
for I being halt-free Program of SCMPDS,s being State of
SCMPDS, k being Nat st I is_closed_on s,P &
I is_halting_on s,P & k <
LifeSpan(P +* stop I,Initialize s)
holds
CurInstr(P +* stop I,Comput(P +* stop I,Initialize s,k)) <> halt SCMPDS;
theorem :: SCMPDS_6:29
for I being halt-free Program of SCMPDS,s being 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;
theorem :: SCMPDS_6:30
for I,J being Program of SCMPDS,
s being 0-started State of SCMPDS st I
is_closed_on s,P & I is_halting_on s,P holds I ';' Goto (card J + 1) ';' J
is_halting_on s,P & I ';' Goto (card J + 1) ';' J is_closed_on s,P;
theorem :: SCMPDS_6:31
for s1 being 0-started State of SCMPDS
for I being shiftable Program of SCMPDS
st stop I c= P1 & I is_closed_on s1,P1
for n being Nat st
Shift(stop I,n) c= P2 & IC
s2 = n & DataPart s1 = DataPart s2 for i being Nat holds IC
Comput(P1, s1,i) + n = IC Comput(P2, s2,i) &
CurInstr(P1,Comput(P1,s1,i)) = CurInstr(P2,Comput(P2,s2,i)) &
DataPart Comput(P1, s1,i) = DataPart Comput(P2, s2,i);
theorem :: SCMPDS_6:32 ::SCMFSA8A:61
for s being 0-started State of SCMPDS,I being halt-free Program of SCMPDS,
J being Program of SCMPDS st I is_closed_on s,P & I is_halting_on s,P
holds IC IExec(I ';' Goto (card J + 1) ';' J,P,s)
= card I + card J + 1;
theorem :: SCMPDS_6:33 ::SCMFSA8A:62
for s being 0-started State of SCMPDS,I being halt-free Program of
SCMPDS, J being Program of SCMPDS st I is_closed_on s,P & I is_halting_on s,P
holds
IExec(I ';' Goto (card J + 1) ';' J,P,s)
= IExec(I,P,s) +* Start-At((card I + card J + 1),SCMPDS);
theorem :: SCMPDS_6:34
for s being State of SCMPDS,I being halt-free Program of
SCMPDS st I is_closed_on s,P & I is_halting_on s,P
holds IC IExec(I,P,Initialize s) = card I;
begin :: The construction of conditional statements
definition
let a be Int_position,k be Integer;
let I,J be Program of SCMPDS;
func if= 0(a,k,I,J) -> Program of SCMPDS equals
:: SCMPDS_6:def 4
(a,k)<> 0_goto (card I + 2) ';' I ';' Goto (card J+ 1) ';' J;
func if> 0(a,k,I,J) -> Program of SCMPDS equals
:: SCMPDS_6:def 5
(a,k)<= 0_goto (card I + 2) ';'
I ';' Goto (card J+ 1) ';' J;
func if< 0(a,k,I,J) -> Program of SCMPDS equals
:: SCMPDS_6:def 6
(a,k)>= 0_goto (card I + 2) ';'
I ';' Goto (card J+ 1) ';' J;
end;
definition
let a be Int_position,k be Integer;
let I be Program of SCMPDS;
func if= 0(a,k,I) -> Program of SCMPDS equals
:: SCMPDS_6:def 7
(a,k)<> 0_goto (card I + 1) ';' I;
func if<> 0(a,k,I) -> Program of SCMPDS equals
:: SCMPDS_6:def 8
(a,k)<> 0_goto 2 ';' goto (card
I+ 1) ';' I;
func if> 0(a,k,I) -> Program of SCMPDS equals
:: SCMPDS_6:def 9
(a,k)<= 0_goto (card I + 1) ';' I;
func if<= 0(a,k,I) -> Program of SCMPDS equals
:: SCMPDS_6:def 10
(a,k)<= 0_goto 2 ';' goto (card
I+ 1) ';' I;
func if< 0(a,k,I) -> Program of SCMPDS equals
:: SCMPDS_6:def 11
(a,k)>= 0_goto (card I + 1) ';' I;
func if>= 0(a,k,I) -> Program of SCMPDS equals
:: SCMPDS_6:def 12
(a,k)>= 0_goto 2 ';' goto (card
I+ 1) ';' I;
end;
begin :: The computation of "if var=0 then block1 else block2"
theorem :: SCMPDS_6:35
card if= 0(a,k1,I,J) = card I + card J + 2;
theorem :: SCMPDS_6:36
0 in dom if= 0(a,k1,I,J) & 1 in dom if= 0(a,k1,I,J);
theorem :: SCMPDS_6:37
if= 0(a,k1,I,J). 0 = (a,k1)<> 0_goto (card I + 2);
theorem :: SCMPDS_6:38
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 java.lang.StringIndexOutOfBoundsException: Range [52, 33) o ut of bounds for length 77
& if=0(a,k1,I,J) is_halting_on s,P;
theorem :: SCMPDS_6:39
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;
theorem :: SCMPDS_6:40
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);
theorem :: SCMPDS_6:41
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);
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;
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;
end;
theorem :: SCMPDS_6:42
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;
theorem :: SCMPDS_6:43
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;
theorem :: SCMPDS_6:44
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;
begin :: The computation of "if var=0 then block"
theorem :: SCMPDS_6:45
card if=0(a,k1,I) = card I + 1;
theorem :: SCMPDS_6:46
0 in dom if=0(a,k1,I);
theorem :: SCMPDS_6:47
if=0(a,k1,I). 0 = (a,k1)<>0_goto (card I + 1);
theorem :: SCMPDS_6:48
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;
theorem :: SCMPDS_6:49
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;
theorem :: SCMPDS_6:50
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);
theorem :: SCMPDS_6:51
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);
registration
let I be shiftable parahalting Program of SCMPDS, a be Int_position,k1 be
Integer;
cluster if=0(a,k1,I) -> shiftable parahalting;
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;
end;
theorem :: SCMPDS_6:52
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 + 1;
theorem :: SCMPDS_6:53
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;
theorem :: SCMPDS_6:54
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;
begin :: The computation of "if var<>0 then block"
theorem :: SCMPDS_6:55
card if<>0(a,k1,I) = card I + 2;
theorem :: SCMPDS_6:56
0 in dom if<>0(a,k1,I) & 1 in dom if<>0(a,k1,I);
theorem :: SCMPDS_6:57
if<>0(a,k1,I). 0 = (a,k1)<>0_goto 2 & if<>0(a,k1,I). 1 =
goto (card I + 1);
theorem :: SCMPDS_6:58
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;
theorem :: SCMPDS_6:59
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;
theorem :: SCMPDS_6:60
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+2),SCMPDS);
theorem :: SCMPDS_6:61
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);
registration
let I be shiftable parahalting Program of SCMPDS, a be Int_position,k1 be
Integer;
cluster if<>0(a,k1,I) -> shiftable parahalting;
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;
end;
theorem :: SCMPDS_6:62
for s being 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,Initialize s) = card I + 2;
theorem :: SCMPDS_6:63
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;
theorem :: SCMPDS_6:64
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;
begin :: The computation of "if var>0 then block1 else block2"
theorem :: SCMPDS_6:65
card if>0(a,k1,I,J) = card I + card J + 2;
theorem :: SCMPDS_6:66
0 in dom if>0(a,k1,I,J) & 1 in dom if>0(a,k1,I,J);
theorem :: SCMPDS_6:67
if>0(a,k1,I,J). 0 = (a,k1)<=0_goto (card I + 2);
theorem :: SCMPDS_6:68
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;
theorem :: SCMPDS_6:69
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;
theorem :: SCMPDS_6:70
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);
theorem :: SCMPDS_6:71
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,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,s)
= IExec(J,P,s) +* Start-At((card I+card J+2),SCMPDS);
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;
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;
end;
theorem :: SCMPDS_6:72
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;
theorem :: SCMPDS_6:73
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;
theorem :: SCMPDS_6:74
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
being Integer st s.DataLoc(s.a,k1) <= 0 holds
IExec(if>0(a,k1,I,J),P,s).b = IExec(J,P,s).b;
begin :: The computation of "if var>0 then block"
theorem :: SCMPDS_6:75
card if>0(a,k1,I) = card I + 1;
theorem :: SCMPDS_6:76
0 in dom if>0(a,k1,I);
theorem :: SCMPDS_6:77
if>0(a,k1,I). 0 = (a,k1)<=0_goto (card I + 1);
theorem :: SCMPDS_6:78
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;
theorem :: SCMPDS_6:79
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;
theorem :: SCMPDS_6:80
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);
theorem :: SCMPDS_6:81
for s being State of SCMPDS,I being Program of Start-At((card I+1),SCMPDS);
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);
registration
let I be shiftable parahalting Program of SCMPDS, a be Int_position,k1 be
Integer;
cluster if>0(a,k1,I) -> shiftable parahalting;
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;
end;
theorem :: SCMPDS_6:82
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 + 1;
theorem :: SCMPDS_6:83
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;
theorem :: SCMPDS_6:84
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;
begin :: The computation of "if var<=0 then block"
theorem :: SCMPDS_6:85
card if<=0(a,k1,I) = card I + 2;
theorem :: SCMPDS_6:86
0 in dom if<=0(a,k1,I) & 1 in dom if<=0(a,k1,I);
theorem :: SCMPDS_6:87
if<=0(a,k1,I). 0 = (a,k1)<=0_goto 2 & if<=0(a,k1,I). 1 =
goto (card I + 1);
theorem :: SCMPDS_6:88
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;
theorem :: SCMPDS_6:89
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;
theorem :: SCMPDS_6:90
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+2),SCMPDS);
theorem :: SCMPDS_6:91
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);
registration
let I be shiftable parahalting Program of SCMPDS, a be Int_position,k1 be
Integer;
cluster if<=0(a,k1,I) -> shiftable parahalting;
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;
end;
theorem :: SCMPDS_6:92
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;
theorem :: SCMPDS_6:93
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;
theorem :: SCMPDS_6:94
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;
begin :: The computation of "if var<0 then block1 else block2"
theorem :: SCMPDS_6:95
card if<0(a,k1,I,J) = card I + card J + 2;
theorem :: SCMPDS_6:96
0 in dom if<0(a,k1,I,J) & 1 in dom if<0(a,k1,I,J);
theorem :: SCMPDS_6:97
if<0(a,k1,I,J). 0 = (a,k1)>=0_goto (card I + 2);
theorem :: SCMPDS_6:98
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;
theorem :: SCMPDS_6:99
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;
theorem :: SCMPDS_6:100
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);
theorem :: SCMPDS_6:101
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);
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;
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;
end;
theorem :: SCMPDS_6:102
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;
theorem :: SCMPDS_6:103
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;
theorem :: SCMPDS_6:104
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;
begin :: The computation of "if var<0 then block"
theorem :: SCMPDS_6:105
card if<0(a,k1,I) = card I + 1;
theorem :: SCMPDS_6:106
0 in dom if<0(a,k1,I);
theorem :: SCMPDS_6:107
if<0(a,k1,I). 0 = (a,k1)>=0_goto (card I + 1);
theorem :: SCMPDS_6:108
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;
theorem :: SCMPDS_6:109
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;
theorem :: SCMPDS_6:110
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);
theorem :: SCMPDS_6:111
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);
registration
let I be shiftable parahalting Program of SCMPDS, a be Int_position,k1 be
Integer;
cluster if<0(a,k1,I) -> shiftable parahalting;
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;
end;
theorem :: SCMPDS_6:112
for s being 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,Initialize s) = card I + 1;
theorem :: SCMPDS_6:113
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;
theorem :: SCMPDS_6:114
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;
begin :: The computation of "if var>=0 then block"
theorem :: SCMPDS_6:115
card if>=0(a,k1,I) = card I + 2;
theorem :: SCMPDS_6:116
0 in dom if>=0(a,k1,I) & 1 in dom if>=0(a,k1,I);
theorem :: SCMPDS_6:117
if>=0(a,k1,I). 0 = (a,k1)>=0_goto 2 & if>=0(a,k1,I). 1 =
goto (card I + 1);
theorem :: SCMPDS_6:118
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;
theorem :: SCMPDS_6:119
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;
theorem :: SCMPDS_6:120
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+2),SCMPDS);
theorem :: SCMPDS_6:121
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);
registration
let I be shiftable parahalting Program of SCMPDS, a be Int_position,k1 be
Integer;
cluster if>=0(a,k1,I) -> shiftable parahalting;
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;
end;
theorem :: SCMPDS_6:122
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;
theorem :: SCMPDS_6:123
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;
theorem :: SCMPDS_6:124
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;
theorem :: SCMPDS_6:125
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 :: SCMPDS_6:126
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;
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.72Angebot
¤
*Bot Zugriff
|
|
2026-11-23
|