Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Rodolphe Lepigre
Iris
Commits
dfa9e843
Commit
dfa9e843
authored
Aug 05, 2016
by
Robbert Krebbers
Browse files
Better error message when iVs is used in nonview shift goal.
parent
d7d23b5e
Changes
1
Hide whitespace changes
Inline
Sidebyside
proofmode/tactics.v
View file @
dfa9e843
...
@@ 508,14 +508,15 @@ Tactic Notation "iTimeless" constr(H) :=
...
@@ 508,14 +508,15 @@ Tactic Notation "iTimeless" constr(H) :=
Tactic
Notation
"iVsIntro"
:
=
Tactic
Notation
"iVsIntro"
:
=
eapply
tac_vs_intro
;
eapply
tac_vs_intro
;
[
let
P
:
=
match
goal
with

FromVs
?P
_
=>
P
end
in
[
let
P
:
=
match
goal
with

FromVs
?P
_
=>
P
end
in
apply
_

fail
"iVsIntro:"
P
"not a viewshift"
].
apply
_

fail
"iVsIntro:"
P
"not a view
shift"
].
Tactic
Notation
"iVsCore"
constr
(
H
)
:
=
Tactic
Notation
"iVsCore"
constr
(
H
)
:
=
eapply
tac_vs_elim
with
_
H
_
_
_
_;
eapply
tac_vs_elim
with
_
H
_
_
_
_;
[
env_cbv
;
reflexivity

fail
"iVs:"
H
"not found"
[
env_cbv
;
reflexivity

fail
"iVs:"
H
"not found"

let
P
:
=
match
goal
with

ElimVs
?P
_
_
_
=>
P
end
in

let
P
:
=
match
goal
with

ElimVs
?P
_
_
_
=>
P
end
in
let
Q
:
=
match
goal
with

ElimVs
_
_
_
?Q
=>
Q
end
in
let
Q
:
=
match
goal
with

ElimVs
_
_
?Q
_
=>
Q
end
in
apply
_

fail
"iVs: cannot eliminate"
H
":"
P
"in"
Q
apply
_

fail
"iVs: cannot run"
H
":"
P
"in"
Q
"because the goal or hypothesis is not a view shift"

env_cbv
;
reflexivity
].

env_cbv
;
reflexivity
].
(** * Basic destruct tactic *)
(** * Basic destruct tactic *)
...
...
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