Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-coq
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
Incidents
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
Dan Frumin
iris-coq
Commits
88679d3e
Commit
88679d3e
authored
9 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Tweak closed proof in heap_lang/tests.
parent
2c6727dc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
heap_lang/tests.v
+5
-12
5 additions, 12 deletions
heap_lang/tests.v
with
5 additions
and
12 deletions
heap_lang/tests.v
+
5
−
12
View file @
88679d3e
...
...
@@ -80,25 +80,18 @@ Section LiftingTests.
End
LiftingTests
.
Section
ClosedProofs
.
Definition
Σ
:
iFunctorG
:=
λ
_
,
authF
(
constF
heapRA
).
Notation
iProp
:=
(
iPropG
heap_lang
Σ
).
Local
Instance
:
inG
heap_lang
Σ
(
authRA
heapRA
).
Proof
.
by
exists
1
%
nat
.
Qed
.
(
*
TODO
:
Why
do
I
even
have
to
explicitly
do
this
?
*
)
Local
Instance
:
authG
heap_lang
Σ
heapRA
.
Proof
.
split
;
by
apply
_.
Qed
.
Local
Notation
iProp
:=
(
iPropG
heap_lang
Σ
).
Instance:
authG
heap_lang
Σ
heapRA
.
Proof
.
split
;
try
apply
_.
by
exists
1
%
nat
.
Qed
.
Lemma
heap_e_hoare
σ
:
{{
ownP
σ
:
iProp
}}
heap_e
@
⊤
{{
λ
v
,
v
=
'
2
}}
.
Proof
.
apply
ht_alt
.
rewrite
(
heap_alloc
⊤
nroot
);
last
by
rewrite
nclose_nroot
.
apply
wp_strip_pvs
,
exist_elim
=>?
.
rewrite
and_elim_l
.
apply
wp_strip_pvs
,
exist_elim
=>
?
.
rewrite
and_elim_l
.
rewrite
-
heap_e_spec
;
first
by
eauto
with
I
.
by
rewrite
nclose_nroot
.
Qed
.
Print
Assumptions
heap_e_hoare
.
End
ClosedProofs
.
End
ClosedProofs
.
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