Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Tej Chajed
iris
Commits
d80e20a8
Commit
d80e20a8
authored
9 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Make wp_strip_later work under separating conjunctions.
parent
d8530574
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
heap_lang/wp_tactics.v
+14
-6
14 additions, 6 deletions
heap_lang/wp_tactics.v
with
14 additions
and
6 deletions
heap_lang/wp_tactics.v
+
14
−
6
View file @
d80e20a8
From
heap_lang
Require
Export
tactics
substitution
.
Import
uPred
.
Ltac
wp_strip_later
:=
match
goal
with
|
|
-
∀
_,
_
=>
let
H
:=
fresh
in
intro
H
;
wp_strip_later
;
revert
H
|
|
-
_
⊑
▷
_
=>
etransitivity
;
[|
solve
[
apply
later_intro
]
]
Ltac
revert_intros
tac
:=
lazy
match
goal
with
|
|
-
∀
_,
_
=>
let
H
:=
fresh
in
intro
H
;
revert_intros
tac
;
revert
H
|
|
-
_
=>
tac
end
.
Ltac
wp_strip_later
:=
let
rec
go
:=
lazymatch
goal
with
|
|
-
_
⊑
(_
★
_)
=>
apply
sep_mono
;
go
|
|
-
_
⊑
▷
_
=>
apply
later_intro
|
|
-
_
⊑
_
=>
reflexivity
end
in
revert_intros
ltac
:(
etransitivity
;
[|
go
])
.
Ltac
wp_bind
K
:=
lazymatch
eval
hnf
in
K
with
|
[]
=>
idtac
...
...
@@ -14,7 +23,6 @@ Ltac wp_bind K :=
Ltac
wp_finish
:=
let
rec
go
:=
match
goal
with
|
|
-
∀
_,
_
=>
let
H
:=
fresh
in
intro
H
;
go
;
revert
H
|
|
-
_
⊑
▷
_
=>
etransitivity
;
[|
apply
later_mono
;
go
;
reflexivity
]
|
|
-
_
⊑
wp
_
_
_
=>
etransitivity
;
[|
eapply
wp_value
;
reflexivity
];
...
...
@@ -22,7 +30,7 @@ Ltac wp_finish :=
wp_value if we obtain a consecutive wp *)
match
goal
with
|
-
_
⊑
wp
_
_
_
=>
simpl
|
_
=>
fail
end
|
_
=>
idtac
end
in
simpl
;
go
.
end
in
simpl
;
revert_intros
go
.
Tactic
Notation
"wp_value"
:=
match
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