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
Dmitry Khalanskiy
Iris
Commits
46878a8c
Commit
46878a8c
authored
May 06, 2016
by
Robbert Krebbers
Browse files
Better error message for iSpecialize.
parent
2a8c9e10
Changes
1
Hide whitespace changes
Inline
Side-by-side
proofmode/tactics.v
View file @
46878a8c
...
...
@@ -169,7 +169,9 @@ Tactic Notation "iSpecializePat" constr(H) constr(pat) :=
eapply
tac_specialize
with
_
_
H2
_
H1
_
_
_
_;
(* (j:=H1) (i:=H2) *)
[
env_cbv
;
reflexivity
||
fail
"iSpecialize:"
H2
"not found"
|
env_cbv
;
reflexivity
||
fail
"iSpecialize:"
H1
"not found"
|
solve_to_wand
H1
|
let
P
:
=
match
goal
with
|-
ToWand
?P
?Q
_
=>
P
end
in
let
Q
:
=
match
goal
with
|-
ToWand
?P
?Q
_
=>
Q
end
in
apply
_
||
fail
"iSpecialize: cannot instantiate"
H1
":"
P
"with"
H2
":"
Q
|
env_cbv
;
reflexivity
|
go
H1
pats
]
|
SPersistent
::
?pats
=>
eapply
tac_specialize_range_persistent
with
_
_
H1
_
_
_
_;
...
...
Write
Preview
Supports
Markdown
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