Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris
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
Tej Chajed
iris
Commits
c305d664
Commit
c305d664
authored
9 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.mpi-sws.org:FP/iris-coq
parents
afa8efc2
e7f21fde
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
_CoqProject
+1
-0
1 addition, 0 deletions
_CoqProject
barrier/client.v
+29
-0
29 additions, 0 deletions
barrier/client.v
with
30 additions
and
0 deletions
_CoqProject
+
1
−
0
View file @
c305d664
...
@@ -81,3 +81,4 @@ heap_lang/notation.v
...
@@ -81,3 +81,4 @@ heap_lang/notation.v
heap_lang/tests.v
heap_lang/tests.v
heap_lang/substitution.v
heap_lang/substitution.v
barrier/barrier.v
barrier/barrier.v
barrier/client.v
This diff is collapsed.
Click to expand it.
barrier/client.v
0 → 100644
+
29
−
0
View file @
c305d664
From
barrier
Require
Import
barrier
.
(* FIXME This needs to be imported even though barrier exports it *)
From
heap_lang
Require
Import
notation
.
Import
uPred
.
Definition
client
:=
(
let
:
"b"
:=
newchan
'
()
in
wait
"b"
)
%
L
.
Section
client
.
Context
{
Σ
:
iFunctorG
}
(
N
:
namespace
)
.
Context
`{
heapG
Σ
}
(
heapN
:
namespace
)
.
Context
`{
stsG
heap_lang
Σ
barrier_proto
.
sts
}
.
Context
`{
savedPropG
heap_lang
Σ
}
.
Local
Notation
iProp
:=
(
iPropG
heap_lang
Σ
)
.
Lemma
client_safe
:
heapN
⊥
N
→
heap_ctx
heapN
⊑
||
client
{{
λ
_,
True
}}
.
Proof
.
intros
?
.
rewrite
/
client
.
(* FIXME: wp (eapply newchan_spec with (P:=True%I)). *)
wp_focus
(
newchan
_)
.
rewrite
-
(
newchan_spec
N
heapN
True
%
I
)
//.
apply
sep_intro_True_r
;
first
done
.
apply
forall_intro
=>
l
.
apply
wand_intro_l
.
rewrite
right_id
.
wp_let
.
etrans
;
last
eapply
wait_spec
.
apply
sep_mono_r
.
apply
wand_intro_r
.
eauto
.
Qed
.
End
client
.
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