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
eb636062
Commit
eb636062
authored
4 years ago
by
Jonas Kastberg
Browse files
Options
Downloads
Patches
Plain Diff
Updated order of typing rules
parent
288bda11
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/logrel/examples/mapper.v
+7
-6
7 additions, 6 deletions
theories/logrel/examples/mapper.v
theories/logrel/term_typing_rules.v
+7
-7
7 additions, 7 deletions
theories/logrel/term_typing_rules.v
with
14 additions
and
13 deletions
theories/logrel/examples/mapper.v
+
7
−
6
View file @
eb636062
...
...
@@ -108,9 +108,10 @@ Section mapper_example.
{
iApply
ltyped_recv
=>
//.
}
iApply
ltyped_pair
.
-
iApply
ltyped_var
.
apply
lookup_insert
.
-
rewrite
(
insert_commute
_
"c"
"x"
)
//=
(
insert_commute
_
"y"
"x"
)
//=.
-
rewrite
insert_insert
.
rewrite
(
insert_commute
_
"c"
"x"
)
//=.
rewrite
insert_insert
.
iApply
(
ltyped_frame
_
_
_
_
{[
"
x
"
:=_]})
.
iApply
(
ltyped_frame
_
_
_
_
{[
"
y
"
:=_]})
.
{
iApply
env_split_right
=>
//=.
iApply
env_split_id_r
.
}
iApply
ltyped_var
.
apply
lookup_insert
.
iApply
env_split_right
=>
//
;
last
by
iApply
env_split_id_r
=>
//=.
eauto
.
...
...
@@ -198,9 +199,9 @@ Section mapper_example.
{
iApply
ltyped_recv
=>
//.
}
iApply
ltyped_pair
.
-
iApply
ltyped_var
.
apply
lookup_insert
.
-
rewrite
(
insert_
commute
_
"c"
"x"
)
//=
(
insert_commute
_
"
y
"
"x"
)
//=.
-
rewrite
insert_
insert
.
rewrite
(
insert_commute
_
"
c
"
"x"
)
//=.
rewrite
insert_insert
.
iApply
(
ltyped_frame
_
_
_
_
{[
"
x
"
:=_]})
.
iApply
(
ltyped_frame
_
_
_
_
{[
"
y
"
:=_]})
.
{
iApply
env_split_right
=>
//=.
iApply
env_split_id_r
.
}
iApply
ltyped_var
.
apply
lookup_insert
.
iApply
env_split_right
=>
//
;
last
by
iApply
env_split_id_r
=>
//=.
eauto
.
...
...
@@ -236,8 +237,8 @@ Section mapper_example.
{
iApply
env_split_right
=>
//.
iApply
env_split_id_r
.
}
{
iApply
ltyped_app
.
-
iApply
ltyped_var
.
apply
lookup_insert
.
-
rewrite
insert_
commute
//
.
iApply
(
ltyped_frame
_
_
_
_
{[
"
f
"
:=_]})
.
-
rewrite
insert_
insert
.
iApply
(
ltyped_frame
_
_
_
_
{[
"
v
"
:=_]})
.
{
iApply
env_split_right
=>
//.
iApply
env_split_id_r
.
}
{
iApply
ltyped_var
.
apply
lookup_insert
.
}
{
iApply
env_split_right
=>
//
;
last
by
iApply
env_split_id_r
.
eauto
.
}
...
...
This diff is collapsed.
Click to expand it.
theories/logrel/term_typing_rules.v
+
7
−
7
View file @
eb636062
...
...
@@ -106,10 +106,10 @@ Section properties.
(** Arrow properties *)
Lemma
ltyped_app
Γ1
Γ2
Γ3
e1
e2
A1
A2
:
(
Γ
2
⊨
e
1
:
A1
⊸
A2
⫤
Γ
3
)
-∗
(
Γ
1
⊨
e
2
:
A1
⫤
Γ
2
)
-∗
(
Γ
1
⊨
e
2
:
A1
⫤
Γ
2
)
-∗
(
Γ
2
⊨
e
1
:
A1
⊸
A2
⫤
Γ
3
)
-∗
Γ1
⊨
e1
e2
:
A2
⫤
Γ3
.
Proof
.
iIntros
"#H
1
#H
2
"
.
iIntros
(
vs
)
"!> HΓ /="
.
iIntros
"#H
2
#H
1
"
.
iIntros
(
vs
)
"!> HΓ /="
.
wp_apply
(
wp_wand
with
"(H2 [HΓ //])"
)
.
iIntros
(
v
)
"[HA1 HΓ]"
.
wp_apply
(
wp_wand
with
"(H1 [HΓ //])"
)
.
iIntros
(
f
)
"[Hf HΓ]"
.
iApply
wp_frame_r
.
iFrame
"HΓ"
.
iApply
(
"Hf"
$!
v
with
"HA1"
)
.
...
...
@@ -172,10 +172,10 @@ Section properties.
(** Product properties *)
Lemma
ltyped_pair
Γ1
Γ2
Γ3
e1
e2
A1
A2
:
(
Γ
2
⊨
e
1
:
A
1
⫤
Γ
3
)
-∗
(
Γ
1
⊨
e
2
:
A
2
⫤
Γ
2
)
-∗
(
Γ
1
⊨
e
2
:
A
2
⫤
Γ
2
)
-∗
(
Γ
2
⊨
e
1
:
A
1
⫤
Γ
3
)
-∗
Γ1
⊨
(
e1
,
e2
)
:
A1
*
A2
⫤
Γ3
.
Proof
.
iIntros
"#H
1
#H
2
"
.
iIntros
(
vs
)
"!> HΓ /="
.
iIntros
"#H
2
#H
1
"
.
iIntros
(
vs
)
"!> HΓ /="
.
wp_apply
(
wp_wand
with
"(H2 [HΓ //])"
);
iIntros
(
w2
)
"[HA2 HΓ]"
.
wp_apply
(
wp_wand
with
"(H1 [HΓ //])"
);
iIntros
(
w1
)
"[HA1 HΓ]"
.
wp_pures
.
iFrame
"HΓ"
.
iExists
w1
,
w2
.
by
iFrame
.
...
...
@@ -590,10 +590,10 @@ Section properties.
let
:
"y"
:=
recv
"c"
in
switch_body
"y"
0
xs
(
assert
:
#
false
)
$
λ
i
,
(
"f"
+:+
pretty
i
)
"c"
.
Lemma
ltyped_branch
Ss
A
xs
:
Lemma
ltyped_branch
Γ
Ss
A
xs
:
(
∀
x
,
x
∈
xs
↔
is_Some
(
Ss
!!
x
))
→
⊢
∅
⊨
branch
xs
:
chan
(
lty_branch
Ss
)
⊸
lty_arr_list
((
λ
x
,
(
chan
(
Ss
!!!
x
)
⊸
A
)
%
lty
)
<$>
xs
)
A
.
⊢
Γ
⊨
branch
xs
:
chan
(
lty_branch
Ss
)
⊸
lty_arr_list
((
λ
x
,
(
chan
(
Ss
!!!
x
)
⊸
A
)
%
lty
)
<$>
xs
)
A
⫤
∅
.
Proof
.
iIntros
(
Hdom
)
"!>"
.
iIntros
(
vs
)
"Hvs"
.
iApply
wp_value
.
...
...
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