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
19f8a53a
Commit
19f8a53a
authored
4 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Remove some old `_proto`s in names.
parent
085b698d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/channel/channel.v
+4
-4
4 additions, 4 deletions
theories/channel/channel.v
theories/channel/proofmode.v
+2
-2
2 additions, 2 deletions
theories/channel/proofmode.v
with
6 additions
and
6 deletions
theories/channel/channel.v
+
4
−
4
View file @
19f8a53a
...
...
@@ -222,7 +222,7 @@ Section channel.
(** A version written without Texan triples that is more convenient to use
(via [iApply] in Coq. *)
Lemma
send_
proto_
spec
{
TT
}
Φ
c
v
(
pc
:
TT
→
val
*
iProp
Σ
*
iProto
Σ
)
:
Lemma
send_spec
{
TT
}
Φ
c
v
(
pc
:
TT
→
val
*
iProp
Σ
*
iProto
Σ
)
:
c
↣
iProto_message
Send
pc
-∗
(
∃
.
.
x
:
TT
,
⌜
v
=
(
pc
x
).
1
.
1
⌝
∗
(
pc
x
).
1
.
2
∗
▷
(
c
↣
(
pc
x
).
2
-∗
Φ
#
()))
-∗
...
...
@@ -279,7 +279,7 @@ Section channel.
(** A version written without Texan triples that is more convenient to use
(via [iApply] in Coq. *)
Lemma
recv_
proto_
spec
{
TT
}
Φ
c
(
pc
:
TT
→
val
*
iProp
Σ
*
iProto
Σ
)
:
Lemma
recv_spec
{
TT
}
Φ
c
(
pc
:
TT
→
val
*
iProp
Σ
*
iProto
Σ
)
:
c
↣
iProto_message
Receive
pc
-∗
▷
(
∀
.
.
x
:
TT
,
c
↣
(
pc
x
).
2
-∗
(
pc
x
).
1
.
2
-∗
Φ
(
pc
x
).
1
.
1
)
-∗
WP
recv
c
{{
Φ
}}
.
...
...
@@ -296,7 +296,7 @@ Section channel.
{{{
RET
#
();
c
↣
(
if
b
then
p1
else
p2
)
}}}
.
Proof
.
rewrite
/
iProto_branch
.
iIntros
(
Φ
)
"[Hc HP] HΦ"
.
iApply
(
send_
proto_
spec
with
"Hc"
);
simpl
;
eauto
with
iFrame
.
iApply
(
send_spec
with
"Hc"
);
simpl
;
eauto
with
iFrame
.
Qed
.
Lemma
branch_spec
c
P1
P2
p1
p2
:
...
...
@@ -305,7 +305,7 @@ Section channel.
{{{
b
,
RET
#
b
;
c
↣
(
if
b
:
bool
then
p1
else
p2
)
∗
if
b
then
P1
else
P2
}}}
.
Proof
.
rewrite
/
iProto_branch
.
iIntros
(
Φ
)
"Hc HΦ"
.
iApply
(
recv_
proto_
spec
with
"Hc"
);
simpl
.
iApply
(
recv_spec
with
"Hc"
);
simpl
.
iIntros
"!>"
(
b
)
"Hc HP"
.
iApply
"HΦ"
.
iFrame
.
Qed
.
End
channel
.
This diff is collapsed.
Click to expand it.
theories/channel/proofmode.v
+
2
−
2
View file @
19f8a53a
...
...
@@ -178,7 +178,7 @@ Lemma tac_wp_recv `{!chanG Σ, !heapG Σ} {TT : tele} Δ i j K
Proof
.
rewrite
envs_entails_eq
/
ProtoNormalize
/=
tforall_forall
right_id
=>
?
Hp
HΦ
.
rewrite
envs_lookup_sound
//
;
simpl
.
rewrite
-
Hp
.
rewrite
-
wp_bind
.
eapply
bi
.
wand_apply
;
[
by
eapply
recv_
proto_
spec
|
f_equiv
]
.
rewrite
-
wp_bind
.
eapply
bi
.
wand_apply
;
[
by
eapply
recv_spec
|
f_equiv
]
.
rewrite
-
bi
.
later_intro
bi_tforall_forall
;
apply
bi
.
forall_intro
=>
x
.
specialize
(
HΦ
x
)
.
destruct
(
envs_app
_
_)
as
[
Δ'
|]
eqn
:
HΔ'
=>
//.
rewrite
envs_app_sound
//
;
simpl
.
...
...
@@ -262,7 +262,7 @@ Lemma tac_wp_send `{!chanG Σ, !heapG Σ} {TT : tele} Δ neg i js K
Proof
.
rewrite
envs_entails_eq
/
ProtoNormalize
/=
right_id
texist_exist
=>
?
Hp
[
x
HΦ
]
.
rewrite
envs_lookup_sound
//
;
simpl
.
rewrite
-
Hp
.
rewrite
-
wp_bind
.
eapply
bi
.
wand_apply
;
[
by
eapply
send_
proto_
spec
|
f_equiv
]
.
rewrite
-
wp_bind
.
eapply
bi
.
wand_apply
;
[
by
eapply
send_spec
|
f_equiv
]
.
rewrite
bi_texist_exist
-
(
bi
.
exist_intro
x
)
.
destruct
(
envs_split
_
_
_)
as
[[
Δ1
Δ2
]|]
eqn
:?
=>
//.
destruct
(
envs_app
_
_
_)
as
[
Δ2'
|]
eqn
:?
=>
//.
...
...
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