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
88c77c6b
Commit
88c77c6b
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
slightly simplify newchan_spec
parent
a9be1e26
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
barrier/barrier.v
+6
-10
6 additions, 10 deletions
barrier/barrier.v
with
6 additions
and
10 deletions
barrier/barrier.v
+
6
−
10
View file @
88c77c6b
...
...
@@ -98,6 +98,8 @@ Section proof.
Context
`{
stsG
heap_lang
Σ
sts
}
.
Context
`{
savedPropG
heap_lang
Σ
}
.
Local
Hint
Immediate
i_states_closed
low_states_closed
.
Notation
iProp
:=
(
iPropG
heap_lang
Σ
)
.
Definition
waiting
(
P
:
iProp
)
(
I
:
gset
gname
)
:
iProp
:=
...
...
@@ -161,10 +163,7 @@ Section proof.
eapply
sep_elim_True_r
;
last
eapply
sep_mono_l
.
{
rewrite
-
later_intro
.
apply
wand_intro_l
.
by
rewrite
right_id
.
}
rewrite
(
sts_own_weaken
⊤
_
_
(
i_states
i
∩
low_states
)
_
({[
Change
i
]}
∪
{[
Send
]}))
.
+
apply
pvs_mono
.
rewrite
sts_ownS_op
;
first
done
.
*
set_solver
.
*
apply
i_states_closed
.
*
apply
low_states_closed
.
+
apply
pvs_mono
.
rewrite
sts_ownS_op
;
eauto
;
[]
.
set_solver
.
+
rewrite
/=
/
tok
/=.
apply
elem_of_equiv
=>
t
.
rewrite
elem_of_difference
elem_of_union
.
rewrite
!
mkSet_elem_of
/
change_tokens
.
(* TODO: destruct t; set_solver does not work. What is the best way to do on? *)
...
...
@@ -173,12 +172,9 @@ Section proof.
exfalso
.
apply
Hn
.
left
.
set_solver
.
*
move
=>[[
EQ
]|?];
last
discriminate
.
set_solver
.
+
apply
elem_of_intersection
.
rewrite
!
mkSet_elem_of
/=.
set_solver
.
+
apply
sts
.
closed_op
.
*
apply
i_states_closed
.
*
apply
low_states_closed
.
*
set_solver
.
*
apply
(
non_empty_inhabited
(
State
Low
{[
i
]}))
.
apply
elem_of_intersection
.
rewrite
!
mkSet_elem_of
/=.
set_solver
.
+
apply
sts
.
closed_op
;
eauto
;
first
set_solver
;
[]
.
apply
(
non_empty_inhabited
(
State
Low
{[
i
]}))
.
apply
elem_of_intersection
.
rewrite
!
mkSet_elem_of
/=.
set_solver
.
Qed
.
Lemma
signal_spec
l
P
(
Q
:
val
→
iProp
)
:
...
...
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