Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
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
Gaëtan Gilbert
Iris
Commits
d2cb8da5
Commit
d2cb8da5
authored
6 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
fix heap_lang/total_adequacy
parent
52beec17
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/heap_lang/adequacy.v
+6
-6
6 additions, 6 deletions
theories/heap_lang/adequacy.v
theories/heap_lang/total_adequacy.v
+6
-7
6 additions, 7 deletions
theories/heap_lang/total_adequacy.v
with
12 additions
and
13 deletions
theories/heap_lang/adequacy.v
+
6
−
6
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
_proph
PreG
Σ
:=
HeapPr
ophPr
eG
{
heap_
proph_
preG_iris
:>
invPreG
Σ
;
heap_
proph_
preG_heap
:>
gen_heapPreG
loc
val
Σ
;
heap_
proph_
preG_proph
:>
proph_mapPreG
proph
val
Σ
Class
heapPreG
Σ
:=
HeapPreG
{
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
.
...
...
This diff is collapsed.
Click to expand it.
theories/heap_lang/total_adequacy.v
+
6
−
7
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
.
*)
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