:: AMISTD_1 semantic presentation
theorem E1: :: AMISTD_1:1
theorem :: AMISTD_1:2
theorem E2: :: AMISTD_1:3
proof
let c
1 be non
empty set ;
let c
2 be
trivial FinSequence of c
1;
assume
not c
2 is
empty
;
then consider c
3 being
set such that
E3:
c
2 = {c3}
by REALSET1:def 4;
E4:
c
3 in {c3}
by TARSKI:def 1;
then consider c
4, c
5 being
set such that
E5:
c
3 = [c4,c5]
by E3, RELAT_1:def 1;
take
c
5
;
E6:
c
5 in rng c
2
by E3, E4, E5, RELAT_1:def 5;
rng c
2 c= c
1
by FINSEQ_1:def 4;
hence
c
5 is
Element of c
1
by E6;
E7:
1
in dom c
2
by E3, FINSEQ_5:6;
dom c
2 = {c4}
by E3, E5, RELAT_1:23;
then
1
= c
4
by E7, TARSKI:def 1;
hence
c
2 = <*c5*>
by E3, E5, FINSEQ_1:def 5;
end;
theorem :: AMISTD_1:4
canceled;
theorem E3: :: AMISTD_1:5
theorem E4: :: AMISTD_1:6
theorem E5: :: AMISTD_1:7
theorem E6: :: AMISTD_1:8
theorem E7: :: AMISTD_1:9
theorem E8: :: AMISTD_1:10
theorem E9: :: AMISTD_1:11
E10:
for b1 being with_non-empty_elements set
for b2 being non empty non void IC-Ins-separated steady-programmed definite AMI-Struct of b1
for b3 being Instruction-Location of b2
for b4 being Element of the Instructions of b2
for b5 being FinPartState of b2 holds
( b5 = b3 .--> b4 implies b5 is autonomic )
proof
let c
1 be
with_non-empty_elements set ;
let c
2 be non
empty non
void IC-Ins-separated steady-programmed definite AMI-Struct of c
1;
let c
3 be
Instruction-Location of c
2;
let c
4 be
Element of the
Instructions of c
2;
let c
5 be
FinPartState of c
2;
assume E11:
c
5 = c
3 .--> c
4
;
let c
6, c
7 be
State of c
2;
:: uses AMI_1:def 25
assume that
E12:
c
5 c= c
6
and
E13:
c
5 c= c
7
;
let c
8 be
Nat;
E14:
dom c
5 = {c3}
by E11, CQC_LANG:5;
E15:
for b
1 being
Function holds
( c
5 c= b
1 implies b
1 . c
3 = c
4 )
set c
9 =
((Computation c6) . c8) | (dom c5);
set c
10 =
((Computation c7) . c8) | (dom c5);
E16:
{c3} c= the
carrier of c
2
;
then
{c3} c= dom ((Computation c6) . c8)
by AMI_3:36;
then E17:
dom (((Computation c6) . c8) | (dom c5)) = {c3}
by E14, RELAT_1:91;
{c3} c= dom ((Computation c7) . c8)
by E16, AMI_3:36;
then E18:
dom (((Computation c7) . c8) | (dom c5)) = {c3}
by E14, RELAT_1:91;
for b
1 being
set holds
( b
1 in {c3} implies
(((Computation c6) . c8) | (dom c5)) . b
1 = (((Computation c7) . c8) | (dom c5)) . b
1 )
proof
let c
11 be
set ;
assume E19:
c
11 in {c3}
;
then E20:
c
11 = c
3
by TARSKI:def 1;
E21:
c
5 c= (Computation c6) . c
8
by E11, E12, AMI_3:38;
E22:
c
5 c= (Computation c7) . c
8
by E11, E13, AMI_3:38;
thus (((Computation c6) . c8) | (dom c5)) . c
11 =
((Computation c6) . c8) . c
11
by E14, E19, FUNCT_1:72
.=
c
4
by E15, E20, E21
.=
((Computation c7) . c8) . c
11
by E15, E20, E22
.=
(((Computation c7) . c8) | (dom c5)) . c
11
by E14, E19, FUNCT_1:72
;
end;
hence
((Computation c6) . c8) | (dom c5) = ((Computation c7) . c8) | (dom c5)
by E17, E18, FUNCT_1:9;
end;
theorem :: AMISTD_1:12
theorem E11: :: AMISTD_1:13
:: deftheorem AMISTD_1:def 1 :
canceled;
:: deftheorem AMISTD_1:def 2 :
canceled;
:: deftheorem defines jump-only AMISTD_1:def 3 :
:: deftheorem defines jump-only AMISTD_1:def 4 :
:: deftheorem defines NIC AMISTD_1:def 5 :
E12:
now
let c
1 be
with_non-empty_elements set ;
let c
2 be non
empty non
void IC-Ins-separated definite realistic AMI-Struct of c
1;
let c
3 be
Element of the
Instructions of c
2;
let c
4 be
Instruction-Location of c
2;
let c
5 be
State of c
2;
let c
6 be
FinPartState of c
2;
assume E13:
c
6 = (IC c2),c
4 --> c
4,c
3
;
set c
7 = c
5 +* c
6;
E14:
IC c
2 <> c
4
by AMI_1:48;
E15:
dom c
6 = {(IC c2),c4}
by E13, FUNCT_4:65;
then E16:
IC c
2 in dom c
6
by TARSKI:def 2;
E17:
IC (c5 +* c6) =
(c5 +* c6) . (IC c2)
.=
c
6 . (IC c2)
by E16, FUNCT_4:14
.=
c
4
by E13, E14, FUNCT_4:66
;
c
4 in dom c
6
by E15, TARSKI:def 2;
then (c5 +* c6) . c
4 =
c
6 . c
4
by FUNCT_4:14
.=
c
3
by E13, E14, FUNCT_4:66
;
hence
IC (Following (c5 +* c6)) in NIC c
3,c
4
by E17;
end;
:: deftheorem defines JUMP AMISTD_1:def 6 :
:: deftheorem defines SUCC AMISTD_1:def 7 :
theorem E13: :: AMISTD_1:14
proof
let c
1 be
with_non-empty_elements set ;
let c
2 be non
empty non
void IC-Ins-separated definite AMI-Struct of c
1;
let c
3 be
Element of the
Instructions of c
2;
given c
4, c
5 being
Element of the
Instruction-Locations of c
2 such that
E14:
c
4 <> c
5
;
:: uses YELLOW_8:def 1
assume E15:
for b
1 being
Instruction-Location of c
2 holds
NIC c
3,b
1 = {b1}
;
set c
6 =
{ (NIC c3,b1) where B is Instruction-Location of c2 : verum } ;
assume
not
JUMP c
3 is
empty
;
then
not
meet { (NIC c3,b1) where B is Instruction-Location of c2 : verum } is
empty
;
then consider c
7 being
set such that
E16:
c
7 in meet { (NIC c3,b1) where B is Instruction-Location of c2 : verum }
by XBOOLE_0:def 1;
(
NIC c
3,c
4 = {c4} &
NIC c
3,c
5 = {c5} )
by E15;
then
(
{c4} in { (NIC c3,b1) where B is Instruction-Location of c2 : verum } &
{c5} in { (NIC c3,b1) where B is Instruction-Location of c2 : verum } )
;
then
( c
7 in {c4} & c
7 in {c5} )
by E16, SETFAM_1:def 1;
then
( c
7 = c
4 & c
7 = c
5 )
by TARSKI:def 1;
hence
not verum
by E14;
end;
theorem E14: :: AMISTD_1:15
proof
let c
1 be
with_non-empty_elements set ;
let c
2 be non
empty non
void IC-Ins-separated definite realistic AMI-Struct of c
1;
let c
3 be
Instruction-Location of c
2;
let c
4 be
Instruction of c
2;
assume E15:
for b
1 being
State of c
2 holds
Exec c
4,b
1 = b
1
;
:: uses AMI_1:def 8
end;
let c
5 be
set ;
:: uses TARSKI:def 3
assume E16:
c
5 in {c3}
;
consider c
6 being
State of c
2;
(
ObjectKind (IC c2) = the
Instruction-Locations of c
2 &
ObjectKind c
3 = the
Instructions of c
2 )
by AMI_1:def 11, AMI_1:def 14;
then reconsider c
7 =
(IC c2),c
3 --> c
3,c
4 as
FinPartState of c
2 by AMI_1:58;
set c
8 = c
6 +* c
7;
E17:
dom c
7 = {(IC c2),c3}
by FUNCT_4:65;
then E18:
IC c
2 in dom c
7
by TARSKI:def 2;
E19:
c
3 in dom c
7
by E17, TARSKI:def 2;
E20:
IC c
2 <> c
3
by AMI_1:48;
E21:
(c6 +* c7) . (IC c2) =
c
7 . (IC c2)
by E18, FUNCT_4:14
.=
c
3
by E20, FUNCT_4:66
;
E22:
(c6 +* c7) . (IC (c6 +* c7)) =
(c6 +* c7) . ((c6 +* c7) . (IC c2))
.=
c
7 . c
3
by E19, E21, FUNCT_4:14
.=
c
4
by E20, FUNCT_4:66
;
IC (Following (c6 +* c7)) =
IC (Exec (CurInstr (c6 +* c7)),(c6 +* c7))
.=
IC (Exec ((c6 +* c7) . (IC (c6 +* c7))),(c6 +* c7))
.=
(Exec ((c6 +* c7) . (IC (c6 +* c7))),(c6 +* c7)) . (IC c2)
.=
(c6 +* c7) . (IC c2)
by E15, E22
.=
c
5
by E16, E21, TARSKI:def 1
;
hence
c
5 in NIC c
4,c
3
by E12;
end;
:: deftheorem E15 defines <= AMISTD_1:def 8 :
theorem :: AMISTD_1:16