Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Iris
Iris
Commits
ad005c0c
Commit
ad005c0c
authored
Feb 20, 2018
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Proper error message when `//` spec pattern fails.
parent
e948d98d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
theories/proofmode/tactics.v
theories/proofmode/tactics.v
+11
-3
No files found.
theories/proofmode/tactics.v
View file @
ad005c0c
...
...
@@ -475,6 +475,14 @@ Local Tactic Notation "iSpecializePat" open_constr(H) constr(pat) :=
apply
_
||
let
P
:
=
match
goal
with
|-
IntoWand
_
_
?P
_
_
=>
P
end
in
fail
"iSpecialize:"
P
"not an implication/wand"
in
let
solve_done
d
:
=
lazymatch
d
with
|
true
=>
done
||
let
Q
:
=
match
goal
with
|-
envs_entails
_
?Q
=>
Q
end
in
fail
"iSpecialize: cannot solve"
Q
"using done"
|
false
=>
idtac
end
in
let
rec
go
H1
pats
:
=
lazymatch
pats
with
|
[]
=>
idtac
...
...
@@ -498,7 +506,7 @@ Local Tactic Notation "iSpecializePat" open_constr(H) constr(pat) :=
let
Q
:
=
match
goal
with
|-
FromPure
_
?Q
_
=>
Q
end
in
fail
"iSpecialize:"
Q
"not pure"
|
env_reflexivity
|
done
_if
d
(*goal*)
|
solve_
done
d
(*goal*)
|
go
H1
pats
]
|
SGoal
(
SpecGoal
GPersistent
false
?Hs_frame
[]
?d
)
::
?pats
=>
eapply
tac_specialize_assert_persistent
with
_
_
H1
_
_
_
_
_;
...
...
@@ -509,7 +517,7 @@ Local Tactic Notation "iSpecializePat" open_constr(H) constr(pat) :=
fail
"iSpecialize:"
Q
"not persistent"
|
apply
_
|
env_reflexivity
|
iFrame
Hs_frame
;
done
_if
d
(*goal*)
|
iFrame
Hs_frame
;
solve_
done
d
(*goal*)
|
go
H1
pats
]
|
SGoal
(
SpecGoal
GPersistent
_
_
_
_
)
::
?pats
=>
fail
"iSpecialize: cannot select hypotheses for persistent premise"
...
...
@@ -525,7 +533,7 @@ Local Tactic Notation "iSpecializePat" open_constr(H) constr(pat) :=
|
env_reflexivity
||
let
Hs'
:
=
iMissingHyps
Hs'
in
fail
"iSpecialize: hypotheses"
Hs'
"not found"
|
iFrame
Hs_frame
;
done
_if
d
(*goal*)
|
iFrame
Hs_frame
;
solve_
done
d
(*goal*)
|
go
H1
pats
]
|
SAutoFrame
GPersistent
::
?pats
=>
eapply
tac_specialize_assert_persistent
with
_
_
H1
_
_
_
_;
...
...
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