Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
William Mansky
Iris
Commits
02a753f4
Commit
02a753f4
authored
10 years ago
by
Filip Sieczkowski
Browse files
Options
Downloads
Patches
Plain Diff
Added "timeless" assertion and the view-shift rule.
parent
fc83f26a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iris.v
+39
-4
39 additions, 4 deletions
iris.v
with
39 additions
and
4 deletions
iris.v
+
39
−
4
View file @
02a753f4
...
...
@@ -236,6 +236,34 @@ Module Iris (RL : PCM_T) (C : CORE_LANG).
(* TODO: own 0 = False, own 1 = True *)
Qed
.
(** Timeless *)
Definition
timelessP
(
p
:
Props
)
w
n
:=
forall
w'
k
r
(
HSw
:
w
⊑
w'
)
(
HLt
:
k
<
n
)
(
Hp
:
p
w'
k
r
),
p
w'
(
S
k
)
r
.
Program
Definition
timeless
(
p
:
Props
)
:
Props
:=
m
[(
fun
w
=>
mkUPred
(
fun
n
r
=>
timelessP
p
w
n
)
_)]
.
Next
Obligation
.
intros
n1
n2
_
_
HLe
_
HT
w'
k
r
HSw
HLt
Hp
;
eapply
HT
,
Hp
;
[
eassumption
|]
.
now
eauto
with
arith
.
Qed
.
Next
Obligation
.
intros
w1
w2
EQw
n
rr
;
simpl
;
split
;
intros
HT
k
r
HLt
;
[
rewrite
<-
EQw
|
rewrite
EQw
];
apply
HT
;
assumption
.
Qed
.
Next
Obligation
.
intros
w1
w2
EQw
k
;
simpl
;
intros
_
HLt
;
destruct
n
as
[|
n
];
[
now
inversion
HLt
|]
.
split
;
intros
HT
w'
m
r
HSw
HLt'
Hp
.
-
symmetry
in
EQw
;
assert
(
HD
:=
extend_dist
_
_
_
_
EQw
HSw
);
assert
(
HS
:=
extend_sub
_
_
_
_
EQw
HSw
)
.
apply
(
met_morph_nonexp
_
_
p
)
in
HD
;
apply
HD
,
HT
,
HD
,
Hp
;
now
(
assumption
||
eauto
with
arith
)
.
-
assert
(
HD
:=
extend_dist
_
_
_
_
EQw
HSw
);
assert
(
HS
:=
extend_sub
_
_
_
_
EQw
HSw
)
.
apply
(
met_morph_nonexp
_
_
p
)
in
HD
;
apply
HD
,
HT
,
HD
,
Hp
;
now
(
assumption
||
eauto
with
arith
)
.
Qed
.
Next
Obligation
.
intros
w1
w2
HSw
n
;
simpl
;
intros
_
HT
w'
m
r
HSw'
HLt
Hp
.
eapply
HT
,
Hp
;
[
etransitivity
|];
eassumption
.
Qed
.
Section
Erasure
.
Local
Open
Scope
pcm_scope
.
Local
Open
Scope
bi_scope
.
...
...
@@ -438,6 +466,17 @@ Module Iris (RL : PCM_T) (C : CORE_LANG).
Definition
mask_sing
i
:=
mask_set
mask_emp
i
True
.
Lemma
vsTimeless
m
p
:
timeless
p
⊑
vs
m
m
(
▹
p
)
p
.
Proof
.
intros
w'
n
r1
HTL
w
HSub
;
rewrite
HSub
in
HTL
;
clear
w'
HSub
.
intros
np
rp
HLe
HS
Hp
w1
;
intros
.
exists
w1
rp
s
;
split
;
[
reflexivity
|
split
;
[|
assumption
]
];
clear
HE
HD
.
destruct
np
as
[|
np
];
[
now
inversion
HLe0
|];
simpl
in
Hp
.
unfold
lt
in
HLe0
;
rewrite
HLe0
.
rewrite
<-
HSub
;
apply
HTL
,
Hp
;
[
reflexivity
|
assumption
]
.
Qed
.
(* TODO: Why do we even need the nonzero lemma about erase_state here? *)
Lemma
vsOpen
i
p
:
valid
(
vs
(
mask_sing
i
)
mask_emp
(
inv
i
p
)
(
▹
p
))
.
...
...
@@ -744,10 +783,6 @@ Qed.
apply
HM
;
assumption
.
Qed
.
(* XXX missing statements: VSTimeless *)
End
ViewShiftProps
.
Section
HoareTriples
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment