begin
definition
let N be
set ;
canceled;func Trivial-AMI N -> strict AMI-Struct of
N means :
Def2:
( the
carrier of
it = succ NAT & the
Instruction-Counter of
it = NAT & the
Instructions of
it = {[0 ,{} ,{} ]} & the
haltF of
it = [0 ,{} ,{} ] & the
Object-Kind of
it = (NAT --> {[0 ,{} ,{} ]}) +* (NAT .--> NAT ) & the
Execution of
it = [0 ,{} ,{} ] .--> (id (product ((NAT --> {[0 ,{} ,{} ]}) +* (NAT .--> NAT )))) );
existence
ex b1 being strict AMI-Struct of N st
( the carrier of b1 = succ NAT & the Instruction-Counter of b1 = NAT & the Instructions of b1 = {[0 ,{} ,{} ]} & the haltF of b1 = [0 ,{} ,{} ] & the Object-Kind of b1 = (NAT --> {[0 ,{} ,{} ]}) +* (NAT .--> NAT ) & the Execution of b1 = [0 ,{} ,{} ] .--> (id (product ((NAT --> {[0 ,{} ,{} ]}) +* (NAT .--> NAT )))) )
uniqueness
for b1, b2 being strict AMI-Struct of N st the carrier of b1 = succ NAT & the Instruction-Counter of b1 = NAT & the Instructions of b1 = {[0 ,{} ,{} ]} & the haltF of b1 = [0 ,{} ,{} ] & the Object-Kind of b1 = (NAT --> {[0 ,{} ,{} ]}) +* (NAT .--> NAT ) & the Execution of b1 = [0 ,{} ,{} ] .--> (id (product ((NAT --> {[0 ,{} ,{} ]}) +* (NAT .--> NAT )))) & the carrier of b2 = succ NAT & the Instruction-Counter of b2 = NAT & the Instructions of b2 = {[0 ,{} ,{} ]} & the haltF of b2 = [0 ,{} ,{} ] & the Object-Kind of b2 = (NAT --> {[0 ,{} ,{} ]}) +* (NAT .--> NAT ) & the Execution of b2 = [0 ,{} ,{} ] .--> (id (product ((NAT --> {[0 ,{} ,{} ]}) +* (NAT .--> NAT )))) holds
b1 = b2
;
end;
:: deftheorem AMI_1:def 1 :
canceled;
:: deftheorem Def2 defines Trivial-AMI AMI_1:def 2 :
for N being set
for b2 being strict AMI-Struct of N holds
( b2 = Trivial-AMI N iff ( the carrier of b2 = succ NAT & the Instruction-Counter of b2 = NAT & the Instructions of b2 = {[0 ,{} ,{} ]} & the haltF of b2 = [0 ,{} ,{} ] & the Object-Kind of b2 = (NAT --> {[0 ,{} ,{} ]}) +* (NAT .--> NAT ) & the Execution of b2 = [0 ,{} ,{} ] .--> (id (product ((NAT --> {[0 ,{} ,{} ]}) +* (NAT .--> NAT )))) ) );
:: deftheorem AMI_1:def 3 :
canceled;
:: deftheorem AMI_1:def 4 :
canceled;
:: deftheorem AMI_1:def 5 :
canceled;
:: deftheorem AMI_1:def 6 :
canceled;
:: deftheorem defines Exec AMI_1:def 7 :
for N being with_non-empty_elements set
for S being AMI-Struct of N
for I being Instruction of S
for s being State of S holds Exec I,s = (the Execution of S . I) . s;
:: deftheorem Def8 defines halting AMI_1:def 8 :
for N being with_non-empty_elements set
for S being AMI-Struct of N
for I being Instruction of S holds
( I is halting iff for s being State of S holds Exec I,s = s );
:: deftheorem Def9 defines halting AMI_1:def 9 :
for N being with_non-empty_elements set
for S being AMI-Struct of N holds
( S is halting iff the haltF of S is halting );
definition
canceled;
end;
:: deftheorem AMI_1:def 10 :
canceled;
:: deftheorem AMI_1:def 11 :
canceled;
:: deftheorem AMI_1:def 12 :
canceled;
:: deftheorem Def13 defines steady-programmed AMI_1:def 13 :
for N being with_non-empty_elements set
for IT being non empty AMI-Struct of N holds
( IT is steady-programmed iff for s being State of IT
for i being Instruction of IT
for l being Element of NAT holds (Exec i,s) . l = s . l );
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem Th9:
theorem
canceled;
theorem
canceled;
theorem
begin
:: deftheorem AMI_1:def 14 :
canceled;
:: deftheorem AMI_1:def 15 :
canceled;
:: deftheorem AMI_1:def 16 :
canceled;
:: deftheorem AMI_1:def 17 :
canceled;
:: deftheorem defines Following AMI_1:def 18 :
for N being with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite AMI-Struct of N
for s being State of S
for p being the Instructions of b2 -valued Function holds Following p,s = Exec (CurInstr p,s),s;
definition
let N be non
empty with_non-empty_elements set ;
let S be non
empty stored-program IC-Ins-separated definite AMI-Struct of
N;
let p be
NAT -defined the
Instructions of
S -valued Function;
deffunc H1(
set ,
State of
S)
-> Element of
product the
Object-Kind of
S =
down (Following p,$2);
let s be
State of
S;
let k be
Nat;
func Comput p,
s,
k -> State of
S means :
Def19:
ex
f being
Function of
NAT ,
(product the Object-Kind of S) st
(
it = f . k &
f . 0 = s & ( for
i being
Nat holds
f . (i + 1) = Following p,
(f . i) ) );
existence
ex b1 being State of S ex f being Function of NAT ,(product the Object-Kind of S) st
( b1 = f . k & f . 0 = s & ( for i being Nat holds f . (i + 1) = Following p,(f . i) ) )
uniqueness
for b1, b2 being State of S st ex f being Function of NAT ,(product the Object-Kind of S) st
( b1 = f . k & f . 0 = s & ( for i being Nat holds f . (i + 1) = Following p,(f . i) ) ) & ex f being Function of NAT ,(product the Object-Kind of S) st
( b2 = f . k & f . 0 = s & ( for i being Nat holds f . (i + 1) = Following p,(f . i) ) ) holds
b1 = b2
end;
:: deftheorem Def19 defines Comput AMI_1:def 19 :
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 p being NAT -defined the Instructions of b2 -valued Function
for s being State of S
for k being Nat
for b6 being State of S holds
( b6 = Comput p,s,k iff ex f being Function of NAT ,(product the Object-Kind of S) st
( b6 = f . k & f . 0 = s & ( for i being Nat holds f . (i + 1) = Following p,(f . i) ) ) );
:: deftheorem Def20 defines halts_on AMI_1:def 20 :
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite halting AMI-Struct of N
for p being NAT -defined the Instructions of b2 -valued Function
for s being State of S holds
( p halts_on s iff ex k being Nat st
( IC (Comput p,s,k) in dom p & CurInstr p,(Comput p,s,k) = halt S ) );
theorem Th13:
theorem Th14:
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
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
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem Th51:
theorem Th52:
definition
canceled;let N be non
empty with_non-empty_elements set ;
let S be non
empty stored-program IC-Ins-separated definite halting AMI-Struct of
N;
let p be
NAT -defined the
Instructions of
S -valued Function;
let s be
State of
S;
assume A1:
p halts_on s
;
func Result p,
s -> State of
S means :
Def22:
ex
k being
Element of
NAT st
(
it = Comput p,
s,
k &
CurInstr p,
it = halt S );
uniqueness
for b1, b2 being State of S st ex k being Element of NAT st
( b1 = Comput p,s,k & CurInstr p,b1 = halt S ) & ex k being Element of NAT st
( b2 = Comput p,s,k & CurInstr p,b2 = halt S ) holds
b1 = b2
correctness
existence
ex b1 being State of S ex k being Element of NAT st
( b1 = Comput p,s,k & CurInstr p,b1 = halt S );
end;
:: deftheorem AMI_1:def 21 :
canceled;
:: deftheorem Def22 defines Result AMI_1:def 22 :
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite halting AMI-Struct of N
for p being NAT -defined the Instructions of b2 -valued Function
for s being State of S st p halts_on s holds
for b5 being State of S holds
( b5 = Result p,s iff ex k being Element of NAT st
( b5 = Comput p,s,k & CurInstr p,b5 = halt S ) );
L117:
for N being with_non-empty_elements set
for S being non empty stored-program steady-programmed AMI-Struct of N
for i being Instruction of S
for s being State of S holds ProgramPart (Exec i,s) = ProgramPart s
LmA:
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite steady-programmed AMI-Struct of N
for P being the Instructions of b2 -valued ManySortedSet of NAT
for s being State of S
for n being Element of NAT holds ProgramPart s = ProgramPart (Comput P,s,n)
theorem
canceled;
theorem Th54:
theorem
theorem Th56:
theorem Th57:
:: deftheorem AMI_1:def 23 :
canceled;
:: deftheorem AMI_1:def 24 :
canceled;
:: deftheorem Def25 defines autonomic AMI_1:def 25 :
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 IT being PartState of S holds
( IT is autonomic iff for s1, s2 being State of S st IT c= s1 & IT c= s2 holds
for i being Element of NAT holds (Comput (ProgramPart s1),s1,i) | (dom IT) = (Comput (ProgramPart s2),s2,i) | (dom IT) );
:: deftheorem Def26 defines halting AMI_1:def 26 :
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite halting AMI-Struct of N
for IT being PartState of S holds
( IT is halting iff for s being State of S st IT c= s holds
ProgramPart s halts_on s );
begin
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem Th65:
theorem Th66:
theorem Th67:
:: deftheorem AMI_1:def 27 :
canceled;
:: deftheorem AMI_1:def 28 :
canceled;
:: deftheorem defines Result AMI_1:def 29 :
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite realistic halting steady-programmed AMI-Struct of N
for p being NAT -defined the Instructions of b2 -valued Function
for d being FinPartState of S st d is pre-program of S & p = ProgramPart d holds
for b5 being FinPartState of S holds
( b5 = Result p,d iff for s being State of S st d c= s holds
b5 = (Result (ProgramPart s),s) | (dom d) );
begin
:: deftheorem Def29 defines computes AMI_1:def 30 :
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite realistic halting steady-programmed AMI-Struct of N
for p being NAT -defined the Instructions of b2 -valued Function
for d being FinPartState of S
for F being Function holds
( p,d computes F iff for x being set st x in dom F holds
ex s being FinPartState of S st
( x = s & (p +* d) +* s is pre-program of S & F . s c= Result p,(d +* s) ) );
theorem
theorem
theorem
begin
begin
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem Th81:
theorem
canceled;
theorem Th83:
theorem
canceled;
theorem Th85:
theorem
theorem Th87:
theorem Th88:
theorem
theorem
definition
canceled;canceled;canceled;canceled;canceled;canceled;canceled;canceled;canceled;canceled;canceled;canceled;canceled;canceled;canceled;let N be non
empty with_non-empty_elements set ;
let S be non
empty stored-program IC-Ins-separated definite halting steady-programmed AMI-Struct of
N;
let p be
NAT -defined the
Instructions of
S -valued Function;
let s be
State of
S;
assume A1:
p halts_on s
;
func LifeSpan p,
s -> Element of
NAT means :
Def46:
(
CurInstr p,
(Comput p,s,it) = halt S & ( for
k being
Element of
NAT st
CurInstr p,
(Comput p,s,k) = halt S holds
it <= k ) );
existence
ex b1 being Element of NAT st
( CurInstr p,(Comput p,s,b1) = halt S & ( for k being Element of NAT st CurInstr p,(Comput p,s,k) = halt S holds
b1 <= k ) )
uniqueness
for b1, b2 being Element of NAT st CurInstr p,(Comput p,s,b1) = halt S & ( for k being Element of NAT st CurInstr p,(Comput p,s,k) = halt S holds
b1 <= k ) & CurInstr p,(Comput p,s,b2) = halt S & ( for k being Element of NAT st CurInstr p,(Comput p,s,k) = halt S holds
b2 <= k ) holds
b1 = b2
end;
:: deftheorem AMI_1:def 31 :
canceled;
:: deftheorem AMI_1:def 32 :
canceled;
:: deftheorem AMI_1:def 33 :
canceled;
:: deftheorem AMI_1:def 34 :
canceled;
:: deftheorem AMI_1:def 35 :
canceled;
:: deftheorem AMI_1:def 36 :
canceled;
:: deftheorem AMI_1:def 37 :
canceled;
:: deftheorem AMI_1:def 38 :
canceled;
:: deftheorem AMI_1:def 39 :
canceled;
:: deftheorem AMI_1:def 40 :
canceled;
:: deftheorem AMI_1:def 41 :
canceled;
:: deftheorem AMI_1:def 42 :
canceled;
:: deftheorem AMI_1:def 43 :
canceled;
:: deftheorem AMI_1:def 44 :
canceled;
:: deftheorem AMI_1:def 45 :
canceled;
:: deftheorem Def46 defines LifeSpan AMI_1:def 46 :
for N being non empty with_non-empty_elements set
for S being non empty stored-program IC-Ins-separated definite halting steady-programmed AMI-Struct of N
for p being NAT -defined the Instructions of b2 -valued Function
for s being State of S st p halts_on s holds
for b5 being Element of NAT holds
( b5 = LifeSpan p,s iff ( CurInstr p,(Comput p,s,b5) = halt S & ( for k being Element of NAT st CurInstr p,(Comput p,s,k) = halt S holds
b5 <= k ) ) );
theorem
canceled;
theorem
canceled;
theorem
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
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
canceled;
theorem
canceled;
theorem
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
theorem
theorem
theorem
canceled;
theorem
canceled;
theorem
theorem
theorem
theorem
theorem
theorem
canceled;
theorem
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