Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rice Wine
Iris
Commits
c476d109
Commit
c476d109
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Improve error message of iIntros.
This fixes issue 39.
parent
6ca91820
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
proofmode/tactics.v
+10
-11
10 additions, 11 deletions
proofmode/tactics.v
with
10 additions
and
11 deletions
proofmode/tactics.v
+
10
−
11
View file @
c476d109
...
...
@@ -678,17 +678,16 @@ Local Tactic Notation "iDestructHyp" constr(H) "as" "(" simple_intropattern(x1)
iExistDestruct
H
as
x1
H
;
iDestructHyp
H
as
(
x2
x3
x4
x5
x6
x7
x8
)
pat
.
(** * Introduction tactic *)
Local
Tactic
Notation
"iIntro"
"("
simple_intropattern
(
x
)
")"
:=
first
[
(* (∀ _, _) *)
apply
tac_forall_intro
;
intros
x
|
(* (?P → _) *)
eapply
tac_impl_intro_pure
;
[
let
P
:=
match
goal
with
|
-
IntoPure
?P
_
=>
P
end
in
apply
_
||
fail
"iIntro:"
P
"not pure"
|
intros
x
]
|
(* (?P -★ _) *)
eapply
tac_wand_intro_pure
;
[
let
P
:=
match
goal
with
|
-
IntoPure
?P
_
=>
P
end
in
apply
_
||
fail
"iIntro:"
P
"not pure"
|
intros
x
]
|
intros
x
]
.
Local
Tactic
Notation
"iIntro"
"("
simple_intropattern
(
x
)
")"
:=
try
first
[
(* (∀ _, _) *)
apply
tac_forall_intro
|
(* (?P → _) *)
eapply
tac_impl_intro_pure
;
[
let
P
:=
match
goal
with
|
-
IntoPure
?P
_
=>
P
end
in
apply
_
||
fail
"iIntro:"
P
"not pure"
|]
|
(* (?P -★ _) *)
eapply
tac_wand_intro_pure
;
[
let
P
:=
match
goal
with
|
-
IntoPure
?P
_
=>
P
end
in
apply
_
||
fail
"iIntro:"
P
"not pure"
|]];
intros
x
.
Local
Tactic
Notation
"iIntro"
constr
(
H
)
:=
first
[
(* (?Q → _) *)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment