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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Dan Frumin
Actris
Commits
4aba4857
Commit
4aba4857
authored
4 years ago
by
Jonas Kastberg
Browse files
Options
Downloads
Patches
Plain Diff
Added a typing rule for select using the post-context
parent
ba08e877
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/logrel/term_typing_rules.v
+20
-0
20 additions, 0 deletions
theories/logrel/term_typing_rules.v
with
20 additions
and
0 deletions
theories/logrel/term_typing_rules.v
+
20
−
0
View file @
4aba4857
...
...
@@ -525,6 +525,26 @@ Section properties.
wp_pures
.
iFrame
.
Qed
.
Definition
select
:
val
:=
λ
:
"c"
"i"
,
send
"c"
"i"
.
Lemma
ltyped_select
Γ
(
c
:
string
)
(
i
:
Z
)
(
S
:
lsty
Σ
)
Ss
:
Ss
!!
i
=
Some
S
→
⊢
<
[
c
:=
(
chan
(
lty_select
Ss
))
%
lty
]
>
Γ
⊨
select
c
#
i
:
()
⫤
<
[
c
:=
(
chan
S
)
%
lty
]
>
Γ
.
Proof
.
iIntros
(
Hin
)
.
iIntros
"!>"
(
vs
)
"HΓ /="
.
iDestruct
(
env_ltyped_lookup
with
"HΓ"
)
as
(
v'
Heq
)
"[Hc HΓ]"
.
{
by
apply
lookup_insert
.
}
rewrite
Heq
/
select
.
wp_send
with
"[]"
.
{
eauto
.
}
iSplitR
;
first
done
.
iDestruct
(
env_ltyped_insert
_
_
c
(
chan
_)
with
"[Hc //] HΓ"
)
as
"HΓ'"
=>
/=.
rewrite
insert_delete
insert_insert
(
insert_id
vs
)=>
//.
by
rewrite
lookup_total_alt
Hin
.
Qed
.
Definition
chanbranch
(
xs
:
list
Z
)
:
val
:=
λ
:
"c"
,
switch_lams
"f"
0
(
length
xs
)
$
let
:
"y"
:=
recv
"c"
in
...
...
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