Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Dan Frumin
ReLoC-v1
Commits
7b1728ba
Commit
7b1728ba
authored
Feb 01, 2018
by
Dan Frumin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the persistence requirements from the exists interpretation
parent
627ec511
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
theories/logrel/fundamental_binary.v
theories/logrel/fundamental_binary.v
+6
-9
theories/logrel/semtypes.v
theories/logrel/semtypes.v
+1
-3
No files found.
theories/logrel/fundamental_binary.v
View file @
7b1728ba
...
...
@@ -367,12 +367,11 @@ Section fundamental.
Qed
.
Lemma
bin_log_related_tapp
(
τ
i
:
D
)
Δ
Γ
e
e
'
τ
:
(
∀
ww
,
Persistent
(
τ
i
ww
))
→
{
Δ
;
Γ
}
⊨
e
≤
log
≤
e
'
:
TForall
τ
-
∗
{
τ
i
::
Δ
;
⤉Γ
}
⊨
TApp
e
≤
log
≤
TApp
e
'
:
τ
.
Proof
.
rewrite
bin_log_related_eq
.
iIntros
(
?
)
"IH"
.
iIntros
"IH"
.
iIntros
(
vvs
ρ
)
"#Hs #HΓ"
;
iIntros
(
j
K
)
"Hj /="
.
wp_bind
(
env_subst
_
e
).
tp_bind
j
(
env_subst
_
e
'
).
...
...
@@ -417,18 +416,16 @@ Section fundamental.
rel_bind_ap
e
e
'
"IH"
v
v
'
"#IH"
.
value_case
.
iExists
(
v
,
v
'
).
iModIntro
.
simpl
;
iSplit
;
eauto
.
iExists
(
⟦
τ'
⟧
Δ
).
iSplit
;
eauto
.
iPureIntro
.
apply
_.
iExists
(
⟦
τ'
⟧
Δ
).
by
rewrite
interp_subst
.
Qed
.
Lemma
bin_log_related_pack
(
τ
i
:
D
)
Δ
Γ
e
e
'
τ
:
(
∀
ww
,
Persistent
(
τ
i
ww
))
→
{
τ
i
::
Δ
;
⤉Γ
}
⊨
e
≤
log
≤
e
'
:
τ
-
∗
{
Δ
;
Γ
}
⊨
Pack
e
≤
log
≤
Pack
e
'
:
TExists
τ
.
Proof
.
rewrite
bin_log_related_eq
.
iIntros
(
?
)
"IH"
.
iIntros
"IH"
.
iIntros
(
vvs
ρ
)
"#Hs #HΓ"
;
iIntros
(
j
K
)
"Hj /="
.
wp_bind
(
env_subst
_
e
).
tp_bind
j
(
env_subst
_
e
'
).
...
...
@@ -444,7 +441,7 @@ Section fundamental.
Lemma
bin_log_related_unpack
Δ
Γ
e1
e1
'
e2
e2
'
τ
τ
2
:
{
Δ
;
Γ
}
⊨
e1
≤
log
≤
e1
'
:
TExists
τ
-
∗
(
∀
τ
i
:
D
,
⌜∀
ww
,
Persistent
(
τ
i
ww
)
⌝
→
(
∀
τ
i
:
D
,
{
τ
i
::
Δ
;
⤉Γ
}
⊨
e2
≤
log
≤
e2
'
:
TArrow
τ
(
asubst
(
ren
(
+
1
))
τ
2
))
-
∗
{
Δ
;
Γ
}
⊨
Unpack
e1
e2
≤
log
≤
Unpack
e1
'
e2
'
:
τ
2.
...
...
@@ -454,11 +451,11 @@ Section fundamental.
iIntros
(
vvs
ρ
)
"#Hs #HΓ"
;
iIntros
(
j
K
)
"Hj /="
.
smart_bind
j
(
env_subst
_
e1
)
(
env_subst
_
e1
'
)
"IH1"
v
v
'
"IH1"
.
iDestruct
"IH1"
as
([
w
w
'
])
"[% #Hτi]"
;
simplify_eq
/=
.
iDestruct
"Hτi"
as
(
τ
i
)
"
[%
#Hτi
]
"
;
simplify_eq
/=
.
iDestruct
"Hτi"
as
(
τ
i
)
"#Hτi"
;
simplify_eq
/=
.
wp_unpack
.
iApply
fupd_wp
.
tp_pack
j
;
eauto
.
iModIntro
.
iSpecialize
(
"IH2"
$
!
τ
i
with
"
[]
Hs [HΓ]"
);
auto
.
iSpecialize
(
"IH2"
$
!
τ
i
with
"Hs [HΓ]"
);
auto
.
{
by
rewrite
interp_env_ren
.
}
tp_bind
j
(
env_subst
(
snd
<
$
>
vvs
)
e2
'
).
iMod
(
"IH2"
with
"Hj"
)
as
"IH2"
.
simpl
.
...
...
theories/logrel/semtypes.v
View file @
7b1728ba
...
...
@@ -77,8 +77,6 @@ Section semtypes.
Program
Definition
interp_forall
(
E
:
coPset
)
(
interp
:
listC
D
-
n
>
D
)
:
listC
D
-
n
>
D
:=
λ
ne
Δ
ww
,
(
□
∀
τ
i
,
(
*
□
(
∀
ww
,
(
τ
i
ww
-
∗
□
(
τ
i
ww
)))
→
*
)
(
*
⌜∀
ww
,
Persistent
(
τ
i
ww
)
⌝
→
*
)
interp_expr
E
interp
(
τ
i
::
Δ
)
(
TApp
(
of_val
(
ww
.1
)),
TApp
(
of_val
(
ww
.2
))))
%
I
.
Solve
Obligations
with
solve_proper
.
...
...
@@ -86,7 +84,7 @@ Section semtypes.
Program
Definition
interp_exists
(
interp
:
listC
D
-
n
>
D
)
:
listC
D
-
n
>
D
:=
λ
ne
Δ
ww
,
(
∃
vv
,
⌜
ww
=
(
PackV
(
vv
.1
),
PackV
(
vv
.2
))
⌝
∧
∃
τ
i
:
D
,
⌜∀
ww
,
Persistent
(
τ
i
ww
)
⌝
∧
interp
(
τ
i
::
Δ
)
vv
)
%
I
.
∧
∃
τ
i
:
D
,
interp
(
τ
i
::
Δ
)
vv
)
%
I
.
Solve
Obligations
with
solve_proper
.
Program
Definition
interp_rec1
...
...
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