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
Arthur Azevedo de Amorim
Tutorial POPL20
Commits
166449ec
Commit
166449ec
authored
Jan 19, 2020
by
Amin Timany
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up
parent
12c01214
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
theories/demo.v
theories/demo.v
+10
-12
No files found.
theories/demo.v
View file @
166449ec
...
@@ -156,12 +156,16 @@ End semtyp.
...
@@ -156,12 +156,16 @@ End semtyp.
Notation
"Γ ⊨ e : A"
:
=
(
sem_typed
Γ
e
A
)
Notation
"Γ ⊨ e : A"
:
=
(
sem_typed
Γ
e
A
)
(
at
level
74
,
e
,
A
at
next
level
).
(
at
level
74
,
e
,
A
at
next
level
).
Lemma
sem_type_safety
`
{!
heapPreG
Σ
}
e
σ
es
σ
'
e'
τ
:
Definition
safe
(
e
:
expr
)
:
=
(
∀
`
{!
heapG
Σ
},
∅
⊨
e
:
τ
)
→
∀
σ
es'
e'
σ
'
,
rtc
erased_step
([
e
],
σ
)
(
es
,
σ
'
)
→
e'
∈
es
→
rtc
erased_step
([
e
],
σ
)
(
es'
,
σ
'
)
→
is_Some
(
to_val
e'
)
∨
reducible
e'
σ
'
.
e'
∈
es'
→
is_Some
(
to_val
e'
)
∨
reducible
e'
σ
'
.
Lemma
sem_type_safety
`
{!
heapPreG
Σ
}
e
τ
:
(
∀
`
{!
heapG
Σ
},
∅
⊨
e
:
τ
)
→
safe
e
.
Proof
.
Proof
.
intros
Hty
.
intros
Hty
σ
es'
e'
σ
'
.
apply
(
heap_adequacy
Σ
NotStuck
e
σ
(
λ
_
,
True
))=>
//
?.
apply
(
heap_adequacy
Σ
NotStuck
e
σ
(
λ
_
,
True
))=>
//
?.
iDestruct
(
Hty
$!
∅
)
as
"#He"
.
iDestruct
(
Hty
$!
∅
)
as
"#He"
.
rewrite
subst_map_empty
.
iApply
(
wp_wand
with
"(He [])"
).
rewrite
subst_map_empty
.
iApply
(
wp_wand
with
"(He [])"
).
...
@@ -169,14 +173,8 @@ Proof.
...
@@ -169,14 +173,8 @@ Proof.
auto
.
auto
.
Qed
.
Qed
.
Lemma
type_safety
e
σ
es
σ
'
e'
τ
:
Lemma
type_safety
e
τ
:
∅
⊢
ₜ
e
:
τ
→
safe
e
.
(
∅
⊢
ₜ
e
:
τ
)
→
rtc
erased_step
([
e
],
σ
)
(
es
,
σ
'
)
→
e'
∈
es
→
is_Some
(
to_val
e'
)
∨
reducible
e'
σ
'
.
Proof
.
Proof
.
intros
Hty
.
eapply
(
sem_type_safety
(
Σ
:
=
heap
Σ
))=>
?.
intros
Hty
.
eapply
(
sem_type_safety
(
Σ
:
=
heap
Σ
))=>
?.
by
apply
fundamental
.
by
apply
fundamental
.
Qed
.
Qed
.
(* LocalWords: Robbert
*)
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