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
Simcha van Collem
Iris
Commits
3a5c5045
Commit
3a5c5045
authored
7 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Move some stuff.
parent
7abcc966
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/heap_lang/proofmode.v
+8
-9
8 additions, 9 deletions
theories/heap_lang/proofmode.v
with
8 additions
and
9 deletions
theories/heap_lang/proofmode.v
+
8
−
9
View file @
3a5c5045
...
...
@@ -5,15 +5,6 @@ From iris.heap_lang Require Export tactics lifting.
Set
Default
Proof
Using
"Type"
.
Import
uPred
.
(** wp-specific helper tactics *)
Ltac
wp_bind_core
K
:=
lazymatch
eval
hnf
in
K
with
|
[]
=>
idtac
|
_
=>
etrans
;
[|
fast_by
apply
(
wp_bind
K
)];
simpl
end
.
Ltac
wp_value_head
:=
etrans
;
[|
eapply
wp_value
;
apply
_];
simpl
.
Lemma
tac_wp_pure
`{
heapG
Σ
}
K
Δ
Δ'
E
e1
e2
φ
Φ
:
PureExec
φ
e1
e2
→
φ
→
...
...
@@ -26,6 +17,8 @@ Proof.
by
rewrite
-
ectx_lifting
.
wp_ectx_bind_inv
.
Qed
.
Ltac
wp_value_head
:=
etrans
;
[|
eapply
wp_value
;
apply
_];
simpl
.
Tactic
Notation
"wp_pure"
open_constr
(
efoc
)
:=
iStartProof
;
lazymatch
goal
with
...
...
@@ -54,6 +47,12 @@ Tactic Notation "wp_proj" := wp_pure (Fst _) || wp_pure (Snd _).
Tactic
Notation
"wp_case"
:=
wp_pure
(
Case
_
_
_)
.
Tactic
Notation
"wp_match"
:=
wp_case
;
wp_let
.
Ltac
wp_bind_core
K
:=
lazymatch
eval
hnf
in
K
with
|
[]
=>
idtac
|
_
=>
etrans
;
[|
fast_by
apply
(
wp_bind
K
)];
simpl
end
.
Tactic
Notation
"wp_bind"
open_constr
(
efoc
)
:=
iStartProof
;
lazymatch
goal
with
...
...
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