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
Simon Friis Vindum
Iris
Commits
9c43011e
Commit
9c43011e
authored
Aug 13, 2019
by
Robbert Krebbers
Browse files
Improve error message of `iRevert` in case of used variable.
parent
9a93c850
Changes
1
Hide whitespace changes
Inline
Side-by-side
theories/proofmode/ltac_tactics.v
View file @
9c43011e
...
...
@@ -570,7 +570,8 @@ Local Tactic Notation "iForallRevert" ident(x) :=
intros
x
;
iMatchHyp
(
fun
H
P
=>
lazymatch
P
with
|
context
[
x
]
=>
fail
2
"iRevert:"
x
"is used in hypothesis"
H
|
context
[
x
]
=>
let
H
:
=
pretty_ident
H
in
fail
2
"iRevert:"
x
"is used in hypothesis"
H
end
)
in
iStartProof
;
first
[
let
_
:
=
type
of
x
in
idtac
|
fail
1
"iRevert:"
x
"not in scope"
]
;
...
...
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