Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
Iris
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
90
Issues
90
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Iris
Iris
Commits
dfa9e843
Commit
dfa9e843
authored
Aug 05, 2016
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better error message when iVs is used in nonview shift goal.
parent
d7d23b5e
Changes
1
Hide whitespace changes
Inline
Sidebyside
Showing
1 changed file
with
4 additions
and
3 deletions
+4
3
proofmode/tactics.v
proofmode/tactics.v
+4
3
No files found.
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