Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lambda-rust
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
Model registry
Operate
Environments
Monitor
Service Desk
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
Iris
lambda-rust
Commits
06d04c15
Commit
06d04c15
authored
8 years ago
by
Jacques-Henri Jourdan
Browse files
Options
Downloads
Patches
Plain Diff
Adequacy for lrust's heap.
parent
ec48237e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
_CoqProject
+1
-0
1 addition, 0 deletions
_CoqProject
adequacy.v
+24
-0
24 additions, 0 deletions
adequacy.v
with
25 additions
and
0 deletions
_CoqProject
+
1
−
0
View file @
06d04c15
-Q . lrust
adequacy.v
derived.v
heap.v
lang.v
...
...
This diff is collapsed.
Click to expand it.
adequacy.v
0 → 100644
+
24
−
0
View file @
06d04c15
From
iris
.
program_logic
Require
Export
weakestpre
adequacy
.
From
lrust
Require
Export
heap
.
From
iris
.
program_logic
Require
Import
auth
ownership
.
From
lrust
Require
Import
proofmode
notation
.
From
iris
.
proofmode
Require
Import
tactics
weakestpre
.
From
iris
.
prelude
Require
Import
fin_maps
.
Definition
heapΣ
:
gFunctors
:=
#
[
authΣ
heapValUR
;
authΣ
heapFreeableUR
;
irisΣ
lrust_lang
]
.
Definition
heap_adequacy
Σ
`{
irisPreG
lrust_lang
Σ
,
authG
Σ
heapValUR
,
authG
Σ
heapFreeableUR
}
e
σ
φ
:
(
∀
`{
heapG
Σ
},
heap_ctx
⊢
WP
e
{{
v
,
■
φ
v
}})
→
adequate
e
σ
φ
.
Proof
.
intros
Hwp
;
eapply
(
wp_adequacy
Σ
);
iIntros
(?)
"Hσ"
.
iVs
(
own_alloc
(
●
to_heapVal
σ
))
as
(
vγ
)
"Hvγ"
.
{
split
;
last
apply
to_heap_valid
.
intro
.
simpl
.
refine
(
ucmra_unit_leastN
_
_)
.
}
iVs
(
own_alloc
(
●
(
∅
:
heapFreeableUR
)))
as
(
fγ
)
"Hfγ"
.
{
split
.
intro
.
refine
(
ucmra_unit_leastN
_
_)
.
exact
ucmra_unit_valid
.
}
set
(
h
:=
HeapG
_
_
_
_
vγ
fγ
)
.
iVs
(
inv_alloc
heapN
_
heap_inv
with
"[-]"
)
as
"HN"
;
last
by
iApply
(
Hwp
h
);
rewrite
/
heap_ctx
.
iNext
.
iExists
_,
_
.
iFrame
.
iPureIntro
.
intros
??
.
rewrite
lookup_empty
.
inversion
1
.
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