Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
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
Gaëtan Gilbert
Iris
Commits
ad005c0c
Commit
ad005c0c
authored
7 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Proper error message when `//` spec pattern fails.
parent
e948d98d
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
theories/proofmode/tactics.v
+11
-3
11 additions, 3 deletions
theories/proofmode/tactics.v
with
11 additions
and
3 deletions
theories/proofmode/tactics.v
+
11
−
3
View file @
ad005c0c
...
@@ -475,6 +475,14 @@ Local Tactic Notation "iSpecializePat" open_constr(H) constr(pat) :=
...
@@ -475,6 +475,14 @@ Local Tactic Notation "iSpecializePat" open_constr(H) constr(pat) :=
apply
_
||
apply
_
||
let
P
:=
match
goal
with
|
-
IntoWand
_
_
?P
_
_
=>
P
end
in
let
P
:=
match
goal
with
|
-
IntoWand
_
_
?P
_
_
=>
P
end
in
fail
"iSpecialize:"
P
"not an implication/wand"
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
:=
let
rec
go
H1
pats
:=
lazymatch
pats
with
lazymatch
pats
with
|
[]
=>
idtac
|
[]
=>
idtac
...
@@ -498,7 +506,7 @@ Local Tactic Notation "iSpecializePat" open_constr(H) constr(pat) :=
...
@@ -498,7 +506,7 @@ Local Tactic Notation "iSpecializePat" open_constr(H) constr(pat) :=
let
Q
:=
match
goal
with
|
-
FromPure
_
?Q
_
=>
Q
end
in
let
Q
:=
match
goal
with
|
-
FromPure
_
?Q
_
=>
Q
end
in
fail
"iSpecialize:"
Q
"not pure"
fail
"iSpecialize:"
Q
"not pure"
|
env_reflexivity
|
env_reflexivity
|
done
_if
d
(*goal*)
|
solve_
done
d
(*goal*)
|
go
H1
pats
]
|
go
H1
pats
]
|
SGoal
(
SpecGoal
GPersistent
false
?Hs_frame
[]
?d
)
::
?pats
=>
|
SGoal
(
SpecGoal
GPersistent
false
?Hs_frame
[]
?d
)
::
?pats
=>
eapply
tac_specialize_assert_persistent
with
_
_
H1
_
_
_
_
_;
eapply
tac_specialize_assert_persistent
with
_
_
H1
_
_
_
_
_;
...
@@ -509,7 +517,7 @@ Local Tactic Notation "iSpecializePat" open_constr(H) constr(pat) :=
...
@@ -509,7 +517,7 @@ Local Tactic Notation "iSpecializePat" open_constr(H) constr(pat) :=
fail
"iSpecialize:"
Q
"not persistent"
fail
"iSpecialize:"
Q
"not persistent"
|
apply
_
|
apply
_
|
env_reflexivity
|
env_reflexivity
|
iFrame
Hs_frame
;
done
_if
d
(*goal*)
|
iFrame
Hs_frame
;
solve_
done
d
(*goal*)
|
go
H1
pats
]
|
go
H1
pats
]
|
SGoal
(
SpecGoal
GPersistent
_
_
_
_)
::
?pats
=>
|
SGoal
(
SpecGoal
GPersistent
_
_
_
_)
::
?pats
=>
fail
"iSpecialize: cannot select hypotheses for persistent premise"
fail
"iSpecialize: cannot select hypotheses for persistent premise"
...
@@ -525,7 +533,7 @@ Local Tactic Notation "iSpecializePat" open_constr(H) constr(pat) :=
...
@@ -525,7 +533,7 @@ Local Tactic Notation "iSpecializePat" open_constr(H) constr(pat) :=
|
env_reflexivity
||
|
env_reflexivity
||
let
Hs'
:=
iMissingHyps
Hs'
in
let
Hs'
:=
iMissingHyps
Hs'
in
fail
"iSpecialize: hypotheses"
Hs'
"not found"
fail
"iSpecialize: hypotheses"
Hs'
"not found"
|
iFrame
Hs_frame
;
done
_if
d
(*goal*)
|
iFrame
Hs_frame
;
solve_
done
d
(*goal*)
|
go
H1
pats
]
|
go
H1
pats
]
|
SAutoFrame
GPersistent
::
?pats
=>
|
SAutoFrame
GPersistent
::
?pats
=>
eapply
tac_specialize_assert_persistent
with
_
_
H1
_
_
_
_;
eapply
tac_specialize_assert_persistent
with
_
_
H1
_
_
_
_;
...
...
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