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
623adc39
"README.md" did not exist on "6ee08fecbca0ce40dc860bdca26eff6b302b9625"
Commit
623adc39
authored
7 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Factor out lemma for initializing `gen_heap`.
parent
365fca38
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
theories/base_logic/lib/gen_heap.v
+8
-0
8 additions, 0 deletions
theories/base_logic/lib/gen_heap.v
theories/heap_lang/adequacy.v
+2
-4
2 additions, 4 deletions
theories/heap_lang/adequacy.v
with
10 additions
and
4 deletions
theories/base_logic/lib/gen_heap.v
+
8
−
0
View file @
623adc39
...
@@ -72,6 +72,14 @@ Section to_gen_heap.
...
@@ -72,6 +72,14 @@ Section to_gen_heap.
Proof
.
by
rewrite
/
to_gen_heap
fmap_delete
.
Qed
.
Proof
.
by
rewrite
/
to_gen_heap
fmap_delete
.
Qed
.
End
to_gen_heap
.
End
to_gen_heap
.
Lemma
gen_heap_init
`{
gen_heapPreG
L
V
Σ
}
σ
:
(|
==>
∃
_
:
gen_heapG
L
V
Σ
,
gen_heap_ctx
σ
)
%
I
.
Proof
.
iMod
(
own_alloc
(
●
to_gen_heap
σ
))
as
(
γ
)
"Hh"
.
{
apply
:
auth_auth_valid
.
exact
:
to_gen_heap_valid
.
}
iModIntro
.
by
iExists
(
GenHeapG
L
V
Σ
_
_
_
γ
)
.
Qed
.
Section
gen_heap
.
Section
gen_heap
.
Context
`{
gen_heapG
L
V
Σ
}
.
Context
`{
gen_heapG
L
V
Σ
}
.
Implicit
Types
P
Q
:
iProp
Σ
.
Implicit
Types
P
Q
:
iProp
Σ
.
...
...
This diff is collapsed.
Click to expand it.
theories/heap_lang/adequacy.v
+
2
−
4
View file @
623adc39
...
@@ -19,9 +19,7 @@ Definition heap_adequacy Σ `{heapPreG Σ} e σ φ :
...
@@ -19,9 +19,7 @@ Definition heap_adequacy Σ `{heapPreG Σ} e σ φ :
adequate
e
σ
φ
.
adequate
e
σ
φ
.
Proof
.
Proof
.
intros
Hwp
;
eapply
(
wp_adequacy
_
_);
iIntros
(?)
""
.
intros
Hwp
;
eapply
(
wp_adequacy
_
_);
iIntros
(?)
""
.
iMod
(
own_alloc
(
●
to_gen_heap
σ
))
as
(
γ
)
"Hh"
.
iMod
(
gen_heap_init
σ
)
as
(?)
"Hh"
.
{
apply
:
auth_auth_valid
.
exact
:
to_gen_heap_valid
.
}
iModIntro
.
iExists
gen_heap_ctx
.
iFrame
"Hh"
.
iModIntro
.
iExists
(
λ
σ
,
own
γ
(
●
to_gen_heap
σ
));
iFrame
.
set
(
Hheap
:=
GenHeapG
loc
val
Σ
_
_
_
γ
)
.
iApply
(
Hwp
(
HeapG
_
_
_))
.
iApply
(
Hwp
(
HeapG
_
_
_))
.
Qed
.
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