:: AMISTD_3 semantic presentation  Show TPTP formulae Show IDV graph for whole article:: Showing IDV graph ... (Click the Palm Trees again to close it)

registration
let D be set ;
let f be PartFunc of D, NAT ;
let n be set ;
cluster f . n -> natural ;
coherence
f . n is natural
proof end;
end;

registration
let R be empty Relation;
let X be set ;
cluster R | X -> empty ;
coherence
R | X is empty
proof end;
end;

theorem Th1: :: AMISTD_3:1  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x, y being set
for R being Relation st dom R = {x} & rng R = {y} holds
R = x .--> y
proof end;

theorem Th2: :: AMISTD_3:2  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being set holds field {[x,x]} = {x}
proof end;

registration
let X be infinite set ;
let a be set ;
cluster X --> a -> infinite ;
coherence
not X --> a is finite
proof end;
end;

registration
cluster infinite set ;
existence
not for b1 being Function holds b1 is finite
proof end;
end;

registration
let R be finite Relation;
cluster field R -> finite ;
coherence
field R is finite
proof end;
end;

theorem Th3: :: AMISTD_3:3  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for R being Relation st field R is finite holds
R is finite
proof end;

registration
let R be infinite Relation;
cluster field R -> infinite ;
coherence
not field R is finite
by Th3;
end;

theorem :: AMISTD_3:4  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for R being Relation st dom R is finite & rng R is finite holds
R is finite
proof end;

registration
cluster RelIncl {} -> empty ;
coherence
RelIncl {} is empty
proof end;
end;

registration
let X be non empty set ;
cluster RelIncl X -> non empty ;
coherence
not RelIncl X is empty
proof end;
end;

theorem Th5: :: AMISTD_3:5  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being set holds RelIncl {x} = {[x,x]}
proof end;

theorem Th6: :: AMISTD_3:6  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for X being set holds RelIncl X c= [:X,X:]
proof end;

registration
let X be finite set ;
cluster RelIncl X -> finite ;
coherence
RelIncl X is finite
proof end;
end;

theorem Th7: :: AMISTD_3:7  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for X being set st RelIncl X is finite holds
X is finite
proof end;

registration
let X be infinite set ;
cluster RelIncl X -> non empty infinite ;
coherence
not RelIncl X is finite
by Th7;
end;

theorem :: AMISTD_3:8  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for R, S being Relation st R,S are_isomorphic & R is well-ordering holds
S is well-ordering
proof end;

theorem Th9: :: AMISTD_3:9  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for R, S being Relation st R,S are_isomorphic & R is finite holds
S is finite
proof end;

theorem Th10: :: AMISTD_3:10  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x, y being set holds x .--> y is_isomorphism_of {[x,x]},{[y,y]}
proof end;

theorem :: AMISTD_3:11  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x, y being set holds {[x,x]},{[y,y]} are_isomorphic
proof end;

registration
cluster order_type_of {} -> empty ;
coherence
order_type_of {} is empty
proof end;
end;

theorem :: AMISTD_3:12  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for O being Ordinal holds order_type_of (RelIncl O) = O
proof end;

Lm1: for O being Ordinal
for X being finite set st X c= O holds
order_type_of (RelIncl X) is finite
proof end;

theorem Th13: :: AMISTD_3:13  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for O being Ordinal
for X being finite set st X c= O holds
order_type_of (RelIncl X) = card X
proof end;

theorem Th14: :: AMISTD_3:14  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being set
for O being Ordinal st {x} c= O holds
order_type_of (RelIncl {x}) = 1
proof end;

theorem Th15: :: AMISTD_3:15  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being set
for O being Ordinal st {x} c= O holds
canonical_isomorphism_of (RelIncl (order_type_of (RelIncl {x}))),(RelIncl {x}) = 0 .--> x
proof end;

registration
let O be Ordinal;
let X be Subset of O;
let n be set ;
cluster (canonical_isomorphism_of (RelIncl (order_type_of (RelIncl X))),(RelIncl X)) . n -> ordinal ;
coherence
(canonical_isomorphism_of (RelIncl (order_type_of (RelIncl X))),(RelIncl X)) . n is ordinal
proof end;
end;

registration
let X be natural-membered set ;
let n be set ;
cluster (canonical_isomorphism_of (RelIncl (order_type_of (RelIncl X))),(RelIncl X)) . n -> natural ;
coherence
(canonical_isomorphism_of (RelIncl (order_type_of (RelIncl X))),(RelIncl X)) . n is natural
proof end;
end;

theorem Th16: :: AMISTD_3:16  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for x being set
for n, m being natural number st n |-> x = m |-> x holds
n = m
proof end;

theorem Th17: :: AMISTD_3:17  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for n being natural number
for T being Tree
for t being Element of T holds t | (Seg n) in T
proof end;

theorem Th18: :: AMISTD_3:18  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for T1, T2 being Tree st ( for n being Nat holds T1 -level n = T2 -level n ) holds
T1 = T2
proof end;

definition
func TrivialInfiniteTree -> set equals :: AMISTD_3:def 1
{ (k |-> 0) where k is Nat : verum } ;
coherence
{ (k |-> 0) where k is Nat : verum } is set
;
end;

:: deftheorem defines TrivialInfiniteTree AMISTD_3:def 1 :
TrivialInfiniteTree = { (k |-> 0) where k is Nat : verum } ;

registration
cluster TrivialInfiniteTree -> non empty Tree-like ;
coherence
( not TrivialInfiniteTree is empty & TrivialInfiniteTree is Tree-like )
proof end;
end;

theorem Th19: :: AMISTD_3:19  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
NAT , TrivialInfiniteTree are_equipotent
proof end;

registration
cluster TrivialInfiniteTree -> non empty infinite Tree-like ;
coherence
not TrivialInfiniteTree is finite
by Th19, CARD_1:68;
end;

theorem Th20: :: AMISTD_3:20  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for n being Nat holds TrivialInfiniteTree -level n = {(n |-> 0)}
proof end;

definition
let N be with_non-empty_elements set ;
let S be non empty non void IC-Ins-separated definite standard AMI-Struct of N;
let F be FinPartState of S;
assume that
A1: not F is empty and
A2: F is programmed ;
func FirstLoc F -> Instruction-Location of S means :Def2: :: AMISTD_3:def 2
ex M being non empty Subset of NAT st
( M = { (locnum l) where l is Element of the Instruction-Locations of S : l in dom F } & it = il. S,(min M) );
existence
ex b1 being Instruction-Location of S ex M being non empty Subset of NAT st
( M = { (locnum l) where l is Element of the Instruction-Locations of S : l in dom F } & b1 = il. S,(min M) )
proof end;
uniqueness
for b1, b2 being Instruction-Location of S st ex M being non empty Subset of NAT st
( M = { (locnum l) where l is Element of the Instruction-Locations of S : l in dom F } & b1 = il. S,(min M) ) & ex M being non empty Subset of NAT st
( M = { (locnum l) where l is Element of the Instruction-Locations of S : l in dom F } & b2 = il. S,(min M) ) holds
b1 = b2
;
end;

:: deftheorem Def2 defines FirstLoc AMISTD_3:def 2 :
for N being with_non-empty_elements set
for S being non empty non void IC-Ins-separated definite standard AMI-Struct of N
for F being FinPartState of S st not F is empty & F is programmed holds
for b4 being Instruction-Location of S holds
( b4 = FirstLoc F iff ex M being non empty Subset of NAT st
( M = { (locnum l) where l is Element of the Instruction-Locations of S : l in dom F } & b4 = il. S,(min M) ) );

theorem Th21: :: AMISTD_3:21  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for N being with_non-empty_elements set
for S being non empty non void IC-Ins-separated definite standard AMI-Struct of N
for F being non empty programmed FinPartState of S holds FirstLoc F in dom F
proof end;

theorem :: AMISTD_3:22  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for N being with_non-empty_elements set
for S being non empty non void IC-Ins-separated definite standard AMI-Struct of N
for F, G being non empty programmed FinPartState of S st F c= G holds
FirstLoc G <= FirstLoc F
proof end;

theorem Th23: :: AMISTD_3:23  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for N being with_non-empty_elements set
for S being non empty non void IC-Ins-separated definite standard AMI-Struct of N
for l1 being Instruction-Location of S
for F being non empty programmed FinPartState of S st l1 in dom F holds
FirstLoc F <= l1
proof end;

theorem :: AMISTD_3:24  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for N being with_non-empty_elements set
for S being non empty non void IC-Ins-separated definite standard AMI-Struct of N
for F being non empty programmed lower FinPartState of S holds FirstLoc F = il. S,0
proof end;

definition
let N be with_non-empty_elements set ;
let S be non empty non void IC-Ins-separated definite standard AMI-Struct of N;
let F be Subset of the Instruction-Locations of S;
func LocNums F -> Subset of NAT equals :: AMISTD_3:def 3
{ (locnum l) where l is Instruction-Location of S : l in F } ;
coherence
{ (locnum l) where l is Instruction-Location of S : l in F } is Subset of NAT
proof end;
end;

:: deftheorem defines LocNums AMISTD_3:def 3 :
for N being with_non-empty_elements set
for S being non empty non void IC-Ins-separated definite standard AMI-Struct of N
for F being Subset of the Instruction-Locations of S holds LocNums F = { (locnum l) where l is Instruction-Location of S : l in F } ;

theorem Th25: :: AMISTD_3:25  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for N being with_non-empty_elements set
for S being non empty non void IC-Ins-separated definite standard AMI-Struct of N
for l1 being Instruction-Location of S
for F being Subset of the Instruction-Locations of S holds
( locnum l1 in LocNums F iff l1 in F )
proof end;

registration
let N be with_non-empty_elements set ;
let S be non empty non void IC-Ins-separated definite standard AMI-Struct of N;
let F be empty Subset of the Instruction-Locations of S;
cluster LocNums F -> empty ;
coherence
LocNums F is empty
proof end;
end;

registration
let N be with_non-empty_elements set ;
let S be non empty non void IC-Ins-separated definite standard AMI-Struct of N;
let F be non empty Subset of the Instruction-Locations of S;
cluster LocNums F -> non empty ;
coherence
not LocNums F is empty
proof end;
end;

theorem Th26: :: AMISTD_3:26  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for n being natural number
for N being with_non-empty_elements set
for S being non empty non void IC-Ins-separated definite standard AMI-Struct of N
for F being Subset of the Instruction-Locations of S st F = {(il. S,n)} holds
LocNums F = {n}
proof end;

theorem Th27: :: AMISTD_3:27  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for N being with_non-empty_elements set
for S being non empty non void IC-Ins-separated definite standard AMI-Struct of N
for F being Subset of the Instruction-Locations of S holds F, LocNums F are_equipotent
proof end;

theorem Th28: :: AMISTD_3:28  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for N being with_non-empty_elements set
for S being non empty non void IC-Ins-separated definite standard AMI-Struct of N
for F being Subset of the Instruction-Locations of S holds Card F c= order_type_of (RelIncl (LocNums F))
proof end;

theorem Th29: :: AMISTD_3:29  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for N being with_non-empty_elements set
for S being non empty non void IC-Ins-separated definite standard AMI-Struct of N
for L being Instruction-Location of S
for J being Instruction of S st S is realistic & J is halting holds
LocNums (NIC J,L) = {(locnum L)}
proof end;

theorem :: AMISTD_3:30  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for N being with_non-empty_elements set
for S being non empty non void IC-Ins-separated definite standard AMI-Struct of N
for L being Instruction-Location of S
for J being Instruction of S st S is realistic & J is sequential holds
LocNums (NIC J,L) = {(locnum (NextLoc L))}
proof end;

definition
let N be with_non-empty_elements set ;
let S be non empty non void IC-Ins-separated definite standard AMI-Struct of N;
let M be Subset of the Instruction-Locations of S;
deffunc H1( set ) -> Element of the Instruction-Locations of S = il. S,((canonical_isomorphism_of (RelIncl (order_type_of (RelIncl (LocNums M)))),(RelIncl (LocNums M))) . $1);
set Z = the Instruction-Locations of S;
func LocSeq M -> T-Sequence of the Instruction-Locations of S means :Def4: :: AMISTD_3:def 4
( dom it = Card M & ( for m being set st m in Card M holds
it . m = il. S,((canonical_isomorphism_of (RelIncl (order_type_of (RelIncl (LocNums M)))),(RelIncl (LocNums M))) . m) ) );
existence
ex b1 being T-Sequence of the Instruction-Locations of S st
( dom b1 = Card M & ( for m being set st m in Card M holds
b1 . m = il. S,((canonical_isomorphism_of (RelIncl (order_type_of (RelIncl (LocNums M)))),(RelIncl (LocNums M))) . m) ) )
proof end;
uniqueness
for b1, b2 being T-Sequence of the Instruction-Locations of S st dom b1 = Card M & ( for m being set st m in Card M holds
b1 . m = il. S,((canonical_isomorphism_of (RelIncl (order_type_of (RelIncl (LocNums M)))),(RelIncl (LocNums M))) . m) ) & dom b2 = Card M & ( for m being set st m in Card M holds
b2 . m = il. S,((canonical_isomorphism_of (RelIncl (order_type_of (RelIncl (LocNums M)))),(RelIncl (LocNums M))) . m) ) holds
b1 = b2
proof end;
end;

:: deftheorem Def4 defines LocSeq AMISTD_3:def 4 :
for N being with_non-empty_elements set
for S being non empty non void IC-Ins-separated definite standard AMI-Struct of N
for M being Subset of the Instruction-Locations of S
for b4 being T-Sequence of the Instruction-Locations of S holds
( b4 = LocSeq M iff ( dom b4 = Card M & ( for m being set st m in Card M holds
b4 . m = il. S,((canonical_isomorphism_of (RelIncl (order_type_of (RelIncl (LocNums M)))),(RelIncl (LocNums M))) . m) ) ) );

theorem :: AMISTD_3:31  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for n being natural number
for N being with_non-empty_elements set
for S being non empty non void IC-Ins-separated definite standard AMI-Struct of N
for F being Subset of the Instruction-Locations of S st F = {(il. S,n)} holds
LocSeq F = 0 .--> (il. S,n)
proof end;

registration
let N be with_non-empty_elements set ;
let S be non empty non void IC-Ins-separated definite standard AMI-Struct of N;
let M be Subset of the Instruction-Locations of S;
cluster LocSeq M -> one-to-one ;
coherence
LocSeq M is one-to-one
proof end;
end;

definition
let N be with_non-empty_elements set ;
let S be non empty non void IC-Ins-separated definite standard AMI-Struct of N;
let M be FinPartState of S;
func ExecTree M -> DecoratedTree of the Instruction-Locations of S means :Def5: :: AMISTD_3:def 5
( it . {} = FirstLoc M & ( for t being Element of dom it holds
( succ t = { (t ^ <*k*>) where k is Nat : k in Card (NIC (pi M,(it . t)),(it . t)) } & ( for m being Nat st m in Card (NIC (pi M,(it . t)),(it . t)) holds
it . (t ^ <*m*>) = (LocSeq (NIC (pi M,(it . t)),(it . t))) . m ) ) ) );
existence
ex b1 being DecoratedTree of the Instruction-Locations of S st
( b1 . {} = FirstLoc M & ( for t being Element of dom b1 holds
( succ t = { (t ^ <*k*>) where k is Nat : k in Card (NIC (pi M,(b1 . t)),(b1 . t)) } & ( for m being Nat st m in Card (NIC (pi M,(b1 . t)),(b1 . t)) holds
b1 . (t ^ <*m*>) = (LocSeq (NIC (pi M,(b1 . t)),(b1 . t))) . m ) ) ) )
proof end;
uniqueness
for b1, b2 being DecoratedTree of the Instruction-Locations of S st b1 . {} = FirstLoc M & ( for t being Element of dom b1 holds
( succ t = { (t ^ <*k*>) where k is Nat : k in Card (NIC (pi M,(b1 . t)),(b1 . t)) } & ( for m being Nat st m in Card (NIC (pi M,(b1 . t)),(b1 . t)) holds
b1 . (t ^ <*m*>) = (LocSeq (NIC (pi M,(b1 . t)),(b1 . t))) . m ) ) ) & b2 . {} = FirstLoc M & ( for t being Element of dom b2 holds
( succ t = { (t ^ <*k*>) where k is Nat : k in Card (NIC (pi M,(b2 . t)),(b2 . t)) } & ( for m being Nat st m in Card (NIC (pi M,(b2 . t)),(b2 . t)) holds
b2 . (t ^ <*m*>) = (LocSeq (NIC (pi M,(b2 . t)),(b2 . t))) . m ) ) ) holds
b1 = b2
proof end;
end;

:: deftheorem Def5 defines ExecTree AMISTD_3:def 5 :
for N being with_non-empty_elements set
for S being non empty non void IC-Ins-separated definite standard AMI-Struct of N
for M being FinPartState of S
for b4 being DecoratedTree of the Instruction-Locations of S holds
( b4 = ExecTree M iff ( b4 . {} = FirstLoc M & ( for t being Element of dom b4 holds
( succ t = { (t ^ <*k*>) where k is Nat : k in Card (NIC (pi M,(b4 . t)),(b4 . t)) } & ( for m being Nat st m in Card (NIC (pi M,(b4 . t)),(b4 . t)) holds
b4 . (t ^ <*m*>) = (LocSeq (NIC (pi M,(b4 . t)),(b4 . t))) . m ) ) ) ) );

theorem :: AMISTD_3:32  Show TPTP formulae Show IDV graph:: Showing IDV graph ... (Click the Palm Tree again to close it) Show TPTP problem
for N being with_non-empty_elements set
for S being non empty non void halting IC-Ins-separated definite realistic standard AMI-Struct of N holds ExecTree (Stop S) = TrivialInfiniteTree --> (il. S,0)
proof end;