Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Iris
Iris
Commits
c476d109
Commit
c476d109
authored
Oct 26, 2016
by
Robbert Krebbers
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve error message of iIntros.
This fixes issue 39.
parent
6ca91820
Pipeline
#2904
passed with stage
in 9 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
proofmode/tactics.v
proofmode/tactics.v
+10
-11
No files found.
proofmode/tactics.v
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 → _) *)
...
...
Robbert Krebbers
@robbertkrebbers
Mentioned in issue
#39 (closed)
·
Oct 26, 2016
Mentioned in issue
#39 (closed)
Mentioned in issue #39
Toggle commit list
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