Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-coq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Maxime Dénès
iris-coq
Commits
7a822edf
Commit
7a822edf
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Make pvs_wand_{l,r} consistent with pvs_impl_{l,r}.
parent
eab6c6c4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
heap_lang/lib/barrier/proof.v
+2
-2
2 additions, 2 deletions
heap_lang/lib/barrier/proof.v
program_logic/pviewshifts.v
+4
-6
4 additions, 6 deletions
program_logic/pviewshifts.v
with
6 additions
and
8 deletions
heap_lang/lib/barrier/proof.v
+
2
−
2
View file @
7a822edf
...
...
@@ -117,7 +117,7 @@ Proof.
intros
HN
.
rewrite
/
newbarrier
.
wp_seq
.
rewrite
-
wp_pvs
.
wp
eapply
wp_alloc
;
eauto
with
I
ndisj
.
apply
forall_intro
=>
l
.
rewrite
(
forall_elim
l
)
.
apply
wand_intro_l
.
rewrite
!
assoc
.
apply
pvs_wand_r
.
rewrite
!
assoc
.
rewrite
-
pvs_wand_r
;
apply
sep_mono_l
.
(* The core of this proof: Allocating the STS and the saved prop. *)
eapply
sep_elim_True_r
;
first
by
eapply
(
saved_prop_alloc
(
F
:=
idCF
)
_
P
)
.
rewrite
pvs_frame_l
.
apply
pvs_strip_pvs
.
rewrite
sep_exist_l
.
...
...
@@ -201,7 +201,7 @@ Proof.
rewrite
-!
assoc
.
apply
sep_mono_r
,
sep_mono_r
,
wand_intro_l
.
wp_op
;
first
done
.
intros
_
.
wp_if
.
rewrite
!
assoc
.
rewrite
-
always_wand_impl
always_elim
.
rewrite
-
{
2
}
pvs_wp
.
apply
pvs_wand_r
.
rewrite
-
{
2
}
pvs_wp
.
rewrite
-
pvs_wand_r
;
apply
sep_mono_l
.
rewrite
-
(
exist_intro
γ
)
-
(
exist_intro
P
)
-
(
exist_intro
Q
)
-
(
exist_intro
i
)
.
rewrite
const_equiv
//
left_id
-
later_intro
.
ecancel_pvs
[
heap_ctx
_;
saved_prop_own
_
_;
Q
-★
_;
R
-★
_;
sts_ctx
_
_
_]
%
I
.
...
...
This diff is collapsed.
Click to expand it.
program_logic/pviewshifts.v
+
4
−
6
View file @
7a822edf
...
...
@@ -159,12 +159,10 @@ Lemma pvs_impl_l E1 E2 P Q : (□ (P → Q) ∧ (|={E1,E2}=> P)) ⊢ (|={E1,E2}=
Proof
.
by
rewrite
pvs_always_l
always_elim
impl_elim_l
.
Qed
.
Lemma
pvs_impl_r
E1
E2
P
Q
:
((|
=
{
E1
,
E2
}=>
P
)
∧
□
(
P
→
Q
))
⊢
(|
=
{
E1
,
E2
}=>
Q
)
.
Proof
.
by
rewrite
comm
pvs_impl_l
.
Qed
.
Lemma
pvs_wand_l
E1
E2
P
Q
R
:
P
⊢
(|
=
{
E1
,
E2
}=>
Q
)
→
((
Q
-★
R
)
★
P
)
⊢
(|
=
{
E1
,
E2
}=>
R
)
.
Proof
.
intros
->
.
rewrite
pvs_frame_l
.
apply
pvs_mono
,
wand_elim_l
.
Qed
.
Lemma
pvs_wand_r
E1
E2
P
Q
R
:
P
⊢
(|
=
{
E1
,
E2
}=>
Q
)
→
(
P
★
(
Q
-★
R
))
⊢
(|
=
{
E1
,
E2
}=>
R
)
.
Proof
.
rewrite
comm
.
apply
pvs_wand_l
.
Qed
.
Lemma
pvs_wand_l
E1
E2
P
Q
:
((
P
-★
Q
)
★
(|
=
{
E1
,
E2
}=>
P
))
⊢
(|
=
{
E1
,
E2
}=>
Q
)
.
Proof
.
by
rewrite
pvs_frame_l
wand_elim_l
.
Qed
.
Lemma
pvs_wand_r
E1
E2
P
Q
:
((|
=
{
E1
,
E2
}=>
P
)
★
(
P
-★
Q
))
⊢
(|
=
{
E1
,
E2
}=>
Q
)
.
Proof
.
by
rewrite
pvs_frame_r
wand_elim_r
.
Qed
.
Lemma
pvs_sep
E
P
Q
:
((|
=
{
E
}=>
P
)
★
(|
=
{
E
}=>
Q
))
⊢
(|
=
{
E
}=>
P
★
Q
)
.
Proof
.
rewrite
pvs_frame_r
pvs_frame_l
pvs_trans
//.
set_solver
.
Qed
.
...
...
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