Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Actris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
tlsomers
Actris
Commits
6f1bdd8f
Commit
6f1bdd8f
authored
5 years ago
by
Jonas Kastberg Hinrichsen
Browse files
Options
Downloads
Patches
Plain Diff
Updated receive specifications to use persistent view shift instead of fixpoint
parent
e8747a6d
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
theories/channel.v
+5
-18
5 additions, 18 deletions
theories/channel.v
with
5 additions
and
18 deletions
theories/channel.v
+
5
−
18
View file @
6f1bdd8f
...
@@ -284,23 +284,11 @@ Section channel.
...
@@ -284,23 +284,11 @@ Section channel.
by
iApply
"HΦ"
.
by
iApply
"HΦ"
.
Qed
.
Qed
.
Definition
recv_vs_rec
E
γ
c
s
Φ
vs
:=
(|
=
{
⊤
,
E
}=>
∃
ls
rs
,
is_chan
γ
c
ls
rs
∗
((
try_recv_upd_fail
γ
c
ls
rs
s
=
{
E
,
⊤
}
=∗
▷
vs
)
∗
(
∀
v
,
try_recv_upd_succ
γ
c
ls
rs
s
v
=
{
E
,
⊤
}
=∗
Φ
v
)))
%
I
.
Global
Instance
recv_vs_rec_contractive
E
γ
c
s
Φ
:
Contractive
(
recv_vs_rec
E
γ
c
s
Φ
)
.
Proof
.
intros
n
P
Q
Heq
.
rewrite
/
recv_vs_rec
.
do
9
f_equiv
.
by
apply
later_contractive
.
Qed
.
Definition
recv_vs
E
γ
c
s
Φ
:=
Definition
recv_vs
E
γ
c
s
Φ
:=
fixpoint
(
recv_vs_rec
E
γ
c
s
Φ
)
.
(
□
(|
=
{
⊤
,
E
}=>
∃
ls
rs
,
is_chan
γ
c
ls
rs
∗
((
try_recv_upd_fail
γ
c
ls
rs
s
=
{
E
,
⊤
}
=∗
True
)
∗
(
∀
v
,
try_recv_upd_succ
γ
c
ls
rs
s
v
=
{
E
,
⊤
}
=∗
Φ
v
))))
%
I
.
Lemma
recv_spec
Φ
E
γ
c
s
:
Lemma
recv_spec
Φ
E
γ
c
s
:
is_side
s
→
is_side
s
→
...
@@ -308,10 +296,9 @@ Section channel.
...
@@ -308,10 +296,9 @@ Section channel.
recv_vs
E
γ
c
s
Φ
-∗
recv_vs
E
γ
c
s
Φ
-∗
WP
recv
c
s
{{
Φ
}}
.
WP
recv
c
s
{{
Φ
}}
.
Proof
.
Proof
.
iIntros
(
Hside
)
"#Hc HΦ"
.
iIntros
(
Hside
)
"#Hc
#
HΦ"
.
rewrite
/
recv
.
rewrite
/
recv
.
iLöb
as
"IH"
.
iLöb
as
"IH"
.
iDestruct
(
fixpoint_unfold
with
"HΦ"
)
as
"HΦ"
.
wp_apply
(
try_recv_spec
with
"Hc"
)=>
//.
wp_apply
(
try_recv_spec
with
"Hc"
)=>
//.
iMod
"HΦ"
as
(
ls
rs
)
"[Hchan [HΦfail HΦsucc]]"
.
iMod
"HΦ"
as
(
ls
rs
)
"[Hchan [HΦfail HΦsucc]]"
.
iModIntro
.
iModIntro
.
...
...
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