Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tej Chajed
iris
Commits
d10c1878
Commit
d10c1878
authored
Feb 26, 2016
by
Robbert Krebbers
Browse files
Make wp_rec/wp_lam solve to_of_val premises.
parent
04f588de
Changes
1
Hide whitespace changes
Inline
Side-by-side
heap_lang/wp_tactics.v
View file @
d10c1878
...
...
@@ -29,7 +29,9 @@ Tactic Notation "wp_rec" ">" :=
|
|-
_
⊑
wp
?E
?e
?Q
=>
reshape_expr
e
ltac
:
(
fun
K
e'
=>
match
eval
cbv
in
e'
with
|
App
(
Rec
_
_
_
)
_
=>
wp_bind
K
;
etrans
;
[|
eapply
wp_rec
;
reflexivity
]
;
wp_finish
wp_bind
K
;
etrans
;
[|
eapply
wp_rec
;
repeat
(
reflexivity
||
rewrite
/=
to_of_val
)]
;
wp_finish
end
)
end
).
Tactic
Notation
"wp_rec"
:
=
wp_rec
>
;
try
strip_later
.
...
...
@@ -39,7 +41,9 @@ Tactic Notation "wp_lam" ">" :=
|
|-
_
⊑
wp
?E
?e
?Q
=>
reshape_expr
e
ltac
:
(
fun
K
e'
=>
match
eval
cbv
in
e'
with
|
App
(
Rec
""
_
_
)
_
=>
wp_bind
K
;
etrans
;
[|
eapply
wp_lam
;
reflexivity
]
;
wp_finish
wp_bind
K
;
etrans
;
[|
eapply
wp_lam
;
repeat
(
reflexivity
||
rewrite
/=
to_of_val
)]
;
wp_finish
end
)
end
.
Tactic
Notation
"wp_lam"
:
=
wp_lam
>
;
try
strip_later
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment