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
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
Iris
Actris
Commits
d1fb7ffd
Commit
d1fb7ffd
authored
4 years ago
by
Jonas Kastberg
Browse files
Options
Downloads
Patches
Plain Diff
Added spec for telescoped version of send and bumped proofmode
parent
fe4792ae
No related branches found
No related tags found
No related merge requests found
Pipeline
#36100
failed
4 years ago
Stage: build
Changes
2
Pipelines
10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/channel/channel.v
+16
-0
16 additions, 0 deletions
theories/channel/channel.v
theories/channel/proofmode.v
+5
-6
5 additions, 6 deletions
theories/channel/proofmode.v
with
21 additions
and
6 deletions
theories/channel/channel.v
+
16
−
0
View file @
d1fb7ffd
...
...
@@ -239,6 +239,22 @@ Section channel.
iIntros
"_"
.
iApply
"HΦ"
.
iExists
γ
,
Right
,
l
,
r
,
lk
.
eauto
10
with
iFrame
.
Qed
.
Lemma
send_spec_tele
{
TT
}
c
(
tt
:
TT
)
(
v
:
TT
→
val
)
(
P
:
TT
→
iProp
Σ
)
(
p
:
TT
→
iProto
Σ
)
:
{{{
c
↣
(
<!..
x
>
MSG
v
x
{{
P
x
}};
p
x
)
∗
P
tt
}}}
send
c
(
v
tt
)
{{{
RET
#
();
c
↣
(
p
tt
)
}}}
.
Proof
.
iIntros
(
Φ
)
"[Hc HP] HΦ"
.
iDestruct
(
iProto_mapsto_le
_
_
(
<!>
MSG
v
tt
;
p
tt
)
%
proto
with
"Hc [HP]"
)
as
"Hc"
.
{
iIntros
"!>"
.
iApply
iProto_le_trans
.
iApply
iProto_le_texist_intro_l
.
by
iFrame
"HP"
.
}
by
iApply
(
send_spec
with
"Hc"
)
.
Qed
.
Lemma
try_recv_spec
{
TT
}
c
(
v
:
TT
→
val
)
(
P
:
TT
→
iProp
Σ
)
(
p
:
TT
→
iProto
Σ
)
:
{{{
c
↣
<
?.
.
x
>
MSG
v
x
{{
P
x
}};
p
x
}}}
try_recv
c
...
...
This diff is collapsed.
Click to expand it.
theories/channel/proofmode.v
+
5
−
6
View file @
d1fb7ffd
...
...
@@ -312,12 +312,11 @@ Proof.
destruct
(
envs_app
_
_
_)
as
[
Δ2'
|]
eqn
:?
=>
//.
rewrite
envs_split_sound
//
;
rewrite
(
envs_app_sound
Δ2
)
//
;
simpl
.
destruct
HΦ
as
(
->
&
->
&
->
)
.
rewrite
right_id
assoc
.
assert
(
c
↣
p
∗
tele_app
tP
x
⊢
c
↣
<!>
MSG
tele_app
tv
x
;
tele_app
tp
x
)
as
->
.
{
iIntros
"[Hc Hm]"
.
iApply
(
iProto_mapsto_le
with
"Hc"
);
iIntros
"!>"
.
iApply
iProto_le_trans
;
[
iApply
Hp
|]
.
rewrite
Hm
.
iApply
iProto_le_trans
;
[
iApply
iProto_le_texist_intro_l
|]
.
by
iFrame
.
}
eapply
bi
.
wand_apply
;
[
rewrite
-
wp_bind
;
by
eapply
send_spec
|]
.
assert
(
c
↣
p
⊢
c
↣
<!..
(
x
:
TT
)
>
MSG
tele_app
tv
x
{{
tele_app
tP
x
}};
tele_app
tp
x
)
as
->
.
{
iIntros
"Hc"
.
iApply
(
iProto_mapsto_le
with
"Hc"
);
iIntros
"!>"
.
iApply
iProto_le_trans
;
[
iApply
Hp
|]
.
by
rewrite
Hm
.
}
eapply
bi
.
wand_apply
;
[
rewrite
-
wp_bind
;
by
eapply
send_spec_tele
|]
.
by
rewrite
-
bi
.
later_intro
.
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