Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
Iris
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Khalanskiy
Iris
Commits
d2cb8da5
Commit
d2cb8da5
authored
Aug 29, 2018
by
Ralf Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix heap_lang/total_adequacy
parent
52beec17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
theories/heap_lang/adequacy.v
theories/heap_lang/adequacy.v
+6
-6
theories/heap_lang/total_adequacy.v
theories/heap_lang/total_adequacy.v
+6
-7
No files found.
theories/heap_lang/adequacy.v
View file @
d2cb8da5
...
...
@@ -4,17 +4,17 @@ From iris.heap_lang Require Import proofmode notation proph_map.
From
iris
.
proofmode
Require
Import
tactics
.
Set
Default
Proof
Using
"Type"
.
Class
heap
_prophPreG
Σ
:
=
HeapProph
PreG
{
heap_pr
oph_pr
eG_iris
:
>
invPreG
Σ
;
heap_pr
oph_pr
eG_heap
:
>
gen_heapPreG
loc
val
Σ
;
heap_pr
oph_pr
eG_proph
:
>
proph_mapPreG
proph
val
Σ
Class
heap
PreG
Σ
:
=
Heap
PreG
{
heap_preG_iris
:
>
invPreG
Σ
;
heap_preG_heap
:
>
gen_heapPreG
loc
val
Σ
;
heap_preG_proph
:
>
proph_mapPreG
proph
val
Σ
}.
Definition
heap
Σ
:
gFunctors
:
=
#[
inv
Σ
;
gen_heap
Σ
loc
val
;
proph_map
Σ
proph
val
].
Instance
subG_heapPreG
{
Σ
}
:
subG
heap
Σ
Σ
→
heap
_proph
PreG
Σ
.
Instance
subG_heapPreG
{
Σ
}
:
subG
heap
Σ
Σ
→
heapPreG
Σ
.
Proof
.
solve_inG
.
Qed
.
Definition
heap_adequacy
Σ
`
{
heap
_proph
PreG
Σ
}
s
e
σ
φ
:
Definition
heap_adequacy
Σ
`
{
heapPreG
Σ
}
s
e
σ
φ
:
(
∀
`
{
heapG
Σ
},
WP
e
@
s
;
⊤
{{
v
,
⌜φ
v
⌝
}}%
I
)
→
adequate
s
e
σ
(
λ
v
_
,
φ
v
).
Proof
.
...
...
theories/heap_lang/total_adequacy.v
View file @
d2cb8da5
...
...
@@ -4,15 +4,14 @@ From iris.heap_lang Require Import proofmode notation.
From
iris
.
proofmode
Require
Import
tactics
.
Set
Default
Proof
Using
"Type"
.
(* TODO (MR) re-introduce lemma after we prove twp_total *)
(*
Definition
heap_total
Σ
`
{
heapPreG
Σ
}
s
e
σ
φ
:
(
∀
`
{
heapG
Σ
},
WP
e
@
s
;
⊤
[{
v
,
⌜φ
v
⌝
}]%
I
)
→
sn
erased_step
([
e
],
σ
).
Proof
.
intros Hwp; eapply (twp_total _ _) with (κs := []); iIntros (?) "".
iMod (gen_heap_init σ) as (?) "Hh".
iModIntro. iExists (fun σ _ => gen_heap_ctx σ); iFrame.
iApply (Hwp (HeapG _ _ _)).
intros
Hwp
;
eapply
(
twp_total
_
_
)
;
iIntros
(?)
""
.
iMod
(
gen_heap_init
σ
.
1
)
as
(?)
"Hh"
.
iMod
(
proph_map_init
[]
σ
.
2
)
as
(?)
"Hp"
.
iModIntro
.
iExists
(
fun
σ
κ
s
=>
(
gen_heap_ctx
σ
.
1
∗
proph_map_ctx
κ
s
σ
.
2
)%
I
).
iFrame
.
iApply
(
Hwp
(
HeapG
_
_
_
_
)).
Qed
.
*)
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