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
Pierre-Marie Pédrot
Iris
Commits
ae63e7a1
Commit
ae63e7a1
authored
Sep 01, 2017
by
Robbert Krebbers
Committed by
Jacques-Henri Jourdan
Oct 30, 2017
Browse files
Fix error message of iDestruct.
parent
4e1a7837
Changes
1
Show whitespace changes
Inline
Side-by-side
theories/proofmode/tactics.v
View file @
ae63e7a1
...
...
@@ -774,8 +774,12 @@ Tactic Notation "iSplitR" := iSplitL "".
Local
Tactic
Notation
"iAndDestruct"
constr
(
H
)
"as"
constr
(
H1
)
constr
(
H2
)
:
=
eapply
tac_and_destruct
with
_
H
_
H1
H2
_
_
_;
(* (i:=H) (j1:=H1) (j2:=H2) *)
[
env_reflexivity
||
fail
"iAndDestruct:"
H
"not found"
|
apply
_
||
let
P
:
=
match
goal
with
|-
IntoSep
_
?P
_
_
=>
P
end
in
|
env_cbv
;
apply
_
||
let
P
:
=
lazymatch
goal
with
|
|-
IntoSep
?P
_
_
=>
P
|
|-
IntoAnd
_
?P
_
_
=>
P
end
in
fail
"iAndDestruct: cannot destruct"
P
|
env_reflexivity
||
fail
"iAndDestruct:"
H1
"or"
H2
" not fresh"
|].
...
...
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