:: A Mathematical Model of CPU
:: by Yatsuka Nakamura and Andrzej Trybulec
::
:: Received October 14, 1992
:: Copyright (c) 1992 Association of Mizar Users
definition
let IL,
N be
set ;
attr c3 is
strict;
struct AMI-Struct of
IL,
N -> 1-sorted ;
aggr AMI-Struct(#
carrier,
Instruction-Counter,
Instructions,
Object-Kind,
Execution #)
-> AMI-Struct of
IL,
N;
sel Instruction-Counter c3 -> Element of the
carrier of
c3;
sel Instructions c3 -> non
empty set ;
sel Object-Kind c3 -> Function of the
carrier of
c3,
N \/ {the Instructions of c3,IL};
sel Execution c3 -> Function of the
Instructions of
c3,
Funcs (product the Object-Kind of c3),
(product the Object-Kind of c3);
end;
definition
let IL,
N be
set ;
canceled;func Trivial-AMI IL,
N -> strict AMI-Struct of
IL,
N means :
Def2:
:: AMI_1:def 2
( the
carrier of
it = succ IL & the
Instruction-Counter of
it = IL & the
Instructions of
it = {[0 ,{} ]} & the
Object-Kind of
it = (IL --> {[0 ,{} ]}) +* (IL .--> IL) & the
Execution of
it = [0 ,{} ] .--> (id (product ((IL --> {[0 ,{} ]}) +* (IL .--> IL)))) );
existence
ex b1 being strict AMI-Struct of IL,N st
( the carrier of b1 = succ IL & the Instruction-Counter of b1 = IL & the Instructions of b1 = {[0 ,{} ]} & the Object-Kind of b1 = (IL --> {[0 ,{} ]}) +* (IL .--> IL) & the Execution of b1 = [0 ,{} ] .--> (id (product ((IL --> {[0 ,{} ]}) +* (IL .--> IL)))) )
uniqueness
for b1, b2 being strict AMI-Struct of IL,N st the carrier of b1 = succ IL & the Instruction-Counter of b1 = IL & the Instructions of b1 = {[0 ,{} ]} & the Object-Kind of b1 = (IL --> {[0 ,{} ]}) +* (IL .--> IL) & the Execution of b1 = [0 ,{} ] .--> (id (product ((IL --> {[0 ,{} ]}) +* (IL .--> IL)))) & the carrier of b2 = succ IL & the Instruction-Counter of b2 = IL & the Instructions of b2 = {[0 ,{} ]} & the Object-Kind of b2 = (IL --> {[0 ,{} ]}) +* (IL .--> IL) & the Execution of b2 = [0 ,{} ] .--> (id (product ((IL --> {[0 ,{} ]}) +* (IL .--> IL)))) holds
b1 = b2
;
end;
:: deftheorem AMI_1:def 1 :
canceled;
:: deftheorem Def2 defines Trivial-AMI AMI_1:def 2 :
:: deftheorem Def3 defines stored-program AMI_1:def 3 :
:: deftheorem Def4 defines Instruction-Location AMI_1:def 4 :
:: deftheorem defines IC AMI_1:def 5 :
:: deftheorem defines ObjectKind AMI_1:def 6 :
:: deftheorem defines Exec AMI_1:def 7 :
:: deftheorem Def8 defines halting AMI_1:def 8 :
:: deftheorem Def9 defines halting AMI_1:def 9 :
theorem :: AMI_1:1
canceled;
theorem :: AMI_1:2
canceled;
theorem :: AMI_1:3
canceled;
theorem :: AMI_1:4
canceled;
theorem :: AMI_1:5
canceled;
theorem Th6: :: AMI_1:6
:: deftheorem defines halt AMI_1:def 10 :
:: deftheorem Def11 defines IC-Ins-separated AMI_1:def 11 :
:: deftheorem AMI_1:def 12 :
canceled;
:: deftheorem Def13 defines steady-programmed AMI_1:def 13 :
:: deftheorem Def14 defines definite AMI_1:def 14 :
theorem Th7: :: AMI_1:7
theorem :: AMI_1:8
canceled;
theorem Th9: :: AMI_1:9
theorem Th10: :: AMI_1:10
theorem Th11: :: AMI_1:11
:: deftheorem defines IC AMI_1:def 15 :
theorem :: AMI_1:12
:: deftheorem AMI_1:def 16 :
canceled;
:: deftheorem defines CurInstr AMI_1:def 17 :
:: deftheorem defines Following AMI_1:def 18 :
:: deftheorem Def19 defines Computation AMI_1:def 19 :
:: deftheorem Def20 defines halting AMI_1:def 20 :
:: deftheorem Def21 defines realistic AMI_1:def 21 :
theorem Tx0: :: AMI_1:13
theorem Tx1: :: AMI_1:14
theorem :: AMI_1:15
canceled;
theorem :: AMI_1:16
canceled;
theorem :: AMI_1:17
canceled;
theorem :: AMI_1:18
canceled;
theorem :: AMI_1:19
canceled;
theorem :: AMI_1:20
canceled;
theorem :: AMI_1:21
canceled;
theorem :: AMI_1:22
canceled;
theorem :: AMI_1:23
canceled;
theorem :: AMI_1:24
canceled;
theorem :: AMI_1:25
canceled;
theorem :: AMI_1:26
canceled;
theorem :: AMI_1:27
canceled;
theorem :: AMI_1:28
canceled;
theorem :: AMI_1:29
canceled;
theorem :: AMI_1:30
canceled;
theorem :: AMI_1:31
canceled;
theorem :: AMI_1:32
canceled;
theorem :: AMI_1:33
canceled;
theorem :: AMI_1:34
canceled;
theorem :: AMI_1:35
canceled;
theorem :: AMI_1:36
canceled;
theorem :: AMI_1:37
canceled;
theorem :: AMI_1:38
canceled;
theorem :: AMI_1:39
canceled;
theorem :: AMI_1:40
canceled;
theorem :: AMI_1:41
canceled;
theorem :: AMI_1:42
canceled;
theorem :: AMI_1:43
canceled;
theorem :: AMI_1:44
canceled;
theorem :: AMI_1:45
canceled;
theorem :: AMI_1:46
canceled;
theorem :: AMI_1:47
canceled;
theorem Th48: :: AMI_1:48
theorem :: AMI_1:49
canceled;
theorem :: AMI_1:50
canceled;
theorem Th51: :: AMI_1:51
theorem Th52: :: AMI_1:52
:: deftheorem Def22 defines Result AMI_1:def 22 :
theorem :: AMI_1:53
theorem Th54: :: AMI_1:54
theorem :: AMI_1:55
theorem Th56: :: AMI_1:56
theorem Th57: :: AMI_1:57
:: deftheorem defines FinPartSt AMI_1:def 23 :
:: deftheorem defines Data-Locations AMI_1:def 24 :
:: deftheorem Def25 defines autonomic AMI_1:def 25 :
:: deftheorem Def26 defines halting AMI_1:def 26 :
:: deftheorem Def27 defines programmable AMI_1:def 27 :
theorem Th58: :: AMI_1:58
theorem Th59: :: AMI_1:59
theorem Th60: :: AMI_1:60
theorem Th61: :: AMI_1:61
theorem Th62: :: AMI_1:62
theorem :: AMI_1:63
canceled;
theorem Th64: :: AMI_1:64
theorem Th65: :: AMI_1:65
theorem Th66: :: AMI_1:66
theorem Th67: :: AMI_1:67
:: deftheorem defines Result AMI_1:def 28 :
:: deftheorem Def29 defines computes AMI_1:def 29 :
theorem Th68: :: AMI_1:68
theorem Th69: :: AMI_1:69
theorem Th70: :: AMI_1:70
:: deftheorem Def30 defines computable AMI_1:def 30 :
theorem Th71: :: AMI_1:71
theorem Th72: :: AMI_1:72
theorem Th73: :: AMI_1:73
:: deftheorem defines Program AMI_1:def 31 :
theorem :: AMI_1:74
theorem :: AMI_1:75
theorem :: AMI_1:76
:: deftheorem Def32 defines standard-ins AMI_1:def 32 :
:: deftheorem defines InsCodes AMI_1:def 33 :
theorem :: AMI_1:77
:: deftheorem Def34 defines IL-FinSequence AMI_1:def 34 :
:: deftheorem defines /. AMI_1:def 35 :
:: deftheorem defines IL-Function AMI_1:def 36 :
:: deftheorem defines IL-DecoratedTree AMI_1:def 37 :
:: deftheorem defines . AMI_1:def 38 :
:: deftheorem defines Start-At AMI_1:def 39 :
:: deftheorem Def40 defines programmed AMI_1:def 40 :
theorem Th78: :: AMI_1:78
theorem Th79: :: AMI_1:79
theorem Th80: :: AMI_1:80
theorem Th81: :: AMI_1:81
:: deftheorem defines starts_at AMI_1:def 41 :
:: deftheorem Def42 defines halts_at AMI_1:def 42 :
:: deftheorem Def43 defines IC AMI_1:def 43 :
:: deftheorem defines starts_at AMI_1:def 44 :
:: deftheorem defines halts_at AMI_1:def 45 :
theorem :: AMI_1:82
canceled;
theorem Th83: :: AMI_1:83
theorem :: AMI_1:84
theorem Th85: :: AMI_1:85
theorem :: AMI_1:86
theorem Th87: :: AMI_1:87
theorem Th88: :: AMI_1:88
theorem :: AMI_1:89
theorem :: AMI_1:90
theorem :: AMI_1:91
theorem :: AMI_1:92
definition
let IL be non
empty set ;
let N be
with_non-empty_elements set ;
let S be non
empty stored-program halting IC-Ins-separated definite AMI-Struct of
IL,
N;
let s be
State of
S;
assume A1:
s is
halting
;
func LifeSpan s -> Element of
NAT means :
Def46:
:: AMI_1:def 46
(
CurInstr (Computation s,it) = halt S & ( for
k being
Element of
NAT st
CurInstr (Computation s,k) = halt S holds
it <= k ) );
existence
ex b1 being Element of NAT st
( CurInstr (Computation s,b1) = halt S & ( for k being Element of NAT st CurInstr (Computation s,k) = halt S holds
b1 <= k ) )
uniqueness
for b1, b2 being Element of NAT st CurInstr (Computation s,b1) = halt S & ( for k being Element of NAT st CurInstr (Computation s,k) = halt S holds
b1 <= k ) & CurInstr (Computation s,b2) = halt S & ( for k being Element of NAT st CurInstr (Computation s,k) = halt S holds
b2 <= k ) holds
b1 = b2
end;
:: deftheorem Def46 defines LifeSpan AMI_1:def 46 :
theorem :: AMI_1:93
theorem Th94: :: AMI_1:94
theorem :: AMI_1:95
theorem :: AMI_1:96
canceled;
theorem :: AMI_1:97
:: deftheorem defines pi AMI_1:def 47 :
:: deftheorem defines ProgramPart AMI_1:def 48 :
:: deftheorem defines DataPart AMI_1:def 49 :
:: deftheorem Def50 defines data-only AMI_1:def 50 :
theorem :: AMI_1:98
canceled;
theorem :: AMI_1:99
theorem Th100: :: AMI_1:100
theorem Th101: :: AMI_1:101
theorem :: AMI_1:102
theorem :: AMI_1:103
theorem Th104: :: AMI_1:104
theorem Th105: :: AMI_1:105
theorem :: AMI_1:106
theorem :: AMI_1:107
theorem :: AMI_1:108
:: deftheorem defines data-only AMI_1:def 51 :
theorem :: AMI_1:109
theorem :: AMI_1:110
theorem :: AMI_1:111
theorem :: AMI_1:112
theorem :: AMI_1:113
canceled;
theorem :: AMI_1:114
theorem :: AMI_1:115
theorem :: AMI_1:116
theorem Th117: :: AMI_1:117
theorem Th118: :: AMI_1:118
theorem :: AMI_1:119
theorem :: AMI_1:120
theorem :: AMI_1:121
theorem :: AMI_1:122
theorem :: AMI_1:123
theorem :: AMI_1:124
theorem :: AMI_1:125
theorem :: AMI_1:126
theorem :: AMI_1:127
theorem :: AMI_1:128
theorem :: AMI_1:129
theorem :: AMI_1:130
theorem :: AMI_1:131
:: deftheorem defines halt-free AMI_1:def 52 :
theorem :: AMI_1:132
theorem :: AMI_1:133
theorem TW1: :: AMI_1:134
theorem :: AMI_1:135
theorem :: AMI_1:136
theorem :: AMI_1:137
theorem :: AMI_1:138
theorem Th139: :: AMI_1:139
theorem :: AMI_1:140
theorem :: AMI_1:141
theorem :: AMI_1:142