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
Gaëtan Gilbert
Iris
Commits
9f2234ea
Commit
9f2234ea
authored
9 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Rules for opening timeless invariants.
parent
f15c614c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
program_logic/invariants.v
+23
-0
23 additions, 0 deletions
program_logic/invariants.v
with
23 additions
and
0 deletions
program_logic/invariants.v
+
23
−
0
View file @
9f2234ea
...
@@ -51,6 +51,17 @@ Proof.
...
@@ -51,6 +51,17 @@ Proof.
rewrite
assoc
-
always_and_sep_l
pvs_closeI
pvs_frame_r
left_id
.
rewrite
assoc
-
always_and_sep_l
pvs_closeI
pvs_frame_r
left_id
.
apply
pvs_mask_frame'
;
set_solver
.
apply
pvs_mask_frame'
;
set_solver
.
Qed
.
Qed
.
Lemma
inv_fsa_timeless
{
A
}
(
fsa
:
FSA
Λ
Σ
A
)
`{
!
FrameShiftAssertion
fsaV
fsa
}
E
N
P
`{
!
TimelessP
P
}
Ψ
R
:
fsaV
→
nclose
N
⊆
E
→
R
⊢
inv
N
P
→
R
⊢
(
P
-★
fsa
(
E
∖
nclose
N
)
(
λ
a
,
▷
P
★
Ψ
a
))
→
R
⊢
fsa
E
Ψ
.
Proof
.
intros
???
HR
.
eapply
inv_fsa
,
wand_intro_l
;
eauto
.
trans
(|
=
{
E
∖
N
}=>
P
★
R
)
%
I
;
first
by
rewrite
pvs_timeless
pvs_frame_r
.
apply
(
fsa_strip_pvs
_)
.
by
rewrite
HR
wand_elim_r
.
Qed
.
(* Derive the concrete forms for pvs and wp, because they are useful. *)
(* Derive the concrete forms for pvs and wp, because they are useful. *)
...
@@ -60,6 +71,12 @@ Lemma pvs_inv E N P Q R :
...
@@ -60,6 +71,12 @@ Lemma pvs_inv E N P Q R :
R
⊢
(
▷
P
-★
|
=
{
E
∖
nclose
N
}=>
(
▷
P
★
Q
))
→
R
⊢
(
▷
P
-★
|
=
{
E
∖
nclose
N
}=>
(
▷
P
★
Q
))
→
R
⊢
(|
=
{
E
}=>
Q
)
.
R
⊢
(|
=
{
E
}=>
Q
)
.
Proof
.
intros
.
by
apply
:
(
inv_fsa
pvs_fsa
)
.
Qed
.
Proof
.
intros
.
by
apply
:
(
inv_fsa
pvs_fsa
)
.
Qed
.
Lemma
pvs_inv_timeless
E
N
P
`{
!
TimelessP
P
}
Q
R
:
nclose
N
⊆
E
→
R
⊢
inv
N
P
→
R
⊢
(
P
-★
|
=
{
E
∖
nclose
N
}=>
(
▷
P
★
Q
))
→
R
⊢
(|
=
{
E
}=>
Q
)
.
Proof
.
intros
.
by
apply
:
(
inv_fsa_timeless
pvs_fsa
)
.
Qed
.
Lemma
wp_inv
E
e
N
P
Φ
R
:
Lemma
wp_inv
E
e
N
P
Φ
R
:
atomic
e
→
nclose
N
⊆
E
→
atomic
e
→
nclose
N
⊆
E
→
...
@@ -67,6 +84,12 @@ Lemma wp_inv E e N P Φ R :
...
@@ -67,6 +84,12 @@ Lemma wp_inv E e N P Φ R :
R
⊢
(
▷
P
-★
WP
e
@
E
∖
nclose
N
{{
λ
v
,
▷
P
★
Φ
v
}})
→
R
⊢
(
▷
P
-★
WP
e
@
E
∖
nclose
N
{{
λ
v
,
▷
P
★
Φ
v
}})
→
R
⊢
WP
e
@
E
{{
Φ
}}
.
R
⊢
WP
e
@
E
{{
Φ
}}
.
Proof
.
intros
.
by
apply
:
(
inv_fsa
(
wp_fsa
e
))
.
Qed
.
Proof
.
intros
.
by
apply
:
(
inv_fsa
(
wp_fsa
e
))
.
Qed
.
Lemma
wp_inv_timeless
E
e
N
P
`{
!
TimelessP
P
}
Φ
R
:
atomic
e
→
nclose
N
⊆
E
→
R
⊢
inv
N
P
→
R
⊢
(
P
-★
WP
e
@
E
∖
nclose
N
{{
λ
v
,
▷
P
★
Φ
v
}})
→
R
⊢
WP
e
@
E
{{
Φ
}}
.
Proof
.
intros
.
by
apply
:
(
inv_fsa_timeless
(
wp_fsa
e
))
.
Qed
.
Lemma
inv_alloc
N
E
P
:
nclose
N
⊆
E
→
▷
P
⊢
|
=
{
E
}=>
inv
N
P
.
Lemma
inv_alloc
N
E
P
:
nclose
N
⊆
E
→
▷
P
⊢
|
=
{
E
}=>
inv
N
P
.
Proof
.
Proof
.
...
...
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