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
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
Amin Timany
iris-coq
Commits
ce3a01eb
Commit
ce3a01eb
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
avoid wp_bindi
parent
a3413622
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
barrier/barrier.v
+8
-6
8 additions, 6 deletions
barrier/barrier.v
heap_lang/lifting.v
+0
-5
0 additions, 5 deletions
heap_lang/lifting.v
with
8 additions
and
11 deletions
barrier/barrier.v
+
8
−
6
View file @
ce3a01eb
...
...
@@ -237,15 +237,17 @@ Section proof.
heapN
⊥
N
→
(
recv
l
P
★
(
P
-★
Φ
'
()))
⊑
||
wait
(
LocV
l
)
{{
Φ
}}
.
Proof
.
rename
P
into
R
.
intros
Hdisj
.
rewrite
/
wait
.
rewrite
[(_
★
_)
%
I
](
pvs_intro
⊤
)
.
apply
löb_strong_sep
.
rewrite
pvs_frame_r
.
apply
wp_strip_pvs
.
intros
Hdisj
.
(* TODO we probably want a tactic or lemma that does the next 2 lines for us.
It should be general enough to also cover FindPred_spec. Probably this
should be the default behavior of wp_rec - since this is what we need every time
we prove a recursive function correct. *)
rewrite
/
wait
.
rewrite
[(_
★
_)
%
I
](
pvs_intro
⊤
)
.
apply
löb_strong_sep
.
rewrite
pvs_frame_r
.
apply
wp_strip_pvs
.
wp_rec
.
rewrite
{
1
}
/
recv
/
barrier_ctx
.
rewrite
!
sep_exist_r
.
apply
exist_elim
=>
γ
.
rewrite
!
sep_exist_r
.
apply
exist_elim
=>
P
.
rewrite
!
sep_exist_r
.
apply
exist_elim
=>
Q
.
rewrite
!
sep_exist_r
.
apply
exist_elim
=>
i
.
wp_rec
.
(* TODO use automatic binding *)
rewrite
-
(
wp_bindi
(
IfCtx
_
_))
/=.
rewrite
-
(
wp_bindi
(
BinOpLCtx
_
_))
/=.
apply
exist_elim
=>
i
.
wp_focus
(
!
_)
%
L
.
(* I think some evars here are better than repeating *everything* *)
eapply
(
sts_fsaS
_
(
wp_fsa
_))
with
(
N0
:=
N
)
(
γ0
:=
γ
);
simpl
;
eauto
with
I
ndisj
.
...
...
This diff is collapsed.
Click to expand it.
heap_lang/lifting.v
+
0
−
5
View file @
ce3a01eb
...
...
@@ -19,11 +19,6 @@ Lemma wp_bind {E e} K Φ :
||
e
@
E
{{
λ
v
,
||
fill
K
(
of_val
v
)
@
E
{{
Φ
}}}}
⊑
||
fill
K
e
@
E
{{
Φ
}}
.
Proof
.
apply
weakestpre
.
wp_bind
.
Qed
.
Lemma
wp_bindi
{
E
e
}
Ki
Φ
:
||
e
@
E
{{
λ
v
,
||
fill_item
Ki
(
of_val
v
)
@
E
{{
Φ
}}}}
⊑
||
fill_item
Ki
e
@
E
{{
Φ
}}
.
Proof
.
apply
weakestpre
.
wp_bind
.
Qed
.
(** Base axioms for core primitives of the language: Stateful reductions. *)
Lemma
wp_alloc_pst
E
σ
e
v
Φ
:
to_val
e
=
Some
v
→
...
...
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