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
a0bb670c
Commit
a0bb670c
authored
4 years ago
by
Jonas Kastberg
Browse files
Options
Downloads
Patches
Plain Diff
Added stronger lemma for framing judgement
parent
7242ce83
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/logrel/term_typing_judgment.v
+14
-0
14 additions, 0 deletions
theories/logrel/term_typing_judgment.v
theories/logrel/term_typing_rules.v
+11
-0
11 additions, 0 deletions
theories/logrel/term_typing_rules.v
with
25 additions
and
0 deletions
theories/logrel/term_typing_judgment.v
+
14
−
0
View file @
a0bb670c
...
...
@@ -52,3 +52,17 @@ Proof.
iDestruct
(
He
$!∅
with
"[]"
)
as
"He"
;
first
by
rewrite
/
env_ltyped
.
iEval
(
rewrite
-
(
subst_map_empty
e
))
.
iApply
(
wp_wand
with
"He"
);
auto
.
Qed
.
Theorem
ltyped_mono
`{
!
heapG
Σ
}
Γ1
Γ1'
Γ2
Γ2'
e
τ1
τ2
:
(
■
∀
vs
,
env_ltyped
Γ1
vs
-∗
env_ltyped
Γ1'
vs
)
-∗
(
■
∀
vs
,
env_ltyped
Γ2'
vs
-∗
env_ltyped
Γ2
vs
)
-∗
τ1
<:
τ2
-∗
(
Γ1'
⊨
e
:
τ1
⫤
Γ2'
)
-∗
(
Γ1
⊨
e
:
τ2
⫤
Γ2
)
.
Proof
.
iIntros
"#HΓ1 #HΓ2 #Hle #Hltyped"
(
vs
)
"!> Henv"
.
iDestruct
(
"HΓ1"
with
"Henv"
)
as
"Henv"
.
iDestruct
(
"Hltyped"
with
"Henv"
)
as
"Hltyped'"
.
iApply
(
wp_wand
with
"Hltyped'"
)
.
iIntros
(
v
)
"[H1 Henv]"
.
iDestruct
(
"HΓ2"
with
"Henv"
)
as
"Henv"
.
iFrame
"Henv"
.
by
iApply
"Hle"
.
Qed
.
This diff is collapsed.
Click to expand it.
theories/logrel/term_typing_rules.v
+
11
−
0
View file @
a0bb670c
...
...
@@ -108,6 +108,17 @@ Section term_typing_rules.
iApply
(
"Hf"
$!
v
with
"HA1"
)
.
Qed
.
Lemma
ltyped_app_copy
Γ1
Γ2
Γ3
e1
e2
A1
A2
:
(
Γ1
⊨
e2
:
A1
⫤
Γ2
)
-∗
(
Γ2
⊨
e1
:
A1
→
A2
⫤
Γ3
)
-∗
Γ1
⊨
e1
e2
:
A2
⫤
Γ3
.
Proof
.
iIntros
"#H2 #H1"
.
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"
)
.
Qed
.
Lemma
ltyped_lam
Γ1
Γ2
x
e
A1
A2
:
(
env_cons
x
A1
Γ1
⊨
e
:
A2
⫤
[])
-∗
Γ1
++
Γ2
⊨
(
λ
:
x
,
e
)
:
A1
⊸
A2
⫤
Γ2
.
...
...
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