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
18c41f63
Commit
18c41f63
authored
1 year ago
by
Jonas Kastberg
Browse files
Options
Downloads
Patches
Plain Diff
Simplified recv_spec
parent
5fcb7654
No related branches found
No related tags found
1 merge request
!38
Simplified recv_spec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
multi_actris/channel/channel.v
+4
-4
4 additions, 4 deletions
multi_actris/channel/channel.v
multi_actris/channel/proofmode.v
+2
-3
2 additions, 3 deletions
multi_actris/channel/proofmode.v
with
6 additions
and
7 deletions
multi_actris/channel/channel.v
+
4
−
4
View file @
18c41f63
...
...
@@ -422,8 +422,8 @@ Section channel.
by
iApply
(
send_spec
with
"Hc"
)
.
Qed
.
Lemma
recv_spec
{
TT
}
c
j
(
v
:
TT
→
val
)
(
P
:
TT
→
iProp
Σ
)
(
p
:
TT
→
iProto
Σ
)
:
{{{
c
↣
<
(
Recv
,
j
)
@
..
x
>
MSG
v
x
{{
▷
P
x
}};
p
x
}}}
Lemma
recv_spec
{
A
}
c
j
(
v
:
A
→
val
)
(
P
:
A
→
iProp
Σ
)
(
p
:
A
→
iProto
Σ
)
:
{{{
c
↣
<
(
Recv
,
j
)
@
x
>
MSG
v
x
{{
▷
P
x
}};
p
x
}}}
recv
c
#
j
{{{
x
,
RET
v
x
;
c
↣
p
x
∗
P
x
}}}
.
Proof
.
...
...
@@ -473,8 +473,8 @@ Section channel.
iSplitL
"Hl' Hown Hp'"
.
{
iRight
.
iRight
.
iExists
_
.
iFrame
.
}
wp_pure
_
.
rewrite
iMsg_base_eq
.
iDestruct
(
iMsg_texist_exist
with
"Hm"
)
as
(
x
<-
)
"[Hp HP]"
.
rewrite
iMsg_base_eq
iMsg_exist_eq
.
iDestruct
"Hm"
as
(
x
<-
)
"[Hp HP]"
.
wp_pures
.
iMod
(
own_update_2
with
"H● H◯"
)
as
"[H● H◯]"
;[
apply
excl_auth_update
|]
.
iModIntro
.
iApply
"HΦ"
.
...
...
This diff is collapsed.
Click to expand it.
multi_actris/channel/proofmode.v
+
2
−
3
View file @
18c41f63
...
...
@@ -170,13 +170,12 @@ Proof.
rewrite
envs_entails_unseal
/
ProtoNormalize
/
MsgTele
/
MaybeIntoLaterN
/=.
rewrite
!
tforall_forall
right_id
.
intros
?
Hp
Hm
HP
HΦ
.
rewrite
envs_lookup_sound
//
;
simpl
.
assert
(
c
↣
p
⊢
c
↣
<
(
Recv
,
n
)
@
..
x
>
assert
(
c
↣
p
⊢
c
↣
<
(
Recv
,
n
)
@
x
>
MSG
tele_app
tv
x
{{
▷
tele_app
tP'
x
}};
tele_app
tp
x
)
as
->
.
{
iIntros
"Hc"
.
iApply
(
iProto_pointsto_le
with
"Hc"
)
.
iIntros
"!>"
.
iApply
iProto_le_trans
;
[
iApply
Hp
|
rewrite
Hm
]
.
iApply
iProto_le_texist_elim_l
;
iIntros
(
x
)
.
iApply
iProto_le_trans
;
[|
iApply
(
iProto_le_texist_intro_r
_
_
x
)];
simpl
.
iIntros
"H"
.
by
iDestruct
(
HP
with
"H"
)
as
"$"
.
}
iExists
_
.
iIntros
"H"
.
by
iDestruct
(
HP
with
"H"
)
as
"$"
.
}
rewrite
-
wp_bind
.
eapply
bi
.
wand_apply
;
[
by
eapply
bi
.
wand_entails
,
(
recv_spec
_
n
(
tele_app
tv
)
(
tele_app
tP'
)
(
tele_app
tp
))|
f_equiv
;
first
done
]
.
rewrite
-
bi
.
later_intro
;
apply
bi
.
forall_intro
=>
x
.
...
...
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