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
288bda11
Commit
288bda11
authored
4 years ago
by
Jonas Kastberg
Browse files
Options
Downloads
Patches
Plain Diff
Updated typing rules to algorithmic typing
parent
86314340
No related branches found
No related tags found
No related merge requests found
Pipeline
#33703
passed
4 years ago
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/logrel/lib/mutex.v
+2
-2
2 additions, 2 deletions
theories/logrel/lib/mutex.v
theories/logrel/term_typing_rules.v
+8
-8
8 additions, 8 deletions
theories/logrel/term_typing_rules.v
with
10 additions
and
10 deletions
theories/logrel/lib/mutex.v
+
2
−
2
View file @
288bda11
...
@@ -104,8 +104,8 @@ Section rules.
...
@@ -104,8 +104,8 @@ Section rules.
Context
`{
heapG
Σ
,
lockG
Σ
}
.
Context
`{
heapG
Σ
,
lockG
Σ
}
.
(** Mutex properties *)
(** Mutex properties *)
Lemma
ltyped_mutex_alloc
A
:
Lemma
ltyped_mutex_alloc
Γ
A
:
⊢
∅
⊨
mutex_alloc
:
A
→
mutex
A
.
⊢
Γ
⊨
mutex_alloc
:
A
→
mutex
A
⫤
∅
.
Proof
.
Proof
.
iIntros
(
vs
)
"!> HΓ /="
.
iApply
wp_value
.
iIntros
(
vs
)
"!> HΓ /="
.
iApply
wp_value
.
iSplitL
;
last
by
iApply
env_ltyped_empty
.
iSplitL
;
last
by
iApply
env_ltyped_empty
.
...
...
This diff is collapsed.
Click to expand it.
theories/logrel/term_typing_rules.v
+
8
−
8
View file @
288bda11
...
@@ -216,8 +216,8 @@ Section properties.
...
@@ -216,8 +216,8 @@ Section properties.
Qed
.
Qed
.
(** Sum Properties *)
(** Sum Properties *)
Lemma
ltyped_injl
Γ
e
A1
A2
:
Lemma
ltyped_injl
Γ
1
Γ2
e
A1
A2
:
(
Γ
⊨
e
:
A1
)
-∗
Γ
⊨
InjL
e
:
A1
+
A2
.
(
Γ
1
⊨
e
:
A1
⫤
Γ2
)
-∗
Γ
1
⊨
InjL
e
:
A1
+
A2
⫤
Γ2
.
Proof
.
Proof
.
iIntros
"#HA"
(
vs
)
"!> HΓ /="
.
iIntros
"#HA"
(
vs
)
"!> HΓ /="
.
wp_apply
(
wp_wand
with
"(HA [HΓ //])"
)
.
wp_apply
(
wp_wand
with
"(HA [HΓ //])"
)
.
...
@@ -225,8 +225,8 @@ Section properties.
...
@@ -225,8 +225,8 @@ Section properties.
iLeft
.
iExists
v
.
auto
.
iLeft
.
iExists
v
.
auto
.
Qed
.
Qed
.
Lemma
ltyped_injr
Γ
e
A1
A2
:
Lemma
ltyped_injr
Γ
1
Γ2
e
A1
A2
:
(
Γ
⊨
e
:
A2
)
-∗
Γ
⊨
InjR
e
:
A1
+
A2
.
(
Γ
1
⊨
e
:
A2
⫤
Γ2
)
-∗
Γ
1
⊨
InjR
e
:
A1
+
A2
⫤
Γ2
.
Proof
.
Proof
.
iIntros
"#HA"
(
vs
)
"!> HΓ /="
.
iIntros
"#HA"
(
vs
)
"!> HΓ /="
.
wp_apply
(
wp_wand
with
"(HA [HΓ //])"
)
.
wp_apply
(
wp_wand
with
"(HA [HΓ //])"
)
.
...
@@ -276,8 +276,8 @@ Section properties.
...
@@ -276,8 +276,8 @@ Section properties.
Qed
.
Qed
.
(** Existential properties *)
(** Existential properties *)
Lemma
ltyped_pack
Γ
e
k
(
C
:
lty
Σ
k
→
ltty
Σ
)
M
:
Lemma
ltyped_pack
Γ
1
Γ2
e
k
(
C
:
lty
Σ
k
→
ltty
Σ
)
M
:
(
Γ
⊨
e
:
C
M
)
-∗
Γ
⊨
e
:
∃
M
,
C
M
.
(
Γ
1
⊨
e
:
C
M
⫤
Γ2
)
-∗
Γ
1
⊨
e
:
∃
M
,
C
M
⫤
Γ2
.
Proof
.
Proof
.
iIntros
"#He"
(
vs
)
"!> HΓ /="
.
iIntros
"#He"
(
vs
)
"!> HΓ /="
.
wp_apply
(
wp_wand
with
"(He [HΓ //])"
);
iIntros
(
w
)
"[HB $]"
.
by
iExists
M
.
wp_apply
(
wp_wand
with
"(He [HΓ //])"
);
iIntros
(
w
)
"[HB $]"
.
by
iExists
M
.
...
@@ -454,8 +454,8 @@ Section properties.
...
@@ -454,8 +454,8 @@ Section properties.
Section
with_chan
.
Section
with_chan
.
Context
`{
chanG
Σ
}
.
Context
`{
chanG
Σ
}
.
Lemma
ltyped_new_chan
S
:
Lemma
ltyped_new_chan
Γ
S
:
⊢
∅
⊨
new_chan
:
()
→
(
chan
S
*
chan
(
lty_dual
S
))
.
⊢
Γ
⊨
new_chan
:
()
→
(
chan
S
*
chan
(
lty_dual
S
))
⫤
∅
.
Proof
.
Proof
.
iIntros
(
vs
)
"!> HΓ /="
.
iApply
wp_value
.
iIntros
(
vs
)
"!> HΓ /="
.
iApply
wp_value
.
iSplitL
;
last
by
iApply
env_ltyped_empty
.
iSplitL
;
last
by
iApply
env_ltyped_empty
.
...
...
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