Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Iris
Actris
Commits
d55bc65a
Commit
d55bc65a
authored
May 04, 2020
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stronger variable rule.
parent
5b787817
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
theories/logrel/term_typing_rules.v
theories/logrel/term_typing_rules.v
+6
-3
No files found.
theories/logrel/term_typing_rules.v
View file @
d55bc65a
...
...
@@ -16,11 +16,14 @@ Section properties.
(** Variable properties *)
Lemma
ltyped_var
Γ
(
x
:
string
)
A
:
Γ
!!
x
=
Some
A
→
⊢
Γ
⊨
x
:
A
⫤
delete
x
Γ
.
Γ
!!
x
=
Some
A
→
⊢
Γ
⊨
x
:
A
⫤
<[
x
:
=
copy
-
A
]>%
lty
Γ
.
Proof
.
iIntros
(
H
Γ
x
)
"!>"
;
iIntros
(
vs
)
"HΓ /="
.
iDestruct
(
env_ltyped_lookup
with
"HΓ"
)
as
(
v
->)
"[HA HΓ]"
;
first
done
.
iApply
wp_value
.
eauto
with
iFrame
.
iDestruct
(
env_ltyped_lookup
with
"HΓ"
)
as
(
v
Hx
)
"[HA HΓ]"
;
first
done
.
rewrite
Hx
.
iApply
wp_value
.
iDestruct
(
coreP_intro
with
"HA"
)
as
"#HAc"
.
iFrame
"HA"
.
iEval
(
rewrite
-
insert_delete
-(
insert_id
vs
x
v
)
//).
by
iApply
(
env_ltyped_insert
_
_
x
).
Qed
.
(** Subtyping *)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment