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
b15d71df
Commit
b15d71df
authored
4 years ago
by
Jonas Kastberg
Browse files
Options
Downloads
Patches
Plain Diff
Minor clean up
parent
fe2e85d7
No related branches found
No related tags found
No related merge requests found
Pipeline
#29057
passed
4 years ago
Changes
1
Pipelines
7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/logrel/term_typing_rules.v
+5
-7
5 additions, 7 deletions
theories/logrel/term_typing_rules.v
with
5 additions
and
7 deletions
theories/logrel/term_typing_rules.v
+
5
−
7
View file @
b15d71df
...
@@ -57,11 +57,11 @@ Section properties.
...
@@ -57,11 +57,11 @@ Section properties.
(** Basic properties *)
(** Basic properties *)
Lemma
ltyped_unit
Γ
:
⊢
Γ
⊨
#
()
:
()
.
Lemma
ltyped_unit
Γ
:
⊢
Γ
⊨
#
()
:
()
.
Proof
.
iIntros
"!>"
(
vs
)
"H
env
/="
.
iApply
wp_value
.
eauto
.
Qed
.
Proof
.
iIntros
"!>"
(
vs
)
"H
Γ
/="
.
iApply
wp_value
.
eauto
.
Qed
.
Lemma
ltyped_bool
Γ
(
b
:
bool
)
:
⊢
Γ
⊨
#
b
:
lty_bool
.
Lemma
ltyped_bool
Γ
(
b
:
bool
)
:
⊢
Γ
⊨
#
b
:
lty_bool
.
Proof
.
iIntros
"!>"
(
vs
)
"H
env
/="
.
iApply
wp_value
.
eauto
.
Qed
.
Proof
.
iIntros
"!>"
(
vs
)
"H
Γ
/="
.
iApply
wp_value
.
eauto
.
Qed
.
Lemma
ltyped_int
Γ
(
i
:
Z
)
:
⊢
Γ
⊨
#
i
:
lty_int
.
Lemma
ltyped_int
Γ
(
i
:
Z
)
:
⊢
Γ
⊨
#
i
:
lty_int
.
Proof
.
iIntros
"!>"
(
vs
)
"H
env
/="
.
iApply
wp_value
.
eauto
.
Qed
.
Proof
.
iIntros
"!>"
(
vs
)
"H
Γ
/="
.
iApply
wp_value
.
eauto
.
Qed
.
(** Arrow properties *)
(** Arrow properties *)
Lemma
ltyped_app
Γ1
Γ2
Γ3
e1
e2
A1
A2
:
Lemma
ltyped_app
Γ1
Γ2
Γ3
e1
e2
A1
A2
:
...
@@ -481,11 +481,9 @@ Section properties.
...
@@ -481,11 +481,9 @@ Section properties.
⊢
Γ
⊨
recv
x
:
A
⫤
<
[
x
:=(
chan
S
)
%
lty
]
>
Γ
.
⊢
Γ
⊨
recv
x
:
A
⫤
<
[
x
:=(
chan
S
)
%
lty
]
>
Γ
.
Proof
.
Proof
.
iIntros
(
Hx
)
"!>"
.
iIntros
(
vs
)
"HΓ"
=>
/=.
iIntros
(
Hx
)
"!>"
.
iIntros
(
vs
)
"HΓ"
=>
/=.
iDestruct
(
env_ltyped_lookup
with
"HΓ"
)
as
(
v'
Heq
)
"[Hc HΓ]"
.
iDestruct
(
env_ltyped_lookup
_
_
_
_
(
Hx
)
with
"HΓ"
)
as
(
v'
Heq
)
"[Hc HΓ]"
.
{
by
apply
Hx
.
}
rewrite
Heq
.
rewrite
Heq
.
wp_recv
(
v
)
as
"HA"
.
wp_recv
(
v
)
as
"HA"
.
iFrame
"HA"
.
iSplitL
"HA"
;
first
done
.
iDestruct
(
env_ltyped_insert
_
_
x
(
chan
_)
_
with
"[Hc //] HΓ"
)
as
"HΓ"
=>
/=.
iDestruct
(
env_ltyped_insert
_
_
x
(
chan
_)
_
with
"[Hc //] HΓ"
)
as
"HΓ"
=>
/=.
by
rewrite
insert_delete
(
insert_id
vs
)
.
by
rewrite
insert_delete
(
insert_id
vs
)
.
Qed
.
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