begin
begin
:: deftheorem AMI_WSTD:def 1 :
canceled;
:: deftheorem AMI_WSTD:def 2 :
canceled;
:: deftheorem AMI_WSTD:def 3 :
canceled;
:: deftheorem AMI_WSTD:def 4 :
canceled;
:: deftheorem AMI_WSTD:def 5 :
canceled;
:: deftheorem AMI_WSTD:def 6 :
canceled;
:: deftheorem AMI_WSTD:def 7 :
canceled;
:: deftheorem Def8 defines <= AMI_WSTD:def 8 :
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite AMI-Struct of N
for l1, l2 being Nat holds
( l1 <= l2,S iff ex f being non empty FinSequence of NAT st
( f /. 1 = l1 & f /. (len f) = l2 & ( for n being Element of NAT st 1 <= n & n < len f holds
f /. (n + 1) in SUCC ((f /. n),S) ) ) );
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
:: deftheorem defines InsLoc-antisymmetric AMI_WSTD:def 9 :
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite AMI-Struct of N holds
( S is InsLoc-antisymmetric iff for l1, l2 being Element of NAT st l1 <= l2,S & l2 <= l1,S holds
l1 = l2 );
:: deftheorem Def10 defines weakly_standard AMI_WSTD:def 10 :
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite AMI-Struct of N holds
( S is weakly_standard iff ex f being Function of NAT,NAT st
( f is bijective & ( for m, n being Element of NAT holds
( m <= n iff f . m <= f . n,S ) ) ) );
theorem Th17:
Lm1:
for k being Element of NAT
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite AMI-Struct of N holds k <= k,S
theorem Th18:
theorem Th19:
set III = {[1,0,0],[0,0,0]};
begin
Lm2:
for N being non empty with_non-empty_elements set
for i being Instruction of (STC N)
for s being State of (STC N) st InsCode i = 1 holds
(Exec (i,s)) . (IC ) = succ (IC s)
Lm3:
for z being natural number
for N being non empty with_non-empty_elements set
for l being Element of NAT
for i being Element of the Instructions of (STC N) st l = z & InsCode i = 1 holds
NIC (i,l) = {(z + 1)}
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
definition
canceled;let N be non
empty with_non-empty_elements set ;
let S be non
empty stored-program IC-Ins-separated definite weakly_standard AMI-Struct of
N;
let k be
natural number ;
func il. (
S,
k)
-> Element of
NAT means :
Def12:
ex
f being
Function of
NAT,
NAT st
(
f is
bijective & ( for
m,
n being
Element of
NAT holds
(
m <= n iff
f . m <= f . n,
S ) ) &
it = f . k );
existence
ex b1 being Element of NAT ex f being Function of NAT,NAT st
( f is bijective & ( for m, n being Element of NAT holds
( m <= n iff f . m <= f . n,S ) ) & b1 = f . k )
uniqueness
for b1, b2 being Element of NAT st ex f being Function of NAT,NAT st
( f is bijective & ( for m, n being Element of NAT holds
( m <= n iff f . m <= f . n,S ) ) & b1 = f . k ) & ex f being Function of NAT,NAT st
( f is bijective & ( for m, n being Element of NAT holds
( m <= n iff f . m <= f . n,S ) ) & b2 = f . k ) holds
b1 = b2
by Th17;
end;
:: deftheorem AMI_WSTD:def 11 :
canceled;
:: deftheorem Def12 defines il. AMI_WSTD:def 12 :
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite weakly_standard AMI-Struct of N
for k being natural number
for b4 being Element of NAT holds
( b4 = il. (S,k) iff ex f being Function of NAT,NAT st
( f is bijective & ( for m, n being Element of NAT holds
( m <= n iff f . m <= f . n,S ) ) & b4 = f . k ) );
theorem Th25:
theorem Th26:
:: deftheorem Def13 defines locnum AMI_WSTD:def 13 :
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite weakly_standard AMI-Struct of N
for l being Nat
for b4 being natural number holds
( b4 = locnum (l,S) iff il. (S,b4) = l );
theorem Th27:
theorem Th28:
theorem Th29:
theorem Th30:
:: deftheorem defines + AMI_WSTD:def 14 :
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite weakly_standard AMI-Struct of N
for f being Element of NAT
for k being natural number holds f + (k,S) = il. (S,((locnum (f,S)) + k));
theorem
theorem
theorem
:: deftheorem defines NextLoc AMI_WSTD:def 15 :
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite weakly_standard AMI-Struct of N
for f being Element of NAT holds NextLoc (f,S) = f + (1,S);
theorem
theorem Th35:
theorem
theorem Th37:
theorem
theorem
theorem
:: deftheorem defines sequential AMI_WSTD:def 16 :
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite weakly_standard AMI-Struct of N
for i being Instruction of S holds
( i is sequential iff for s being State of S holds (Exec (i,s)) . (IC ) = NextLoc ((IC s),S) );
theorem Th41:
theorem Th42:
theorem
canceled;
begin
:: deftheorem AMI_WSTD:def 17 :
canceled;
:: deftheorem AMI_WSTD:def 18 :
canceled;
:: deftheorem defines para-closed AMI_WSTD:def 19 :
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite weakly_standard AMI-Struct of N
for F being NAT -defined the Instructions of b2 -valued Function holds
( F is para-closed iff for s being State of S st IC s = il. (S,0) holds
for k being Element of NAT holds IC (Comput (F,s,k)) in dom F );
theorem Th44:
theorem
canceled;
theorem Th46:
:: deftheorem Def20 defines lower AMI_WSTD:def 20 :
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite AMI-Struct of N
for F being FinPartState of S holds
( F is lower iff for l being Element of NAT st l in dom F holds
for m being Element of NAT st m <= l,S holds
m in dom F );
theorem Th47:
theorem Th48:
theorem Th49:
theorem Th50:
:: deftheorem Def21 defines LastLoc AMI_WSTD:def 21 :
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite weakly_standard AMI-Struct of N
for F being NAT -defined non empty FinPartState of
for b4 being Element of NAT holds
( b4 = LastLoc F iff ex M being non empty finite natural-membered set st
( M = { (locnum (l,S)) where l is Element of NAT : l in dom F } & b4 = il. (S,(max M)) ) );
theorem Th51:
theorem
theorem Th53:
theorem
theorem Th55:
Lm4:
now
let N be non
empty with_non-empty_elements set ;
for S being non empty stored-program IC-Ins-separated definite halting weakly_standard AMI-Struct of N holds
( ((il. (S,0)) .--> (halt S)) . (LastLoc ((il. (S,0)) .--> (halt S))) = halt S & ( for l being Element of NAT st ((il. (S,0)) .--> (halt S)) . l = halt S & l in dom ((il. (S,0)) .--> (halt S)) holds
l = LastLoc ((il. (S,0)) .--> (halt S)) ) )let S be non
empty stored-program IC-Ins-separated definite halting weakly_standard AMI-Struct of
N;
( ((il. (S,0)) .--> (halt S)) . (LastLoc ((il. (S,0)) .--> (halt S))) = halt S & ( for l being Element of NAT st ((il. (S,0)) .--> (halt S)) . l = halt S & l in dom ((il. (S,0)) .--> (halt S)) holds
l = LastLoc ((il. (S,0)) .--> (halt S)) ) )set F =
(il. (S,0)) .--> (halt S);
A1:
dom ((il. (S,0)) .--> (halt S)) = {(il. (S,0))}
by FUNCOP_1:19;
then A2:
card (dom ((il. (S,0)) .--> (halt S))) = 1
by CARD_1:50;
(il. (S,0)) .--> (halt S) is
lower FinPartState of
S
by Th48;
then A3:
LastLoc ((il. (S,0)) .--> (halt S)) =
il. (
S,
((card ((il. (S,0)) .--> (halt S))) -' 1))
by Th55
.=
il. (
S,
((card (dom ((il. (S,0)) .--> (halt S)))) -' 1))
by CARD_1:104
.=
il. (
S,
0)
by A2, XREAL_1:234
;
hence
((il. (S,0)) .--> (halt S)) . (LastLoc ((il. (S,0)) .--> (halt S))) = halt S
by FUNCOP_1:87;
for l being Element of NAT st ((il. (S,0)) .--> (halt S)) . l = halt S & l in dom ((il. (S,0)) .--> (halt S)) holds
l = LastLoc ((il. (S,0)) .--> (halt S))let l be
Element of
NAT ;
( ((il. (S,0)) .--> (halt S)) . l = halt S & l in dom ((il. (S,0)) .--> (halt S)) implies l = LastLoc ((il. (S,0)) .--> (halt S)) )assume
((il. (S,0)) .--> (halt S)) . l = halt S
;
( l in dom ((il. (S,0)) .--> (halt S)) implies l = LastLoc ((il. (S,0)) .--> (halt S)) )assume
l in dom ((il. (S,0)) .--> (halt S))
;
l = LastLoc ((il. (S,0)) .--> (halt S))hence
l = LastLoc ((il. (S,0)) .--> (halt S))
by A1, A3, TARSKI:def 1;
verum
end;
:: deftheorem Def22 defines halt-ending AMI_WSTD:def 22 :
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite halting weakly_standard AMI-Struct of N
for F being NAT -defined non empty FinPartState of holds
( F is halt-ending iff F . (LastLoc F) = halt S );
:: deftheorem Def23 defines unique-halt AMI_WSTD:def 23 :
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite halting weakly_standard AMI-Struct of N
for F being NAT -defined non empty FinPartState of holds
( F is unique-halt iff for f being Element of NAT st F . f = halt S & f in dom F holds
f = LastLoc F );
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
:: deftheorem defines -' AMI_WSTD:def 24 :
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite weakly_standard AMI-Struct of N
for loc being Element of NAT
for k being natural number holds loc -' (k,S) = il. (S,((locnum (loc,S)) -' k));
theorem
theorem