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
Environments
Terraform modules
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
Ike Mulder
Iris
Commits
41bd7cb2
Commit
41bd7cb2
authored
9 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
More barrier clean up.
parent
3f8273a4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
barrier/barrier.v
+124
-138
124 additions, 138 deletions
barrier/barrier.v
barrier/client.v
+4
-7
4 additions, 7 deletions
barrier/client.v
with
128 additions
and
145 deletions
barrier/barrier.v
+
124
−
138
View file @
41bd7cb2
This diff is collapsed.
Click to expand it.
barrier/client.v
+
4
−
7
View file @
41bd7cb2
...
...
@@ -5,22 +5,19 @@ Import uPred.
Definition
client
:=
(
let
:
"b"
:=
newchan
'
()
in
wait
"b"
)
%
L
.
Section
client
.
Context
{
Σ
:
iFunctorG
}
`{
!
heapG
Σ
}
`{
!
barrierG
Σ
}
.
Context
(
N
:
namespace
)
(
heapN
:
namespace
)
.
Context
{
Σ
:
iFunctorG
}
`{
!
heapG
Σ
,
!
barrierG
Σ
}
(
heapN
N
:
namespace
)
.
Local
Notation
iProp
:=
(
iPropG
heap_lang
Σ
)
.
Lemma
client_safe
:
heapN
⊥
N
→
heap_ctx
heapN
⊑
||
client
{{
λ
_,
True
}}
.
Proof
.
intros
?
.
rewrite
/
client
.
ewp
eapply
(
newchan_spec
N
heapN
True
%
I
);
last
done
.
ewp
eapply
(
newchan_spec
heapN
N
True
%
I
);
last
done
.
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
.
apply
sep_mono_r
,
wand_intro_r
.
eauto
.
Qed
.
End
client
.
Section
ClosedProofs
.
...
...
@@ -33,7 +30,7 @@ Section ClosedProofs.
{
(* FIXME Really?? set_solver takes forever on "⊆ ⊤"?!? *)
by
move
=>?
_
.
}
apply
wp_strip_pvs
,
exist_elim
=>
?
.
rewrite
and_elim_l
.
rewrite
-
(
client_safe
(
nroot
.
@
"
Heap"
)
(
nroot
.
@
"
Barrier"
))
//.
rewrite
-
(
client_safe
(
nroot
.
@
"
Barrier"
)
(
nroot
.
@
"
Heap"
))
//.
(* This, too, should be automated. *)
by
apply
ndot_ne_disjoint
.
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